467
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
11
FN
C30-
FN
C39
R
o
ta
tion and
Sh
ift
12
FNC
4
0
-FNC49
D
a
ta
Op
e
ra
tio
n
13
FNC5
0
-FNC5
9
H
igh Speed
Pr
ocessi
ng
14
FM
C6
0
-F
NC6
9
H
and
y
In
st
ru
cti
o
n
15
FNC7
0
-FNC7
9
Ex
te
rn
a
l F
X
I
/O
D
evi
ce
16
FNC8
0
-FNC8
9
Ext
e
rnal
FX
D
evi
ce
17
F
N
C1
00
-F
NC
10
9
Da
ta
Tr
ansf
e
r 2
18
FN
C
110-FN
C
13
9
Fl
oat
ing P
o
in
t
19
FN
C
140-FN
C
149
Da
ta
O
per
at
io
n
2
20
FN
C
15
0-F
N
C
159
P
o
si
tioni
ng
C
ont
ro
l
- 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" 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)
00H
b15
+1
+2
+3
+4
b8 b7
b0
00H is automatically stored at the end of a
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