3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E 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
3 - 5 0 7
API Mnemonic
Operands
Function
240~
246
D OR*
S
1
, S
2
Parallel 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
*
*
*
*
*
*
*
*
*
*
*
OR*: 5 steps
DOR*: 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 “OR=” 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 OR*instruction is an input instruction
API No.
16-bit
instruction
32-bit
instruction
Instruction is
true
Instruction is
false
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
3.
When the left most bit, MSB (the 16-bit instruction: b15, the 32-bit instruction: b31), from
S
1
and
S
2
is 1, this comparison value will be viewed as a negative value for comparison.
4.
If the 32-bit length counter (C200~) is used with this instruction for comparison, be sure to use
the 32-bit instruction (DOR*). If the 16-bit instruction (OR*) is used, a “Program Error”, will
occur and the red “ERROR” indicator on the ELC panel will blink.
Program Example:
If both X2 and M30 are “ON”, or if the contents of the 32-bit registers D101 and D100 are greater or
equal to K100,000, M60=ON.
DOR>=
D100
K100000
X2
M30
M60
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...