7 Applied Instructions
7.4 Rotation and Shift Operation
212
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Related device
→ For the carry flag use method, refer to Section 1.3.4.
Cautions
1) Some restrictions to applicable devices
S1:K4Y , K4M and K4S are valid for a 16-bit operation.
K8Y , K8M and K8S are valid for a 32-bit operation.
S2:The FX
3U, FX3UC and FX3G PLCs only are applicable.
S3:The FX
3U and FX3UC PLCs only are applicable.
2) When handling 32-bit data in a structured program, a 16-bit device cannot be specified directly as in the
case of a simple project. Use a label to handle 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
3) In the case of continuous operation type instructions (ROL and DROL), note that shift and rotation are
executed in every scan time (operation cycle).
4) When a device with digit specification is specified as , only K4 (16-bit instruction) or K8 (32-bit
instruction) is valid (examples: K4Y010 or K8M0).
Device Name Description
M8022 Carry Turns ON when the bit shifted last from the highest position is "1".