Mitsubishi Electric MELSEC-Q/L Programming Manual page 388

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Program example
• 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)
0
Carry flag
(SM700)
1
Content of b13
Content of b12
before execution
before execution
• 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)
1
Content of b13
before execution
* ON/OFF status of the carry flag depends on its status before the execution of RCL.
7 APPLICATION INSTRUCTIONS
386
7.2 Rotation Instructions
b15
b14 b13 b12 b11b10 b9
1
1
1
1
0
0
0
b15
b14 b13 b12 b11b10 b9
1
0
0
0
0
0
0
Contents of b11 to b0
before execution
b15
b14 b13 b12 b11b10 b9
1
1
1
1
0
0
0
b15
b14 b13 b12 b11b10 b9
1
0
0
0
0
0
0
Contents of b11 to b0
Content of b12
before execution
before execution
[List Mode]
Step
b8
b7
b6 b5 b4 b3 b2 b1
0
0
0
0
0
0
0
b8
b7
b6 b5 b4 b3 b2 b1
1
0
0
0
0
0
0
Contents of b15 to b13
before execution
[List Mode]
Step
b8
b7
b6 b5 b4 b3 b2 b1
0
0
0
0
0
0
0
b8
b7
b6 b5 b4 b3 b2 b1
0
0
0
0
0
0
*
Contents of b15 and b14
before execution
Content of carry flag SM700
Instruction
Device
b0
0
0
D0
b0
1
1
D0
Instruction
Device
b0
0
0
D0
b0
1
1
D0

Advertisement

Table of Contents
loading

Table of Contents