INT_TO_NORMF16

INT_TO_NORMF16 1:

This function normalizes a 16-bit integer value and converts it to an NVA value (normalized value) in fixed-point number format.

Syntax

FUNCTION INT_TO_NORMF16: WORD
VAR_INPUT
    in    : INT;
    limLo : INT;
    limHi : INT;
    n     : WORD(0..15) := 15;
    bOV   : BOOL;
END_VAR

INT_TO_NORMF16 2: Inputs

in: Value to be converted.

limLo: Min. value limit.

limHi: Max. value limit.

n: Number of decimal places of the fixed-point number.

bOV: TRUE => Value overrange or underrange.

Requirements

Development environment

Target system type

PLC libraries to be linked (category group)

TwinCAT v3.1.4012.0

PC oder CX (x86, x64, Arm®)

Tc2_IEC60870_5_10x (Communication->IEC60870)
Tc2_SerialCom (Communication->Serial)
Tc2_TcpIp (Communication->TcpIp)
Tc2_Utilities (System)