Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-58
and lower bound for comparison.
If designated device is M0, it will auto occupy M0~ M2.
Program Example
DEZCP
X1
D10D0 M0
˜̇ʳ˼̆ʳˢ́ʳ̊˻˸́ʳʻ˗˄Δ˗˃ʼЇʳʻ˗˅˄Δ˗˅˃ʼ
˜̇ʳ˼̆ʳˢ́ʳ̊˻˸́ʳʻ˗˅˄Δ˗˅˃ʼЇʳʻ˗ˆ˄Δ˗ˆ˃ʼ
˜̇ʳ˼̆ʳˢ́ʳ̊˻˸́ʳʻ˗˄Δ˗˃ʼЊʻ˗˅˄Δ˗˅˃ʼЊʻ˗˄˄Δ˗˄˃ʼ
M0
M1
M2
D20
Ϩʳ When X1=On and DEZCP command is executed, one of M0~M2 will
be On. When X0=Off and ZCP command is not executed, the state of
M0~M2 will be in the state before X1=Off.
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
118
EBCD S D
Decimal of binary numberШ
decimal of decimal system
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
Ϩ
D
Ϩ
S
: data resource.
D
: the result of exchange.
To convert the value of register that
S
designates from decimal of
binary system to decimal of decimal system to save in the register that
D
designates.
The PLC decimal is operated by decimal of binary system. The DEBCD
command is the specific command for converting from decimal of binary
system to decimal of decimal system.
Program Example
D0DEBCD
X0
D2
Ϩʳ When X0=On, the decimal of binary system in D1, D0 will be converted
to decimal of decimal system to save in D3, D2.
D0D1
D2D3
([SRQHQW
5HDOQXPEHU
Floating point of
binary system
32 bits for real number, 8 bits for exponen
t
1 bit for sign bit
[D2] * 10
[D3]
([SRQHQW
5HDOQXPEHU
Floating point of
decimal system
Please refer to Page 7-4 Handling of Decimal for detail.
D
119
EBIN S D
Decimal of decimal system
Ш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
S
Ϩ
D
Ϩ
S
: data resource.
D
: the exchange result.
To convert the value of decimal of decimal system in the register that