FB_BA_EventObjectEx
The function block FB_BA_EventObjectEx extends the basic functionalities of a BACnet object by the property object internal notification (Intrinsic Reporting). Here, notifications and alarm messages are generated by the BACnet object itself and forwarded to a notification class.
In addition, the object is extended by the property of a time delay (stTimeDelay) of the event processing (eEnPlantLock).
Illustration
FUNCTION_BLOCK ABSTRACT FB_BA_EventObjectEx EXTENDS FB_BA_EventObject IMPLEMENTS I_BA_EventObjectEx
VAR_INPUT CONSTANT PERSISTENT
{region 'Variable Parameters'}
eEnPlantLock : E_BA_LockPriority := E_BA_LockPriority.eNoLock;
stTimeDelay : ST_BA_TimeDelayParam := F_BA_TimeDelay(BA_Param.nDefTimeDelay_ToAbnormal, 0);
{endregion}
END_VAR
Inputs CONSTANT PERSISTENT
Name | Type | Description |
---|---|---|
eEnPlantLock | The enumeration can be used to parameterize various switching actions related to the event of an object. In the event of a fire damper malfunction, for example, it may be necessary to shut down the associated ventilation system (see PlantLock). | |
stTimeDelay | The structure can be used to delay the object's event algorithm for the TO_OFFNORMAL and TO_NORMAL state change. In the standard PLC PLC BA-Template is the list BA2_Param. In it, the delay times for TO_OFFNORMAL and TO_NORMAL are pre-initialized with one second each by means of the two variables nDefTimeDelay_ToAbnormal and nDefTimeDelay_ToNormal. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |