Using statistic values in alarms

Introduction

Hello and welcome to a new guide on how to best use Movicon.NExT™.

In this technote you will learn how the alarms of a Movicon.NExT™ project can be linked to a statistical value of the tag.

Alarms and statistic values

We have already seen what tags and their statistical values are in their related videos. Now we will see what an alarm is.
The alarm is the status of a tag after its value reaches a certain condition.
The Movicon.NExT I/O Data Server has a module, the Alarm Manager, which is used to manage the alarms. The latter are configured in the I/O Data Server’s Alarms tab.
As with most SCADA, you can also assign the alarm of a tag to a source assigned to an area in Movicon.NExT. Basically, the alarms are placed in a tree structure according to the following scheme: the Alarm Manager has areas listed underneath it; an area contains one or more sources that in turn have their own alarm definitions.
In addition to assigning an alarm to the tag’s absolute value, Movicon.NExT also allows you to assign an alarm to a tag’s statistic value.

Example

Let us build an example to clarify the scenario. Open the Movicon.NExT editor and create, or load, a project.

Inserting a communication driver

To insert an I/O Driver, the Demo driver for example, do as follows:

Creating a tag

Now we will create a tag to connect to the driver. To do this:

Once the tag has been configured, save the project by clicking on the Save All button on the Movicon.NExT editor's top toolbar.

Creating and associating an alarm

We will now associate the alarm to the StatTag tag's statistic value. To do this:

Creating the screen

We shall now create 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:

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

After opened the Main screen, click on the Toolbox tab on the far left of the editor, next to the Properties window, to open the Toolbox library provided by the software.
Expand the Display folder and select and drag the Display object onto the screen. Select the Display object on screen and open its Properties window.
Go to its Tag property and click on the corresponding button with three dots to configure it.
A window will show allowing you to select a project tag, a local client tag, a system tag, or an item from a third-party OPC UA Server. Select the I/O Data Server tab and select the StatTag tag we previously created.

Repeat this procedure to insert a second Display object and assign the StatTag variable.
In addition, select a statistic value to display by expanding the Advanced property group section and selecting Num Updates from the combobox.

The last object to add to the screen is an alarm viewer. To do this:

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

Runtime Test

Launch the project into runtime by clicking on the Start Runtime button to test what you have created.
As soon as the number of the StatTag Tag's updates exceeds 100, a row with the tag's related configured alarm will show in the Alarm Window.