FB_BA_AlmColt04
Collective alarm function block, 4 alarms
Functional description
This function block represents a collective alarm for up to four individual alarms. Each of these individual alarms bIn01..bIn04 is processed with a FB_BA_Alm within the function block, with a corresponding choice of storing the alarm at inputs bIn01RstReqd..bIn04RstReqd. The states of the four individual alarms are output at bQ01 to bQ04.
The output of the group alarm bAlm results from a logical OR link of the individual alarms. Acknowledgement is not required, if no individual alarm was parameterised to require acknowledgement. If alarm storage is enabled via the inputs bIn01RstReqd..bIn04RstReqd, the individual alarm and the group alarm can be reset globally via the input bRst. As already mentioned under FB_BA_Alm, an alarm can only be reset, if its trigger message is no longer active at bIn.
The output bAlmNew is set whenever a new message event occurs at the inputs bIn01..bIn04. It is in any case retentive - irrespective of the parameterisations at bIn01RstReqd..bIn04RstReqd - and is only reset through a rising edge at bRst until the next message event.
Inputs/outputs
VAR_INPUT
bEn : BOOL;
bIn01 : BOOL;
bIn01RstReqd : BOOL;
bIn02 : BOOL;
bIn02RstReqd : BOOL;
bIn03 : BOOL;
bIn03RstReqd : BOOL;
bIn04 : BOOL;
bIn04RstReqd : BOOL;
bEn: enable of the function block
bIn01: alarm input 1
bIn01RstReqd: alarm at input 1 requires acknowledgement
bIn02: alarm input 2
bIn02RstReqd: alarm at input 2 requires acknowledgement
bIn03: alarm input 3
bIn03RstReqd: alarm at input 3 requires acknowledgement
bIn04: alarm input 4
bIn04RstReqd: alarm at input 4 requires acknowledgement
bRst: all alarms that are parameterized to require acknowledgement and the group alarms bAlm and bAlmNew are reset.
VAR_OUTPUT
bAlm : BOOL;
bAlmNew : BOOL;
bQ01 : BOOL;
bQ02 : BOOL;
bQ03 : BOOL;
bQ04 : BOOL;
bAlm: group alarm - logical OR link of the individual alarms at the inputs
bAlmNew: flag for new alarm event
bQ01: alarm output 1
bQ02: alarm output 2
bQ03: alarm output 3
bQ04: alarm output 4
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 |