Delta AS Series Programming Manual page 685

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
F lo at ing p oi nt nu mb ers
Example
The FSUM instruction adds up the values of the 3 single precision floating points in (D1, D0), (D3, D2), (D5, D4) and
stores the result in (D11, D10).
[( D1, D 0)+( D3, D 2)+(D5 , D4)]
(D1, D0)
(D3, D2)
_6
(D5, D4)
Additional remarks
1.
If the value in n is not between 1–256, the instruction is not executed, SM0 is ON, and the error code in SR0 is
16#200B.
2.
If S+2*n-1exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is
16#2003.
3.
If the value in S exceeds the range of the floating point numbers that can be shown, the instruction is not executed,
SM0 is ON, and the error code in SR0 is 16#2013.
6 - 4 0 6
S
+1
S
+3
S
+5
S
+7
S
+9
( D11, D10 )
10 0.1
Aft er t he inst ruc tio n is execu ted.
(D11, D10)
113.2
125.3
S
S
+2
S
+4
n=5
S
+6
S
+8
33 8.6
D
D
+1
F l oatin g po int n umbers

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents