5.1 Type Conversion Functions
5.1.19 Single-precision real type
→
string type conversion
5-57
5
APPLICATION
FUNCTIONS
REAL_TO_STR(_E)
REAL_TO_STR(_E)
5.1.19 Single-precision real type → string type conversion
REAL_TO_STR(_E)
Function
Operation processing
(1) Converts single-precision real type data input to into string type (exponent form) data,
and outputs the operation result from .
REAL_TO_STR(_E)
_E: With EN/ENO
indicates any of the following
functions.
REAL_TO_STR REAL_TO_STR_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :Single-precision real
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :String(12)
Universal
UD
High
Performance
EN ENO
ds
REAL_TO_STR_E
(EN, s, d);ENO:=
Structured ladder
ST
REAL_TO_STR_E
s
d
Sign
(integral part)
Sign
(exponent part)
Single-precision
real type
00
H
String 1st word
2nd word
3rd word
4th word
5th word
6th word
7th word
High-order byte Low-order byte
ASCII code of integral
part
ASCII code of
one decimal place
ASCII code of
three decimal place
ASCII code of
five decimal place
Sign data
(exponential part)
ASCII code of
exponent part's units
place
Sign data
(integral part)
ASCII code of (.)
decimal place (2E
H)
ASCII code of
two decimal place
ASCII code of
four decimal place
45
H(E)
ASCII code of
exponent part's
tens place
Automatically stored at the end of the character string.
Automatically
added.
E
.