Omron CX-Supervisor Getting Started Manual
Omron CX-Supervisor Getting Started Manual

Omron CX-Supervisor Getting Started Manual

Release 3.1
Hide thumbs Also See for CX-Supervisor:

Advertisement

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

Getting Started

Advertisement

Table of Contents
loading

Summary of Contents for Omron CX-Supervisor

  • Page 1: Getting Started

    Cat No. W08E-EN-01 Software CX-Supervisor Software Release 3.1 Getting Started...
  • Page 2: Notice

    Trademarks and copyrights Notice Notice OMRON products are manufactured for use by a trained operator and only for the purposes described in this manual. The following conventions are used to classify and explain the precautions in this manual. Always heed the information provided with them.
  • Page 3 Copyright Notice...
  • Page 4: Table Of Contents

    Copy Protection............................ 7 1-4-1 Copy Protection using a USB Dongle ..................7 Starting CX-Supervisor ........................8 Customising CX-Supervisor Settings ....................9 The CX-Supervisor Help System ......................9 SECTION 2 Basic Tutorial .................11 Introduction ............................11 The First Step............................. 11 CX-Supervisor Projects ........................12 CX-Supervisor Pages.........................
  • Page 5 Table of Contents 3-1-12 Report Generation ........................ 33 3-1-13 Database Access........................34 3-1-14 Security..........................36 Appendix A Glossary..................39 Revision history ................43...
  • Page 6: Introduction

    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 7: About This Manual

    SECTION 1 Introduction Note: It is important that this copy of the CX-Supervisor software is registered on the OMRON web site, in order to qualify for technical support and maintenance updates. OMRON will not be able to help unless this copy has been registered.
  • Page 8: Operating Systems And Environments

    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 9: Starting Cx-Supervisor

    In exceptional circumstances, the CX-Supervisor USB Dongle Drivers can be installed manually if required. The USB Dongle Driver installation shortcut can be started from the Start button, and can be found under the Omron and CX- Supervisor groups. 1-4-1-3 Copy Protection using a Parallel Dongle Old parallel port 'Hardlock Dongles' from previous versions cannot be used with this version.
  • Page 10: Customising Cx-Supervisor Settings

    View menu. Any display configuration changes are saved in the Windows environment, and restored next time CX-Supervisor is run. Use this section to become familiar with the layout of the CX-Supervisor display, and to set it up as desired. CX-Supervisor...
  • Page 11 Alternatively, help on the topic currently in use can be obtained by pressing <F1>. Some dialogs also provide a Help button. At the bottom of the CX-Supervisor screen is a general status bar, which provides several helpful pieces of information as the mouse is moved over display components.
  • Page 12: Basic Tutorial

    As the first tutorial proceeds, important concepts about CX-Supervisor are introduced by this symbol. By the end of this tutorial, sufficient understanding of CX-Supervisor should have been gained to allow progression to the second, more advanced tutorial which demonstrates some of the more popular key features.
  • Page 13: Cx-Supervisor Projects

    CX-Supervisor Projects SECTION 2 Basic Tutorial CX-Supervisor CX-Supervisor Projects A project is the set of objects associated with one application. This includes Pages, 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.
  • Page 14: Cx-Supervisor Pages

    (for example, there could be a directory path similar to "C:\Program Files\Omron\CX-Supervisor" on the machine). 4. Specify the name of the new sub-directory that CX-Supervisor is to create; for example, "tutorial". 5. Click on the OK button. A project called "tutor" and the specified sub- directory is created by CX-Supervisor.
  • Page 15 Using the Graphics Editor SECTION 2 Basic Tutorial Graphics Editor Several small icons are visible on the Graphic Object toolbar - each one representing one of the graphical objects with which an application can be constructed. Some of the objects are graphical primitives - straight lines, ellipses, rectangles;...
  • Page 16: Adding A Point

    Using the Graphics Editor SECTION 2 Basic Tutorial 5. From the Graphic Object toolbar, click the button and draw the support leg of the traffic signal. Now that the main structure of the traffic signal is complete (although rather basic), work can begin on the coloured lights. Only two lights are needed, one red and one green;...
  • Page 17: Adding The Toggle Button

    Using the Graphics Editor SECTION 2 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 18: Animation

    Using the Graphics Editor SECTION 2 Basic Tutorial 2. Double-click on the newly-created Toggle button to open the Toggle Button Wizard dialog box. 3. To link the toggle operation to our new point, click the Browse button. The Select Required Item dialog opens. 4.
  • Page 19: Testing The Project

    Now the project can be tested in the runtime environment. 1, 2, 3… 1. Click the Run button from the toolbar. CX-Supervisor first saves the current project and asks for confirmation to save the latest changes to "tutor.pag". Click the Yes button.
  • Page 20: Refining The Project

    Refining the Project SECTION 2 Basic Tutorial 5. The runtime system starts with the page just created shown inside a frame window. 6. Click the Toggle button and observe the button change state. The Green light should change colour. When the button is clicked again, the Green light reverts to its previous colour.
  • Page 21 Refining the Project SECTION 2 Basic Tutorial Admittedly, this application is very simple, but it demonstrates some key points for all your applications: • The difference between the Development and Runtime applications. • The system is wholly controlled by data in the points, either in memory or a PLC •...
  • Page 22: Advanced Tutorial

    Coffee Machine scenario SECTION 3 Advanced Tutorial SECTION 3 Advanced Tutorial This chapter introduces some of the more advanced topics of CX-Supervisor. It is expected the user is already familiar with: • General Windows operation • Software installation • Creating, opening, saving and running of CX-Supervisor projects.
  • Page 23 Coffee Machine scenario SECTION 3 Advanced Tutorial Left = 0 Height = 582 Width = 800 Background colour = Yellow The dialog should now look as follows: 3. Repeat for Main.pag with the following properties: Page Title = Main Border Style = THICK Display Mode = REPLACE Top = 0 Left = 0...
  • Page 24: Graphics Library

    Coffee Machine scenario SECTION 3 Advanced Tutorial 6. Use 10 Push Buttons for the user selection buttons, with text 0 to 9 respectively. 7. Add a menu showing the selection numbers for the different drinks, both with and without sugar. Tip: You can use Copy and Paste to quickly duplicate similar items Tip: You can use the Alignment toolbar (or View Menu, Alignment) to quickly align all selected objects horizontally or vertically...
  • Page 25: Animation

    Coffee Machine scenario SECTION 3 Advanced Tutorial 2. Open the Graphics Library Editor window, and position so both can be clearly seen. 3. Drag the Background and Coffee Machine to the new page. 4. Modify the page to show the machine open, as shown below. Delete the menu objects.
  • Page 26 Coffee Machine scenario SECTION 3 Advanced Tutorial Point name Point type Default Value Description (optional) credit Boolean TRUE when coin inserted into the machine displaytext Text **************** Top line of machine display milk_level Integer 2000 Total level of stored milk selection Integer 2000...
  • Page 27: Scripts

    Coffee Machine scenario SECTION 3 Advanced Tutorial 2. Select the storage tank for the coffee. Use the Workspace or Ungroup to find the rectangular window and add a Percentage Fill (Vertical) animation to the coffee storage tank viewing window with an expression coffee_level and minimum of 0 and a maximum of 2000.
  • Page 28 Coffee Machine scenario SECTION 3 Advanced Tutorial CALL Reset( ) When the coin is inserted, we want to make a sound and change the displayed command. 1, 2, 3… 1. Copy the sound file cashreg.wav from the folder of the sample programs to the project folder C:\Coffee.
  • Page 29: Recipes

    Coffee Machine scenario SECTION 3 Advanced Tutorial PlaySound("c:\coffee\glu.wav") PlaySound("c:\coffee\glu.wav") PlaySound("c:\coffee\glu.wav") Sleep(2000) coffee.visible(0) PlaySound("c:\coffee\finished.wav") displaytext = "Pick up your selection" 3. Add an Execute Script animation to coffee cup with code to call the Reset subroutine when the cup is clicked. Now’s a good time to run the application and test the changes so far.
  • Page 30: Alarms

    Coffee Machine scenario SECTION 3 Advanced Tutorial 3. Create remaining recipes with ingredient quantities as detailed in the list below. Tip: You can Copy and Paste Recipe 11 and the recipe name will automatically be incremented. The Ingredient values may then just be edited.
  • Page 31: Graphs And Charts

    Coffee Machine scenario SECTION 3 Advanced Tutorial Name Expression Raised Normal Message Message tea_level_alarm tea_level < = 0 Tea deposit is Tea deposit is empty refilled sugar_level_alarm sugar_level <= 0 Sugar deposit Sugar deposit is empty is refilled Test the alarms to see them in action. Add Alarm viewing page: 1, 2, 3…...
  • Page 32: Data Logging

    Coffee Machine scenario SECTION 3 Advanced Tutorial Border Style = THICK Display Mode = POPUP Top = 0 Left = 505 Height = 582 Width = 295 2. Add a 'Chart' Graphical Object for displaying alarms in real time. Configure the object to graph the 5 resource levels (coffee_level etc), with appropriate labels 3.
  • Page 33: File Handling

    Coffee Machine scenario SECTION 3 Advanced Tutorial 6. Add a button to manually restart logging using the command "StopLogging("Dataset1")" 7. Add a 'Close' button with an animation to close the page. 8. Open Main page and add an animation to the "Data Logging" button to display the new page called Datalog.
  • Page 34: Report Generation

    Coffee Machine scenario SECTION 3 Advanced Tutorial 3. Add a button with caption Select File with the following script for selecting the previously created file (selections.txt): filename = SelectFile("Text Files (*.txt)|*.txt|All Files (*.*)|*.*||", "C:\Coffee") 4. Add a button with caption Line Read with the following script for reading a line of text from the selected file: aux_text = ""...
  • Page 35: Database Access

    Microsoft documentation for full details of these operations. If you do not have Microsoft Access, you can still read and write Access files from CX-Supervisor but you will need to copy a database file from the demo folder to use as a template.
  • Page 36 Developer. 1, 2, 3… 1. Open CX-Supervisor Developer and load the project. 2. Open the Workspace and switch to the Database tab 3. Right click and add a new connection called Connection1 and specify the new template file C:\Coffee\coffee.mdb as the Data Source.
  • Page 37: Security

    Coffee Machine scenario SECTION 3 Advanced Tutorial Width = 295 4. Use the Workspace to remove the Display On Run option from the popup menu. 5. Add a button for navigating to the next record with the script: ret = DBProperty( "Connection1.Recordset2", "RecordCount" ) IF record_index <...
  • Page 38 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 39 Coffee Machine scenario SECTION 3 Advanced Tutorial...
  • Page 40: Appendix A Glossary

    The representation of an image stored in a computer's memory. Each picture element (pixel) is represented by bits stored in the memory. In CX-Supervisor a bitmap image can be installed as a single object. Communications Driver The relevant communications management...
  • Page 41 Object Linking and Embedding. Used to transfer and share information between Microsoft Windows based applications and accessories. When OLE is used in CX-Supervisor, it is possible to view or even edit a file from a target application. OLE-DB OLE-DB is the underlying database technology, on which ADO relies.
  • Page 42 Pages The combination and manipulation of pages containing objects within projects forms the basis of CX-Supervisor. More than one page can exist for each project. The pages in a project provide the visual aspect of CX-Supervisor corresponding to a display with the objects contained in each page providing a graphical representation of the system being monitored.
  • Page 43 Appendix A Glossary Windows Desktop An integral part of Microsoft Windows which allows Microsoft Windows based applications to be started from icons and for all applications to be organised. CX-Supervisor can be run from Windows Desktop.
  • Page 44: Revision History

    Cat. No. W08E-EN-01 The following table lists the changes made to the manual during each revision. The page numbers of a revision refer to the previous version. Revision Date Revised content code Sept. 2010 First version in the standard Omron format.
  • Page 45 Revision history...
  • Page 46 Authorized Distributor: Cat. No. W08E-EN-01 Note: Specif cations subject to change without notice. Printed in Europe...

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents