Delta AH500 Programming Manual page 637

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

5.
Exponential format
Ex pon ential format
S 2
Numbe r of cha ract ers
S 2
+1
Numbe r of dec im al plac es
S 2
+2
.
F loating- point number
Suppose the number of characters is 12, the number of decimal places is 4, and the value is
-12.34567. The calculation is as follows.
S 2
1
12
S 2
+1
4
S 2
+2
.
-
2
3
1
( S1 +1 ,S1 )
- 12.34567
The value in S
If the value in S
If the value in S
value in S
+2 plus 7 and 24.
2
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
The integer part contains one character. To fulfill the number of characters, the codes
between the sign code and the integer part are 16#20.
If the value in S
automatically.
If the exponent is a positive number, the sign code in D is 16#2B. If the exponent is a
negative number, the sign code in D is 16#2D.
The exponent part contains two characters. If there is only one character, the other
character is "0" (16#30).
The conversion result ends with 16#00.
E
( S1 +1 , S1 )
E
+
0
4
6
1
+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
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
b15
F irst ASCII code
D
Decimal poi nt (.)
D+1
F our th ASCII code
D+2
Six th ASCII code
D+3
Sign (Exponent)
D+4
Second A SCII code
D+5
D+6
Automati cally stored at the end of the stri ng
b15
D
16#20( )
+1
D
16#2E(.)
+2
D
16#33(3)
+3
D
16#35(5)
+4
D
16#2B(+)
+5
D
16#31(1)
+6
D
Automati cally stored at the end of the str ing
+1 should be within the range between 6 and 24.
2
+1 should be within the range between the
2
+1 minus 7.
2
b0
b8
b7
Sign (Integer)
Second A SCII code
T hi rd AS CII c ode
F ifth ASCII code
16#45(E)
F irst ASCII code
16#00
b8
b7
b0
16#
2D( -)
16#
31(1)
16#
32(2)
16#
34(4)
16#
45(E)
16#
30(0)
16#00
+2 is not
2
6 - 4 6 9

Advertisement

Table of Contents
loading

Table of Contents