API
ROR
30
D
P
bit device
X
Y
M
K
D
*
n
Notes on operand usage:
K4 (16-bit) is only 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.
Generally use this command as a pulse execution type command (RORP).
When X0 switches OFF to ON, 4 of the 16 bits in D10 specify a right rotation;
the content of the bit indicated with * (see diagram below) is sent to the carry
flag signal M1022.
Word device
H
KnX KnY KnM
T
*
*
*
*
Chapter 16 PLC Function ApplicationsMS300
Right rotation
16-bit command (5 STEP)
ROR
Continuous
C
D
execution type
*
*
32-bit command (9 STEP)
DROR
Continuous
execution type
Flag signal: M1022
719
RORP
Pulse
execution type
DRORP
Pulse
execution type
Carry flag