GX Works3 - iQ-F - Function for converting LREAL to REAL numbers

GX Works3 - iQ-F - Function blocks for converting LREAL/REAL data type

Info
This article contains description of two function blocks for iQ-F CPU that convert LREAL to REAL data type and REAL to LREAL data type

      1. LREAL2REAL - function block that converts two-element array of double words (unsigned) to float data type

In/Out

Data Type

Description

i_dwnLReal

Double Word [Unsigned]/Bit String [32-bit](0..1)

LREAR data type in two-element array of double words

o_eOutReal

FLOAT [Single Precision]

REAL data type

FBD/LD:


ST:
LREAL2REAL_1(i_dwnLReal:= ?DWORD(0..1)? ,o_eOutReal=> ?REAL? );


      2. REAL2LREAL - function block that converts float data type to two-element array of double words (unsigned)

In/Out

Data Type

Description

i_elnReal

FLOAT [Single Precision]

REAL data type

o_dwnLReal

Double Word [Unsigned]/Bit String [32-bit](0..1)

LREAL data type in two-element array od double words

FBD/LD:



ST:
REAL2LREAL_1(i_eInReal:= ?REAL? ,o_dwnLReal=> ?DWORD(0..1)? );