Applied Instructions
EDIV D10 D20 D50
S1· S2· D·
X0
z The floating point value of S1 is divided by the floating point value of S2. The result of the
division is stored in D as a floating point value. No remainder is calculated.
If a constant K or H used as source data, the value is converted to floating point before the
addition operation.
z
EDIV D100 K100 D110
X1
Function & Action
(D11,D10)÷(D21,D20)→(D51,D50)
Binary Floating Binary Floating Binary Floating
(D101,D100) ÷ (K100) → (D111,D110)
Binary Floating Binary converts to Floating Binary Floating
z If S2 is zero then a divide by zero error occurs and the operation fails.
[EDIV]
16 bits instruction:- 32 bits instruction:EDDIV
Suitable Models:
XC3、XC5
Word
Device
Bit
Device
D FDDMDX DY DS TD CDK/H
S1·
S2·
S2·
D·
S1·
X
Y
M
S
T
C
Dn.m
123