Chapter 16 PLC Function ApplicationsC2000-HS
16-82
API
EADD
Adding binary floating point numbers
120
D P
Bit device Word device
16-bit command
- - - -
32-bit command (9 STEP)
DEADD Continuous
execution type
DEADDP 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
: addend. S
2
: augend. D: sum.
When the content of the register designated by S
2
is added to the content of the
register designated by S
1
, and the result is stored in the register designated by D.
Addition 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 addition.
In the situation when S
1
and S
2
designate identical register numbers, if a
"continuous execution" command is employed, when conditional contact is On,
the register will perform addition once during each scan. Pulse execution type
commands (DEADDP) are generally used under ordinary circumstances.
When X0=On, a binary floating point number (D1, D0) will be added to a binary
floating point number (D3, D2), and the results stored in (D11, D10).
X0
DEADD D0 D2 D10
When X2 =On, a binary floating point number (D11, D10) will be added to K1234
(which has been automatically converted to a binary floating-point number), and
the results stored in (D21, D20).
X2
DEADD D10 K1234 D20