494
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
- When the number of digits of the decimal part is set to any value other than "0", "2EH (.)" is automatically stored
in "specified number of digits of decimal part + 1"th digit.
When the number of digits of the decimal part is "0", "2EH (.)" is not stored.
- When the total number of digits subtracted by the digits for sign, decimal point and decimal part is larger than the
integer part of the binary floating point data, "20H (space)" is stored between the sign and the integer part.
- "00H" or "0000H" is automatically stored at the end of the converted character string.
3. In the case of exponent format
• The total number of digits which can be specified by
+1 is as follows (24 digits maximum):
When the number of digits of the decimal part is "0" Total number of digits
≥
6
When the number of digits of the decimal part is any value other than "0" Total number of digits
≥
(Number of digits
of decimal part + 7)
1
2 3
Low-order digits of decimal
part
0: Decimal point
format
8 (Total number of
digits)
2 (Number of digits
of decimal part)
+1
+2
Total
number of
digits
Automatically added.
+1
−
1.23456
S
1
S
1
S
2
S
2
S
2
1
2 3
Low-order digits of decimal
part
0
8
2
+1
+2
Total
number of
digits
"20H (space)" is stored.
+1
−
1.23456
S
1
S
1
S
2
S
2
S
2
Exponent format
Total number of
digits
Number of digits
of decimal part
E
Sign (integer part)
+1
+2
Sign (exponent part)
Automatically
added.
ASCII code in "(specified
total number of digits - 1)"th
digit
ASCII code in "(specified
total number of digits - 5)"th
digit (decimal part)
ASCII code in "(specified
total number of digits - 7)"th
digit (decimal part)
ASCII code for sign
ASCII code in "(specified
total number of digits - 2)"th
digit
ASCII code in "(specified
total number of digits - 6)"th
digit (decimal part)
0000H
b15
+1
+2
+3
+4
b8 b7
b0
0000H is automatically stored at the end of the
character string.
ASCII code of sign
(exponent part)
ASCII code in "(specified
total number of digits -
11)"th digit (exponent part)
45H(E)
ASCII code in "(specified
total number of digits -
10)"th digit (exponent part)
+5
+6
+1
Binary floating point
(real number)
ASCII code for decimal point
(.) (2EH)
ASCII code in "(specified
total number of digits - 4)"th
digit (decimal part)
S
1
S
2
D
S
2
S
2
S
1
D
D
D
D
D
D
S
2