5-88
5.1 Type Conversion Functions
5.1.29 String type
→
single-precision real type conversion
STR_TO_REAL(_E)
5.1.29 String type → single-precision real type conversion
STR_TO_REAL(_E)
Function
Operation processing
(1) Converts string type (decimal point form/exponent form) data input to into single-
precision real type data, and outputs the operation result from .
STR_TO_REAL(_E)
_E: With EN/ENO
indicates any of the following
functions.
STR_TO_REAL STR_TO_REAL_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :String
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :Single-precision real
Universal
UD
High
Performance
EN ENO
ds
STR_TO_REAL_E
(EN, s, d);ENO:=
Structured ladder
ST
STR_TO_REAL_E
s
d
Single-precision real type
ASCII code of 3rd character ASCII code of 2nd character
ASCII code of 5th character ASCII code of 4th character
ASCII code of 7th character ASCII code of 6th character
ASCII code of 9th character
ASCII code of 11th character
00H (Indicates the end of the character string.)
ASCII code of 8th character
ASCII code of 10th character
ASCII code of 1st character
Sign date
2nd word
3rd word
4th word
5th word
6th word
7th word
String 1st word
High-order byte Low-order byte