FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
• The number of digits of the decimal part which can be specified by
However, the following must be satisfied, "Number of digits of decimal part ≤ (Total number of digits - 7)"
For example, when the total number of digits is "12", the number of digits of the decimal part is "4", and
"-12.34567" is specified, data is stored in
1
S
2
+1
12
S
2
+2
4
S
2
Sign (integer part)
+1
S
1
−12.34567
Binary floating point
(real number)
• The character string data after conversion is stored in the devices
- For the sign of the integer part, "20H (space)" is stored when the binary floating point data is positive, and "2DH
(-)" is stored when the data is negative.
- The integer part is fixed to 1 digit.
"20H (space)" is stored between the integer part and the sign.
S
2
+1
S
2
+2
S
2
+1
S
1
−12.34567
- If the decimal part of the binary floating point data cannot be accommodated in the number of digits of the
decimal part, low-order digits of the decimal part are rounded.
S
2
+1
S
2
+2
S
2
+1
S
1
−12.34567
- 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.
S
2
+1
S
2
+2
S
2
+1
S
1
−12.34567
- For the sign of the exponent part, "2BH (+)" is stored when the exponent is positive, and "2DH (-)" is stored when
the exponent is negative.
D
Total number
of digits
Number of
digits of
decimal
part
1
2 3 4 6 E + 0 1
Fixed to 2 digits
Sign (exponent part)
S
1
1
Total number of digits (12)
12
Fixed to 1 digit
4
S
1
1
12
Total number of digits (12)
4
Number of digits of
S
1
decimal part (4)
1
12
Total number of digits (12)
4
S
1
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
S
+2 is from 0 to 7.
2
and later as shown below:
b15
20H space
D
+1
2EH(.)
D
33H(3)
+2
D
36H(6)
+3
D
2BH(+)
+4
D
31H(1)
+5
D
+6
D
0000H is automatically stored at the end of the
D
and later as shown below:
1
2 3 4 6 E +
0
1
"20H (space)" is stored.
1
2 3 4 6
6 7
E +
0
1
Cut by rounding.
1
2 3 4 6 E +
0
1
Number of digits of
decimal part (4)
Automatically added.
18 Floating Point – FNC110 to FNC139
b8 b7
2DH(-)
31H(1)
32H(2)
34H(4)
45H(E)
30H(0)
0000H
character string.
11
12
b0
13
14
15
16
17
18
19
20
495