EasyManuals Logo

Delta VFD2A7MS43ANSAA User Manual

Delta VFD2A7MS43ANSAA
805 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
Page #723 background imageLoading...
Page #723 background image
Chapter 16 PLC Function ApplicationsMS300
714
API
ADD
S1 S2 D
BIN addition
20
D
P
bit device
Word device
16-bit command (7 STEP)
ADD
Continuous
execution type
ADDP
Pulse
execution type
32-bit command (13 STEP)
DADD
Continuous
execution type
DADDP
Pulse
execution type
Flag signal: M1020 Zero flag
M1021 Borrow flag
M1022 Carry flag
Refer to the following supplementary
explanation
X
Y
M
K
H
KnX
KnY
KnM
T
C
D
S1
S2
D
Notes on operand usage: none
S1: Augend. S2: Addend. D: Sum.
Adds S1 and S2 using the BIN method and stores result in D.
The highest bit of any data defines the sign: bit = 0 indicates (positive) bit = 1
indicates (negative); enables the use of algebraic addition operations (for
instance, 3 + (-9) = -6).
Flag changes connected with the addition.
16-bit commend:
1. When calculation results are 0, the zero flag M1020 is ON.
2. When calculation results are less than -32,768, the borrow flag M1021 is ON.
3. When calculation results are greater than 32,767, the carry flag M1022 is ON.
32-bit commend:
1. When calculation results are 0, the zero flag M1020 is ON.
2. When calculation results are less than -2,147,483,648, the borrow flag M1021 is
ON.
3. When calculation results are greater than 2,147,483,6477, the carry flag M1022
is ON.
16-bit BIN addition: When X0 = ON, saves the result of the content of addend
D0 plus the content of augend D10 in the content of D20.
X0
D0 D10
D20
ADD
Relationship between flag actions and negative/positive numbers:
-2, -1, 0 -32,768 -1, 0 1 32,767 0 1 2
-2, -1, 0 -2,147,483,648 -1, 0 1 2,147,483,647 0 1 2
16 bit: Zero flag
Zero flag
Zero flag
Borrow flag
The highest bit
of the data
= 1 (negative)
32 bit: Zero flag
Zero flag
Zero flag
The highest bit
of the data
= 0 (positive)
Carry flag
Borrow flag
Carry flag
The highest bit
of the data
= 1 (negative)
The highest bit
of the data
= 0 (positive)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta VFD2A7MS43ANSAA and is the answer not in the manual?

Delta VFD2A7MS43ANSAA Specifications

General IconGeneral
BrandDelta
ModelVFD2A7MS43ANSAA
CategoryDC Drives
LanguageEnglish

Related product manuals