469
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
- The exponent part is fixed to 2 digits.
When the exponent part is 1 digit, "30H (0)" is stored after the sign of the exponent part.
- "00H" is automatically stored at the end of the converted character string.
Related instructions
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When
is not located within the following range (error code: K6706)
0,
±
2
−
126
≤
S1
<
±
2
128
• When the format specified by
is any value other than "0" or "1" (error code: K6706)
• When the total number of digits specified by
+1 is not located within the following range (error code:
K6706)
In the case of decimal point format:
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)
In the case of exponent format:
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)
• When the number of digits of the decimal part specified by
+2 is not located within the following
range (error code: K6706)
In the case of decimal point format: Number of digits of decimal part
≤
(Total number of digits - 3)
In the case of exponent format: Number of digits of decimal part
≤
(Total number of digits - 7)
• When the devices storing a character string specified by
exceeds the allowable device range (error
code: K6706)
• When the conversion result exceeds the specified total number of digits (error code: K6706)
Instruction
Description
EVAL (FNC117)
Converts a character string (ASCII codes) into binary floating point data.
STR (FNC200)
Converts binary data into a character string (ASCII codes).
VAL (FNC201)
Converts a character string (ASCII codes) into binary data.
1
12
4
+1
+2
Total number of digits (12)
0
"30H (0)" is stored.
2 3 4 6 E +
1
1
Fixed to 2 digits.
+1
−
12.34567
S
1
S
1
S
2
S
2
S
2
S
1
S
2
S
2
S
2
D
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......