Mitsubishi MELSEC Q Series Programming Manual page 417

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

Advertisement

(2) The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to
the right when XC is ON.
[Ladder Mode]
[Operation]
b31
b28b27 b24b23 b20b19
D0, D1 0
0
0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
b31
b28b27 b24b23 b20b19
D0, D1 1
1
1
*
Contents of b2 to b0
Content of carry flag
before execution
SM700 before execution
* : ON/OFF status of the carry flag depends on its status before the execution of DRCR.
[List Mode]
Step
b16
b15
b12b11
b16
b15
b12b11
0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
Before execution
DROR(P),DRCR(P)
Instruction
Device
Carry flag
(SM700)
b8b7
b4b3
b0
Carry flag
b8b7
b4b3
b0
(SM700)
Content of b3
before execution
1
2
3
4
*
6
1
6
7
8
7-43

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents