Chapter 4. Ladder Diagram (LD) Programming
GFK-2950C February 2018 131
4.6.8 Convert REAL to LREAL
When REAL_TO_LREAL receives power flow, it converts the 32-bit single precision
floating point REAL data to the equivalent 64-bit double-precision floating point
data. REAL_TO_LREAL does not change the original REAL data.
The REAL value to convert to LREAL.
All except S, SA, SB, and SC
The LREAL equivalent value of the original REAL value.
All except S, SA, SB, and SC
Example
The REAL value of the square root of 2 is converted to the LREAL data type and placed in R00200.
Because the actual precision of the data in Result_Real is seven decimal places, the additional
decimal places in the data in R00200 are not valid.
4.6.9 Convert DINT to LREAL
When DINT_TO_LREAL receives power flow, it converts the double-precision
input data to 64-bit double-precision floating point data.