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