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 - 2 9 5
API Mnemonic
Operands
Function
111
D EZCP P
S
1
, S
2
, S, D
Floating Point Zone Compare
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
*
*
*
S
*
*
*
D
*
*
*
DEZCP, DEZCPP: 17
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
: Lower limit of zone comparison
S
2
: Upper limit of zone comparison
S
: Comparison value
D
: Comparison result, 3 consecutive bit addresses
Description:
1.
The contents of
S
is compared to the data range of
S
1
~
S
2
and the result (
>
,
=
,
<
) is
displayed by three bit addresses beginning with
D
.
2.
If the source operand
S
1
or
S
2
is a constant K or H, the integer value will automatically be
converted to binary floating point for the compare.
3. Operand
S
1
should be smaller than operand
S
2
, when
S
1
>
S
2
,
S
1
will be used as upper and
lower limit for the comparison.
Program Example:
1.
If M10 is entered for
D
, M10~M12 will automatically be used.
2.
When X0= ON, one of M10~M12 = ON. When X0= OFF, DEZCP instruction is not executed,
M10~M12 will retain their previous state before X0= OFF.
3.
Use RST or ZRST instruction to reset the result.
X0
DEZCP
D0
D10
D20
M10
M11
M12
It is ON when (D1,D0)>(D21,D20)
It is ON when (D1,D0)
(D21,D20) < (D11,D10)
<
It is ON when (D21 D20)>(D11,D10)
,
M10
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...