Delta AS Series Programming Manual page 684

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1225
FSUM
Device
X
Y
M
S
n
D
Data
type
S
n
D
Symbol
Explanation
1.
This instruction adds up the single precision floating points in the n devices starting from the device specified by S,
then stores the sum in D.
2.
For 16-bit instructions, the value in n must be between 1–256,
3.
Instruction flags: SM600 (zero flag), SM601 (borrow flag), SM602 (carry flag):
When the operation result is zero, SM600 is ON. Otherwise, it is OFF.
If the value while adding or the absolute result of the operation is less than the floating point number that can
be shown, the D=16#FF800000 and the borrow flag SM601 is ON.
If the value while adding or the absolute result of the operation is larger than the floating point number that can
be shown, the D=16#7F800000 and the carry flag SM602 is ON.
Operand
P
S, n, D
S
T
C
HC
Pulse instruction
S : Data source
n : Data length
D : Operation result
Ch ap te r 6 Ap pl ie d Instruc ti ons
Finding the sum of floating point numbers
D
FR
SM
SR
16-bit instruction
AS
-
Function
E
K
16#
"$"
F
32-bit instruction
AS
6 - 4 0 5
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents