Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-37
ROR(P),RCR(P)
1
2
3
4
6
6
7
8
7.2 Rotation instruction
7.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))
Operation Error
(1) There are no operation errors associated with the ROR(P) or RCR(P) instructions.
Program Example
(1) The following program rotates the contents of D0, not including the carry flag, 3 bits to the
right when XC is turned ON.
[Ladder Mode] [List Mode]
[Operation]
(2) 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]
Step Instruction Device
0000000000001111
111000000000000
1
b15 b8 b0
b7
b0b7b15
b8
0
1
b14b13b12b11b10 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 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
b14b13b12b11b10 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.
*