Rotating 16-Bit Binary Data To The Left - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Rotating 16-bit binary data to the left

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents