Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual
Page 101
![background image](/manuals/79046/101/background.png)
Appendix D Use of Application Instructions|DOP-EXIO Series
D-20
Revision March, 2008, Doc. Name: 2007PDD23000014
Mnemonic
Operands Function
CML
D
S
D
Compliment
Bit Devices
Word Devices
X Y M S K H
KnX
KnY
KnM KnS
T
C
D
E
F
S
D
y
Note:
1. If S, and D are used in device F, only 16-bit instruction is applicable.
16-bit instruction (5 Steps)
CML
Continuous
execution
32-bit instruction (9 Steps)
DCML
Continuous
execution
y
Flags: None
Operands:
S
: Source of data
D
: Destination device
Explanations:
1. This instruction can be used for phase-reversed output.
2. Reverse the phase (0→1, 1→0) of all the contents in S and send the contents to D. Given that the
content is a constant K, K will be automatically converted into a BIN value.
Program Example 1:
1. When the user wants to perform the phase-reversed output operation, please use this instruction.
2. When X10 = On, b0 ~ b3 in D1 will be phase-reversed and send to Y0 ~ Y3.
X10
CML
K1Y0
D1
b
0
b
1
b
2
b
3
b
15
D1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
Symbol bit (0=positive, 1=negative)
0
1
0
1
No data
Sending the phase-reversed data
Program Example 2:
The loop below can also adopt CML instruction (see the right side program of the figure below).