![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452463.webp)
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 - 2 9 4
API Mnemonic
Operands
Function
110
D ECMP P
S
1
, S
2
, D
Floating Point 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
*
*
*
D
*
*
*
DECMP, DECMPP: 13
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
: 1st comparison value
S
2
: 2nd comparison value
D
: Destination result, 3 consecutive bit
addresses
Description:
1.
The data of
S
1
is compared to the data of
S
2
and the result (
>
,
=
,
<
) is displayed via 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 to compare.
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, DECMP is not executed, M10~M12
will retain their previous state before X0= OFF.
3.
M10~M12 are used to display the result of the DECMP.
4.
Use RST or ZRST instruction to reset the result.
X0
DECMP
D0
D100
M10
M10
M11
M12
It is ON when (D1,D0)>(D101,D100)
It is ON when (D1,D0)=(D101,D100)
It is ON when (D1,D0)<(D101,D100)
Содержание 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...