FX Series Programmable Controlers Applied Instructions 5
5-46
5.4.4 RCL (FNC 33)
Operation:
The bit pattern of the destination device (D)is rotated
n bit places to the left on every operation of the
instruction.
The status of the last bit rotated is moved into the
carry flag M8022. On the following operation of the
instruction M8022 is the first bit to be moved back
into the destination device.
The example shown left is based on the instruction
noted above it, where the bit pattern represents the
contents of D0.
Mnemonic Function
Operands
Program steps
SD
RCL
FNC 33
(Rotation
left with
carry)
The contents of
the destination
device are
rotated
left with 1 bit
extracted to the
carry flag
KnY, KnM, KnS,
T, C, D , V, Z
Note:
16 bit operation Kn= K4,
32 bit operation Kn= K8
K, H,
)
Note:
16 bit operation n≤ 16
32 bit operation n≤ 32
RCL, RCLP:
5steps
DRCL,
DRCLP:
9steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
Flags
Carry M8022
X0
D 0
[ D ]
K 4
[ n ]
RCL
111111110000000 0
111100000000011 1
M8022
1
Carry
M8022