Chapter 16 PLC Function ApplicationsMH300
ROL
Left rotation
ROL
Continuous
execution type
ROLP
DROL
Continuous
execution type
DROLP
Flag signal: M1022 Carry flag
*
*
*
*
*
*
*
K4 (16-bit) is only valid if the operand D is designated as KnY or
KnM.
n operand n=1 to 16 (16-bit)
D: Device to be rotated. n: Number of bits for one rotation.
Rotates the device designated by D to the left n bits.
Generally use this command as a pulse execution type command (ROLP).
When X0 switches OFF to ON, 4 of the 16 bits in D10 specify a left rotation; the
content of the bit indicated with * (see figure below) is sent to the carry flag signal
M1022.