Specifications
7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-61
D
122
EMUL S
1
S
2
D
Multiplication of
decimal of binary
system
Bit device Word device
Device
Operand
XYMS K H
KnX KnY KnM KnS
TCDEF
S1
ϨϨ Ϩ
S
2
ϨϨ Ϩ
D
Ϩ
S1
: multiplicand.
S2
: multiplicator.
D
: product of multiplication.
The content of register that
S
1
designates multiplied by the content
of register that
S
2
designates and save the result in the register that
D
designates. All process of multiplication operation uses decimal of
binary system.
If source operand
S1
or
S2
designates the constant K or H, the
command will convert the constant to decimal of binary system.
S
1
and
S
2
can designate the same number register. In this
situation, when using “ continuous” command the register will be added
one time in the every scan during the condition contact is On. It uses
pulse execution command in general (DEMULP).
Program Example
D0DEMUL
X1
D10 D20
Ϩʳ When X0=On, the decimal of binary system (D1,D0) multiplies the
decimal of binary system (D11,D10) and save the result in the register
that (D21,D20) designates.
Program Example
K1234DEMUL
X2
D0 D10
Ϩʳ When X2=On, K1,234(auto convert to decimal of binary system)
× the
decimal of binary system (D1, D0) and save the result in (D11, D10).
Please refer to page 7-4 Handling of Decimal for detail.
D
123
EDIV S
1
S
2
D
Division 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
: dividend.
S2
: divisor.
D
: quotient and remainder.
The content of register that
S
1
designates divided by the content of
register that
S
2
designates and save the result in the register that
D
designates. All process of division operation uses decimal of
binary system.
If source operand
S1
or
S2
designates the constant K or H, the
command will convert the constant to decimalof binary system.
If the content of divisor
S2
is 0, it will be regarded as “ operand error”
and this command won’ t be executed.
Program Example
D0DEDIV
X1
D10 D20