Display a value into a screen

Introduction

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

In this technote we will use an example to show you how to display a value from a field device on screen.

Example

Movicon.NExT offers numerous objects designed to display values. In our example, we will use the Display object which can be found in the Display folder from the Toolbox library.
The value to be displayed will be transmitted from a PLC Modbus TCP simulator.
We will use the ModRS_Sim which is a Modbus simulator that can be downloaded for free from the internet.
Launch the modus simulator by double-clicking on its icon and load a script to simulate the values.
If you do not have any scripts ready, you can use the following code saved on file with the vbs extension:

dim x
dim n
n=0
for n=0 to 240
    x = getregistervalue(3,n)
    SetRegisterValue 3, n, x+1
next

Inserting and configuring the driver

After having launched the Movicon.NExT development environment and created, or loaded, a project:

Tag creation

We shall now define an Int16 type tag to connect to the PLC simulator. To do this:

Once you have completed configuring the tag, save the project by clicking on the Save All button on the Movicon.NExT editor's top toolbar.

Screen creation

Now create a screen if not already done so:

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.

Double-check that the Main screen is open and then click on the Toolbox tab, offered by Movicon.NExT, on the far right of the editor next to the Properties window.
Drag the Display and RealTime Trend objects, which are found in the Displays and Trends folders respectively, on screen.

Assign the MbtcpTag tag to the Display object. To do this:

Next, select the RealTime Trend object and open its Properties Window to configure it:

Click on the Save All icon located on the toolbar at the top of Movicon.NExT editor to save the project.

Test Runtime

Test everything you have just created by clicking the Start Runtime icon to launch the project into runtime.
As soon as the configured MBTCP driver starts reading the data coming from the PLC simulator at runtime, the Display object will show the current MbtcpTag tag’s value while the RealTimeTrend will chart its trend in realtime.