Converting Single-Precision Real Type To String Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Converting single-precision real type to string type

REAL_TO_STR(_E)
Ver.
High
Basic
Process
performance
This function is used in the Basic model QCPU with a serial number (first five digits) of "04122" or later.
Structured ladder/FBD
REAL_TO_STR_E
EN
ENO
s
The following function(s) can go in the dotted squares.
REAL_TO_STR, REAL_TO_STR_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Converts single-precision real type data input to (s) into string type (exponential form) data, and outputs the operation result
from (d).
Single-precision
real type
.
Sign
(integer part)
When SM701 (signal for switching the number of output character) is OFF,
"00
" is stored.
H
5 APPLICATION FUNCTIONS
62
5.1 Type Conversion Functions
LCPU
Redundant Universal
ST
ENO:=
REAL_TO_STR_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_LREAL)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
High-order byte
s
20
(space)
H
2E
(.)
H
ASCII code of
two decimal place
E
ASCII code of
four decimal place
Sign
(exponent part)
45
(E)
H
Automatically
ASCII code of
added.
exponent part's
tens place
00
(NUL)
H
(EN, s, d);
d
Low-order byte
Sign data
(integer part)
ASCII code of
integer part
ASCII code of
one decimal place
ASCII code of
three decimal place
ASCII code of
five decimal place
Sign data
(exponent part)
ASCII code of
exponent part's
units place
Data type
Bit
Single-precision real number
Bit
String (13)
String 1st word
2nd word
3rd word
4th word
5th word
6th word
7th word

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents