FB_BA_AlmColt08
Collective alarm function block, 8 alarms
Functional description
This function block represents a collective alarm for up to 8 individual alarms. Each of these individual alarms bIn01..bIn08 is processed with a FB_BA_Alm within the function block, with a corresponding choice of storing the alarm at inputs bIn01RstReqd..bIn08RstReqd. The states of the eight individual alarms are output at bQ01 to bQ08.
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..bIn08RstReqd, 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..bIn08. It is in any case retentive - irrespective of the parameterisations at bIn01RstReqd..bIn08RstReqd - 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;
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
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;
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
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 |