EasyManua.ls Logo

Vigor VS Series - Page 156

Vigor VS Series
484 pages
Print Icon
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...
150
FNC
20
D A D D P
S1
S2
D
1
2
M
3
When the result of an operation stores in the and it is equal to “0”, the Addition / Subtraction Zero Flag M9020
turns “ON”.
When the result of an operation exceeds 32,767, the Carry Flag M9022 turns “ON”.
When the result of an operation is less than -32,768, the Borrow Flag M9021 turns “ON”.
When X20 = “ON”, the instruction will add the data in (D1, D0) and (D3, D2) together and store the total
in (D5, D4).
When the result of an operation stores in the and it is equal to “0”, the Addition / Subtraction Zero Flag M9020
turns “ON”.
When the result of an operation exceeds 2,147,483,647, the Carry Flag M9022 turns “ON”.
When the result of an operation is less than -2,147,483,648, the Borrow Flag M9021 turns “ON”.
D0
D1
D2
10
5
15
(D1, D0)
(D3, D2)
(D5, D4)
100,000
100
99,900
DADD D0 D2 D4
X20
ADDP D0 D1 D2
X20
S1
S2
D
D
S1
S2
D
D
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S1
S2
D
Operand
Devices
Addition (S1)+(S2) (D)
S1 : the summand
S2 : the addend
D : the sum
When X20= “OFF” “ON” , the summand (D0) will be added to the addend (D1), and the sum will be
stored at the specified destination device (D2).
16-bit Operation
32-bit Operation

Table of Contents