Mitsubishi MELSEC Q Series Programming Manual page 413

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

Advertisement

(2) When a bit device is designated for
specified by digit specification.
The number of bits by which a rotation is executed is the remainder of n/(specified number of
bits).
For example, when n
1 is "3", and the data is rotated 3 bits.
(3) Specify any of 0 to 15 as n.
If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.
For example, when n
1 is "2".
RCL
(1) Rotates the 16-bit data of the device designated by
left.
The carry flag turns ON or OFF depending on its status prior to the execution of RCL
instruction.
Carry flag
b15
(SM700)
1
0
Carry flag
(SM700)
b15
1
0
Value of b15
Carry flag
(SM700)
b15
0
1
Value of b15
Carry flag
(SM700)
b15
Value of b(16-n)
(2) When a bit device is designated for
specified by digit specification.
The number of bits by which a rotation is executed is the remainder of n/(specified number of
bits).
For example, when n
1 is "3", and the data is rotated 3 bits.
(3) Specify any of 0 to 15 as n.
If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.
For example, when n
1 is "2".
, a rotation is performed within the device range
D
15 and (specified number of bits)
18, the data is rotated 2 bits to the left since the remainder of 18/16
b14 b13 b12 b11
b10
b9
b8 b7 b6 b5 b4 b3 b2 b1 b0
0
1
0
0
0
0
0
0
Left rotation (1 bit)
b14 b13 b12 b11
b10
b9
b8 b7 b6 b5 b4 b3 b2 b1 b0
1
0
0
0
0
0
0
0
Left rotation (1 bit)
b14 b13 b12 b11
b10
b8 b7 b6 b5 b4 b3 b2 b1 b0
b9
0
0
0
0
0
0
0
0
Left rotation (n bits)
b14 b13 b12 b11
b10
b9
b8 b7 b6 b5 b4 b3 b2 b1 b0
, a rotation is performed within the device range
D
15 and (specified number of bits)
18, the data is rotated 2 bits to the left since the remainder of 18/16
ROL(P),RCL(P)
12 bits, the remainder of 15/12
, including the carry flag, n-bits to the
D
0
0
0
0
0
0
0
D
0
0
0
0
0
0
0
D
Value of carry flag
1
0
0
0
0
0
0
D
Value of carry flag
D
12 bits, the remainder of 15/12
1
2
3
4
6
6
7
8
7-39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents