Omron CX-SUPERVISIOR - GETTING STARTED V2.0 Getting Started Manual
Omron CX-SUPERVISIOR - GETTING STARTED V2.0 Getting Started Manual

Omron CX-SUPERVISIOR - GETTING STARTED V2.0 Getting Started Manual

Advertisement

Quick Links

Cat. No. W08E-EN-01
Software Release 2.0
CX-Supervisor

GETTING STARTED

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISIOR - GETTING STARTED V2.0 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Omron CX-SUPERVISIOR - GETTING STARTED V2.0

  • Page 1: Getting Started

    Cat. No. W08E-EN-01 Software Release 2.0 CX-Supervisor GETTING STARTED...
  • Page 2 CX-Supervisor Getting Started Software Release 2.0...
  • Page 4 OMRON Product References All OMRON products are capitalised in this manual. The word “Unit” is also capitalised when it refers to an OMRON product, regardless of whether or not it appears in the proper name of the product. The abbreviation “PLC” means Programmable Logic Controller and is not used as an abbreviation for anything else.
  • Page 5 Getting Started with CX-Supervisor OMRON Page ii Revision 2.0...
  • Page 6 OMRON Getting Started with CX-Supervisor Visual Aids The following headings appear in the left column of the manual to help you locate different types of information. Note: Indicates information of particular interest for efficient and convenient operation of the product.
  • Page 7 Getting Started with CX-Supervisor OMRON Page iv Revision 2.0...
  • Page 8 This manual describes the CX-Supervisor application and its installation. This manual contains the following: Getting Started. A description of CX-Supervisor installation and its use for the first time. Basic Tutorial. A quick guide of use for the first time. Advanced Tutorial. A detailed step by step tutorial for the key areas.
  • Page 9 Getting Started with CX-Supervisor OMRON Page vi Revision 2.0...
  • Page 10: Table Of Contents

    OMRON Getting Started with CX-Supervisor TABLE OF CONTENTS CX-Supervisor ....................... Page Getting Started with CX-Supervisor ..........1 Welcome to CX-Supervisor................... 1 About this Manual ......................2 System Requirements ....................3 Installing CX-Supervisor ....................4 Copy Protection ......................4 Starting CX-Supervisor....................8 Customising CX-Supervisor Settings ................
  • Page 12: Getting Started With Cx-Supervisor

    CX-Supervisor is dedicated to the design and operation of PC based visualisation and machine control. It is not only simple to use for small supervisory and control tasks, but it also offers a wealth of power for the design of the most sophisticated applications. CX-Supervisor boasts powerful functions for a wide range of PC based HMI requirements.
  • Page 13: About This Manual

    Use of Visual Basic script and Java Script CX-Supervisor runs on standard PC desktop computers running Microsoft Windows. CX-Supervisor is intuitive and easy to use, and allows the developer to rapidly configure, test and debug a project. CX-Supervisor comprises two separate executable Windows programs, CX-Supervisor Development environment and CX-Supervisor Runtime environment.
  • Page 14: System Requirements

    CX-Supervisor. This introductory chapter deals with several important aspects of installing CX-Supervisor and setting it up for use. It is recommended that this entire chapter be read before installing the software. System Requirements CX-Supervisor operates on the following hardware and operating systems:...
  • Page 15: Installing Cx-Supervisor

    The Runtime copy protection method consists of a small box called a “Dongle” which is plugged into a USB port. When CX-Supervisor is run the port is checked for a valid dongle and the program fails if it is not present.
  • Page 16 Getting Started with CX-Supervisor Fitting a CX-Supervisor USB Dongle Simply connect the dongle to any spare USB port of the computer noting any instructions supplied. If there are no spare sockets a “USB Hub” device may be used to add extra sockets.
  • Page 17: Starting Cx-Supervisor

    The CX-Supervisor window offers many features to ease the process of programming, using the mouse or keyboard or both. It is possible to configure the display for any size monitor so that as much or as little information is visible as required, using options from the View menu. Any display configuration changes are saved in the Windows environment, and restored next time CX-Supervisor is run.
  • Page 18: Customising Cx-Supervisor Settings

    The display of these can be selected by activating the options from the View menu. To display a toolbar, Window or the palette toolbox, click on the menu item with the mouse. A tick next to a name indicates that it is currently displayed. CX-Supervisor saves the settings when it is exited and restores them when it is next executed.
  • Page 19 There are three types of CX-Supervisor help: index, context sensitive help and status bar help. An index of help topics can be accessed at any time by clicking Index from the Help menu. Instructions on how to use help can be accessed by clicking Using Help from the Help menu.
  • Page 20: Basic Tutorial

    This chapter describes how a simple traffic signal is drawn using the Graphics Editor and how it is animated via the Animation Editor so that it changes colour − just as if it were a real traffic signal controlling a road or rail junction.
  • Page 21 Graphics, Reports, Alarms, Animations, Point configuration, Point values, Recipes and all other information. Only one project can be opened by one application at a time. A project must be created in which to conduct the tutorial; for simplicity, a separate sub-directory should be created for each project. 1, 2, 3…...
  • Page 22: Basic Tutorial

    CX-Supervisor. The project file is actually called “tutor.scs”. A blank page is displayed on the screen. If a blank page is not displayed, click on the New Page button from the toolbar or select New Page from the File menu to create a new, blank page.
  • Page 23: Using The Graphics Editor

    Using the Graphics Editor Now that the project exists with its own page, the graphic objects can be constructed and added to the page. The graphics editor uses a Graphic Object toolbar and a floating window known as the Palette to construct and control objects on the page.
  • Page 24 OMRON Basic Tutorial primitives – straight lines, ellipses, rectangles; some are rather more advanced – such as the gauge object, which has built-in functionality. Note: The Graphic Object toolbar is only enabled when a page is active. If the toolbar looks disabled, click the page to make it active.
  • Page 25: Adding A Point

    Adding a Point Now we need to define a variable by which the traffic signal is to be controlled. As there are only 2 states i.e. ‘GO’ and ‘STOP’ a Boolean or digital value will be used. Page 14...
  • Page 26 OMRON Basic Tutorial For simplicity of this tutorial this ‘Point’ or variable will be a local memory point. For a real application of course we would be connecting to a PLC and reading a digital input. Except for the following point definition the rest of this tutorial is identical to a real monitoring application.
  • Page 27: Adding The Toggle Button

    Adding the toggle button As this is a simulation to see the application in action we need a means of changing the value of our new point “GO”. The simplest method is to use a “Toggle button”, a two-state button which changes from one state to the other each time the button is pressed.
  • Page 28 By double-clicking the left mouse button, choose Colour Change (Digital). By selecting this animation, CX-Supervisor is informed that the colour of the Green light (an ellipse) is to be changed according to the value of some Boolean (digital) variable or expression. The Colour Change dialog appears: Now we will link this animation to our point.
  • Page 29 The application should be tested to ensure that the light is operating correctly. Although the Red light could also be animated at this stage, it is probably worth performing a runtime test on the tutor application just to see how it operates.
  • Page 30: Testing The Project

    Be sure to check the colour of the Green light. Is it changing correctly between the two states? If not, check the colour definitions back in the development environment.
  • Page 31 State 1 the Red light should be dark-red or grey indicating the bulb is not illuminated. Now try runtime once again. Click on the Run button from the toolbar and try out the new tutor application; this time both lights should change colour as the button is selected. If both lights go on and off together then check, and possibly, change the colour definitions as described above.
  • Page 32 • The difference between the Development and Runtime applications. • The system is wholly controlled by data in the points, whether in memory or from a • Controls (like the Toggle button) can set the data • Graphical controls use Animations to control how the data is displayed This concludes the Basic Tutorial and you have learnt a little about Projects, Pages, Graphical objects, Points, Animations and running projects.
  • Page 33 Basic Tutorial OMRON Page 22 Revision 2.0...
  • Page 34: Advanced Tutorial

    Coffee Machine scenario This tutorial is going to take the form of a simulation of a coffee vending machine. They all have a familiar User Interface, display functions, control functions and we will be adding alarm, recipe and security functions.
  • Page 35 Create a new page from the File menu Save the new page and name it “Main.pag” Using the Workspace, right click Main.pag to make it Display on Run and make Open.pag not Display on Run by removing the tick. STEP 03 – GRAPHICS PAGES Open open.pag...
  • Page 36: Advanced Tutorial

    Background colour = Yellow Still on Main.pag, draw a 3D floor using different graphics objects from the graphics object toolbox. Use a line object, and 2 Polygons. Use the colour Palette to change the fill patterns and colours. The page should now look like this Revision 2.0...
  • Page 37 Now draw the Coffee machine as shown in the picture below Use a Text object from the Graphics Toolbar for the display, and another for the 2 digit selection code. Use hash ‘#’ characters to signify space to be replaced with a value.
  • Page 38 Open the Graphics Library Editor window, and position so both can be clearly seen. Add a library called My Library Add the grouped objects to your new library by just dragging them from the page to the Library Window. Note that object animations and scripts are copied to the Library.
  • Page 39 Add the open door • Add storage tanks (from the TANKS_16 library) • Add Push buttons under the tanks Tip: You can also use Copy and Paste to quickly create duplicate objects like the tanks and buttons. Page 28 Revision 2.0...
  • Page 40 OMRON Advanced Tutorial STEP 05 – ANIMATION We have 2 pages but the application still doesn’t actually do anything. Now we’ll add the points and animations to make the machine function. Add the required points. 1, 2, 3… Ensure the project is saved before continuing...
  • Page 41 Main. Note that because the pages were defined as Replace, when one page opens it will replace (and close) pages underneath automatically. Repeat for the door lock on the page called Main to open the page called Open Inserting the coin: 1, 2, 3…...
  • Page 42 To extend the functionality we will add a Reset() subroutine for initializing, make the coffee liquid and the cup invisible and set a text such as “Insert coin” for the coffee machine display. This assumes the cup object, pouring coffee and main display objects are called cup, coffee and Text_2 respectively. Either adjust the script for your object names, or rename them in the Workspace to these values.
  • Page 43 = "Make a Selection" PlaySound("c:\coffee\cashreg.wav") Include a script for displaying the user selection in the Selection Display and assign this selection to the selection variable. Use the variables selection to store the number typed, pressed to note when the first digit has been entered and selection_made to determine when the second digit has been entered therefore the selection is complete.
  • Page 44 Repeat for the other buttons, replacing both the 1’s with the appropriate digit. To round off this step, include a script to produce the selection entered by the user. This script should: Display a message for informing the user what is happening Display the cup and the coffee liquid.
  • Page 45 Now’s a good time to run the application and test the changes so far. STEP 07 – RECIPES So we can buy, select and make a drink, but how do we handle making different types of drinks? By creating a ‘Recipe’ for each choice, predetermined amounts of ingredients can be used.
  • Page 46 = milk_level - milk_amount tea_level = tea_level - tea_amount sugar_level = sugar_level - sugar_amount When run, you will see that each time a drink is made the storage tanks are emptied by the correct amount for each ingredient. STEP 08 – ALARMS We can provide the mechanism to create an alarm should any of the resources run out.
  • Page 47 Open Main page and add an animation to the “Alarms” button to display the new page called Alarm. This concludes the section on alarms. Test out your application then move on to the next step. STEP 9 – GRAPHS AND CHARTS Real-time data can be graphically represented on Bar Charts and trend graphs.
  • Page 48 Open Main page and add an animation to the “Graphs & Charts” button to display the new page called Graphs. STEP 10 – DATA LOGGING In addition to simple trending, we can add comprehensive Data Logging. First create the items to log. Revision 2.0 Page 37...
  • Page 49 Open the Workspace Editor and select the Data Logging tab Right click and select Add DataSet… Right click on the added Data Set and select Add Item…. Add the item Milk Temperature and enter milk_temperature in the expression field. Repeat to add an item called Water Temperature for point water_temperature.
  • Page 50 OMRON Advanced Tutorial We’ll add a file handling page allowing the selected drink to be written to a file on disk. The file format will look like this: 03:42:52 10/30/2002 – User Selection: 14 03:44:28 10/30/2002 – User Selection: 22 03:53:28 10/31/2002 –...
  • Page 51 File. STEP 12 – REPORT GENERATION Data can easily be formatted and exported in a textual report, for example in .TXT, .RTF or .HTML format. The template file will contain the following text: DEPOSIT LEVEL REPORT (("DATE: %s", $Date ))
  • Page 52 Left = 505 Height = 582 Width = 295 Use the Workspace to remove the Display On Run option from the popup menu. Add a button with caption Generate Report with the following script for creating the output report file (report.txt): GenerateReport("C:\coffee\source.txt","report.txt")
  • Page 53 STEP 13 – DATABASE ACCESS We will add the facility to write the ingredients used to a standard database, and add a page to read through records previously written. First we must create the database template using Microsoft Access. Please consult your Microsoft documentation for full details of these operations.
  • Page 54 Integer Sugar Number Integer You should now have a template Access database (or other) to use. The next step is to add the database connections in the Developer. 1, 2, 3… Open CX-Supervisor Developer and load the project. Open the Workspace and switch to the Database tab Right click and add a new connection called Connection1 and specify the new template file C:\Coffee\coffee.mdb as the Data Source.
  • Page 55 1, 2, 3… At the Project level, add a subroutine script called WriteToDatabase Add code to write to the database, requery the table so that the latest data can be seen, and navigate back to the original record: DBAddNew( "Connection1.Recordset1" ) DBExecute( "Connection1.Recordset2", "Requery"...
  • Page 56 10. Open Main page and add an animation to the “Database” button to display the new page called Database. STEP 14 – SECURITY Operations can be restricted to users with acceptable security privileges. We will only allow Supervisors or those with higher privileges to open the machine. Open the Main page 1, 2, 3…...
  • Page 57 Database connectivity, and Security. These topics have only been touched on briefly, to show some basic possibilities and are further detailed in the User Manual and Script Reference manual. The final solution will have been installed and can be run from the Start button, in Demos under the CX- Supervisor folder.
  • Page 58 Input / Output type. An attribute of a point that defines the origin and destination of the data for that point. The data for a point can originate (be input from) and is destined (is output to) to the internal computer memory, PLC, DDE target application.
  • Page 59 In CX-Supervisor, an object can be text, graphics, a control, a bitmap, or OLE object as created in the development environment. A complex object can exist as a combination of two or more objects of any of the above types. Specifically, graphical objects can be categorised as a line, an arc, a polygon (including a square and rectangle), a round rectangle, an ellipse (including a circle), or a Polyline.
  • Page 60 Programmable Logic Controller. Point A point is used to hold a value of a predefined type - Boolean, Integer, Text, etc. The contents of a point may be controlled by an object or I/O mechanism such as DDE. The contents of a point may control the action or appearance of an object, or be used for output via an I/O mechanism.
  • Page 61 GLOSSARY OMRON Page 50 Revision 2.0...
  • Page 62: Index

    Disk Cache Operation · 7 Disk Compression · 8 Disk Defragmentors Icon · 50 · 7 File Maintenance Input / Output Types · 49 · 4 Protection using a Token · 4 Installing CX-Supervisor · 7 Restrictions · 4 Interfaces to Hardware ·...
  • Page 63 INDEX – Getting Started OMRON The First Steps with CX-Supervisor · 11 Token Activating a Token · 6 · 8 Object · 50 Backing up Token Diskettes · 6 Object Linking Embedding (OLE) · 50 Copy Protection · 7 · 3...
  • Page 64 OMRON INDEX – Getting Started · 1 Welcome to CX-Supervisor Windows Desktop · 51 Revision 2.0 Page 53...

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents