6.4 Data Transfer Instructions
6.4.5 16-/32-bit data negation transfer
6-119
6
BA
S
IC
INSTRUCTIONS
CML, DCML
CML, DCML
(2) In the following program, the data in the devices from M16 to M23 are inverted, and the
results are transferred to the devices from Y40 to Y47.
[Structured ladder]
[ST]
CML(SM402,K2M16,K3Y40);
[Operation]
(3) In the following program, the data in Var_D0 are inverted when X3 turns ON, and the result
is transferred to Var_D16.
[Structured ladder]
[ST]
CMLP(X3,Var_D0,Var_D16);
[Operation]
T
h
ese
b
its are all regarded as 0.
1
0
1
0 0 0
1 1
Y47
Y40
1 1
1
1
Y4B Y48
0
1
0
1 1 1
0 0
M
2
3
M
16
I
f
t
h
e num
b
er o
f
b
its o
f
is smaller t
h
an t
h
e num
b
er o
f
b
its o
f
s
d
Var
_
D
16
1
0
1
0
1 1 1 1
b
7
b
0
0
1
0
1
1
0
1
1
b15
b
8
0
1
0
1
0 0 0 0
1
0
1
0
0
1
0
0
Var
_
D0
b
7
b
0
b15
b
8
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......