FB_BACnet_Averaging_EX

FB_BACnet_Averaging_EX 1:

Application

The function block FB_BACnet_Averaging can be used for read access to a BACnet object of type Averaging (AVG).

VAR_OUPUT

FB_BACnet_Averaging_EX 2:

Variables are not included in the basic version of the function block.

bReady           : BOOL;
fAverageValue    : REAL;
fMaximumValue    : REAL;
fMinimumValue    : REAL;
nValidSamples    : UDINT;
nWindowSamples   : UDINT;
nWindowInterval  : UDINT;
tObjectID        : T_BACnet_ObjectIdentifier:=16#FFFFFFFF;  (*siehe Info*)
bError           : BOOL;
nErrorId         : UINT;

bReady: notification of general readiness. If this output is set, the other status outputs are valid (PresentValue, Overridden ...). If the output is FALSE, the corresponding function block "FB_BACnet_Device" does not report "Operational", or the function block instance was not linked correctly in the System Manager.

fAverageValue: current average value (see BACnet specification DIN EN ISO 16484-5 for BACnet object Averaging and property Average_Value).

fMaximumValue: largest sampled value (see BACnet specification DIN EN ISO 16484-5 for BACnet object Averaging and property Maximum_Value).

fMinimumValue: smallest sampled value (see BACnet specification DIN EN ISO 16484-5 for BACnet object Averaging and property Minimum_Value).

nValidSamples: number of valid values of the BACnet object (see BACnet specification DIN EN ISO 16484-5 for BACnet object Averaging and property Valid_Samples).

nWindowSamples: number of values sampled over the period of Window_Intervall (see BACnet specification DIN EN ISO 16484-5 for BACnet object Averaging and property Window_Samples).

nWindowInterval: period over which the values are averaged in full seconds (see also BACnet specification DIN EN ISO 16484-5 for BACnet object Averaging and property Window_Interval).

tObjectID: object ID of the BACnet object (object type and object instance).

bError: an error is pending.

nErrorId: see global constants (BACnet_Globals).

VAR_IN_OUT

Device           : FB_BACnet_Device;

Device: Specification of the instance of the local corresponding BACnet server block. For each BACnet adapter one BACnet server is possible. See FB_BACnet_Adapter and FB_BACnet_Device for further information.