-

TO_LREAL

Type Function
Description The overloaded function TO_LREAL converts an input value of various data types into an output value of the data type LREAL (see description of the input for the supported data types).
Parameters Input

IN

Output

OUT
Conversion rules ANY_BIT conversion

ANY_INT conversion

REAL conversion

LWORD conversion

STRING conversion

 

Note: If the range and precision of the input data type can be mapped to the range and precision of the output type, an implicit type conversion can be performed instead of using this function.
For the TO_LREAL function, this applies to REAL, DINT, INT, SINT inputs as well as for UDINT, UINT and USINT.
Error behavior Error behavior
Additional information EN/ENO behavior