FIX16_TO_LREAL

FIX16_TO_LREAL 1:

Converts a signed 16-bit fixed-point number to a floating-point number of type: LREAL.

FUNCTION FIX16_TO_LREAL: LREAL

VAR_INPUT

VAR_INPUT
    in : T_FIX16;
END_VAR

in: The fixed-point number to be converted (type: T_FIX16).

Example:

See function description: LREAL_TO_FIX16.

Requirements

Development environment

Target platform

PLC libraries to be integrated (category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_Utilities (System)