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

Syntax

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 alarm mode describes the properties relating to resetting and acknowledging events. In addition, the alarm mode is used to initialize the event-enable bits. These bits can be used to enable or disable reporting of objects for the state changes ToOffnormal, ToFault and ToNormal.

Four alarm modes are available in TwinCAT Building Automation:

An alarm mode is a default setting of the Acknowledge Required Flags.

The settings of the three bits ToOffnormal, ToFault and ToNormal determine the behavior of an event with regard to acknowledging and resetting. The Event Enable bits of the objects belonging to an event class are also determined by the selection of the alarm mode.

 

The default settings for the bits can be found in the XBA_Param parameter list.

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