309
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.8 FNC 37 – WSFL / Word Shift Left
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High-Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
Caution
Note that "n2" words are shifted every time the drive input turns from OFF to ON in the WSFLP instruction, but that
"n2" words are shifted in each operation cycle in the WSFL instruction.
Error
If the transfer source is equivalent to the shifted device , an operation error occurs (error code: K6710).
Program example
1. Shifting devices with digit specification
+8
+2
n2 (in the case of "n2=3")
n1 (in the case of "n1=9")
[1]
Overflow (data to
be deleted)
+1
D
+7 +6
+5 +4 +3 +8 +7 +6
D
+5 +4 +3 +2
D
+1
+5 to before shift (n2=3)
D
[3] Copy
[2]
"n2" bits are
shifted leftward
(n2=3).
+2 to before shift (n2=3)
+2 +1
D
Before
execution
After
execution
S
S
S
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
S
S
S
D
[3]
[2]
[1]
X007 X006 X005X004 X003 X002X001 X000
Y017 Y016Y015 Y014Y013 Y012Y011 Y010 Y007 Y006Y005Y004 Y003 Y002 Y001Y000
X000
FNC 37
WSFLP
K1X000 K1Y000 K 4 K 2
Specify the same digit for devices with digit specification.
D S
n1 n2
Make sure that the number of digits is
equivalent (Kn).