Events

The base framework of TwinCAT 3 Building Automation and the objects it contains offer extensive functions for processing events.

In TF8040, an event always refers to an object. Events occur when an object assumes an abnormal or faulty state. Event-capable objects in TwinCAT 3 Building Automation have the bEvent output for further processing of the event within the TwinCAT program.

Example:FB_BA_AI

Events 1:

The state of an object is described with the EventState.

Possible event states are:

State

Description

eNormal

The state of the object is normal.

eFault

The state of the object is faulty.

eOffnormal

The state of the object is abnormal.

eLowLimit

The upper limit value of an analog object has been exceeded.

eHighLimit

The value has fallen below the lower limit of an analog object.

Display of events

Events are displayed in the event list of the Site Explorer and the TcHmiBa. The events are also transmitted to BACnet clients via the BACnet server if required.

The display of an event depends on the following properties:

This results in the following possibilities for displaying an event (illustration using the example of an alarm event):

Designation

Figure

Description

Hidden

Events 2:

No event is pending.

Indicated*

Events 3:

The event is not (no longer) pending, but is indicated for information purposes until it is acknowledged.

Past and acknowledged**

Events 4:

The event is not (no longer) pending. However, it has already been acknowledged but not yet reset.

Past**

Events 5:

The event is not (no longer) pending. However, it was neither acknowledged nor reset.

Pending and acknowledged

Events 6:

An event is pending and has been acknowledged.

Pending

Events 7:

The event is pending.

* Only possible with alarm mode standard!
** Only possible with extended alarm mode!

The following representations result for each event type:

State

Alarm

Fault

Maintenance

Notification

Miscellaneous

Hidden

-

-

-

-

-

Indicated

Events 8:

Events 9:

Events 10:

Events 11:

Events 12:

Past, Acknowledged

Events 13:

Events 14:

Events 15:

Events 16:

Events 17:

Past

Events 18:

Events 19:

Events 20:

Events 21:

Events 22:

Pending, Acknowledged

Events 23:

Events 24:

Events 25:

Events 26:

Events 27:

Pending

Events 28:

Events 29:

Events 30:

Events 31:

Events 32:

Event controllers

Critical events often require a control response, such as shutting down a ventilation system after a fire damper fails.

The desired control functionality is parameterized with the lock functionalities of the event-enabled objects.

For this purpose, the events within the levels in the project structure are summarized and evaluated using the function block FB_BA_PlantLock.

Parameterizing events

An event can have different requirements with regard to its display, its control processing and its acknowledgement and resetting. Most of these properties are not parameterized on the object itself, but with the event class FB_BA_EC assigned to the object.

Events 33:

An event is called active as soon as it is no longer in the Normal state (Hidden).

Acknowledging and resetting

The user can interact with active events. He has the following options (depending on the configured alarm mode):

With the function block FB_BA_EventObserver it is possible to carry out a collective acknowledgement or reset of all events within the project structure. Which objects are acknowledged or reset depends on the position of the FB_BA_EventObserver in the project structure. In general, all objects that are located in the same folder or a subfolder in the project structure are acknowledged or reset.

Lock priorities

Define the priority for disabling events that, for example, have the desired effect on the FB_BA_PlantLock.

* Used for system-safe program sections.

** Used for personnel-safe program sections.