E L C P r o g r a m m i n g M a n u a l
F o r m o r e i n f o r m a t i o n v i s i t : w w w. e a t o n . c o m M N 0 5 0 0 3 0 0 3 E
3 - 5 0 6
API Mnemonic
Operands
Function
232~
238
D AND*
S
1
, S
2
Series Contact Comparison
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
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P
32
16
P
32 16
P
Operands:
S
1
: Data source value 1
S
2
: Data source value 2
Description:
1.
Compare the contents of
S
1
and of
S
2
. For example, “AND=”,compares
S
1
and of
S
2
and if the
comparison result is “=” , the instruction is true, and if it is “
≠
” , the instruction is false.
2.
The AND* instruction is an input instruction
API No.
16 -bit
instruction
32 -bit
instruction
Instruction is
true
Instruction is
false
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
3.
If a 32-bit counter is used with this instruction for comparison, be sure to use the 32-bit
instruction (DAND*). If the 16-bit instruction (AND*) is used with a 32-bit counter, a “Program
Error”, will occur and the red “ERROR” indicator on the ELC panel will blink.
Program Example:
1.
If X0=ON and the accumulated value of counter C10 equals K200, Y20=ON.
2.
If X1=OFF and the contents of register D0 is not equal to K
–
10, set Y21=ON.
AND=
K200
C10
Y20
AND<>
K-10
D0
SET
Y21
X1
X0
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...