Delta C200 Series User Manual page 332

Intelligent vector control drive
Table of Contents

Advertisement

Call 1(800)985-6929 for Sales
API
ADD
20
D
Bit Devices
X
Y
M
S
1
S
2
D
Operands: None
1.
E xplanation
2.
3.
4.
16-bit command:
Example
When X0 = On, the content in D0 will plus the content in D10 and the sum will be
stored in D20.
Remarks
Flags and the positive/negative sign of the values:
Call 1(800)985-6929 for Sales
deltaacdrives.com
S1
S2
D
P
Word Devices
K
H KnX KnY KnM T
: Summand S
: Addend
S
1
2
This instruction adds S
The highest bit is symbolic bit 0 (+) and 1 (-), which is suitable for algebraic
addition, e.g. 3 + (-9) = -6.
Flag changes in binary addition
16-bit command:
If the operation result = 0, zero flag M1020 = On.
A.
If the operation result < -32,768, borrow flag M1021 = On.
B.
If the operation result > 32,767, carry flag M1022 = On.
C.
X0
ADD
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)
deltaacdrives.com
Chapter 14 PLC Function |C200 Series
BIN Addition
16-bit command (7 STEPS)
ADD
C
D
32-bit command (13 STEPS)
Flag signal: M1020 Zero flag
D: Sum
and S
in BIN format and store the result in D.
1
2
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)
14-47
sales@deltaacdrives.com
ADDP
M1021 Borrow flag
M1022 Carry flag
Zero flag
32,767
0
1 2
Carry flag
Zero flag
2,147,483,647 0 1 2
Carry flag
sales@deltaacdrives.com

Advertisement

Table of Contents
loading

Table of Contents