Delta AH500 Programming Manual page 636

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
Suppose the number of characters is 8, the number of decimal places is 2, and the value is
-1.23456. The calculation is as follows.
.
1
2
-
Sign
( S1 +1 , S1 )
-1.23456
The value in S
If the value in S
and the number of characters which the integer part contains should be less than or
equal to 23.
If the value in S
value in S
+2 plus 3 and 24, and the number of characters which the integer part
2
contains should be less than or equal to 22 minus the value in S
The value in S
0, it should be less than or equal to the value in S
If the floating-point number in S
floating-point number in S
If the length of the floating-point number is larger than the value in S
number is rounded off, and the redundant characters are deleted.
If the value in S
automatically.
If the length of the conversion result is less than the value in S
sign character and the real number are 16#20.
The conversion result ends with 16#00.
0 (De cima l fo ra mt)
S 2
S 2
8 (Nu mbe r o f cha ra cter s)
3
(Number of deci mal plac es)
S 2
( S1 +1 , S1 )
-1.23456
6 - 4 6 8
0
S 2
8
S 2
+1
3
S 2
+2
3
5
+1:
2
+2 is 0, the value in S
2
+2 is not 0, the value in S
2
+2 should be within the range between 0 and 7. If the value in S
2
is a positive number, the sign code in D is 16#20. If the
1
is a negative number, the sign code in D is 16#2D.
1
+2 is larger than 0, 16#2E (".") is stored in front of the specified character
2
+1
+2
1
-
B eco min g 1 6# 20
A uto mati cal ly sto re d
b15
b8
D
16#20( )
+1
D
16#
31(1)
+2
D
16#
32(2)
+3
D
16#
35(5)
Ending charac ter
+4
D
16#00 (
Automati cally stored at the end of the str ing
+1 should be within the range between 2 and 24,
2
+1 should be within the range between the
2
+1 minus 3.
2
+1, the codes between the
2
.
2
3
4
5 6
Th e fl oa tin g- po in t nu mbe r i s ro un d ed off,
a nd the re du nd an t cha ra cter s a re de le ted .
b0
b7
16#
2D( -)
16#
20( )
16#2E(.)
16#
33(3)
)
+2.
2
+2 is not
2
+1, the floating-point
2

Advertisement

Table of Contents
loading

Table of Contents