F_BACnet_RealLE

Function for comparing two floating-point values taking into account the value range. This function should be used instead of the standard operators ("<" or "LE") for values from BACnet, since otherwise a PLC stop is triggered if the values to be compared are not in the finite range.

F_BACnet_RealLE 1:

VAR_INPUT

fIn1         : REAL;
fIn2         : REAL;

Return value: TRUE = value 1 is smaller or equal value 2. FALSE = value 2 is greater than value 1, or one of the two values is not in the finite value range.