Mitsubishi MELSEC Q Series Programming Manual page 412

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

ROL(P),RCL(P)
7.2.2
Left rotation of 16-bit data (ROL(P),RCL(P))
ROL(P),RCL(P)
ROL, RCL
ROLP, RCLP
Setting
Data
D
n
Function
ROL
(1) Rotates the 16-bit data of the device designated at
the left.
The carry flag turns ON or OFF depending on its status prior to the execution of ROL instruction.
Value of b15
Value of b15
Value of b(16-n)
7-38
Command
Command
: Head number of the devices to rotate (BIN 16 bits)
D
n
: Number of rotations (0 to 15) (BIN 32 bits)
Internal Devices
R, ZR
Bit
Word
Carry flag
(SM700)
b15
b14 b13 b12 b11
0
1
0
1
0
Carry flag
(SM700)
b15
b14 b13 b12 b11
0
1
0
0
1
Carry flag
(SM700)
b15
b14 b13 b12 b11
0
1
0
0
0
Carry flag
(SM700)
b15
b14 b13 b12 b11
High
Basic
performance
indicates an instruction symbol of ROL/RCL.
J
\
U
\G
Bit
Word
, not including the carry flag, n-bits to
D
b10
b9
b8 b7 b6 b5 b4 b3 b2 b1 b0
0
0
0
0
0
0
0
0
Left rotation (1 bit)
b10
b9
b8 b7 b6 b5 b4 b3 b2 b1 b0
0
0
0
0
0
0
0
0
Left rotation (1 bit)
b10
b9
b8 b7 b6 b5 b4 b3 b2 b1 b0
0
0
0
0
0
0
0
0
Left rotation (n bits)
b10
b8 b7 b6 b5 b4 b3 b2 b1 b0
b9
Process
Redundant Universal
D
n
P
D
n
Constants
Zn
K, H
––
0
0
0
0
D
0
0
0
1
D
Value of b15
0
0
1
0
D
Value of b15
D
Value of b(16-n)
LCPU
Other
––
––

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents