DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
API
Mnemonic Operands Function
SS2
SX2
14 D CML P
Compliment
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
CML, CMLP: 5 steps
DCML, DCMLP: 9 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S: Source of data D: Destination device
Explanations:
1. The instruction reverses the bit pattern (0→1, 1→0) of all the contents in S and sends the
contents to D.
2. If operand S and D use index register F, only 16-bit instruction is available
Program example 1:
When X10 = ON, b0 ~ b3 in D1 will be inverted and sent to Y0 ~ Y3
b0b1b2b3b15
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 variation Transfer data
Program example 2:
The diagram below can be substituted by the instruction on the right.
X000
M0
M1
M2
M3
X001
X002
X003
X000
M0
M1
M2
M3
X001
X002
X003
M1000
CML K1X0 K1M0
Normally ON contact