Configuring an Alarm Class

Prerequisites

The following variables must be declared in a global variable list (GVL):

bPartsShortage : BOOL;
iFillLevel : INT;
bPart1Empty : BOOL;

Steps for Configuring an Alarm Class

Step

Action

1

In the Tools tree, right-click the Alarm Configuration node and execute the command Add Object > Alarm Class....

Result: The Add Alarm Class dialog box opens.

2

Enter a Name (for example, PartsShortage) and click the Add button.

Result: The alarm class PartsShortage is added as new subnode of the Alarm Configuration node and the PartsShortage alarm class editor opens on the right-hand side.

3

In the PartsShortage alarm class editor, configure the following parameters that belong to this class group:

  • Set Priority to 10.

  • Select the Archiving option.

  • For Acknowledgment method select REP_ACK.

  • Select the Acknowledge separately option.

In the next steps, configure that the variable bPartsShortage gets the value TRUE when alarm messages are generated:

4

In the Notification Actions section of the editor, double-click the Action column, select the option Variable from the list and press Enter.

Result: The action is added and the options are activated.

5

Deselect the options Confirm and Deactivate. (Keep the Activate option selected.)

6

In the Variable section of the editor:

  • Click in the Variable input field and type bPartsShortage or use the Input Assistant to select the variable.

  • Type the value TRUE in the field on the right-hand side.

Result: The statement bPartsShortage := TRUE is displayed in the Details column of the Notification Actions section of the editor.

7

In the Display Options for Alarm Table / Alarm Banner section of the editor:

In the Active row select from the Background Color the entry Red.

8

In the Display Options for Alarm Table / Alarm Banner section of the editor:

In the Waiting for confirmation row select from the Background Color the entry Yellow.

Result: All messages in the PartsShortage class will now set the variable bPartsShortage to TRUE. Active messages are highlighted in red in the Alarm Table visualization element. Deactivated messages that are not acknowledged are highlighted in yellow.