Hello and welcome to a new quick start guide on how to best use Movicon.NExTâ„¢.
In this technote we are going to show you how to filter alarm history by using the Historian Log Viewer object in a Movicon.NExTâ„¢ application at runtime.
The Alarm Window and Historian Log Viewer objects allow you to filter
alarms based on criteria that are created by using the user-friendly
fllter editor offered by the controls.
This editor is activated by clicking the pencil icon at the bottom
of the control, immediately after the message display window.
A popup window will appear when clicking this icon. When clicking on
the + icon, you will be able to add the following criteria composed
of:
Other filter conditions can also be added and linked to each other
by using the AND and OR logical operators. After the filters have
been created, click OK to confirm. The object will only show messages
according to the filter conditions met at runtime.
In addition, the Historian Log Viewer also offers preconfigured temporal
filters, which include Time, Day, and Year.
However, there is a fundamental difference between the two controls:
while the Alarm Window object only allows filters to be created in
design mode, the Historian Log Viewer object also allows filters to
be implemented at project runtime instead.
To create a filter in design mode using the Alarm Window, simply:
This above procedure is also valid for the Historian Log Viewer.
We will now create an example to give you a better idea of how to do this:
Having started up the software editor and loaded the project:
Name | boolTest |
Model Type | Variable |
Data Type | Boolean |
Now we shall create an alarm:
Name | boolTestAlarm |
Alarm Type | Trip Alarm |
Activation Condition | Equals |
Activation Value | 1 |
Now that the tag and alarm have been configured, we can associate them with each other:
Now, let's proceed with the creation of a screen:
Once the screen has been created, we can now change the project's properties by inserting the screen as the project's Main screen to show when the project starts up. To do this:
To terminate the project startup page configuration, click on the Save All icon found in the toolbar at the top to save the project.
Make sure that the Main screen is open, and then click on the Toolbox
tab on the far left of the editor, next to the Properties window,
to open the Toolbox library provided by Movicon.NExT.
Drag the Vertical Switch from the Toggle Switches subfolder of the
Switches group on screen.
Drag the boolTest tag on top of the object to assign it.
Open the Toolbox library once more and insert the Alarm Window control,
which is found in the Alarms Viewers group, onto the Main screen.
Insert the Historian Log Viewer using the same procedure used for
the Alarm Window.
Save the project by clicking on the Save All icon located at the Movicon.NExT Editor's toolbar at the top.
Now
we will test what we have just created by clicking the Start Runtime
icon.
Once the application has started up and the screen has opened, click
on the switch to change the value of the boolTest tag from 0 to 1.
In this condition, the alarm associated with the tag will activate.
The alarm will appear in the Alarm Window and in the Historian Log
Viewer. By using the Historian Log Viewer's filter editor, we will
create a filter to only view messages relating to the boolTest tag.
To do this:
Once the filters have been confirmed for both the objects, the messages that will display will be the ones that meet the conditions set.