Delta AH500 Programming Manual page 633

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

If the data in S~S+5 is -12345.678, the calculation is as follows.
b15
b8
b7
S
16#31(1)
S
+1
16#
33(3)
S
+2
16#
35(5)
16#
36(6)
S
+3
S
+4
16#38( 8)
S
+5
16#
00
If there is 16#20 or 16#30 between the sign character and the first value which is not 0 in the
string in S, 16#20 or 16#30 is ignored when the string is converted into the binary number.
-
Ignor ed
Sign
If 16#2E, which represents the decimal point, is ignored, the string in S should be within the
range between -2147483648 and 2147483647. For example, if the string is "1234567.8", users
have to check whether "12345678" is within the range.
4.
If the sign code in S is 16#20, 16#2B, and 16#30 the conversion result is a positive value. If the
sign code in S is 16#2D, the conversion result is a negative value.
5.
In the string in S, except for the sign code, the code representing the decimal point, and the
code which can be ignored, i.e. 16#20 or 16#30, the other codes have to be within the range
between 16#30 and 16#39.
Example 1:
b15
b8
16#31(1)
D20
16#
2E(.)
D21
16#
34(4)
D22
D23
16#
b0
16#
2D(-)
16#
32(2)
16#34
(4)
16#
2E(.)
-
16#
37(7)
12
1234.56
2
-123456
11
0.00012345
8
Ignor ed
12345
b7
b0
16#
2D( -)
16#
32(2)
16#
33(3)
00
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
.
7
8
1
2
3
4
5
6
Number of c haracters
Number of dec imal places
Binary number
Number of characters
Number of dec imal plac es
Binary number
Number of charac ter s
D10 (
6
Number of decimal places
2
D11 (
- 1234
D0
(D1+ 1,D1)
10
(D1+ 3,D1+ 2)
3
(D2+ 1,D2)
- 12345678
)
)
6 - 4 6 5

Advertisement

Table of Contents
loading

Table of Contents