10 Application Instructions API 200-249
DVP-PLC Application Manual
10-11
API Mnemonic
Operands
Function
232~
238
D AND
※
AND Compare
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX KnY KnM KnS T
C
D
E
F
S
1
*
* *
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
*
AND
※
: 5 steps
DAND
※
: 9 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
1
: Data source device 1
S
2
: Data source device 2
Explanations:
1. See the specifications of each model for the range of operands.
2. This instruction compares the content in
S
1
and
S
2
. Take API232 (AND=) for example, if the result is “=”, the
continuity of the instruction is enabled. If the result is “
≠
”, the continuity of the instruction is disabled.
3. AND
※
(
※
:
=, >, <, <>,
≤
,
≥
) is a comparison instruction is used on series contacts.
API No.
16 –bit
instruction
32 –bit
instruction
Continuity
condition
No-continuity
condition
232
AND
=
D
AND
=
S
1
=
S
2
S
1
≠
S
2
233
AND
>
D
AND
>
S
1
>
S
2
S
1
≦
S
2
234
AND
<
D
AND
<
S
1
<
S
2
S
1
≧
S
2
236
AND
<>
D
AND
<>
S
1
≠
S
2
S
1
=
S
2
237
AND
<=
D
AND
<=
S
1
≦
S
2
S
1
>
S
2
238
AND
>=
D
AND
>=
S
1
≧
S
2
S
1
<
S
2
4. When 32-bit counters (C200 ~ C255) are used in this instruction for comparison, make sure to adopt 32-bit
instruction (DAND
※
). If 16-bit instructions (AND
※
) is adopted, a “program error” will occur and the ERROR
indicator on the MPU panel will flash.
Program Example:
1. When X0 = On and the content in C10 = K200, Y10 = On.
2. When X1 = Off and the content in D0
≠
K-10, Y11= On will be retained.
3. When X2 = On and the content in 32-bit register D0 (D11) < 678,493 or M3 = On, M50 = On.
AND=
K200
C10
DAND> K678493
D10
M3
Y10
AND<>
K-10
D0
SET
Y11
M50
X2
X1
X0
Содержание DVP-PLC
Страница 1: ...PLC PLC...
Страница 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Страница 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Страница 250: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 38 X0 DIV D0 D10 D20 D0 D10 K4Y0 DIV...
Страница 270: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 58 RST M0 X0 RST T0 RST Y0 FMOV K0 D10 K5...
Страница 337: ...7 Application Instructions API 50 99 DVP PLC APPLICATION MANUAL 7 53 X10 STMR T10 K50 Y0 Y3 X10 Y1 Y2 5 sec 5 sec...
Страница 458: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 56 or relay itself See 2 3 for more information...
Страница 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Страница 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...