EasyManua.ls Logo

Delta VP3000 Series - Page 351

Delta VP3000 Series
714 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Second Development Platform VP3000
342
API Instruction code Operand Function
120 D EADD P S
1
, S
2
, D
Binary floating-point number addition
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (13 steps)
DEADD
Continuous
execution
type
DEADDP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S
1
: summand
S
2
: addend
D: sum
The content of the register that S
1
designates adds the content of the register that S
2
designates,
and its sum is stored in the register that D designates. This addition is performed in the form of
binary floating-point numbers.
If S
1
or S
2
is an designated constant K or H, the instruction will convert the constant into a binary
floating-point value before the addition.
S
1
and S
2
can designate the same register. In this case, if the instruction is specified as
“continuous execution type” instruction (pulse execution type DEADDP is generally used) and
the drive contact is ON, the register will be added once in every scan.
Example
Example 1
When X0 = ON, the binary floating-point numbers (D1, D0) add the binary floating-point numbers
(D3, D2), and stores the result in (D11, D10).
X0
DEADD D0 D2 D10
Example 2
When X2 = ON, the binary floating-point numbers (D11, D10) add K1234 (convert to binary
floating-point number automatically), and stores the result in (D21, D20).
X2
DEADD D10 K1234 D20

Table of Contents

Related product manuals