Single-Precision Real Type → String Type Conversion - Mitsubishi Melsec-Q Series Structured Programming Manual

Application functions, qcpu
Hide thumbs Also See for Melsec-Q Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q-kp-ok-e13jw08

Table of Contents