15 TYPE CONVERSION FUNCTIONS
15.47 Converting STRING to REAL
753
15
â– Operation result
1. Function without EN/ENO
The following table lists the operation results.
2. Function with EN/ENO
The following table lists the execution conditions and operation results.
*1 When FALSE is output from ENO, data output from (d) is undefined. In that case, modify a program so that the data output from (d) is
not used.
Operation result (d)
No operation error occurred Operation output value
An operation error occurred Indefinite value
Execution condition Operation result
EN ENO (d)
TRUE (Executes operation) TRUE (Operation error did not occur) Operation output value
FALSE (Operation error occurred)
*1
Indefinite value
FALSE (Stops operation) FALSE
*1
Indefinite value
Error code
(SD0/SD8067)
Description
2820 00H does not exist in the corresponding device range starting from (s)
3401 Invalid data which cannot be converted to (s) are set.
• Any character other than "30(0)" to "39(9)" exists in the integer part or decimal part.
• 2EH (.) exists in two or more positions in the specified character string.
• Any character other than 45H (E), 65(e), 2B(+) , or 2D(-) exists in the specified exponent part.
• Two or more exponent parts of 45H (E) or 65(e) exist in the specified character string.
• Three or more digits of numerical values in the exponent parts are described in the specified character string.
• Two or more signs of exponent parts of 2B(+) or 2D(-) exist in the specified character string.
• Two or more signs of 2B(+) or 2D(-) exist in the integral part for the decimal point format and exist in the mantissa part for the exponent
format in the specified character string.
• The number of characters after (s) is 0 or more than 24
3403 (d) exceeds the following range. (An overflow has occurred.)
|(d)|<2
128