Visualizing Alarm Management

In CODESYS, the alarm management is a powerful object for creating and managing alarms. You can group alarms and set the acknowledgement behavior individually. The alarm display can also be customized in the visualization.

The Alarm table and Alarm banner visualization elements are available for displaying and processing alarms. The alarm table lists the alarm texts. The alarm banner is a simplified version of the alarm table. It visualizes a single alarm only.

See also

Creating alarm tables

Requirement: In your project, alarms are defined in alarm groups and they are assigned to an alarm class. The following statement is based on the example that is presented in the section “Configuring alarm management”.

  1. Open the visualization editor.

  2. Drag the Alarm table element from the Alarm manager group to the visualization editor.

    The Alarm table visualization element is visible in the editor.

  3. In Alarm configuration / Alarm groups, define the alarm groups to be visualized. Click into the value field.

    The Alarm Group Selection dialog box opens.

  4. Clear the All check box and select the PartsDeficit alarm group. Add the group to the selected alarm groups by clicking the 45d8ffbfbfd2d6fcc0a8640e0063c107_a42adbf14fc93ec3c0a8640e0096b311 button.

  5. In Alarm configuration / Alarm classes, define the alarm classes to be visualized. Click into the value field.

    The Alarm Group Selection dialog box opens.

  6. Clear the All check box and select the PartsDeficit alarm class. Add the alarm class to the selected alarm classes by clicking the 45d8ffbfbfd2d6fcc0a8640e0063c107_a42adbf14fc93ec3c0a8640e0096b311 button.

  7. Add an additional column. Click the Columns / Create new button.

    CODESYS adds the column [2] to the properties. The Symbol column is added to the table.

  8. Select data type State for column [2].

    The default column heading State is shown in the table.

  9. Name the Column heading column “Status”.

  10. Specify the appearance of the selected table cell. Set the Selection / Selection color to Green.

  11. In the Control variables / Confirm selection property, specify the variable bQuitAlarm for confirming messages.

  12. Adjust the other properties to their requirements. Refer to the visualization element “Alarm table” for a complete description of the properties.

See also

Inserting elements to the alarm acknowledgement

In CODESYS, predefined buttons are available for controlling the alarms in an alarm table.

Requirement: An Alarm table element is located in the visualization.

  1. Select the visualization element in the editor.

  2. Execute the command Visualization ‣ Insert elements for acknowledging alarms.

    The Alarm table wizard dialog box opens.

  3. Click OK to accept all settings.

    Four buttons are added for controlling the alarm table.

    ../_images/2c55863bad45790ac0a8640e00da17b7

See also

Creating alarm banners

Requirement: In your project, alarms are defined in alarm groups and they are assigned to an alarm class. The following statement is based on the example that is presented in the section “Configuring alarm management”.

  1. Open the visualization editor.

  2. Drag the Alarm banner element from the Alarm manager group to the visualization editor.

    The Alarm banner visualization element is visible in the editor.

  3. In Alarm configuration / Alarm groups, define the alarm groups to be visualized. Click into the value field.

    The Alarm Group Selection dialog box opens.

  4. Clear the All check box and select the PartsDeficit alarm group. Add the group to the selected alarm groups by clicking the 45d8ffbfbfd2d6fcc0a8640e0063c107_a42adbf14fc93ec3c0a8640e0096b311 button.

  5. In Alarm configuration / Alarm classes, define the alarm classes to be visualized. Click into the value field.

    The Alarm Group Selection dialog box opens.

  6. Clear the All check box and select the PartsDeficit alarm class. Add the alarm class to the selected alarm classes by clicking the 45d8ffbfbfd2d6fcc0a8640e0063c107_a42adbf14fc93ec3c0a8640e0096b311 button.

  7. Set the Alarm configuration / Filter criterion property to Newest.

    In online mode, the newest alarm message is always shown.

  8. Add an additional column. Click the Columns / Create new button.

    CODESYS adds the column [2] to the properties. The Symbol column is added to the table.

  9. Select data type State for column [2].

    The default column heading State is shown in the table.

  10. In the Confirmation variable property, specify the variable bQuitAlarm for confirming messages.

See also