Delta AH500 Programming Manual page 638

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
S 2
1
12
S 2
4
S 2
( S1+1,S1)
- 12.34567
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.
Dec imal fo rm at
0
D4
Numbe r of ch arac ters
7
D5
3
Numbe r of dec imal plac es
D6
( D1,D0)
0.0327457
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.
Exponential foramt
D4
1
Number of characters
12
D5
Number of dec imal plac es
4
D6
D1
D0
0.0327457
Additional remark:
1.
If the value in S
exceeds the range of values which can be represented by the floating-point
1
numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013.
2.
If the value in S
is neither 0 nor 1, the instruction is not executed, SM0 is ON, and the error
2
code in SR0 is 16#2003.
3.
If the value in S
+1 exceeds the range below, the instruction is not executed, SM0 is ON, and
2
6 - 4 7 0
+1
+2
-
.
0
.
2
4
3
7
.
2
4
5
6 7
1
3
b15
16#20( )
16#
2E(.)
16#
33(3)
0
3
2
16#
Automati cally stored at the end of the s tr ing
b15
D10
D11
D12
D13
E
-
0
6
2
D14
D15
D16
Automati cally stored at the end of the str ing
E
+
0
1
b8
b7
b0
16#
20( )
D10
16#
30(0)
D11
D12
16#30(0)
00
16#
33(3)
D13
b8
b7
b0
16#20( )
16#
20( )
16#
2E(.)
16#
33(3)
16#
37(7)
16#
32(2)
16#
36(6)
16#
34(4)
16#
45(E)
16#
2D( -)
16#
32(2)
16#
30(0)
16#
00

Advertisement

Table of Contents
loading

Table of Contents