BAC_GenAlm_01
Functional description
The template BAC_GenAlm_01 collects all alarms within an automation station. A group alarm is forwarded as BV object for controlling a collective failure signaling lamp to a BO object and for display in the MCL.
A further BV object enables central acknowledgement of all alarms from the MCL or a local operating device. A BI object is available for acknowledging the alarms with an acknowledgement button in the control cabinet. The acknowledgement pulse is linked to a BO object for interfacing in relay circuits (e.g. frost protection relay).
All alarms are displayed in the target visualization of the PLC control.
The template BAC_GenAlm_01 generates the required Globale_Variablen_Alarming for alarm purposes.
The variables, which are linked with the process image of the input and output level in the PLC, can be found under IO linking.
Interface
Block diagram
Block diagram of the internal communication
The function block FB_BA_AlarmPlt collects the alarms of a plant. The communication structure gBA_AlmMgnr is used to transfer the group alarms of the plants to the function block FB_BA_AlarmMgnr. This function block forms a further group alarm to consolidate the alarms from all plants to a global group alarm. The communication structure gBA_AlmMgnr is used to transfer a global acknowledgement pulse to all alarm function blocks within the PLC program. In addition, the system time is transferred to the alarm function blocks so that a time stamp can be formed. The communication structure is an internal component of TcBa.lib
Target visualisation PLC Control
VAR CONSTANT
PLT_NUM : BYTE := 0;
PLT_NUM: all alarms and events of all plant components within a controller are included in a global alarm and event list. The assignment of events and alarms to a plant is defined by the assignment of a PLT_NUM plant number.
The recording and processing of an alarm from an aggregate or a device takes place within the templates by means of the alarm function block FB_BA_Alarm.
The evaluation of the alarms of a plant, e.g. for the generation of a collective message or for plant shutdown in case of relevant faults, takes place within the template BAC_PltAlm_01 by means of the function block FB_BA_AlarmPlt.
The evaluation of different plant events within the templates of a plant, takes place within the template BAC_PltComnMsg_01 by means of the function block FB_BA_ComnMsg.
Important! The assignment and evaluation of the alarms and events of a plant can only be done correctly if all templates of a plant have 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.
Program description
Instance | Type | Task |
---|---|---|
Rst | BV object for acknowledging all alarms in a controller | |
RstSwi | BI object for connecting an acknowledgement button. | |
Rst_rtrig | R_TRIG | Flank evaluation of the acknowledgement signal from BV object Rst |
RstSwi_rtrig | R_TRIG | Flank evaluation of the acknowledgement signal from BI object RstSwi |
RstAuto | TON | Start-up delay automatically acknowledges all alarms 15 seconds after a restart of the PLC. |
| OR | Consolidates the automatic acknowledgement commands after a PLC restart, BV object (acknowledgement via MCL) or BI object (reset button in the control cabinet) |
RstHw_tof | TOF | Extension of the acknowledgement pulse to one second |
RstHw | The BO object is used to output the acknowledgement pulse to a digital output, e.g. for interfacing with a frost protection relay in the control cabinet. | |
gBA_AlmMgnr | The function block FB_BA_AlarmMgnr is the central function block of this template. | |
PrioSwi | If an alarm is not acknowledged, the output bNewAlarm of the function block becomes TRUE. In this case the priority switch PrioSwi generates a flashing signal and the output bVal is switched through. The downstream fault indicator lamp at the BO object and the BV object starts flashing. Once the alarm has been acknowledged, the flashing switches to continuous light. If the group alarm goes off, the output of PrioSwiis set to FALSE. | |
AlmInd | BV object for displaying a group alarm | |
Lmp | BO object for controlling a collective failure signaling lamp in the control cabinet |
IO linking
Variables for linking with the Bus Terminals
Parameter | Type | optional | Process image |
|
---|---|---|---|---|
BI_Button_Acknowledgement | BOOL |
| Input | Digital input - acknowledgement button - message - triggered |
BO_Acknowledge_Hardware_Cabinet | BOOL |
| Output | Digital output - acknowledgement hardware control cabinet - switching command - on/off |
BO_Collective_Signal_Lamp_Cabinet | BOOL |
| Output | Digital output - collective message lamp control cabinet - switching command - on/off |
Version history
Version number | Comments |
---|---|
1.0.1 | First release |