Delta C2000 Series User Manual page 549

Vector control drive
Hide thumbs Also See for C2000 Series:
Table of Contents

Advertisement

Chapter 16 PLC Functions Applications
API
ADD
20
D
Bit device
X
Y
M
S1
S2
D
Notes on operand usage: none
C2000 Series
S1
S2
P
Word device
K
H
KnX KnY KnM
S1
S2
: Augend.
: Addend.
Using two data sources: The result of adding
method will be stored in
The highest bit of any data is symbolized as bit 0 indicating (positive) 1 indicating
(negative), enabling the use of algebraic addition operations. (for instance:
3+(-9)=-6)
Flag changes connected with the addition.
1. When calculation results are 0, the zero flag M1020 will be On.
2. When calculation results are less than –32,768, the borrow flag M1021 will be
On.
3. When calculation results are greater than 32,767, the carry flag M1022 will be
On.
16-bit BIN addition: When X0=On, the result of the content of addend D0 plus the
content of augend D10 will exist in the content of D20.
X0
ADD
Relationship between flag actions and negative/positive numbers:
16 bit: Zero flag
-2, -1, 0
-32,768
The highest bit
Borrow flag
of the data
= 1 (negative)
32 bit: Zero flag
-2, -1, 0 -2,147,483,648
The highest bit
Borrow flag
of the data
= 1 (negative)
BIN addition
D
16-bit command (7 STEP)
ADD
T
C
D
32-bit command (13 STEP)
DADD
Flag signal: M1020 Zero flag
D
: Sum.
D
.
D0
D10
D20
Zero flag
-1, 0
1
The highest bit
of the data
= 0 (positive)
Zero flag
-1, 0
1
The highest bit
of the data
= 0 (positive)
16-58
Continuous
ADDP
execution type
execution type
Continuous
DADDP
execution type
execution type
M1021 Borrow flag
M1022 Carry flag
Please refer to the following
supplementary explanation
S1
S2
and
using the BIN
Zero flag
32,767
0
1 2
Carry flag
Zero flag
2,147,483,647 0 1 2
Carry flag
Pulse
Pulse

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

690v

Table of Contents