Delta AS Series Programming Manual page 335

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
API
Instruction code
0104
Device
X
S
1
S
2
D
Data
type
S
1
S
2
D
Symbol
_6
Explanation
1.
This instruction adds the 32-bit single-precision floating-point numbers in S
2.
Instruction flags: SM600 (zero flag), SM601 (borrow flag), and SM602 (carry flag)
When the operation result is zero, SM600 is ON. Otherwise, it is OFF.
When the absolute value of the operation result is less than the value that can be represented by the minimum
floating-point number, the value in D is 16#FF800000 and SM601 is ON.
When the absolute value of the operation result is larger than the value that can be represented by the
maximum floating-point number, the value in D is 16#7F800000 and SM602 is ON.
Example
Adding single-precision floating-point numbers: when X0.0 is ON, the instruction adds the addend 16#4046B852 in (D21,
D20) to the augend 16#3FB9999A in (D11, D10), and stores the sum 16#4091C28F in (D31, D30). 16#4046B852,
16#3FB9999A, and 16#4091C28F represent the floating point numbers 3.105, 1.450, and 4.555 respectively.
6 - 5 6
F+
P
Y
M
S
T
C
: Augend
S
1
: Addend
S
2
: Sum
D
Operand
,S
,D
S
1
2
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
Function
Adding floating-point numbers
SR
E
K
16#
32-bit instruction
AS
and S
, and stores the sum in D.
2
1
"$"
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents