Chapter 16 PLC Function ApplicationsC2000-HS
16-85
API
EDIV
Division of binary floating point numbers
123
D P
Bit device Word device
16-bit command
- - - -
32-bit command (13 STEP)
DEDIV Continuous
execution type
DEDIVP Pulse
execution type
Flag signal: none
X Y M K H KnX KnY KnM T C D
S1 * * *
S2 * * *
D *
Notes on operand usage:
Please refer to the function specifications table for each device in
series for the scope of device usage
S
1
: dividend. S
2
: divisor. D: quotient and remainder.
When the content of the register designated by S
1
is divided by the content of the
register designated by S
2
, the quotient will be stored in the register designated
by D; division is performed entirely using binary floating-point numbers.
If the source operand S
1
or S
2
designates a constant K or H, the command will
transform that constant into a binary floating point number for use in division.
When X1=On, the binary floating point number (D1, D0) will be divided by the
binary floating point number (D11, D10), and the quotient stored in the register
designated by (D21, D20).
X1
DEDIV
D0 D10 D20
When X2=On, the binary floating point number (D1, D0) will be divided by
K1,234 (which has been automatically converted to a binary floating-point
number), and the results stored in (D11, D10).
X2
DEDIV
D0 K1234 D10