Mitsubishi MELSEC Q Series Programming Manual page 414

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

Advertisement

ROL(P),RCL(P)
Operation Error
(1) There are no operation errors associated with the ROL(P) or RCL(P) instructions.
Program Example
(1) The following program rotates the contents of D0, not including the carry flag, 3 bits to the
left when XC is turned ON.
[Ladder Mode]
[Operation]
Carry flag
(SM700)
Carry flag
(SM700)
Content of b13
before execution
(2) The following program rotates the contents of D0, including the carry flag, 3 bits to the left
when XC is turned ON.
[Ladder Mode]
[Operation]
Carry flag
(SM700)
Carry flag
(SM700)
Content of b13
before execution
7-40
b15
b14 b13 b12 b11b10 b9
1
1
1
1
0
b15
b14 b13 b12 b11b10 b9
1
0
0
0
1
Content of b12
before execution
b15
b14 b13 b12 b11b10 b9
1
1
1
1
*
b15
b14 b13 b12 b11b10 b9
1
0
0
0
1
Content of b12
before execution
* ON/OFF status of the carry flag depends on its status before the execution of RCL.
[List Mode]
Step
Instruction
b8
b7
b6 b5 b4 b3 b2 b1
0
0
0
0
0
0
0
0
b8
b7
b6 b5 b4 b3 b2 b1
0
0
0
0
0
0
0
0
Contents of b11 to b0
before execution
[List Mode]
Step
Instruction
b8
b6 b5 b4 b3 b2 b1
b7
0
0
0
0
0
0
0
0
b8
b7
b6 b5 b4 b3 b2 b1
0
0
0
0
0
0
0
0
Contents of b11 to b0
before execution
Device
b0
0
0
0
0
D0
b0
0
1
1
1
D0
Contents of b15 to b13
before execution
Device
b0
0
0
0
0
D0
b0
1
1
0
D0
*
Contents of b15 and b14
before execution
Content of carry flag SM700

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents