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

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

This article contains GX Works3 function for iQ-F CPU that converts LREAL numbers to REAL numbers.

This function converts a value from LREAL data type to REAL data type on iQ-F CPU.

 

Input/Output

Data Type

Description

LREAL_IN

Word [Signed](0..3)

LREAR number in 4 element array of registers

output

Word [Signed](0..1)

REAL number in 2 element array of registers


FBD/LD:



Structured text:

?INT(0..1)_REAL? := LREAL_TO_REAL(  ?INT(0..3)_LREAL_IN?  );

To input LREAR number to this function, you need to create 4-element array of Word [Signed] data type to which you assign devices that hold LREAL value. Converted REAL value also will be held in the same way.
    • Related Articles

    • GX Works3 - Function block for rounding float numbers with variable amount of significant numbers

      This article contains GX Works3 function block for rounding float numbers with variable amount of significant numbers. "Copyright © Mitsubishi Electric Europe B.V. IMPORTANT ! These Function Blocks are demo versions that are only intended to ...
    • iQ-F - Conversion between single STRING and array of WORD values

      This article contains GX Works3 function blocks for iQ-F CPU that that allow division of a single string into an array of WORD values and joining an array of WORD values into a single string. Function blocks These function blocks can be used to ...
    • iQ-F PWM outputs controler for PID temperature regulation

      This article describes the function block to control heating/cooling outputs with PWM for temperature control using PID Ten artykuł opisuje blok funkcyjny do sterowania wyjściami grzania/chłodzenia wykorzystując PWM dla kontroli temperatury poprzez ...
    • Summary of the programs included in iQ Works suite

      This article summarizes all the software included in the Mitsubishi iQ Works software suite. An iQ Works license code is required for all programs to work. Link to the software presented in the ...
    • iQ-F PID controller function block

      This article describes implementation of a PID instruction inside a function block for iQ-F PLC. Ten artykuł opisuje blok funkcyjny dla sterownika iQ-F implementujący instrukcję PID. "Copyright © Mitsubishi Electric Europe B.V. IMPORTANT ! These ...