FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. In the case of decimal point format
Decimal point
S
2
format
Total number of
+1
S
2
digits
Number of digits
+2
S
2
of decimal part
+1
S
1
Binary floating point
(real number)
• The total number of digits which can be specified by
When the number of digits of the decimal part is "0", Total number of digits ≥ 2
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 + 3)
• 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 - 3)"
For example, when the total number of digits is "8", the number of digits of the decimal part is "3", and
"-1.23456" is specified, data is stored in
0
S
2
+1
8
S
2
+2
3
S
2
+1
S
1
− 1.23456
Binary floating point
(real number)
• The character string data after conversion is stored in the devices
- For the sign, "20H (space)" is stored when the binary floating point data is positive, and "2DH (-)" is stored when
the data is negative.
- 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.
0: Decimal point
S
2
8 (Total number of
+1
S
2
2 (Number of digits
+2
S
2
of decimal part)
+1
S
1
−1.23456
Sign
S
1
D
Total
number
of digits
Number of
digits of
decimal part
1
2 3 5
Sign
S
1
format
digits)
S
1
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
b15
ASCII code in "(specified
D
total number of digits - 1)"th
digit
ASCII code in "(specified
+1
D
total number of digits - 3)"th
digit
ASCII code in "(specified
+2
D
total number of digits - 5)"th
digit (decimal part)
ASCII code in "(specified
+3
D
total number of digits - 7)"th
digit (decimal part)
+4
D
0000H is automatically stored at the end of the
S
+1 is as follows (24 digits maximum):
2
S
2
and later as shown below:
b15
20H(space)
D
31H(1)
+1
D
+2
32H(2)
D
+3
35H(5)
D
+4
D
0000H is automatically stored at the end of the
and later as shown below:
D
Total
number of
digits
1
2 3
4 5 6
Low-order
Rounded.
digits of
decimal part
18 Floating Point – FNC110 to FNC139
b8 b7
ASCII code for sign
ASCII code in "(specified
total number of digits - 2)"th
digit
ASCII code for decimal point
(.)
(2E
)
H
ASCII code in "(specified
total number of digits - 6)"th
digit (decimal part)
0000
H
character string.
+2 is from 0 to 7.
b8 b7
2DH(-)
20H(space)
2EH(.)
33H(3)
0000H
character string.
11
b0
12
13
14
15
16
b0
17
18
19
20
493