You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Download the Solution Example here: AlarmsAreas.dbsln

Name: Logical Alarm Areas

Software Version: 10.1


Summary

This solution example shows the many uses of AlarmAreas. Among other things, it is possible to enable, disable, acknowledge, count and filter alarms based on the Area they are associated with, making it easier to manage large projects.


Technical Information

To create an AlarmArea, go to Alarms → Areas. It is possible to create SubAreas by clicking on an existing AlarmArea and creating a new one inside of it. Afterwards, go to Alarms → Items, right-click the column titles and enable the Area column, then edit it to specify which Area each AlarmItem belongs to.
Each AlarmArea has its own alarm counts, as well as methods to acknowledge and disable all Alarms connected to it. These fields can be associated with buttons to manage Alarms. You can check these possibilities out by double-clicking this example’s components in Draw mode and looking at their Dynamics and text fields.
Additionally, Areas can be used to filter AlarmItems, making the visualization of AlarmViewers simpler and more organized. On Displays → Draw → Modules, select an AlarmAreas component and place it on the desired display. Set the SelectedArea field to a text tag and then apply it to the AlarmAreas through the display’s CodeBehind, like this:

public async void ApplyFilterButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
	 if(String.IsNullOrEmpty(@Tag.SelectedArea))
	 	 @Tag.AlarmFilter = "";
	 else
	 	 @Tag.AlarmFilter = @Alarm.Area[@Tag.SelectedArea].GetFilter();
}

This code accesses the Area selected by the user through the AlarmAreas component. Then, method GetFilter returns text filtering the selected Area and all of its SubAreas. This filter is passed to text tag AlarmFilter, which is applied to the AlarmViewer by double-clicking on it in Draw mode and setting its Filter field to {Tag.AlarmFilter}.


Reference Information

Check out the Alarms Areas documentation to leverage this feature's potential.


In this section:

The root page @parent could not be found in space v10.

  • No labels