FX Series Programmable Controlers
5.4.1
ROR (FNC 30)
Mnemonic
ROR
FNC 30
(Rotation
right)
16 BIT OPERATION
Function
The bit pattern of
KnY, KnM, KnS,
the destination
T, C, D, V, Z
device is rotated
Note:
'n' places to the
16 bit operation
right on every
Kn=K4,
execution
32 bit operation Kn=K8
32 BIT OPERATION
Operands
D
K, H,
)
Note:
16 bit operation n≤ 16
32 bit operation n≤ 32
PULSE-P
Operation:
The bit pattern of the destination device (D) is rotated
n bit places to the right on every operation of the
instruction.
The status of the last bit rotated is copied to the carry
flag M8022.
The example shown left is based on the instruction
noted above it, where the bit pattern represents the
contents of D0.
Applied Instructions 5
FX
FX
FX
1N
2N
1S
Program steps
n
ROR, RORP:
5 steps
DROR,
DRORP:
9 steps
Flags
Carry M8022
5-43
FX
2NC