EasyManuals Logo

Delta VFD-E Series User Manual

Delta VFD-E Series
435 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 #387 background imageLoading...
Page #387 background image
D-60
API Mnemonic Operands Function
20 ADD P S
1
, S
2
,
D Addition
Type
OP
Bit Devices Word devices Program Steps
X Y M K H KnX KnY KnM T C D
ADD, ADDP: 7 steps
S
1
* * * * * * * *
S
2
* * * * * * * *
D
* * * * *
Operands:
S1: Summand S2: Addend D: Sum
Explanations:
1. See the specifications of each model for their range of use.
2. This instruction adds S1 and S2 in BIN format and store the result in D.
3. The highest bit is symbolic bit 0 (+) and 1 (-), which is suitable for algebraic addition, e.g.
3 (-9) -6.
4. Flag changes in binary addition
16-bit command:
A. If the operation result 0, zero flag M1020 = On.
B. If the operation result -32,768, borrow flag M1021 = On.
C. If the operation result 32,767, carry flag M1022 = On.
Program Example 1:
16-bit command:
When X0 = On, the content in D0 will plus the content in D10 and the sum will be stored in D20.
X0
ADD D0 D10 D20
Remarks:
Flags and the positive/negative sign of the values:
-2, -1, 0 -32,768 -1, 0 1 32,767 0 1 2
16 bit: Zero flag
Zero flag
Zero flag
Borrow flag
The highest bit
of the data
= 1
(
ne
g
ative
)
The highest bit
of the data
= 0 (positive)
Carry flag

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta VFD-E Series and is the answer not in the manual?

Delta VFD-E Series Specifications

General IconGeneral
BrandDelta
ModelVFD-E Series
CategoryMedia Converter
LanguageEnglish

Related product manuals