FB_BA_EC

The function block FB_BA_EC represents an event class (cf. notification class) within the project structure of TF8040.
The detection of an event and the object-internal reporting (intrinsic reporting) is located in the event-enabled objects. The subsequent distribution of the events to the event clients, on the other hand, is not executed in the objects, but in the event class.
Each event-enabled object is assigned an event class. One or more objects can be assigned to an event class.

The event class describes properties of an event. All objects assigned to this event class get these properties.
Illustration
FUNCTION_BLOCK FB_BA_EC EXTENDS FB_BA_Object IMPLEMENTS I_BA_EventClass
VAR_INPUT CONSTANT PERSISTENT
{region 'Variable Parameters'}
aPriority : ARRAY[E_BA_EventTransition.First .. E_BA_EventTransition.Last] OF UDINT;
{endregion}
{region 'Fixed Parameters'}
eEventType : E_BA_EventType := E_BA_EventType.eOther;
eAlarmMode : E_BA_AlarmMode := E_BA_AlarmMode.Invalid;
aAcknowledgeRequired : T_BA_EventTransitions;
{endregion}
END_VAR
Inputs CONSTANT PERSISTENT
Name | Type | Description |
---|---|---|
aPriority | ARRAY [E_BA_EventTransition.First..E_BA_EventTransition.Last] OF UDINT | The variable specifies the priority with which the event class notifications are transmitted. The priorities range from 0 to 255 inclusive. A lower number means a higher priority. |
eEventType | This parameter is used to describe an event in more detail. The type of the event also describes the representation in the TwinCAT HMI. | |
eAlarmMode | The requirements regarding the acknowledgement and resetting of events are not parameterized on the objects, but on the event classes. Three standard alarm modes are available: The acknowledgement refers to incoming alarms and the reset to outgoing alarms. The alarm mode in TwinCAT Building Automation determines whether an event (or an object) must be acknowledged and / or reset. |
![]() | The default behavior of individual alarm modes can be adjusted by means of global parameters. |
Name | Type | Description |
---|---|---|
aAcknowledgeRequired | Acknowledgement required. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |