7. APPLICATION INSTRUCTIONS
7
−
25
MELSEC-A
7.2.2 16-bit data left rotation
(ROL, ROLR, RCL, RCLP)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
M9012 (M9010, M9011)
n
O
O
O
O
Functions ROL
Rotates the data of A0 "n" bits to the left, without including the carry flag.
•
The carry flag is 1 or 0 depending on the status prior to the execution of ROL.
RCL
Rotates the data of A0 "0" bits to the left, including the carry flag.
•
The carry flag is 1 or 0 depending on the status prior to the execution of RCL.
Execution Conditions
Applicable
CPU
All CPUs
Left rotation commands
n
n
ROL, RCL
❏
Indicates the instruction symbol.
n
Number of times (0 to 15)
Setting data
P
Carry flag
(M9012)
n bit rotation
Carry flag
(M9012)
n bit rotation
OFF
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
Left rotation command
P
ON
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......