Tutorial
Tutorial
1182
Introduction to the Movicon Tutorial
Welcome to the Movicon tutorial. This tutorial is aimed at giving you
a quick guided demonstration of the main Movicon Scada/HMI
platform techniques used. At the end of this tutorial you will have
learnt the most essential techniques for using Movicon base
functionalities.
Before going ahead with this tutorial you should first install the
software by using the setup procedures.
All the information in this document is based on the assumption
that:
Dock command
Movicon workspace with window kept displayed
Name: permits you to assign the name desired for the variable.
Type: permits you to specify the data type (bit, byte, word, etc.)
All the other properties allow you to go and specify the Tag’s
behaviour, in the project, in detail. We, therefore, advise you
to refer to the Programmer’s Manual for further details.
We will leave the Tag with its default settings for the time being.
Getting Started with Movicon - Rel. 11.5.1182
How to Communicate with Drivers
New communication drivers (I/O Drivers) can be inserted into the
project at any time. In order to do this you need to:
3. A window will appear through which you must choose the driver
you need from the list of drivers available.
When confirming the operation the driver will be inserted into the
project and added to the list of drivers in the project window.
We can now proceed with necessary configurations through the
properties window:
First of all you must proceed with the driver settings configurations
from the General properties group.
Go to the ‘Settings’ item where you will find an activation button for
accessing the communication settings window.
Getting Started with Movicon - Rel. 11.5.1182
Configuring the Driver
In this example we have chosen to use the Siemens S7-MPI PC
Adapter driver as an example. The techniques used are the same for
all the other drivers accept a few protocol specifications. The first
thing to do is sort out the configurations of the driver’s General
Characteristics.
1. Usually the default settings are left as they are accept for certain
specifications required by the device being used. As an example lets
suppose we have a standard PLC with a standard MPI connection for
which we will keep the General default settings.
2. After the general settings, select the ‘Stations’ window needed for
the communication station settings which we will create for the
driver.
3. Use the “Add” button to add the necessary communication station
to the driver in order for it to communicate.
4. When entering the new Station, its relating settings window will
display through which we will configure the communication details of
our station for which we will only concentrate on the fundamental
properties.
Station Name: Assign a name to the station. In our case we will
put PLC1 (but any other name is acceptable).
Port: Assign the serial port number being used. In our case we will
use the COM1 serial port, for which we will leave the value left at 1.
Baudrate, Byte Size, Parity, Stop Bit: Assign the parameters of the
communication port. In our case we will keep the Default settings.
Station ID: this is the last property on the list whose setting is based
on the ID address set in the PLC.
When arriving at this point the driver should have been inserted and
the device already connected and ready for communicating. To verify
whether all is in order and working correctly we shall run a test by
using the “Test Cable/Comm.” button. In this way Movicon will be
able to verify whether communication with PLC device has been set
up correctly and the cables are correct. Any errors found should then
be resolved to ensure that communication works correctly.
Getting Started with Movicon - Rel. 11.5.1182
Assigning Physical Addresses to Tags
After having inserted at least one station, we will look at how
physical addresses are assigned to Tags.
1. Select the Tag previously inserted into the project (or create a
new one)
With the Tag property set, Movicon will establish communication with
the device for reading-writing data from the PLC on the
corresponding variable during project runtime.
Getting Started with Movicon - Rel. 11.5.1182
Importing Tags directly from PLC
When activating this command you will be request to select the file
(keeping the CTRL key or SHIFT key pressed down) corresponding to
the PLC database. As we are using Siemens S7 we need to select the
.SDF or AWL file by means of the file selection window:
When selecting the file with the PLC database, the Movicon Import
Device variables window will open to allow you to select all or part of
the variables contained in the PLC database.
1. Creating the Tags in the Movicon project keeping the same name
and type taken from the PLC database
By using this useful function you can get the Movicon project’s
Variables DB created and completed with the device’s physical
addresses assigned automatically in just a few seconds.
Each Tag’s ‘Dynamic’ property will be shown associated with the
following syntax (which can be changed as pleased):
[DRV]PC Adapter.Sta=Default Station|Addr=M265.0|Typ=0
Getting Started with Movicon - Rel. 11.5.1182
How to create a Screen
To create a graphic interface you need to used the project’s Screen
resource.
2. Select the ‘Add new screen in the project’ command from the
Command Pane at the bottom of the project window. You can also
use the analog command by using the right mouse key.
3. The new screen will be created in the project and displayed with
its default settings in the workspace.
This property takes effect when being confirmed with the key.
3. Select the ‘Basic Shapes’ from the Toolbox and then select the
drawing to be used graphically on the screen.
4. After having selected the chosen drawing, double-click on the
insertion point on the screen and drag the drawing until you reach
the size desired.
To use the ToolBox’s Objects, simply select the object desired then
double-click the mouse to insert the object on the point of the screen
where you want it to be and drag it until you reach the size desired.
After having inserted the your chose objects, you can then proceed
with assigning their properties by using the Properties Window.
Each object will have, apart from the general properties, also style
and animation properties, which are common to all objects, and the
execution properties specified for each single object.
Select all three elements with the mouse by clicking in the area and
dragging the selection.
The figure below shows how the drawing should look like with the
reference object highlighted for any eventual align commands.
With the right mouse key, in the workspace, select the Symbol –
Group command to group all three drawings together to make one
symbol.
The symbol can now be added to the Movicon Templates library by
using the right mouse key on Symbol -> Add to Library.
Any animations or codes associated to the symbol will also be kept in
the library.
1. Open the screen and select the Symbol, created previously with
the Rectangle and Ellipse drawings grouped together, then
activate the Properties Window.
6. Close the property window and activate the mouse’s right key
commands from the selected symbol. Select the ‘Edit Composed
Movement’ item.
7. Drag the symbol’s shape to the end point, i.e. to the right hand
side of the tank.
9. Press the ESC key when finished. You should get this result as
shown below:
10. Select the Scaling box from the Animations properties group to
activate the relating settings window.
12. Enter the 50-100 values as scale Percentage, so that the symbol
remains visible at 50% of its scale as minimum value.
13. Select the direction of the scaled re-sizing (leave the default
selection).
Confirm with
2. Select the Execution group from the properties window and then
the 'ON-OFF' Mechanic Style. Select the VAR00001 tag previously
inserted. By using this characteristic the button will toggle the Tag,
by setting it with the ‘0’ and ‘1’ values. The tag can also be
interacted on by using the command selection as we will show you
up ahead.
3. Confirm with .
3. Confirm with
TIP: you can also drag the Tag from the project
RealTimeDB resource directly to the object on the
screen, to simply assign the variable.
If you select a variable from the variable list and drag it on top of an
object on screen, it will automatically be inserted in the command
object's Tag property.
Getting Started with Movicon - Rel. 11.5.1182
Assigning executing commands to Objects
Different types of commands can be assigned to any command
object (Buttons, Menu, Accelerators) and command lists can also be
created. The commands can be activated by selecting the
"Command Type" on the Execution Properties as "Execute
Command", then defining the command type by selection the
"Command on Release" or Command on Pressed.
The ‘Add New Command’ button opens the settings window of the
operating commands to be assigned to the object.
Each configured command will be added to the Command List which
the object will execute.
There are commands in Tags (Set, Reset, Toggle, Strobe, Increase,
Decrease, Virtual Keyboard...) or on Screen windows (with the
various opening modalities).
1. Press the button or use the Start Project command from the
File menu (or ALT+F12).
2. Movicon will ask you to save the project. Save the project using
the classic Windows techniques.
Each alarm is built with at least one threshold, whose value and
condition determine the activation of the alarm with an associated
text.
Getting Started with Movicon - Rel. 11.5.1182
Inserting Alarm Objects
1. Select the ‘Alarm List’ Resource from the project window which in
turn will show the relative commands in the command Pane at the
bottom.
2. Use the “Add a new Alarm” command from the Command Pane
or with the right mouse key. A new alarm object will be created in the
project and can be renamed as pleased.
3. After having entered the Alarm object, you can enter at least one
activation threshold. Therefore, select the alarm from the project
Window and use the ‘Add a new Alarm Threshold’ from the
Commands Pane or use the right mouse key.
4. By doing this the alarm will show one intervention threshold which
we will configure through its properties.
The alarm is historically logged in the file for default and can be
traced or reset as well as other characteristics to be referred to
in the Programmer’s Manual.
The alarm and its activation threshold are now configured. You need
to consider that each alarm may have different activation thresholds
and if the associated variable is not bit type, but Word type for
instance, the alarm is consider to be analog type.
This procedure permits one alarm to be created, with different
threshold if need be, for each variable. However, there is another
way that allows you to set alarms as "Templates". In order to do
this you need to set the alarm as described above, but without
specifying the name of the associated variable.
This will make the alarm generic and associated to more than one
variable at the same time. If you set more than one variable the List
Variables, they can be selected at the same time by pressing the
SHIFT or CTRL key.
Once you have selected the variables, you can associate an alarm
using the "Associate an alarm" command from the command pane at
the bottom or using the right mouse key to get to it.
This command allows user to select the alarm from the previously
defined alarm list.
We shall go ahead and choose the ALL002 alarm. We will then see
listed the single alarms associated to the two variables. In this case
the alarms will behave exactly in the same way as the ALL001 alarm
does, simply knowing that the VAR00002 and VAR00003 variables
have identical alarm thresholds, even though logged individually for
each variable.
The alarm and its activation threshold (each alarm can have a
number of activation thresholds) have now been configured.
We can now move on to how to view active alarms and those
historically recorded on file.
Getting Started with Movicon - Rel. 11.5.1182
Displaying Alarms
The active alarms, setup in the project’s Alarm List resource, can be
displayed in purpose-made object viewers which can be inserted on
the screen.
We need the use of a screen. In our example project we have setup
two screens, ‘Screen1’ and ‘Screen2’ where Screen1 has already been
used for the graphic examples. Therefore we are left with Screen2 for
this example.
2. Activate the Toolbox and take out an ‘Alarm Window’ object from
the ‘Advanced Shapes’ category.
3. Click on a point on the screen’s top left, then drag the selection to
insert the ‘Alarms Window’ object in the size desired.
The selector object will interact on the VAR00001 tag, which we have
already assigned to the Alarm object.
The same can be done with the remaining VAR00002 and VAR00003.
Therefore we shall insert another two selectors and assign one with
the VAR00002 variable and the other with the VAR00003 variable.
Executing Runtime
We now have the necessary items arranged in our example project to
test run it:
1. press the button or use the Start Project command from the
File menu (or ALT+F12).
2. Movicon will ask you to execute a project save. Execute the save
according to the usual Windows’ techniques.
3. After having saved the project file, it will be put into run mode
letting you try out the objects to see if they work.
You can also check alarm occurrences in the Historical Log window
and any other following operations carried out to them.