Mitsubishi MELSEC QS Series Programming Manual page 130

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

CML(P), DCML(P)
Program Example
(1) The following program inverts the data from X0 to X7, and transfers result to D0.
[Ladder Mode]
[Operation]
(2) The following program inverts the data at M16 to M23, and transfers the result to Y40 to
Y47.
[Ladder Mode]
[Operation]
(3) The following program inverts the data at D0 when X3 is ON, and stores the result at D16.
[Ladder Mode]
[Operation]
6-32
6.4 Data Transfer Instructions
6.4.2 16-bit and 32-bit negation transfers (CML(P), DCML(P))
When "Number of bits of (S) < Number of bits of (D)"
These bits are
all regarded as 0.
b15
D0
1
1
1
1
1
When "Number of bits of (S) < Number of bits of (D)"
M23
These bits are
all regarded as 0
Y4B Y48
1
1
1 1
b15
b8
b7
D0
1
1
0
1
1
0
0 1
1 0 1 0 1 1 1 1
b15
b8
b7
D16
0
0
1
0
0
1
1 0
0 1 0 1 0 0 0 0
X7
X0
1 1 0 1 0 0 0 0
b8
b7
b0
1
1 1
0 0 1 0 1 1 1 1
M16
0 1 0 1 1 1 0 0
Y47
Y40
1 0 1 0 0 0 1 1
b0
b0

Advertisement

Table of Contents
loading

Table of Contents