EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 385

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.2 Rotation Instructions
383
7
Program example
The following program rotates the contents of D0, not including the carry flag, 3 bits to the right when XC is turned ON.
The following program rotates the contents of D0, including the carry flag, 3 bits to the right when XC is turned ON.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
0000000000001111
111000000000000
1
b15 b8 b0
b7
b0b7b15
b8
0
1
b14b13 b12b11b10 b9 b6 b5 b4 b3 b2 b1
b14
b13
b12 b11
b10 b9 b6
b5 b4
b3
b2 b1
Carry flag
(SM700)
Carry flag
(SM700)
Contents of b2 to b0
before execution
Contents of b15 to b4
before execution
Content of b3
before execution
Content of b2
before execution
D0
D0
Step Instruction Device
0000000000001111
11
*
000000000000
1
b15 b8 b0
b7
b0b7b15
b8
1
b14b13 b12b11b10 b9 b6 b5 b4 b3 b2 b1
b14
b13
b12b11
b10 b9 b6
b5 b4
b3
b2 b1
Carry flag
(SM700)
Carry flag
(SM700)
Contents of b1 and b0
before execution
Contents of b15 to b4
before execution
Content of b3
before execution
Content of b2
before execution
D0
D0
Content of carry
flag SM700
* ON/OFF status of the carry flag depends on its status before the execution of ROR.
*

Table of Contents

Related product manuals