Chapter 16 PLC Function ApplicationsC2000-HS
16-70
API
ROR
D n
Right rotation
30
D P
Bit device Word device
16-bit command (5 STEP)
ROR Continuous
execution type
RORP Pulse
execution type
32-bit command (9 STEP)
DROR Continuous
execution type
DRORP Pulse
execution type
Flag signal: M1022 Carry flag
X Y M K H KnX KnY KnM T C D
D * * * * *
n * *
Notes on operand usage:
Only K4 (16-bit) will be valid if the operand D is designated as KnY
or KnM.
n operand n=K1-K16 (16-bit)
D
: Device to be rotated.
n
: Number of bits for one rotation.
Rotates the device designated by
D
to the right
n
bits.
This command is ordinarily used as a pulse execution type command (RORP).
When X0=Off→On, 4 of the 16 bits in D10 specify a right rotation; the content of
the bit indicated with * (see figure below) will be sent to the carry flag signal
M1022.