Delta AS Series Programming Manual page 1044

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example
Suppose the number of characters is eight. Two floating-point numbers examples are -123.456789 and
123456. The calculation is as follows.
D number
D
D + 1
D + 2
D + 3
D + 4
D + 5
D + 6
After the conversion, if the floating-point number is stored in S
digits.
_6
The conversion result of the string length for the floating number -123.456789 in eight characters is 13 (the
ending character excluded).
The conversion result of the string length for the floating number 12345 in eight characters is 10 (the ending
character excluded).
The floating-point string does not have to fill all the characters.
Example 1
The floating-point number in (D1, D0= 12.3456) is converted into the decimal format in a string (D4=0, D5=8).
6 - 7 6 4
Floating-point number
-123.456789
High byte
Low byte
16#31 (1)
16#2D (-)
16#32 (2)
16#2E (.)
16#33 (3)
16#34 (4)
16#35 (5)
16#36 (6)
16#38 (8)
16#45 (E)
16#2B (+)
16#30 (0)
16#00
16#32 (2)
ending character
Floating-point number
12345
High byte
16#2E (.)
16#33 (3)
16#35 (5)
16#2B (+)
16#34 (4)
16#00
ending character
+1, and the instruction rounds off the extra
2
Low byte
16#31 (1)
16#32 (2)
16#34 (4)
16#45 (E)
16#30 (0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents