Specifications
7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-62
Ϩʳ When X1=On, the decimal of binary system (D1,D0) divided by the
decimal of binary system (D11,D10) and save the remainder in
(D21,D20).
Program Example
D0DEDIV
X2
K10 D10
Ϩʳ When X2=On, the decimal of binary system (D1, D0)
÷ K1234 (auto
convert to decimal of binary system) and save the result in (D11, D10).
Please refer to page 7-4 Handling of Decimal for detail.
D
127
ESQR S D
S
q
uare root 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
S
ϨϨ Ϩ
D
Ϩ
S
: the source device for getting the square root.
D
: the result of
the square root.
Getting the square root of the register that
S
designates and save
the result in the rgister that
D
designates. All process uses decimal
of binary system.
If the source operand
S1
or
S2
designates the constant K or H,
the command will convert the constant to decimal of binary system.
If the result of square root is 0, flag M1020=On
Source operand is valid when the value is positive. If the value is
negative, it will be regarded as “ operand error” , the command won’ t be
executed and flag M1067=On.
Program Example
D0DESQR
X0
D10
(D1 D0) (D11 D10)$$
decimal of binary system decimal of binary system
Ϩʳ When X0=On, get the square root of decimal of binary system (D1,D0)
to save in the register that (D11,D10) designates.
Program Example
K1234
DESQR
X2
D10
Ϩʳ When X2=On, get the square root of K1,234 (auto convert to decimal
of binary system) and save the result in (D11, D10).
Please refer to page 7-4 Handling of Decimal for detail.
D
129
INT S D
Decimal of binary systemШBIN
integer
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
Ϩ
D
Ϩ
S
: the source device for converting.
D
: conversion result.
The register that
S
designates convert from decimal of binary
system to BIN integer and save in the register that
D
designates.
The decimal of Bin integer will be discarded.