Converting double-precision real type to single-precision real
type
LREAL_TO_REAL(_E)
High
Basic
Process
performance
Structured ladder/FBD
LREAL_TO_REAL_E
EN
ENO
s
The following function(s) can go in the dotted squares.
LREAL_TO_REAL, LREAL_TO_REAL_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Converts double-precision real type data input to (s) into single-precision real type data, and outputs the operation result
from (d).
s
1234.0
Double-precision real type
• Rounding error may occur when setting 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
60
5.1 Type Conversion Functions
LCPU
Redundant
Universal
ST
ENO:=
LREAL_TO_REAL_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_LREAL)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
Single-precision real type
(EN, s, d);
d
1234
Data type
Bit
Double-precision real
Bit
Single-precision real number