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.
Operands
Parameter Description
Allowed Operands
Optional
IN
The REAL value to convert to LREAL.
All except S, SA, SB, and SC
No
Q
The LREAL equivalent value of the original REAL value. All except S, SA, SB, and SC
No
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.
Summary of Contents for PACSystems RSTi-EP
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...