Getting Started

Introduction

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

In this tutorial we will create an example using a major part of the feature offered by the Movicon.NExT™ platform.

Procedure

The application

·       This example is very simple: we will place a tank on the main screen to fill up with liquid whose level and temperature will be monitored while doing so. The tank will start to fill after the operator has activated the motor.
This application will be created with 7 screens: 

Creating the application

Now, let’s start creating the application..
First startup the development environment by double-clicking on the Movicon.NExT icon.
The editor will open showing the Startup Page.  To create a new Movicon.NExT project, click on the Empty Project Wizard.
This will startup the New Project Wizard.
The first window shows three project architecture types to choose from.  Select the Distributed Project option and leave all the fields that appear when doing so set for default. Click on the Next Step arrow to continue configuring the project.
Enter a name for the project in the Name textbox. In our example, we shall call it Tutorial. Leave the Path where to save the files set for default and make sure that the Local File has been selected. Click on the Next Step arrow to continue.
Click Finish to terminate the project configuration procedure.
Once the application has been created, it will appear in Design mode on your video screen.


Let's start by creating the skeleton of our application which will consist of:

Creating tags

Now create a tag as follows:

Create another three tags by using the same procedure we used for the first tag and configure them in this way:

Name Level
Model Type Variable
Data Type Int16

Name SetPoint
Model Type Variable
Data Type Int16

Name Temperature
Model Type Variable
Data Type Int16

Creating the HIstorian

We shall now go ahead and create the Historian.
To create the Historian, open the I/O Data Server and:

Assign the Level and Temperature Tags to the newly created and configured Historian.
To assign the tags to the Historian, proceed as follows:

Creating the Alarms

The temperature alarms are the last components we are going to create in our example.  These alarms will be created within the I/O Data Server.  
To create an alarm, open the I/O Data Server and:

</p>

Create another three alarms with the same procedure used for the above alarm by configuring them in this way:

Name TemperatureHi
Alarm Type Exclusive Level
Severity 100
Alarm Limits > Enable High Limit Active
Alarm Limits > High Limit Value 150

Name TemperatureLo
Alarm Type Exclusive Level
Severity 100
Alarm Limits > Enable Low Limit Active
Alarm Limits > Low Limit Value 100

Name TemperatureLoLO
Alarm Type Exclusive Level
Severity 100
Alarm Limits > Enable Low-Low Limit Active
Alarm Limits > Low-Low Limit Value 50

Assigning tags to alarms

Now we shall create and configure four tags and assign them to the alarms:

Repeat this procedure by assigning the Temperature Tag to the other three alarms.

Creating a simulation

Now that we have created the application's skeleton, we can now run a simulation to test its data.
The simuation is run with a script.  The script is divided into different sections:

To insert a script in the project:

Once the script has been inserted, select and right click it to open the contextual menu. Select the Rename item and change its name from Script1 to Simulation.
 


Double-click the script to open it and insert the source code (the code has been divided into sections for simplicity):

Creating the screens

Now that we have finished writing code for simulating data, we will create the screen that we need.
First we will create the _Layout_Top layout screen as follows:

Repeat the same procedure to create the  _Layout_ Bottom layout:

At this point we shall now create the Main screen:

Repeat the procedure used to create the Main screen to create a screen for the Alarms, Grid and Trend.
This last screen we shall create in this way:

Configuring the project startup properties

Now that the screens have been created, we can continue onto the next step to change the project's  properties by entering the Main screen we just created as the project's Startup screen. Therefore:

Enter the Simulation script from the Startup Scripts List in the same properties section as follows:

Now that we have finished configuring the project startup, save the project by clicking on the Save All icon on the Movicon.NExT Editor's toolbar at the top.

Creating the navigation menu

Make sure that the _Layout_Bottom screen is open, click on the Toolbox tab on the editor's far right next ot the Properties Window to open the Toolbox library provided by Movicon.NExT.
Drag a Standard Metro Style button from the Button category's Standard subfolder onto the screen.
Associate the Main screen to the button by dragging it from the screen list onto the button.


Repeat this procedure to create buttons that call the Alarms, Trend and Grid screens.

Creating the top bar

We shall now creat the application's top bar.
Open the  _Layout_Top screen and click on the Toolbox tab on the editor's far right next ot the Properties Window to open the Toolbox library provided by Movicon.NExT.
Drag a Standard Metro Style button from the Button category's Standard subfolder onto the screen.
Open the Properties Window and enter the Close Runtime String in the Text property.


Select the previously inserted Button and open the Commands tab found at the bottom of the editor.  Select the System Commands item from those available on the list. Once selected and added to the list of commands associated to the graphical object, check that the Command Type is inserted as Quit Runtime Execution.

Drag and place the Digital Clock object, which can be found in the Clocks folder, and the Alarm Banner object, which can be found in the Alarm Viewers folder, on the same screen.

Select the Alarm Banner object and open its Properties Window. Look for the Area/Source Filter property and configure it by selecting Area from the combobox which appears when clicking on the property's corresponding three dots.

Creating the Trend window

We will now build the Level Trend window.
Open the Trend window and drag the Data Analysis Trend from the Trends folder and place it on the screen and enlarge it.


Now lets configure the object:

Creating the Alarm Window

We will now build the window with the Alarm Window object.
Open the Alarm Window and drag the Alarm Window object from the Alarm Viewer folder and place it on screen and then enlarge it.
Leave its configuration set for default to view active active alarms in the application.

Creating the Popup_Motor Window

We wil now create the Popup_Motor window.
Make sure that the Popup_Motor window is open and drag the Horizontal Switch from the Switches folder's Flat Toggle Switches subfolder and place it on the screen.

Associate the Tank\CmdOnOff  tag to the graphical object by dragging it from the Tag List onto the object.

Drag a Standard Metro Style button from the Button category's Standard subfolder onto the screen.

Select it and:

Building the Grid window

Now, we shall build the Grid window.
Make you that you have opened the Grid window. Drag the DB Grid Control from the DB Connects folder and place it on the screen.

</p>

Configure the object as follows:

</p>

Creating the Main window

Now, we shall create the Main window.
Make sure the Main window is open and insert the following graphical objects from the Toolbox Library:

</p>

Configure the RealTime Trend object in the following way:

</p>

Make sure that the Main window is open and insert the following graphical objects from the Symbol Library:

</p>

Connect the tank and the motor by using the pipes found in the Pipes folder. Associate an animation to each one of these objects as follows:

Valore Colore Tempo Lampeggio Colore Lampeggio
0 Transparent 0 Default
1 Green 0 Default

</p>

Save the project by clicking on the Save All icon on the Movicon.NExT Editor's toolbar at the top.

</p>

Now lets test everything in runtime mode by clicking on the Start Runtime icon.
As soon as the project starts up in runtime, you will see that the temperature has simulated values reported on the Trend. Enter a positive value other than zero in the Display object linked to the SetPoint. Then click on the Motor Commands button to display the Popup_Motor window. Click on the switch in this window to turn on the motor and see the level rise.

Navigate through the pages to explore the Alarms, Temperature and Level Historians.

</p>