Delta AS Series Programming Manual page 1041

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

3.
The conversion result varies with the setting of S
4.
The value in S
+1 must be between 2≦S
2
included but the decimal point in a decimal number and the exponent number are not included.
Operand
S
2
S
+1
2
5.
If the value in S
is a positive number, the first ASCII code can be stored in D; if the value in S
1
number, the sign 16#2D (-) is stored first and then the second ASCII is stored.
6.
Decimal format (S
=0)
2
After con ve rsio n,
the fl oa ting -p oin t string
in th e device D.
The value in S
+1 must be between 2≦S2+1≦20; the sign (+,-) and the digits in an integer or decimal
2
number are included but the decimal point in a decimal number and the exponent number are not included.
Example 1
Suppose the number of characters is eight. Two floating-point numbers examples are -1.2345678 and
123456. The calculation is as follows.
D
number
D
D + 1
D + 2
D + 3
D + 4
ending character
After the conversion, if the floating-point number is stored in S
the instruction rounds off the digits in the decimal number. The floating-point string does not have to fill all of
S
+1.
2
.
2
+1≦20; the sign (+,-) and the digits in an integer or decimal number are
2
Description
0: Decimal format
1: Exponential
Number of character
.
Sign Integ er
Floating-point number
-1.2345678
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#00
16#38 (8)
Cha p ter 6 App l ied Ins truc tio ns
De ci ma l
Floating-point number
123456
High byte
16#32 (2)
16#34 (4)
16#36 (6)
16#00
ending character
+1 but if the length exceeds the value in S
2
is a negative
1
Low byte
16#31 (1)
16#33 (3)
16#35 (5)
+1,
2
6 - 7 6 1
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents