FB_BA_AlarmPlt

The function block collects the alarms of a plant and pools them in a group alarm.
The alarms are generated within the plant-related templates by the function block FB_BA_Alarm.
The alarms are allocated to a plant via the plant number.
The alarms are prioritised/weighted in the alarm output function block FB_BA_Alarm through the input byPrio.

It is important that the group alarm function block FB_BA_AlarmPlt and the alarm output function blocks FB_BA_Alarm within the templates of a plant are set to the same plant number!

The plant number can be assigned in the Project Builder in the parameter menu for the templates or via a column in the Excel import.

FB_BA_AlarmPlt 1:

FB_BA_AlarmPlt 2:

Inputs/outputs

VAR_INPUT

byPltId  : BYTE;
sName    : STRING;
bAck     : BOOL;

byPltId: Number of the corresponding plant. Important: All templates of plant must be assigned to the same plant number in the PLC!

sName: Input field for the plant ID (configurable via Project Builder or Excel import)

bAck: Input for alarm acknowledgement of the plant. This acknowledgement is internally passed to the alarm output function blocks FB_BA_Alarm.

VAR_OUTPUT

bCriticalAlm : BOOL;
bNewAlm      : BOOL;
bInAlm       : BOOL;

bCriticalAlm: critical alarm. This is used in the templates for switching off a plant. To this end, the input byPrio in the alarm output function block FB_BA_Alarm must have the value 4.

bNewAlm: shows the new value message of an alarm

bInAlm: indicates that an alarm signal is present

Requirements

Development environment

Target system

required library

required supplement

TwinCAT 2.11 R3/x64

PC/CX

TcBA library from V1.0.0

TS8040 | TwinCAT Building Automation from V1.0.0