FB_BA_EC

FB_BA_EC 1:

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.

FB_BA_EC 2:

The event class describes properties of an event. All objects assigned to this event class get these properties.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

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

FB_BA_EC 3: 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

E_BA_EventType

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

E_BA_AlarmMode

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.

FB_BA_EC 4:

The default behavior of individual alarm modes can be adjusted by means of global parameters.
This may be necessary if, for example, operators require compliance with certain specifications.
All settings are carefully preset.
Changes have a significant effect on the event behavior of an object and should be implemented with caution!

Name

Type

Description

aAcknowledgeRequired

T_BA_EventTransitions

Acknowledgement required.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0