Explanation Of Arithmetic Instructions - Delta AS Series Programming Manual

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

6.2.2 Explanation of Arithmetic Instructions

API
Instruction code
0100
D
+
Device
X
Y
M
S
1
S
2
D
Data
type
S
1
S
2
D
Symbol
Explanation
1.
This instruction adds the binary value in S
2.
Only the 32-bit instructions can use the 32-bit counter, but not the device E.
3.
Instruction flags: SM600 (zero flag), SM601 (borrow flag), and SM602 (carry flag)
4.
When the operation result is zero, SM600 is ON. Otherwise, it is OFF.
5.
For 16-bit binary values, when the operation result exceeds the range of 16-bit binary values, SM602 is ON.
Otherwise, it is OFF.
6.
For 32-bit binary values, when the operation result exceeds the range of 32-bit binary values, SM602 is ON.
Otherwise, it is OFF.
Operand
,S
P
S
1
S
T
C
HC
Pulse instruction
: Augend
S
1
: Addend
S
2
: Sum
D
to the binary value in S
2
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
,D
2
D
FR
SM
SR
16-bit instruction
AS
AS
, and stores the sum in D.
1
Function
Adding binary numbers
E
K
16#
"$"
F
32-bit instruction
AS
6 - 4 7
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents