How To Display Alarm Statistics Reports

Introduction

Hello and Welcome to a new guide on how to get the most out of Movicon.NExT™.

In this technote, we will show you how to display an Alarm Statistics Report in Movicon.NExT™ by using an example™.

Example

In this example we shall show you how to configure a main screen with a button to which the Show Statistics Report command will be associated to display the report when pressed.
We shall then show you how to connect an alarm to an Int16 type tag whose value will be changed automatically thanks to the Demo driver.

How to insert and configure the Demo driver

After having started up the software in development mode and created, or loaded, a project, insert the Demo driver by following these steps below:

How to create the tag

We shall now define an integer type tag. To do this:

Now that you have finished configuring the tag, save the project by clicking on the Save All button on the Movicon.NExT Editor’s toolbar at the top.

How to create and assign the alarm

We shall now create an alarm in this way:

Now that we have created and configured the tag and alarm, we can go ahead and assign the two elements:

How to create the screen

Now, we will need to create a screen:

Once the screen has been created, you can then change the project's properties by inserting the screen as the project's Main screen which will show when the project starts up. To do this:

Once you have finished configuring the project startup page, click on the Save All icon located on the toolbar at the top to save the project.

Now, open the Main screen and click on the Toolbox tab, which is located on the far right of the editor window, next to the properties window, to open the Toolbox library provided by Movicon.NExT.
Drag and drop the Display object, found in the Display folder. on screen. Drag the IntTag tag onto the object to assign it.
This time Drag and drop the Alarm Window found in the Toolbox’s Alarm Viewers folder, on screen.
Reopen the Toolbox, go to the Buttons folder and drag and drop a Standard Metro Style button from the Standard folder on the screen.
Select and open the button’s properties window and insert the Open Report string in the Text property field.
With the Open Report button still selected, click on the Commands tab at the bottom of the editor to open it.
Once opened, search for and select the Alarms command from the list of commands available and add it to the command list associated to the button.
Configure the Alarm command properties that appear on the right by selecting the Show Statistics Report option from the combobox as the Command Type. Go to the Alarm Source property and enter the alarm source.

Save the project by clicking on the Save All button on the Movicon.NExT Editor’s toolbar at the top.

Runtime Test

Click the Start Runtime button to test to see if everything works in runtime.
Once the project starts up with the screen open, the tag’s value will be simulated by the Demo driver. The value of the IntTag exceeds one of the thresholds configured in the alarm, the alarm will activate and display in the Alarm Window object.
Once the alarm has been activated, click on the Open Report button to display the Alarm Statistics Report to view the alarm’s occurrence in table format.