FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
- 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.
S
2
+1
S
2
+2
S
2
S
1
−12.34567
- "00H" or "0000H" is automatically stored at the end of the converted character string.
Related instructions
Instruction
EVAL (FNC117)
STR (FNC200)
VAL (FNC201)
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
S
1
−126
0, ±2
≤
S
• When the format specified by
• When the total number of digits specified by
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
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
K6706)
• When the conversion result exceeds the specified total number of digits (error code: K6706)
496
1
12
4
+1
S
1
Converts a character string (ASCII codes) into binary floating point data.
Converts binary data into a character string (ASCII codes).
Converts a character string (ASCII codes) into binary data.
is not located within the following range (error code: K6706)
128
< ±2
1
S
is any value other than "0" or "1" (error code: K6706)
2
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
Total number of digits (12)
Fixed to 2 digits.
1
2 3 4 6 E +
0
1
Description
S
+1 is not located within the following range (error code: K6706)
2
S
+2 is not located within the following range (error
2
D
exceeds the allowable device range (error code:
18 Floating Point – FNC110 to FNC139
"30H (0)" is stored.