5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-129
API Mnemonic
Operands
Function
224~
230
D
LD
※
Contact Type Comparison
Controllers
20PM
10PM
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX KnY KnM KnS T
C
D
V
Z
S
1
*
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
*
LD
※
: 5 steps
DLD
※
: 7 steps
Operands:
S
1
: Source device 1
S
2
: Source device 2
Explanations:
1. This instruction compares the content in
S
1
and
S
2
. Take API224 (LD=) for example, if the result is “=”, the
continuity of the instruction is enabled. If the result is “
≠
”, the continuity of the instruction is disabled.
2.
※
: =, >, <, <>,
≦
,
≧
3. LD
※
(
※
:
=, >, <, <>,
≤
,
≥
) instruction is used for direct connection with left hand bus bar
API No.
16 -bit
instruction
32 -bit
instruction
Continuity
condition
Discontinuity
condition
224
LD
=
D
LD
=
S
1
=
S
2
S
1
≠
S
2
225
LD
>
D
LD
>
S
1
>
S
2
S
1
≦
S
2
226
LD
<
D
LD
<
S
1
<
S
2
S
1
≧
S
2
228
LD
<>
D
LD
<>
S
1
≠
S
2
S
1
=
S
2
229
LD
<=
D
LD
<=
S
1
≦
S
2
S
1
>
S
2
230
LD
>=
D
LD
>=
S
1
≧
S
2
S
1
<
S
2
4. When 32-bit counters (C200 ~ C255) are used in this instruction, make sure to adopt 32-bit instruction (DLD
※
).
If 16-bit instruction (LD
※
) is adopted, a “program error” will occur and the ERROR indicator on the panel of
DVP-PM will flash.
Program Example:
1. When the content in C10 = K200, Y10 = ON.
2. When the content in D200 > K-30 and X1 = ON, Y11 = ON and latched.
3. When the content in C200 < K678,493 or M3 = ON, M50 will be ON.
LD=
K200
C10
DLD>
K678493
C200
M3
Y10
LD>
D200
K-30
X1
SET
Y11
M50
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...