284
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.7 FNC 36 – WSFR / Word Shift Right
Caution
Note that "n2" words are shifted when the drive input turns ON in WSFRP instruction, but that "n2" words are
shifted in each operation cycle in WSFR 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
S
D
[3]
[2]
[1]
X 7 X 6 X 5 X 4 X 3 X 2 X 1 X 0
Y 17 Y 16 Y 15 Y 14 Y 13 Y 12 Y 11 Y 10 Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y 1 Y 0
Make sure that the number of digits is
equivalent (Kn
).
X000
FNC 36
WSFRP
K1X000 K1Y000
K 4
K 2
Specify a same digit for devices with digit specification.
D
S
n1
n2