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.

 

Example:

See function description: LREAL_TO_FIX16.

 

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.10.0 Build >= 1326

PC or CX (x86, ARM)

TcUtilities.Lib