Movicon Tutorial
Movicon Tutorial
Movicon Tutorial
804
Movicon - Release 10
Summary
1 2 Introduction ......................................................................................................................3 How to create and structure a project ...............................................................3
Creating a new project.......................................................................... 5 The Workspace ......................................................................................... 8 Project Properties................................................................................... 8 Project Structure................................................................................... 10
Configuring the Driver ......................................................................... 15 Assigning address to Tags................................................................ 17 Importing Tags directly from PLC................................................... 19 Displaying the screen at project startup ...................................22 Graphic Editing with Objects............................................................. 24 Object Libraries.......................................................................................25 Symbol Libraries.....................................................................................27 Creating a composed symbol .............................................................28 Dynamic Color .......................................................................................... 31 Other examples of dynamic animations.........................................33 Button.........................................................................................................36 Gauge ..........................................................................................................36 Operating Commands .............................................................................38 Start Runtime..........................................................................................39 Inserting Alarm Objects...................................................................... 40 Displaying Alarms.................................................................................. 43 Displaying Alarm History ................................................................... 45 Simulation ................................................................................................. 46 Executing Runtime................................................................................. 47
6.1 6.2
7
Movicon - Release 10
1 Introduction
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: 1. Windows XP is the operating system being used 2. The user knows how to use the Windows techniques 3. The user has sufficient knowledge on automation systems, on variable and PLC concepts. For further information on each argument, please consult the Online Guide or the Users Manual.
Point the mouse near the relative tab to display the window
Movicon - Release 10
Movicon - Release 10
First of all you need to select the type of platform on which the project must be run. In this way the functions which are not supported by the selected platform will not be available in programming mode (the selection can be changed later). Confirming this operation will display the configuration window:
Movicon - Release 10
In the window (as shown above), you will need to enter the desired name of the project in editing phase. The other settings are not to be used for the time being but can be checked out in the manual if wished. Click on the Next button to open the Users settings.
The security settings can be defined in this window. We will skip this part for the time being and go on with Next button to access the Driver settings.
Movicon - Release 10
The drivers you wish to include in the project can be selected from this window. We will also skip this part and leave it for later. We will not set anything at this stage. Now click on Next button to reach the Screens Settings.
Here you can indicate whether or not to create screens in the project. You can also indicate whether to create each one with a Title, and a contents navigation bar with scroll page buttons on the bottom border. The default setting can be left alone or adapted to your requirements which can always be changed later. Going still ahead with the wizard other windows will be shown for the configuration of the possible historical, alarms etc.. On the last window, Alarm Settings, when confirming these operations with Finish button, the wizard will proceed creating the project according to the settings carried out. The Wizard will create the projects structure by pre-setting all the basic configurations in automatic.
Movicon - Release 10
2.2
The Workspace
Project Window. All the project resources are clearly and intuitively accessible. Properties Window. All the properties of the selected object or resource are grouped together in a clear and simple way.
Command Pane. The commands and functions relating to selected resource, which can be inserted into the project, are shown here.
Logic Explorer Window. The Logic codes are available based on the resource selected.
Area Toolboxes. The Toolboxes give you quick access to the symbol and object libraries.
Movicon - Release 10
The Projects properties permit you to setup the general characteristics of the project itself, among which are: 1. Eventual encrypted file protection 2. Selecting projects destination Operating System 3. Working Folder paths 4. Setting Startup behaviour (runtime execution) 5. Operating system access security 6. Historical Log settings 7. Tracing historical settings For further details on all the properties please refer to the Programmers Manual.
Movicon - Release 10
Project Folder Each resource is constituted by a XML file in the project folder. In this order: Alarms DataLogger Recipes Variable Events Client Networking Server Networking OPC Client Project Data Tag Database Schedulers Scaling
Resource Folder The resource folder is accessed from the project folder. Each resource is constituted by a name assigned to the resource and the type (in order): Screens Accelerators Script Basic VBA Menu
Movicon - Release 10
2. Select the Add a new Variable command from the Command Pane found at the bottom of the project window. You can also use the analog command by using the right mouse key.
A new variable will be created in the project with default name and properties. The Properties Window, if hidden, is displayed by doubleclicking on the new variable (if can be further displayed by using the relevant command from the View menu). You now need to assign the properties deemed necessary, especially the General properties, through the Properties Window. In our case we shall keep the default settings, with the PLC address to be assigned later. However we shall briefly go over the main properties for you:
Movicon - Release 10
Variable Property The crucial Tag properties are in the general properties group. Here you can set the name, data type, any area/address and link to the devices physical address.
Lets go over which are the fundamental properties of each Tag: Name: permits you to assign the name desired for the variable. Type: permits you to specify the data type (bit, byte, word, etc.) Area: permits you to indicate whether an explicit memory area is to be used for the supervisor. When leaving the area as Not Shared, the supervisor will decide if the tag must be considered for the licence. The tag will be counted for the licence only if its exchanged with the field throught teh driver, OPC, ecc.. Dynamic Address: permits you to set the physical address to connect to the Tag to. The Tags Explorer can be used to specify the connection by means of an I/O Driver, OPC or Networking.
All the other properties allow you to go and specify the Tags behaviour, in the project, in detail. We, therefore, advise you to refer to the Programmers Manual for further details.
We will leave the Tag with its default settings for the time being.
Movicon - Release 10
2. Select the Add a new Comm.Driver command from the Command Pane found at the bottom of the project window. You can also use the analog command by using the right mouse key. 3. A window will appear through which you must choose the driver you need from the list of drivers available. 4. Each driver is subdivided into product categories. By clicking on one product will get you the drivers and the relative communication protocols available.
Check the communication driver relating to the product and the protocol desired.
Movicon - Release 10
We will check the Siemens S7 MPI PC Adapter protocol for our example. When confirming the operation the driver will be inserted into the project and add4ed 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.
Movicon - Release 10
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.
Movicon - Release 10
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. All the other station properties permit you to further configure the communication modalities. For instance, the TAPI functions can be used for communicating via modem or the Bridging functions used for communicating via the modem on the PC, to use the same communication port for the PLCs remote maintenance (eg. Teleservice). To get further information on these features please consult the Programmers Manual. However, we will limit ourselves in using just the base functions relating to device communication for the time being. When confirming the settings, the communication station will be inserted in the communication driver. Other stations for communicating with other devices on different COM ports can also be inserted with the same MPI protocol.
Movicon - Release 10
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.
Movicon - Release 10
3. Select the Dynamic property from the General group to open the Tag Browser window.
4. Select the Tab relating to the communication driver from the Browser window. 5. Double-click on the PC Adapter previously inserted to open a window to assign the physical address.
Movicon - Release 10
6. Select the drivers station with which you want to communicate with (in our example we have only entered the station named PLC1), then you need to specify the devices physical address in "Device Address" to which the variable is to be connected. 7. In our example, we shall connect the Word type variable called VAR00001 to the PLCs DB1 data blocks word DW0. Note: You can also enter the syntax of the physical address In the Tag' s `Dynamic' property directly: [DRV]PC Adapter.Sta=PLC1|Addr=DB1.DBW0 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.
Movicon - Release 10
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.
When confirming the operation the Import button, Movicon will go ahead with: 1. Creating the Tags in the Movicon project keeping the same name and type taken from the PLC database 2. Assigning the relative physical address to each Tag By using this useful function you can get the Movicon projects Variables DB created and completed with the devices physical addresses assigned automatically in just a few seconds. Each Tags 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
Movicon - Release 10
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. 4. You can change the screens default properties through the Properties Window. This window is accessed by double-clicking on the screen itself or by using the same command from the View menu.
Movicon - Release 10
5. We will only deal with the screens background color properties. Please refer to the Programmers Manual for details on the other properties. 6. Select the Back Color property from the Background property group and assign white as the screens background color. This property takes effect when being confirmed with the a key.
7. Repeat this operation to introduce another screen into the project. By doing this we can setup an example to be used in the change page lesson up ahead.
1.
Double-click on the project name at the beginning of the projects tree structure to display the its properties, or select the name and activate the Properties Window with the right mouse key.
Movicon - Release 10
2. Select the Execution Property, then the Startup Synoptic property. By using the activation button, activate the window for selecting the screen desired. Then press the Refresh button to add it to the list.
3. We will select Screen 1 to use in our example (or you can select another one if you prefer). Then confirm with OK.
The specified screen will be the one to open and display automatically at the project startup.
Movicon - Release 10
2. Use the drawings tools by taking them from the Toolbox positioned on the workspaces right border. 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. 5. Repeat these operations to create the drawing you want on screen. 6. These graphic elements, once on the screen, can be given general, style and animation properties by using the Properties Window as described below.
Movicon - Release 10
This figure illustrates a screen where a Rectangle object has been entered (Basic Shapes). The Filling property, relating to the Back colour and Gradient type have been associated to the rectangle.
Movicon - Release 10
To use the ToolBoxs 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.
This figure shows an example of a screen with objects taken from the ToolBox. These objects belong to the basic shape category.
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. Please refer to the Programmers Manual for further details.
Movicon - Release 10
This figure shows an example of the symbol libraries in the Movicon workspace. You can scroll the various categories by using the Tabs or scroll arrows on the window borders.
Each symbol from each category can be inserted on screen by simply using the Drag&Drop techniques and re-sizing it as desired by dragging its borders just like any other graphic object. The symbols can be configured in their properties just like any other drawing object, by using the Properties Window.
Graphic editing example: Insert a Rectangle object into the screen from the Basic Shapes ToolBox and a Tank symbol from the Symbol Library.
Movicon - Release 10
and after. The drawings General and Style properties allow it to be completely configured graphically.
A set of drawing elements can be grouped together to make one symbol and added to the symbol library.
Movicon - Release 10
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.
Create the Group Symbol by using the relevant commands with the right mouse key..
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.
Movicon - Release 10
The composed symbols can be inspected in the projects tree structure. The objects and the composed symbols are displayed in structures under the screen they belong to. Therefore each components of each symbol can be selected singularly and configured in its properties.
Each object or symbol can be inspected from the projects tree structure under the screen it belong to.
When using this technique we suggest you assign a name to each symbol or drawing so that they can be identified straight away.
Movicon - Release 10
4. Select the Animation group from the Properties Window and then
the Back Color item.
Check the Enable box to enable the pre-selected animation function, then select the tag among those inserted in the projects RealTime DB.
Movicon - Release 10
Then select the Edit back color list to set the activation thresholds of the tag and the relating colors to be displayed. A window for setting the Thresholds should appear.
The window contains a series of standard default thresholds. Use the relative commands on the side to delete, add of edit them. Use the relative settings window, shown below, to add or edit the animation characteristics:
By using this window you can set the threshold values and he animation colors, as well as other properties which are explained in the Programmers Manual. Confirm the setttings with OK.
Movicon - Release 10
Confirm with a. Close the property window and activate the mouses right key commands from the selected symbol. Select the Edit Composed Movement item. Drag the symbols shape to the end point, i.e. to the right hand side of the tank. To insert the intermediate points of the path, double-click with the mouse on the line and drag it to the intermediate point desired and continue like this until the trajectory line is complete. Press the ESC key when finished. You should get this result as shown below:
Movicon - Release 10
Select the Scaling box from the Animations properties group to activate the relating settings window. Associate the VAR00002 tag previously inserted. Enter the 50-100 values as scale Percentage, so that the symbol remains visibile at 50% of its scale as minimum value. Select the direction of the scaled re-sizing (leave the default selection).
Confirm with a.
Movicon - Release 10
2. Take a Gauge from the ToolBoxs "Sliders-Gauges-Meters" category and insert it in the screen. 3. Take a Green Button from the ToolBoxs Buttons-LightsSwitches category and insert it in the screen.
Movicon - Release 10
7.1 Button
Lets proceed with configuring the button which we will use for acting on the variable used for managing the rectangles (tube) color animation. 1. Double-click or use the other technique to display the inserted Green Buttons Properties.
2. Select the Execution group from the properties window and then the Check.Var. item. 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.
Confirm with a.
7.2 Gauge
Now we shall configure the gauge which we use to interact on the tag to manage the created symbols animated movement. 3. Double click or use the other technique to display the inserted gauges Properties Window. 4. Select the Variable group from the properties window and then select the Gauge-Slider Variable item. Select the VAR0002 tag previously inserted. In this way the gauge will interact directly on
Movicon - Release 10
the VAR00002 tag. The gauge object is totally configurable, by using the numerous properties provided. It is only necessary to do the configuration as indicated for our example. The other properties can be referred to in the Programmers manual.
Confirm with a.
Movicon - Release 10
When activating the Commands selection from the Execution properties you can edit the command list to be associated to the object by using the Add New Command button in the Command List window.
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.
Movicon - Release 10
There are commands in Tags (Set, Reset, Toggle, Strobe, Increase, Decrease, Virtual Keyboard...) or on Screen windows (with the various opening modalities). Please consult the manual for further details on all the command operation which can be assigned to objects.
Movicon - Release 10
Activate the alarm objects properties window to assign the desired name, i.e. ALL001, then the Tag from the project by selecting it from those
Movicon - Release 10
inserted in the projects RealTime DB. In our example, the objects properties are those indicated in the figure below:
Important: if the Quality Good Only is left checked the alarm will be activated only when the RealTime DB assigns the tag with a certain value. For instance, in cases where a Tag connected to a driver or in network, becomes disconnected the value turns to uncertain and therefore the alarm will not appear. If in doubt, uncheck this option for a test run.
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.
Movicon - Release 10
5. We will configure the alarms activation on the value desired in the threshold properties Window. 6. Go to the General properties group to assign the Title being the text which will be associated to the alarm. The title can be typed directly in the property box or, as a good rule, can reside in the projects String Table and there may be subject to language change.
Note: when using the string table, you need to select the project name from the project resource window and use the Edit String Table command from the Command Pane. Then insert the columns (each column is a text language) and then proceed with inserting the texts which will then be made available all over the project.
7. We then have to assign the threshold value in the Value box in the Execution property group. You can also use a dynamic threshold value, where the alarm activation value derives from the contents of another tag. Leave the default activation >= (more than or equal to). 8. The Style and Notification Event properties are of no interest to us for the time being and therefore we will leave those for default. 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 Programmers Manual.
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.
Movicon - Release 10
2. Activate the Toolbox and take out an Alarm Window object from the Advanced Shapes category. 3. Click on a point on the screens top left, then drag the selection to insert the Alarms Window object in the size desired.
Movicon - Release 10
4. Double-click to activate the Alarm Window object property. The Style property permits you to fully configure the Alarm Viewer object. The Fill property permits you to assign the background colour desired for the alarms window. The Font property permits you to choose its characteristics as desired. The numerous properties, described in the Programmers Manual, permit you to manage the viewing of alarms according to any applied necessities. In our case, for simplicity, we will leave all the default settings as they.
You can modify, add or take away the columns describing the alarms in the Alarms Viewer by using the appropriate tools, which are displayed with the Shift + Double-click in the same window.
Movicon - Release 10
All we have to now is verify what we have done. For this we need the following function in the project, considering all that has been realized up to this point: 1. a command for alarm simulation on the alarms page. 2. The change page commands.
Movicon - Release 10
8.4 Simulation
We shall find room in the Alarms screen window to insert a command object which will interact on the VAR00001 tag associated to the alarms. 1. Open Screen2 from the project window. Arrange the viewer objects so that the is enough space left for inserting the other objects (i.e. on the bottom border). Insert a switch object from the Toolbox and position it on the bottom border. Activate its properties and assigned the VAR00001 tag in the Execution properties.
2.
The switch object will interact on the VAR00001 tag, which we have already assigned to the Alarm object. 3. Insert another new button object, again from the Toolbox, as before. Position it on the bottom border at the side of the switch. Activate its properties and assign the opening of Screen1 in the Execution properties. This button will then permit us to execute a page change to return back to the first page.
4. Now we can insert the same object into Screen1, the startup screen, so that we can dispose the open Alarms page command. The button objects Cut & Paste can also be used to dispose it on another screen after which its properties can be modified.
Movicon - Release 10
Note: (you can customize a system menu by inserting all the commands desired, including the ones for shutting down Movicon or Windows from the project in Runtime mode).
Movicon - Release 10
Progea Srl Via S.Anna 88/E I-41100 Modena Italy Tel. +39 059-451060 Fax +39 059-451061 info@progea.com Http://www.progea.com Italy branch Via XX Settembre, 30 20025 Legnano (MI) Tel. +39 0331 486653 Fax +39 0331 455179
Germany: Progea Deutschland GmbH Heisenbergstr. 1 D- 71083 Herrenberg (D) Tel. +49 (0)70 32 956841 Fax. +49 (0)70 32 956842 info@progea.de Switzerland Industriestrasse 4a 8604 Volketswil ZH - Schweiz Tel. +41 (0)44 908 36 88 Fax +41 (0)44 908 36 80 info@progea.ch
Movicon is a Progea product protected by international copyright laws 2006 All rights reserved. The information container in this brochure is subject to modification without prior notice and is not binding on the manufacturer.