Converting Single-Precision Real Type To Double-Precision Real 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 double-precision real
type
REAL_TO_LREAL(_E)
High
Basic
Process
performance
Structured ladder/FBD
REAL_TO_LREAL_E
EN
ENO
s
The following function(s) can go in the dotted squares.
REAL_TO_LREAL, REAL_TO_LREAL_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Converts single-precision real type data input to (s) into double-precision real type data, and outputs the operation result
from (d).
s
1234.0
Single-precision real type
• Rounding error may occur when specifying the input value to (s) by programming tool. For precautions when setting an
input value using a programming tool, refer to the following.
 MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
5 APPLICATION FUNCTIONS
58
5.1 Type Conversion Functions
LCPU
Redundant
Universal
ST
ENO:=
REAL_TO_LREAL_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_REAL)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
Double-precision real type
(EN, s, d);
d
1234.0
Data type
Bit
Single-precision real number
Bit
Double-precision real

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents