Delta AS Series Programming Manual page 1043

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 4
After the conversion, if the absolute value of the floating-point number is <=10
exponential format to convert. For example, the number of characters is four digits and the floating-point
number is 0.00001234, the conversion result is1.234E-05.
D number
D
D + 1
D + 2
D + 3
D + 4
ending character
7.
Exponential format (S
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 and decimal
2
number are included but the decimal point in the decimal number and the exponent number are not included.
After calculation, the length adds the exponents (four digits) and the decimal point of the decimal number.
The number of character in the area for the integer is one digit.
The number of character in the area for the exponent is four characters.
If the exponent is a positive number, the instruction adds 16#2B (+) in the area for exponent in D. If the
exponent is a negative number, the instruction adds 16#2D (-) in the area for exponent in D. The number of
character in the area for the exponent is two digits. If there is only one digit in the conversion result, the
instruction adds 16#30 (0) as the first digit of the area for the exponent.
Floating-point number
0.00001234
16#2E (.)
16#31 (1)
16#33 (3)
16#32 (2)
16#34 (4)
16#45 (E)
16#2D (-)
16#30 (0)
16#00
16#35 (5)
=1)
Si gn In tege r
Cha p ter 6 App l ied Ins truc tio ns
Exponential
.
De ci ma l
-5
, the instruction uses the
6 - 7 6 3
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents