AH500 Programming Manual
6-470
Sign ( Integer)
S2
+2
S2
+1
S2
E
( S1+1,S1)
Sign ( Exponent)
.
1
12
4
-
1
2
3
4
5
+
0
1
-12.34567
Two characters
Becoming 16#20
6 7
The floating-point number
is rounded off, and the
redundant characters
are deleted.
Automatically stored
Example 1:
Suppose the value in D4 is 0. The floating-point number in (D1, D0) is converted into the decimal
format of the string.
Decimal format
Number of characters
Number of decimal places
Automatically stored at the end of the string
D4
.
0
7
3
0
0 2
3
0.
0327457
D5
D6
(D1,D0)
b15
b0
b7 b8
0016#
20( )16# 16#20( )
30(0)16#
2E(.)16#
16#30(0)
33(3)16#
33(3)16#
D10
D11
D12
D13
Example 2:
Suppose the value in D4 is 1. The floating-point number in (D1, D0) is converted into the
exponential format of the string.
b15
b0
b7 b8
0016#
D11
D12
D13
D14
D6
D5
E
D1
.
D15
D16
1
12
4
3
2
7
4
6
-
0
2
0.
0327457
20( )16#
33(3)16#
32(2)16#
34(4)16#
45(
E)16#
30(0)16#
16#20( )
2E(.)16#
37(7)16#
36(6)16#
2D(-)16#
32(2)16#
D4
D0
D10
Sign ( Integer)
Sign ( Exponent)
Exponential foramt
Number of characters
Number of decimal places
A
utomatically stored at the end of the string
Additional remark:
1. If the value in S
1
exceeds the range of values which can be represented by the floating-point
numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013.
2. If the value in S
2
is neither 0 nor 1, the instruction is not executed, SM0 is ON, and the error
code in SR0 is 16#2003.
3. If the value in S
2
+1 exceeds the range below, the instruction is not executed, SM0 is ON, and