FB_BA_AlmColt12

Collective alarm function block, 12 alarms

FB_BA_AlmColt12 1:

Functional description

This function block represents a collective alarm for up to 12 individual alarms. Each of these individual alarms bIn01..bIn12 is processed with a FB_BA_Alm within the function block, with a corresponding choice of storing the alarm at inputs bIn01RstReqd..bIn12RstReqd. The states of the 12 individual alarms are output at bQ01 to bQ12.

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..bIn12RstReqd, 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..bIn12. It is in any case retentive - irrespective of the parameterisations at bIn01RstReqd..bIn12RstReqd - 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;

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

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;

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

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