Creating a Visualization with an Alarm Table
In the following instructions, the Alarm Table visualization element is configured as an example.
For more information, see the following: Defining an Alarm Group and Alarms
Requirement: The AG_PartsShortage alarm group and the AC_PartsShortage alarm class are defined in your project.
- Add a visualization below your application. - Select the application and click the Add Object → Visualization command. 
- Specify the name as - VIS_PartsShortage.
 
- Open the visualization editor. 
- Drag the Alarm Table element from the Alarm Manager category into the visualization editor and open the properties view of the element. 
- Configure the alarm table as follows. - In the Element name property, in the Value column, specify the name - AT_PartsShortage.
- Configuration of the - Alarm groupsvisualization element property:- In the Alarm configuration → Alarm groups property, click in the corresponding value cell. - The Selected Alarm Group dialog opens. 
- Clear the All option and select the - AG_PartsShortagealarm group.
- Click the  button to add the group to the Selected Alarm Group list. button to add the group to the Selected Alarm Group list.
- Click OK to confirm the configuration. 
 
- Configuration of the Alarm classes visualization element property: - In the Alarm configuration → Alarm classes property, define the alarm classes which you want to visualize. Click into the value field. - In the Alarm configuration → Alarm classes property, click in the corresponding value cell. - The Select Alarm Class dialog opens. 
- Clear the All option and select the - AC_PartsShortagealarm class.
- Click the  button to add the alarm class to the selected alarm classes. button to add the alarm class to the selected alarm classes.
- Click OK to confirm the configuration. 
 
- Configuration of a column: - In the Columns property, click the Create New button. - Column [2] is available. The new column with the name - Bitmapis listed in the visualization editor.
- In the Type of data property, select the State value for column [2]. - In the table, the column is given the new default heading - State.
- In the Column header property, specify the name - Parts Shortage State.- Column [2] is renamed. 
 
- Configuration of the Selection visualization element property: - In the Selection color property, select the color - Greenin the Value column.- At runtime, the table cells can be selected by the visualization user. These then turn green. 
 
- Configuration of the Control variables visualization element property: - In your application code, declare the - bQuitAlarmcontrol variable.
- In the Acknowledge selected property, specify the - PLC_PRG.bQuitAlarmvariable in the value cell.
 
 - Configured properties  
The visualization user needs controls to operate the alarm visualization. When programming, you can get support from the Alarm Table Wizard. The command which calls the wizard is available only when you have selected an alarm table in the visualization.
- In the visualization editor, select the alarm table - element.
- In the context menu, click the Insert Elements for Alarm Acknowledgement command. - The Alarm Table Wizard dialog opens. 
- Click OK to accept all settings. - The - Acknowledge selected,- Acknowledge all visible,- History, and- Freeze scrolling positionbuttons are added. The elements have a complete input configuration.