Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-57
D
110
ECMP S
1
S
2
D
Comparison of decimal of
binary system
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S1
ϨϨ Ϩ
S
2
ϨϨ Ϩ
D
ϨϨϨ
S1
: the comparison value 1 of decimal of binary system.
S2
: the
comparison value 2 of decimal of binary system.
D
: comparison
result, occupies continuous 3 points.
The comparison result (Ї, Ј, І) of value 1 of decimal of binary
system and value 2 of decimal of binary system will be showed in
D
.
If the source operand
S1
or
S2
designates constant K or H,
command will convert the constant to decimal of binary system to
compare.
If designated device is M10, it will occupy M10~M12.
Program Example
DECMP
X0
D0 D100 M10
˜̇ʳ˼̆ʳˢ́ʳ̊˻˸́ʳʻ˗˄Δ˗˃ʼʳˑʳʻ˗˄˃˄Δ˗˄˃˃ʼ
˜̇ʳ˼̆ʳˢ́ʳ̊˻˸́ʳʻ˗˄Δ˗˃ʼʳˏʳʻ˗˄˃˄Δ˗˄˃˃ʼ
˜̇ʳ˼̆ʳˢ́ʳ̊˻˸́ʳʻ˗˄Δ˗˃ʼʳːʳʻ˗˄˃˄Δ˗˄˃˃ʼ
M10
M11
M12
Ϩʳ When X0=On and execute DECMP command, one of M10~M12 will
be On. When X0=Off and not to execute DECMP command, the state
of M10~M12 will be in the state before X0= Off.
If you need to get the result of Њ, Љ, Ћ, you could get by series
connection or parellet connection of M10~M12.
If you want to clear the result, please use RST or ZRST command.
Please refer to page 7-4 Handling of Decimal for detail.
D
111
EZCP S
1
S
2
D D
Comparison of the
area of decimal of
binary system
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S1
ϨϨ Ϩ
S
2
ϨϨ Ϩ
D
ϨϨ Ϩ
D
ϨϨϨ
S1
: lower bound of decimal of binary of area comparison.
S2
:
upper bound of decimal of binary of area comparison.
S
:
comparison value of decimal of binary system.
D
: comparison result,
it will occupy continuous 3 points.
The compared result of
S
,
S1
and
S2
will be saved in
D
.
If source operand
S1
or
S2
designates constant K or H, the
command will convert the constant to decimal of binary system to
compare.
When
S1
>
S2
, this command will use
S1
to be upper bound