FB_BA_AlmColt16
Collective alarm function block, 16 alarms
Functional description
This function block represents a collective alarm for up to 16 individual alarms. Each of these individual alarms bIn01..bIn16 is processed with a FB_BA_Alm within the function block, with a corresponding choice of storing the alarm at inputs bIn01RstReqd..bIn16RstReqd. The states of the 16 individual alarms are output at bQ01 to bQ16.
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..bIn16RstReqd, 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..bIn16. It is in any case retentive - irrespective of the parameterisations at bIn01RstReqd..bIn16RstReqd - 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;
bIn05 : BOOL;
bIn05RstReqd : BOOL;
bIn06 : BOOL;
bIn06RstReqd : BOOL;
bIn07 : BOOL;
bIn07RstReqd : BOOL;
bIn08 : BOOL;
bIn08RstReqd : BOOL;
bIn09 : BOOL;
bIn09RstReqd : BOOL;
bIn10 : BOOL;
bIn10RstReqd : BOOL;
bIn11 : BOOL;
bIn11RstReqd : BOOL;
bIn12 : BOOL;
bIn12RstReqd : BOOL;
bIn13 : BOOL;
bIn13RstReqd : BOOL;
bIn14 : BOOL;
bIn14RstReqd : BOOL;
bIn15 : BOOL;
bIn15RstReqd : BOOL;
bIn16 : BOOL;
bIn16RstReqd : BOOL;
bRst : 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
bIn05: alarm input 5
bIn05RstReqd: alarm at input 5 requires acknowledgement
bIn06: alarm input 6
bIn06RstReqd: alarm at input 6 requires acknowledgement
bIn07: alarm input 7
bIn07RstReqd: alarm at input 7 requires acknowledgement
bIn08: alarm input 8
bIn08RstReqd: alarm at input 8 requires acknowledgement
bIn09: alarm input 9
bIn09RstReqd: alarm at input 9 requires acknowledgement
bIn10: alarm input 10
bIn10RstReqd: alarm at input 10 requires acknowledgement
bIn11: alarm input 11
bIn11RstReqd: alarm at input 11 requires acknowledgement
bIn12: alarm input 12
bIn12RstReqd: alarm at input 12 requires acknowledgement
bIn13: alarm input 13
bIn13RstReqd: alarm at input 13 requires acknowledgement
bIn14: alarm input 14
bIn14RstReqd: alarm at input 14 requires acknowledgement
bIn15: alarm input 15
bIn15RstReqd: alarm at input 15 requires acknowledgement
bIn16: alarm input 16
bIn16RstReqd: alarm at input 16 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;
bQ05 : BOOL;
bQ06 : BOOL;
bQ07 : BOOL;
bQ08 : BOOL;
bQ09 : BOOL;
bQ10 : BOOL;
bQ11 : BOOL;
bQ12 : BOOL;
bQ13 : BOOL;
bQ14 : BOOL;
bQ15 : BOOL;
bQ16 : 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
bQ05: alarm output 5
bQ06: alarm output 6
bQ07: alarm output 7
bQ08: alarm output 8
bQ09: alarm output 9
bQ10: alarm output 10
bQ11: alarm output 11
bQ12: alarm output 12
bQ13: alarm output 13
bQ14: alarm output 14
bQ15: alarm output 15
bQ16: alarm output 16
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 |