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
- Alarm management: Alarm Management
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”.
Open the visualization editor.
Drag the Alarm table element from the Alarm manager group to the visualization editor.
- ⇒
The Alarm table visualization element is visible in the editor.
In Alarm configuration / Alarm groups, define the alarm groups to be visualized. Click into the value field.
- ⇒
The Alarm Group Selection dialog box opens.
Clear the All check box and select the PartsDeficit alarm group. Add the group to the selected alarm groups by clicking the
button.
In Alarm configuration / Alarm classes, define the alarm classes to be visualized. Click into the value field.
- ⇒
The Alarm Group Selection dialog box opens.
Clear the All check box and select the PartsDeficit alarm class. Add the alarm class to the selected alarm classes by clicking the
button.
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.
Select data type State for column [2].
- ⇒
The default column heading State is shown in the table.
Name the Column heading column “Status”.
Specify the appearance of the selected table cell. Set the Selection / Selection color to Green.
In the Control variables / Confirm selection property, specify the variable
bQuitAlarm
for confirming messages.Adjust the other properties to their requirements. Refer to the visualization element “Alarm table” for a complete description of the properties.
See also
- Configuring alarm management: Configuring the Alarm Management
- Visualization Element ‘Alarm table’
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.
Select the visualization element in the editor.
Execute the command
.- ⇒
The Alarm table wizard dialog box opens.
Click OK to accept all settings.
- ⇒
Four buttons are added for controlling the alarm table.
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”.
Open the visualization editor.
Drag the Alarm banner element from the Alarm manager group to the visualization editor.
- ⇒
The Alarm banner visualization element is visible in the editor.
In Alarm configuration / Alarm groups, define the alarm groups to be visualized. Click into the value field.
- ⇒
The Alarm Group Selection dialog box opens.
Clear the All check box and select the PartsDeficit alarm group. Add the group to the selected alarm groups by clicking the
button.
In Alarm configuration / Alarm classes, define the alarm classes to be visualized. Click into the value field.
- ⇒
The Alarm Group Selection dialog box opens.
Clear the All check box and select the PartsDeficit alarm class. Add the alarm class to the selected alarm classes by clicking the
button.
Set the Alarm configuration / Filter criterion property to Newest.
- ⇒
In online mode, the newest alarm message is always shown.
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.
Select data type State for column [2].
- ⇒
The default column heading State is shown in the table.
In the Confirmation variable property, specify the variable
bQuitAlarm
for confirming messages.
See also
- Configuring alarm management: Configuring the Alarm Management
- Visualization Element ‘Alarm banner’