Rotating 32-bit binary data to the right
DROR(P), DRCR(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
• DROR(P): These instructions rotate the 32-bit binary data to the right by (n) bit(s), excluding the carry flag.
• DRCR(P): These instructions rotate the 32-bit binary data to the right by (n) bit(s), including the carry flag.
Ladder
(d)
(n)
*1
FBD/LD
EN
ENO
n
d
*1 The DROR instruction does not support the ST and FBD/LD. Use the standard function, ROR.
Page 1925 ROR(_E)
■Execution condition
Instruction
DROR
DRCR
DRORP
DRCRP
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:=DRORP(EN,n,d);
ENO:=DRCR(EN,n,d);
ENO:=DRCRP(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
533