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™.
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.
After having started up the software in development mode and created, or loaded, a project, insert the Demo driver by following these steps below:
We shall now define an integer type tag. To do this:
Name | IntTag |
Model Type | Variable |
Data Type | Int16 |
Demo Type | Random |
Simulation Interval (ms) | 1000 |
Nr Cycles | 0 |
Link Type | Read Only |
Station | Station0 |
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.
We shall now create an alarm in this way:
Name | Alarm |
Alarm Type | Exclusive Level |
Enable High-High Limit | Enabled |
High-High Limit Value | 100 |
Enable High Limit | Enabled |
High Limit Value | 90 |
Enable Low Limit | Enabled |
Low Limit Value | 10 |
Enable Low-Low Limit | Enabled |
Low-Low Limit Value | 0 |
Now that we have created and configured the tag and alarm, we can go ahead and assign the two elements:
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.
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.