Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-59
S
designates to decimal of binary system and save the result in the
register that
D
designates.
DEBIN command is the specific command that used to convert the
value from decimal of decimal system to decimal of binary system.
Program Example
D0DEBIN
X1
D2
Ϩʳ When X1=On, the decimal of decimal system in D1, D0 is converted to
decimal of binary system to save in D3, D2.
decimal of binary 23 bits for real number, 8 bits for exponent,
D3 D2
decimal of decimal
D1
D0 [D1] X 10
[D0]
ExponentReal number
Real number
Exponent
s
y
stem
s
y
stem
1 bit for sign bit
Before doing decimal operation, you should use FLTΰAPI 49αBIN
integer to convert to decimal of binary system. The value that is
exchanged must be BIN integer. However, DEBIN command can
convert decimal to decimal of binary system.
Program Example
X0
MOVP D0K314
DEBIN D0 D2
D1K -2
K314 D0
K -2 D1
(D1 D0) (D3 D2)
ΔΔ
314 10 decimal of binary
-2
314 10
-2
[D0]
[D1]
Ø
Ø
MOVP
system
Ϩʳ When X0=On, move K314 to D0 and move K-2 to D1 to make up
decimal of decimal system (3.14 = 314 ͪ10
-2
).
Please refer to page 7-4 decimal handing for detail.
D
120
EADD S
1
S
2
D
Addition 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
: augend.
S2
: addend.
D
: sum.
The content of register that
S
1
designates adds the content of
register that
S
2
indicates and save the sum in the register that
D
designates. The all process of addition operation uses decimal of binary
system.
If source operand
S1
or
S2
designates constant K or H, the
command will convert the constant to decimal of binary system for
addition operation.