Displaying Statistics values for tags

Introduction

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

In this technote, you will learn how to display a statistic values at runtime belonging to a project developed with the Movicon.NExT™ software.

Statistic Values and Tags

Each tag created within the Movicon.NExT platform has a property called Enable Tag Statistics. When this property is enabled, the server will publish the following tag's statistic values:

The values listed above are saved in the variable’s retentive file. If you wish to use these values, you will also need to enable the tag’s Retentivity property.
This property allows you to save last value assumed by the variable on file before the system shuts down so that it can be resumed at the next startup.
Statistical values are managed in redundant architectures and are only displayed for scalar tags; therefore, structure or array tags do not have them.

Example

We will now see how to display them at runtime.

Inserting a driver

After opening the Movicon.NExT editor and creating, or uploading, a project, insert an I/O Driver. In this example we will insert the Demo driver as follows:

Creating a tag

Now we will create a tag to connect to the driver:

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

Creating a 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 configuration, click on the Save All icon the toolbar located 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 Movicon.NExT.
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.

Create another five Display objects and for each one:

Once the objects have been configured, save the project by clicking on the Save All button on the editor's top toolbar.

Runtime Test

Start Runtime by clicking the corresponding icon on the Movicon.NExT Editor's toolbar at the top.
Once the project is loaded, the configured graph objects will report the current value of the StatTag tag and its statistical values.