5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-29
API Mnemonic Operands
Function
14
D CML P
Compliment
Controllers
20PM
10PM
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H
KnX
KnY KnM KnS T C D E F
S
*
*
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
*
CML, CMLP: 5 steps
DCML, DCMLP: 9 steps
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.
When CML is used as 16-bit instruction, Z device cannot be adopted; when CML is used as 32-bit instruction,
V device cannot be adopted.
3.
When specifying the bit device of KnX(Y/M/S), the starting No. should be a multiple of 16 in octal or decimal
format. For example, K1X0, K4Y20 (octal); K1M0, K4S16 (decimal).
Program example 1:
When X10 = ON, b0 ~ b3 in D1 will be inverted and sent to Y0 ~ Y3
X20
CML
K1Y0
D1
b0
b1
b2
b3
b15
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
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...