Rotating 32-bit binary data to the left
DROL(P), DRCL(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
• DROL(P): These instructions rotate the 32-bit binary data to the left by (n) bit(s), excluding the carry flag.
• DRCL(P): These instructions rotate the 32-bit binary data to the left by (n) bit(s), including the carry flag.
Ladder
(d)
(n)
*1
FBD/LD
EN
ENO
n
d
*1 The DROL instruction does not support the ST and FBD/LD. Use the standard function, ROL.
Page 1923 ROL(_E)
■Execution condition
Instruction
DROL
DRCL
DROLP
DRCLP
Setting data
■Description, range, data type
Operand
Description
(d)
Start device where the rotation target data is stored
(n)
Number of bits to be rotated
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(d)
(n)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*1
ST
ENO:=DROLP(EN,n,d);
ENO:=DRCL(EN,n,d);
ENO:=DRCLP(EN,n,d);
Range
Data type
32-bit signed binary
0 to 31
16-bit unsigned binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
Data type (label)
ANY32
ANY16
BOOL
BOOL
Constant
Others
specification
K, H E
$
7.1 Rotation Instructions
7
535