5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-131
API Mnemonic
Operands
Function
240~
246
D
OR
※
Parallel 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
*
*
*
*
*
*
*
*
*
*
*
OR
※
: 5 steps
DOR
※
: 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 API240 (OR =) 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. OR
※
(
※
:
&, |, ^) instruction is used for parallel connection with contacts.
API No.
16-bit
instruction
32-bit
instruction
Continuity
condition
Discontinuity
condition
240
OR
=
D
OR
=
S
1
=
S
2
S
1
≠
S
2
241
OR
>
D
OR
>
S
1
>
S
2
S
1
≦
S
2
242
OR
<
D
OR
<
S
1
<
S
2
S
1
≧
S
2
244
OR
<>
D
OR
<>
S
1
≠
S
2
S
1
=
S
2
245
OR
<=
D
OR
<=
S
1
≦
S
2
S
1
>
S
2
246
OR
>=
D
OR
>=
S
1
≧
S
2
S
1
<
S
2
4. When 32-bit counters (C200 ~ C254) are used in this instruction, make sure to adopt 32-bit instruction (DOR
※
).
If 16-bit instruction (OR
※
) is adopted, a “program error” will occur and the ERROR indicator on the panel of
DVP-PM will flash.
Program Example:
1. When X1 = ON and the present value in C10 = K200, Y0 = ON.
2. M60 will be ON either when both X2 and M30 are “ON”, or when the content in 32-bit register D100 (D101)
≥
K100,000.
OR=
K200
C10
DOR>
D100
K100000
Y0
X2
X1
M30
M60
=
Содержание DVP-10PM
Страница 1: ......
Страница 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Страница 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Страница 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Страница 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Страница 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Страница 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Страница 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...