Download Print this page

Advertisement

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

Advertisement

   Also See for Omron CX-Supervisor

   Summary of Contents for Omron CX-Supervisor

  • Page 1: User Manual

    Cat No. W10E-EN-01 Software CX-Supervisor Software Release 3.1 User Manual...

  • Page 2: Trademarks And Copyrights, Copyright, 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

    Table of Contents Notice ....................1 Trademarks and copyrights........................1 Copyright.............................. 1 SECTION 1 Graphics Editor ................17 About the Graphics Editor ........................17 Palette Bar ............................17 1-2-1 Foreground Colour and Background Colour ................. 18 1-2-2 Custom Colours ........................18 1-2-3 Line Style ..........................

  • Page 5: Table Of Contents

    Table of Contents 2-5-2 Closing a Page ........................32 CX-Supervisor Preferences ....................... 32 2-6-1 Startup Preferences......................32 2-6-2 Editing Preferences ......................32 2-6-3 General Preferences ......................33 SECTION 3 Points ....................35 What is a Point?..........................35 About the Point Editor ........................35 Viewing Points in the Point Editor ......................

  • Page 6: Table Of Contents

    Table of Contents 3-12-1 Print Setup ..........................50 3-12-2 Print Preview......................... 50 3-12-3 Printing..........................50 3-13 Embedding Point Values in Text ....................... 50 3-13-1 Using Format specifiers ......................51 SECTION 4 Objects ....................53 Objects ............................... 53 Editing Objects ........................... 53 4-2-1 Re-sizing ..........................

  • Page 7: Table Of Contents

    6-10-2 Runtime Settings ........................90 6-11 Runtime Security..........................98 6-11-1 Configured Users........................98 6-11-2 Linking CX-Supervisor Users With Windows Users ............100 6-11-3 Menu Option Access Levels ....................100 6-11-4 Exit Level ..........................101 6-12 Compiling and Running a Project ....................101 6-12-1 Building a Project........................

  • Page 8: Table Of Contents

    6-17 Alias Definitions..........................104 6-18 Find ..............................104 6-19 Output Window..........................105 6-20 Navigating Projects with the Workspace ..................105 6-21 Project Editor............................ 106 6-21-1 About the Project Editor ...................... 106 6-21-2 Viewing the Contents of a Project..................106 6-21-3 Opening a Page via the Project Editor................107 6-21-4 Adding Pages to a Project ....................

  • Page 9: Table Of Contents

    Viewing the Contents of the Alarm Database .................. 116 Creating a New Alarm........................117 8-4-1 Alarm Header Information ....................118 8-4-2 Alarm Type ......................... 119 Updating an Existing Alarm......................121 Copying an Existing Alarm Definition....................121 Deleting an Existing Alarm....................... 122 Printing Alarms..........................

  • Page 10: Table Of Contents

    9-3-23 Edit Point Value (Digital) ..................... 147 9-3-24 Edit Point Value (Analogue)....................148 9-3-25 Edit Point Value (Text) ......................150 9-3-26 Common Colour Palette...................... 151 SECTION 10 Recipes ..................153 10-1 What is a Recipe? ..........................153 10-2 Recipe Components......................... 153 10-3 Viewing Recipes in the Recipe Editor ....................

  • Page 11: Table Of Contents

    11-6-5 Generation of Text Files ..................... 177 11-7 Data Logging ........................... 177 11-7-1 Add Database Link Dialog ....................177 11-7-2 Add Field Link Dialog......................178 SECTION 12 Databases ..................181 12-1 Database Connection Editor ......................181 12-2 Configuring a Connection ........................ 182 12-2-1 Add/Modify Database connection dialog box ..............

  • Page 12: Table Of Contents

    Overview ............................201 13-2 Supported Databases ........................201 13-3 CX-Supervisor Runtime User and Audit Trail UserID ..............201 13-4 Creating / Running a CFR Application (Microsoft Access)............... 202 13-4-1 CFR Test Application ......................202 13-4-2 Configuring Points for Audit ....................203 13-4-3 Default Audit Trail Configuration ..................

  • Page 13: Table Of Contents

    Application Analysis ......................... 235 16-1-1 Data Analysed ........................236 16-2 Performance Monitor ........................239 SECTION 17 Using CX-Supervisor as an OPC Client ........243 17-1 An Overview of OPC........................243 17-1-1 A Brief History of OPC Data Access................... 243 17-1-2 Other OPC Specifications....................244 17-1-3 Key Technologies used by OPC..................

  • Page 14: Table Of Contents

    18-4 Redundant Server ..........................254 18-5 Creating a CX-Supervisor Server application .................. 255 18-6 Creating a CX-Supervisor Client application ..................255 SECTION 19 Connecting to Omron Industrial Components ......259 19-1 Adding a Point Linked to a Parameter ..................... 259 SECTION 20 Best Practices ................263...

  • Page 15: Table Of Contents

    C.6.1 VBScript Syntax errors ....................... 302 C.6.2 CX-Supervisor Syntax errors ....................302 C.6.3 Runtime errors ........................303 C.6.4 Design errors ........................303 PLC Maintenance dialog box ......................303 Database errors ..........................303 How to create steps to reproduce ....................303 C.10...

  • Page 18: About The Graphics Editor, Palette Bar, Section 1 Graphics Editor

    The various tools and tool bars are discussed in the following chapters. Status and help information is presented in a Status Bar located at the bottom of the main CX-Supervisor window.

  • Page 19: Foreground Colour And Background Colour, Custom Colours

    Palette Bar SECTION 1 Graphics Editor 1-2-1 Foreground Colour and Background Colour To create an object in a particular colour: before selecting the object's tool from the Graphic Object bar, first select the colour by clicking one of the colour buttons to drop down the colour picker.

  • Page 20: Line Style, Fill Pattern Palette, Graphic Object Bar, Control Bar

    4, Objects. Moving the mouse pointer over any of the tools causes CX-Supervisor to display a tooltip to describe the tool. By default, the cursor returns to Selection mode (an arrow) after drawing an object.

  • Page 21: Object Identification

    The Control Bar can be removed from the display at any time by selecting Control Bar from the View menu. A tick next to the name indicates that it is currently displayed. CX-Supervisor saves the settings when it is exited and restores them when it is next run.

  • Page 22: Raise Up One, Lower Down One, Rotate

    Control Bar SECTION 1 Graphics Editor 1-4-2 Raise Up One button allows an object which forms part of an overlapping group of objects to be moved nearer the top of the group, one layer at a time. With an object selected, clicking the button once moves the object up one layer. This continues until the object is at the top.

  • Page 23: Horizontal Mirror, Vertical Mirror, Transparency On/off

    Control Bar SECTION 1 Graphics Editor 1-4-5 Horizontal Mirror button allows graphical and bitmap objects to be mirrored in the horizontal plane. With an object selected, clicking the button once "flips" the object producing a vertical mirror image. The following example illustrates the state of an object before and after clicking the Mirror Horizontal button with the object selected: 1-4-6 Vertical Mirror...

  • Page 24: Status Bar, Text Bar

    CX- Supervisor window, the last recorded co ordinates are held in these panels. If an object is clicked on, all four panels are used by CX-Supervisor to display the co-ordinates of that object, as follows:...

  • Page 25: Font Name, Font Size

    Text Bar SECTION 1 Graphics Editor 1-6-1 Font Name The Font Name field contains a list of fonts which are available on the host version of Windows. The list is presented in alphabetical order, and only details typeface families. This does not include bold or italic variants as this attribute is set by using the appropriate button.

  • Page 26: Text Bold On/off, Text Italic On/off, Text Underline On/off, Text Left Aligned, Text Centred

    Grid SECTION 1 Graphics Editor The control displays the current point size for the selected block of text. If more than one block of text is selected having different point sizes, the edit part of the control is empty. However, selecting a font from the supplied list (or typing in a new point size) still sets the point size for all the selected blocks of text.

  • Page 27

    Tip of the Day SECTION 1 Graphics Editor...

  • Page 28: Creating A, Amending A

    Creating a Page A project must consist of at least one page. To create a new page, CX-Supervisor must currently have a project open. If no project is currently open, either click the Open button to open a previously saved project, or select New from the Project menu to create a new project.

  • Page 29: Defining The Properties Of A

    The simplest way to access the properties of a page is to double click with the left mouse button in the background area of the page. This causes CX-Supervisor to display the following Page Properties dialog box: The Page Properties dialog box allows the viewing and editing of various attributes.

  • Page 30: Printing A, Print Setup

    8. To alter the colour of the page, click in the Demo Page Window area or click the Colour button. CX-Supervisor displays the Windows Colour Palette dialog box: 9. Either select a colour from the palette area or define a custom colour.

  • Page 31: Print Preview, Printing

    1, 2, 3… To print the page: 1. Click the button, CX-Supervisor displays the Print dialog box. 2. To display the next page, click the Next Page button. 3. To display the previous page, click the Prev Page button. 4. To display the current page, side-by-side with the next page, click the Two Page button.

  • Page 32: Saving A Page To A Project

    To save a page to a project: 1. Move to the location where the page file is to be stored. 2. Ensure that the Save as Type: control is set to CX-Supervisor Pages (*.PAG). 3. Enter a name in the File Name: field.

  • Page 33: Save Page As, Closing A, Cx-supervisor Preferences, Startup Preferences, Editing Preferences

    Save Page As… from the File menu. CX-Supervisor displays the File Save As dialog box as described previously. After entering a new name for the page, CX-Supervisor prompts to save the different page into the current project as above.

  • Page 34: General Preferences

    CX-Supervisor Preferences SECTION 2 Pages 2-6-3 General Preferences General Preferences allow the default script language to be chosen. When new scripts are added, CX-Supervisor will default to saving scripts in the select language.

  • Page 35

    CX-Supervisor Preferences SECTION 2 Pages...

  • Page 36: About The Point Editor, Viewing Points In The Point Editor, Points

    The application of external sources to points is also described. What is a Point? A point is a variable used internally by CX-Supervisor. All points within CX- Supervisor have a name, group and type associated with them. CX-Supervisor provides a set of pre-defined System ($) Points, which are detailed in chapter 3 Points.

  • Page 37: Filtering The Points In The View By Group

    Viewing Points in the Point Editor SECTION 3 Points 3-3-1 Filtering the Points in the View by Group Points are separated into groups. To select a group, pick an entry from the Group field. All points can be displayed by selecting <All Groups> from this list. 3-3-2 Filtering the Points in the View by Point Type A selection of points can be displayed based on the point type.

  • Page 38: Drag And Drop Of Points Onto Control Objects

    1, 2, 3… To apply a point to a control object with the Point Editor: 1. Arrange the CX-Supervisor windows so that the point to drag and the target control object are both visible. 2. Select the point to associate and drag it onto the page.

  • Page 39: Creating A Point, General Attributes, Point Type, Point Attributes

    Creating a Point SECTION 3 Points 3. Drop the point at the position of the target control object. An invalid "drop" is denoted by the mouse pointer changing to a circular symbol. For further information of the use of points with objects, refer to chapter 4, Objects.

  • Page 40: I/o Type

    Creating a Point SECTION 3 Points The default state of the point is defined by selecting either the State 0: or State 1: setting. Associative text (such as 'OFF' or 'FALSE' for state 0) can be applied in the related Default Text: fields. The default text is associated with Toggle buttons and object animations such as Display Value and Edit Point Value when they are configured to use the point.

  • Page 41: Memory Attributes, I/o Update Rate, I/o Attributes

    Creating a Point SECTION 3 Points • A Memory Resident point is provided internally by CX-Supervisor. • An Input point receives data from an external device. • An Output point sends data to an external device. • An Input/Output point both sends data to and receives data from an external device.

  • Page 42: Plc Attributes

    Creating a Point SECTION 3 Points The external source is defined by selecting the appropriate I/O Attributes: setting. Further configuration of the external source can be applied by clicking the Setup button. On clicking the Setup button for a PLC external source, the PLC Attributes dialog box opens.

  • Page 43: Data Transfer Actions When Opening A Plc, Conversion Attributes, Advanced Point Settings

    Add Point dialog box. This results in the Advanced Point Settings dialog box being displayed. In order to access a CX-Supervisor point value via OLE2 Automation, it must be given OLE Read or OLE Write access. The scope of the access can be...

  • Page 44: Amending An Existing Point, Deleting An Existing Point

    Select the Validate Point is Within Specified Range check-box. This option is only available for Input or I/O points of type Integer or Real. When checked, an error message opens in the error log if the data passed to CX-Supervisor is outside of the specified Minimum and Maximum range.

  • Page 45: Quick Creation Of Many Points

    Windows Clipboard 3. Start Excel. 4. Position the cursor in column A and paste the CX-Supervisor Points into Excel. The worksheet should resemble the following: Each row is a single point, and each column is a setting of that point.

  • Page 46: Runtime Point Maintenance, Optimisation Of Plc Communications, Creation Of An "array" Point

    7. Switch back to the Point Editor and select Paste. Note: If the pasted point names already exist, CX-Supervisor will automatically add or increment a number on the end to prevent overwriting. If you wish to overwrite to replace old point settings, simple delete (not Cut) the old points from the Point Editor before pasting.

  • Page 47: Point Import, System Points, Time Points

    CDM file. It is possible to import points from the CDM file of another CX-Supervisor project but this is not recommended, as only the name, type and address are imported.

  • Page 48: Date Points, Internal Points

    System Points SECTION 3 Points System point Point type Point range Remarks $Hour Integer 0-23 Hours in 24-hour format. $Millisecond Integer 0-999 Number of milliseconds. $Minute Integer 0-59 Minutes. $Second Integer 0-59 Seconds. $Time Text Time (e.g. 09:46). 3-11-2 Date Points The following table describes system points for use with date based operations.

  • Page 49: Display Points, Mouse Points

    Number of alarm entries currently spooled, awaiting printing to page printer. $Version Text Version number of CX-Supervisor Runtime program 3-11-4 Display Points The following table describes system points for use with the display mode. System point Point type Point range Remarks...

  • Page 50: Alarm Points, Error Logger Points, Plc Communications Points

    $Unacknowledged Integer 0-2,147,483,647 Number of alarms Alarms currently unacknowledged 3-11-7 Error Logger Points The following table describes system points for use with CX-Supervisor errors. System point Point type Point range Remarks $HighErrors Integer 0-2,147,483,647 Number of high priority errors logged.

  • Page 51: Security Points, Printing Points, Print Setup, Print Preview, Printing, Embedding Point Values In Text

    Printing Points SECTION 3 Points System point Point type Point range Remarks $InputsActual Real Reports average number of PLC input points read per second since application startup. $PLCBusy Boolean Indicates if PLC communications are busy. $PLCFailures Integer 0-2,147,483,647 Total number of PLC failures.

  • Page 52: Using Format Specifiers

    Embedding Point Values in Text SECTION 3 Points The shift foreman was Fred Smith The shift output was ((ShiftOutput)) litres becomes: The shift output was 5000 litres 3-13-1 Using Format specifiers Format specifiers can be used, similar to the Format script command: %s for text string points;...

  • Page 53

    Embedding Point Values in Text SECTION 3 Points See Chapter 6, Point Substitution Settings and FAQ - Creating Reports and HTML Reports for related information...

  • Page 54: Objects, Editing Objects, Re-sizing, Re-shaping, Wizards

    Objects SECTION 4 Objects SECTION 4 Objects This chapter describes the various objects available within CX-Supervisor. It also describes the processes for creating, editing and manipulating objects. Objects Pages created with CX-Supervisor are constructed from objects that are inserted and linked together to form a coherent interface. CX-Supervisor objects are divided into three groups: graphical, control and embedded.

  • Page 55: Creating And Editing Graphic Objects, Block Text, Ellipse, Line, Polygon

    Creating and Editing Graphic Objects SECTION 4 Objects Note: The shortcut keyboard combinations for Cut, Copy and Paste operations are valid within Wizards. Highlight part or all of a field and type <Ctrl>+X to cut the text or <Ctrl>+C to copy the text; move the cursor to the desired field and type <Ctrl>+V to paste the text.

  • Page 56: Polyline, Rectangle, Round Rectangle, Text, Creating And Editing Control Objects, Alarm Object

    To split a straight line into two, click at the point on the line where the split is required then drag the mouse. CX-Supervisor creates a new handle which may be moved to the desired point. To remove a red handle and the vertex on which it rests, click on it with the delete key held down on the keyboard.

  • Page 57

    Creating and Editing Control Objects SECTION 4 Objects The Alarm object displays alarm messages in runtime. These messages may be optionally filtered by an alarm group and can be formatted to include the date, time and status of the alarm. If there are more alarms to view than the space provided then you can scroll the alarm view.

  • Page 58: Bar Chart

    Creating and Editing Control Objects SECTION 4 Objects 5. The Alarm Window Colours options allow you to select the colours for the Alarms Windows Background, Title text and the Frame. 6. Select the font used by the alarm object using the Font button. 7.

  • Page 59: Pictures

    Creating and Editing Control Objects SECTION 4 Objects 4. Toggle the Project Colours, 3-D Frame and Auto Fit Bars fields as desired. The Project Colours option allows the user to change the colour of the axis using the toolbox. The 3-D Frame option enables the chart to appear with a 3-D frame.

  • Page 60

    The Resample Pictures options available from the Edit menu can be used to reduce the file size of the CX-Supervisor project and pages by intelligently re- saving picture objects. It is most efficient when a large source image has been resized on the page to be much smaller than the original.

  • Page 61: Linear Gauge

    Some of the less common metafiles, or those that simply have no suitable representation in CX-Supervisor, are skipped during the conversion. The result of this is that the CX-Supervisor object group created may not look identical to the source metafile image.

  • Page 62: Pushbutton, Rotary Gauge

    Creating and Editing Control Objects SECTION 4 Objects associated with the Gauge Wizard by dragging a point directly from the Point Editor. Refer to chapter 3, Points regarding adding a new point and dragging from the Point Editor. To enter gauge values or display units, type over the existing field entries. The Gauge can be displayed in linear or rotary format, either with or without ticks.

  • Page 63: Scatter Graph

    Creating and Editing Control Objects SECTION 4 Objects The Wizard allows entry in the Gauge Style:, Configuration Attributes:, Style Attributes: and Style Specific Attributes: fields. To select a style, click on an entry in the Gauge Style field. To select an Expression Attribute, click the Browse button and select a point from the displayed list.

  • Page 64

    Creating and Editing Control Objects SECTION 4 Objects The Wizard allows entry in the Configuration Attributes: and Expressions fields. 1, 2, 3… 1. Enter the frequency of data sampling in the Sample Rate: field; in this example the sample rate is every thirty seconds. 2.

  • Page 65: Slider

    Creating and Editing Control Objects SECTION 4 Objects Configuration attributes can be altered by typing over the existing field entries. The style attributes can be amended by clicking on the settings. Exit the Axis Scaling dialog box by clicking the OK button to accept the scaling attributes, or click the Cancel button to leave unchanged.

  • Page 66: Toggle Button

    Creating and Editing Control Objects SECTION 4 Objects Exit the Wizard by clicking on the OK button to accept the new slider attributes or click the Cancel button to leave the slider unchanged. 4-4-9 Toggle Button Toggle buttons are used to control and display the current value of a digital point.

  • Page 67: Trend Graph

    Creating and Editing Control Objects SECTION 4 Objects Only viable points can be viewed from a Select Required Item dialog box. The list of items in the Point Names: field can be refined by selecting an option from the Group: field. Click the OK button to accept the new point or click the Cancel button to leave the point unchanged.

  • Page 68

    Creating and Editing Control Objects SECTION 4 Objects The Wizard allows entry of Configuration Attributes: and assignment of line colours and expressions. 1, 2, 3… 1. Enter a title for the graph in the Trend Graph Title: field. 2. Enter the frequency of data sampling in the Sample Rate: field, in this example it is every five seconds.

  • Page 69: Web Browser Object, Manipulating Objects, Select

    4-4-11 Web Browser Object The Web Browser object allows web files, like HTML JPG or AVI files to be added to a CX-Supervisor page. These files may be stored locally, on a File Server or be distributed from any Web Server. The Web Browser object includes a Java Virtual Machine (JVM) allowing execution of Java Script and Java Applets.

  • Page 70: Move, Copy, Paste, Delete, Undo

    Where objects are to be moved between pages, it is often useful to cut them without having to insert a new object. CX-Supervisor has the ability to cut and paste objects. Objects which are cut and pasted retain the properties assigned to them, for example animation or alarms.

  • Page 71: Mirror Image, Orientation, Transparency, Group, Raise And Lower, Alignment

    Objects inserted on a page can look messy unless they are aligned relative to each other. CX-Supervisor helps by allowing the contents of a page to align on a grid. The grid can be turned on and off as required.

  • Page 72

    Manipulating Objects SECTION 4 Objects There are a number of different grid sizes available: 4, 8, 16, 32 and 64 pixels. The Snap To Grid function snaps to the nearest grid. To align page objects and view a grid, select Grid from the View menu. Select the required grid size or click on Snap to Grid to align the most recently entered objects on the chosen grid.

  • Page 73: Zoom, Point Substitution, Example

    Point Substitution SECTION 4 Objects When performing alignment operations, the Master Object determines how the other objects are aligned. The Master Object, i.e. the last object clicked on, has green sizing handles. 1, 2, 3… To align objects: 1. Select the objects to be aligned. 2.

  • Page 74: Applying Tooltips

    Applying Tooltips SECTION 4 Objects Applying Tooltips In the runtime environment, it is possible to provide instant help for the object currently selected by the cursor. This is achieved by tooltips that can be applied to all objects. 1, 2, 3… 1.

  • Page 75: Using The Floating Menu

    SECTION 4 Objects Using the Floating Menu Clicking the right mouse button within CX-Supervisor brings up a context- sensitive menu known as the Floating menu. There are two such menus, one in the development environment and one in the runtime environment. The development environment Floating menu contains short-cuts for many operations discussed in this chapter.

  • Page 76: Overview, Inserting A New Object, Editing Properties At Design Time, Activex Objects

    The Microsoft Windows ActiveX technology allows objects called 'components' to be developed, and are used by inserting them into an ActiveX container, like CX-Supervisor. ActiveX components may perform many different functions, which can be graphical or non-graphical, but they follow standard rules for defining their Properties, Methods and Events.

  • Page 77: Reading And Writing Properties At Runtime

    Reading and Writing Properties at Runtime ActiveX properties can be read and written at runtime, for example to change values or colours as required. This can be achieved using the CX-Supervisor script functions GetProperty and PutProperty, or alternatively in VBScript...

  • Page 78: Calling Methods At Runtime, Responding To Events

    @VBSCRIPT CommonDialog1.ShowOpen @ENDIF For more details see the CX-Supervisor Script Language Reference Manual. Responding to Events Some ActiveX components are written to generate events on certain conditions, like mouse clicking or user input or error conditions. You can write a script to execute whenever any event occurs.

  • Page 79

    Responding to Events SECTION 5 ActiveX Objects...

  • Page 80: Runtime Editions, Overview, Section 6 Projects

    CX-Supervisor development environment, and run "stand-alone" under the CX-Supervisor run-time environment. Only one project at a time may be open for editing within the CX-Supervisor development environment. An attempt to open a second project forces CX- Supervisor to close the current project (prompting to save changes where there is unsaved information), and open the second project.

  • Page 81: Creating A Project, Amending A Project, Saving A Project, Printing A Project

    1, 2, 3… 1. Move to the location where the project is to be stored. 2. Ensure that the Save as Type: field is set to CX-Supervisor Projects (*.SCS). 3. Enter a name for the project. The name under which the project was created is offered as a default.

  • Page 82: Device Configuration, Creating A Plc Connection

    A new device can be added by clicking on the Add button on the Setup Devices dialog box. Note: CX-Supervisor calls an external application to change PLC information. The functions described in the following paragraphs may differ slightly depending upon which application and version has been invoked.

  • Page 83

    Device Configuration SECTION 6 Projects Note: The possible settings for PLC configuration depend upon the type of PLC selected (this applies also to the Read Only and Timer/Clock fields). On completion, click the OK button to continue, or the Cancel button to abort the operation.

  • Page 84: Modifying A Plc Connection, Removing A Plc Connection

    Device Configuration SECTION 6 Projects Note: The possible settings for the Baud Rate, Parity, Data Bits, and Stop Bits fields depend upon the port selected. If a timeout occurs, the communication is not complete. Where necessary, increase the Timeout Offset value (in milliseconds) to ensure that the device does not cause a timeout.

  • Page 85: Accessing Plc Connection In Runtime

    Device Configuration SECTION 6 Projects 6-7-4 Accessing PLC Connection in Runtime It is possible to reconfigure PLCs at runtime via the right mouse button floating menu option PLC Maintenance List. The list of currently configured PLCs opens via the PLCs in Project dialog box. On selection of a PLC, the PLC Information dialog box opens, which allows the user to change the PLC configuration dynamically during runtime.

  • Page 86: Fins Gateway Option

    (reading and writing values from a PLC). Another Omron product, "Fins Gateway 2003", also provides communications drivers that can be used for interfacing to Omron devices. Some users may already have this software installed on their computers, and may prefer to use it.

  • Page 87: Trajexia Devices

    Ethernet 1. Start CX-Supervisor. network. 2. Either create a new CX-Supervisor project, or open an existing project. 3. Use the toolbar to select the "Device Setup" dialog box and press the Add… button. 4. Select "TJ1 Device" as the device type and give the device an appropriate name.

  • Page 88

    Trajexia Devices SECTION 6 Projects 6. Click the "Settings" button next to "Network Type", and then configure the communications settings for the TJ1. The "FINS Source Address" and "FINS Destination Address" are not currently used for communication with a TJ1, while the "Frame Length" and "Response Timeout(s)" can normally be left at their default values.

  • Page 89

    Trajexia Devices SECTION 6 Projects 8. Click OK to close the "Device Type Settings" dialog box, and then OK to close the "Add PLC" dialog box. 9. Open the point editor. 10.Press the "+" button to add a point and enter a point name. 11.

  • Page 90: Settings, General Settings

    SECTION 6 Projects 13.Click OK twice to close both dialog boxs. You should now be able to access this point in a similar fashion to any other point in CX-Supervisor. Refer to the actual Trajexia documentation for further details about Trajexia devices, memory areas and limitations.

  • Page 91: Runtime Settings

    Settings SECTION 6 Projects 6-10-2 Runtime Settings The Runtime Settings option is selected from the Project menu. The settings discussed in the following paragraphs help to configure runtime environment applications and have no effect in the development environment. Settings that affect the development environment are discussed in chapter 2, Pages.

  • Page 92

    Settings SECTION 6 Projects • To select items in a specific tab order: use the <Tab> key to move around the page items in a specific order, using the 'move to top' feature. Start at object number 1 and end with the last object, i.e. if obj1, obj2 and obj3 then use 'move to top' on obj1 first, followed by obj2 and then by obj3;...

  • Page 93

    The Non-Volatile rate specifies how often the value of points flagged as 'non- volatile' are saved to disk, in seconds. The latest disk values are used to re- initialise the point values when CX-Supervisor is restarted. To adjust this value select Runtime Settings from the Projects menu, and select Non Volatile Rate from the sub-menu.

  • Page 94

    Settings SECTION 6 Projects 6-10-2-5 Alarm Settings To open the Alarm Settings dialog box select Alarm Settings from the Runtime Settings menu. In the On Alarm Automatically Display area set the Alarm Status Viewer and Alarm History Viewer settings as required. When these options are set. When an alarm occurs, the Current Alarms viewer or Alarm History viewer (respectively) is automatically displayed in runtime.

  • Page 95

    SECTION 6 Projects Note: If the PC installation of CX-Supervisor is on a networked machine, a Network button is added to the dialog box. For further information of the function of the Network dialog box, refer to the Microsoft Windows User Guide.

  • Page 96

    Settings SECTION 6 Projects Set the Maximum entries in Event/Error field and the Automatically Display Event/Error Log on: options as desired. Click the OK button to accept the changes, or the Cancel button to abort. In the runtime environment, the Event/Error Log dialog box can be displayed at any time.

  • Page 97

    Settings SECTION 6 Projects The Events button lists all events. Errors, of all priorities, are not deleted from the log; they are merely not visible. Examples of events are system startup, system shutdown and user security notices. The Print button prints the current contents of the error and event log. Ensure that the printer is correctly set up before printing.

  • Page 98

    If you may need to option to edit the PLC settings in the runtime without recompiling in the developer then untick the "Embed CX-Server Project within CX-Supervisor .SR2 file" option. This is useful for example if it is possible the...

  • Page 99: Runtime Security, Configured Users

    It is also possible to housekeep security information within the runtime environment, with privileged users able to add, amend or remove users. There are four levels of user privilege available in CX-Supervisor: • Operator level privilege.

  • Page 100

    Runtime Security SECTION 6 Projects By default, there are four previously defined users listed in the Configured Users: field: Designer with designer-level privileges, Manager with manager- level privileges, Operator with operator-level privileges and Supervisor with supervisor-level privileges. 'Web access' is an additional privilege, it allows the user to log on to the Standard Web Pages.

  • Page 101: Linking Cx-supervisor Users With Windows Users, Menu Option Access Levels

    6-11-2 Linking CX-Supervisor Users With Windows Users In CX-Supervisor v3.1, a new feature was added to the Security System that allows CX-Supervisor users to be linked with Windows users, using the ‘Use Windows Login Credentials’ option shown in the ‘Configured Users’ dialog above.

  • Page 102: Exit Level, Compiling And Running A Project, Building A Project, Running A Project

    Note: the 'rebuild all recommended' warning message can be disabled via the Editing Preferences dialog box. Due to a change of syntax in a previous release of CX-Supervisor the 'Display' and 'Close' script functions (CX-Supervisor Script) will NOT compile if they use the old syntax (e.g.

  • Page 103: Running A Project With Cx-simulator, Requirements And Limitations, Save Runtime As

    When the project has been compiled and run, the compiled version of the project may be saved into another directory location or onto another disc for issue to the target equipment. CX-Supervisor asks for a location and name for the runtime project. This is a standard Windows dialog box and operation depends on your operating system.

  • Page 104: Create Runtime Install Disk, Project Information

    6-15 Create Runtime Install Disk A CX-Supervisor application can be packaged safely for authorised distribution by creating a runtime install disk. The process copies all required files, plus files to install to the specific directory to be used to distribute the runtime project.

  • Page 105: Alias Definitions, Find

    6-17 Alias Definitions An alias definition can be provided to replace strings in scripts and expressions used throughout CX-Supervisor applications. An associated string replaces the alias when used in a script or expression. Select Alias Definitions from the Project menu.

  • Page 106: Output Window, Navigating Projects With The Workspace

    Output Window SECTION 6 Projects All occurrences of the text in the selected areas is shown in the Output window 6-19 Output Window The output window shows output from the Build and Find functions. The window can be docked to any side of the screen or floated above other windows.

  • Page 107: Project Editor, About The Project Editor, Viewing The Contents Of A Project

    The Project Editor is activated by clicking the button. When activated, the Project Editor may be displayed minimised at the bottom of the main CX-Supervisor window. Double click to view the contents of the Project Editor. 6-21-1 About the Project Editor The Project Editor provides a window into the contents of a project.

  • Page 108: Opening A Page Via The Project Editor, Adding Pages To A Project

    Project Editor SECTION 6 Projects 6-21-3 Opening a Page via the Project Editor To open pages via the Project Editor, click the ‘Project Editor’ button. 6-21-4 Adding Pages to a Project When a new page is created, it is automatically registered in the Project Editor but its details are not saved.

  • Page 109: Multiple Selection, Printing From The Project Editor, Print Setup, Print Preview, Printing

    Printing from the Project Editor SECTION 6 Projects 6-21-10 Multiple Selection Standard multiple-selection facilities can be used within the Project Editor. To select an additional line hold the control key down while clicking; to select all lines between the anchor line (the last line clicked on) and another line hold the <Shift>...

  • Page 110: Graphics Library, Overview, Create Library, Opening A Library

    SECTION 7 Graphics Library SECTION 7 Graphics Library This chapter describes the CX-Supervisor Graphics Library. The chapter includes details of how the Graphics Library may be used for storing frequently used objects for use with a number of applications. Overview The Graphics Library is a repository for objects that are often used in CX- Supervisor pages.

  • Page 111: Modify Library, Delete Library, Manipulating Objects, Add Object

    Manipulating Objects 7-3-1 Add Object Any object created on a CX-Supervisor page can be added to the Library. All attributes assigned to an object that is copied to the Library are stored, for example animation information. To add an object, select it from a page and click the button on the Graphics Library Editor toolbar.

  • Page 112: Modify Library Element, Delete Object, Using A Graphic Library Object In The Graphics Editor

    Manipulating Objects SECTION 7 Graphics Library Alternatively, ensure that the Graphics Library Editor is open, click and hold the mouse button on the page object and drag it from the page onto the Graphics Library Editor, shown below: When the mouse button is released the object is placed in the Library, and the Add Object To Library dialog box opens.

  • Page 113: Point Substitution, Default Graphic Library Objects, Conversion To Individual Page Objects, Sharing Graphic Libraries

    Sharing Graphic Libraries Graphic Libraries, including the default Graphic Libraries, can be shared by other users at other PCs running CX-Supervisor. Each library has its own *.MAT file (e.g. PANELS.MAT for the panels library). The *.MAT files reside in the same directory as the CX-Supervisor application. Using file utilities on the PC, it is possible to copy one or more *.MAT files onto a diskette or a network,...

  • Page 114: Printing

    Printing the Graphics Library SECTION 7 Graphics Library 7-4-2 Printing To print the contents of the Graphics Library, select the button. Refer to chapter 2, Pages regarding the use of the Print dialog box.

  • Page 115

    Printing the Graphics Library SECTION 7 Graphics Library...

  • Page 116: What Is An Alarm, Alarm Settings, Section 8 Alarms

    Alarm definitions are made and modified using the Alarm Editor. To use the Alarm Editor, CX-Supervisor must currently have a project open. If no project is currently open, either select Open Project from the Project menu to open a previously saved project, or select New Project from the Project menu to create a new project.

  • Page 117: Viewing The Contents Of The Alarm Database

    To hear the audible warning for any alarm, the Play Sound setting in the alarm definition must be ticked. Also, the PC on which CX-Supervisor is running must be equipped with a suitable sound card and audio capability.

  • Page 118: Creating A New Alarm

    Creating a New Alarm SECTION 8 Alarms Alarms may be segregated into groups. To select a group, pick an entry from the Group field. All alarm definitions can be displayed by selecting <All Groups> from this list. Individual listed alarms are sorted, based on a designated field type: name, type or description.

  • Page 119: Alarm Header Information

    Creating a New Alarm SECTION 8 Alarms When all the information has been provided for the new alarm, selecting the OK button commits the new alarm to the alarms database, while the Cancel button aborts this add operation. Note: The short-cut keyboard combinations for Cut, Copy and Paste operations are valid within the Add Alarm dialog box.

  • Page 120: Alarm Type

    Creating a New Alarm SECTION 8 Alarms The Play Sound setting determines whether an audible warning is sounded when the alarm occurs. The default value is False. Note that a waveform file must also have been selected for the warning sound to be heard. The waveform is selected by using the Alarm Sound button on the Alarm Settings dialog box.

  • Page 121

    Add Alias button allows a new point or alias to be created prior to association with the expression. Points are discussed in chapter 3, Points, while expression syntax is discussed in the CX-Supervisor Script Language Reference Manual. 8-4-2-2 Alarm Messages A message pertaining to a raised alarm is entered in the Raised: field.

  • Page 122: Updating An Existing Alarm, Copying An Existing Alarm Definition

    Updating an Existing Alarm SECTION 8 Alarms Both alarm messages can include embedded point names via the Browse button, which is replaced at runtime with the value of the point: Example Boiler temp high: ((BoilerTemp)) shows the point value in the alarm message. Example Flow exceeded, Pressure = ((Press)) (("Temperature = %2.2f",temp)).

  • Page 123: Deleting An Existing Alarm, Printing Alarms, Print Setup, Print Preview, Printing, Alarm Reporting In Runtime

    Deleting an Existing Alarm SECTION 8 Alarms appending a number to the name. For example, if the original alarm name was "Alarm", the name of the pasted alarm is "Alarm1". All other properties of the pasted alarm remain the same as the original alarm definition. It is possible to copy many alarms at once by highlighting all the desired alarms in the alarm list.

  • Page 124: Alarm Acknowledge, Current Alarms

    Alarm Reporting In Runtime SECTION 8 Alarms 8-9-1 Alarm Acknowledge Whenever an alarm is raised during a runtime application, a confirmation dialog box is optionally displayed requesting acknowledgement of the alarm. The dialog box shows the alarm message, priority, and the date and time the alarm was raised.

  • Page 125: Alarm History

    Alarm Reporting In Runtime SECTION 8 Alarms 8-9-3 Alarm History The occurrence of an alarm condition, and any subsequent change of state, is recorded in the alarm history log. Alarm messages recorded in the log can be displayed using the Alarm History dialog box. The Alarm History dialog box can be accessed in a variety of ways, and is dependant on the setup of the runtime application.

  • Page 126: Associating Points With Actions And Events, Animation Editor, Animation

    Associating Points with Actions and Events CX-Supervisor provides a facility to greatly enhance the versatility of a runtime application by the use of actions and animations to execute commands and logical expressions based on specified criteria being met. This can take many forms, for instance pressing a button, opening or closing a page or changes in the positioning of objects on a page.

  • Page 127

    Animation Editor SECTION 9 Animation The Animation Editor dialog box lists all possible animation actions in the Runtime Actions column. Attributable objects for the Runtime Actions are listed in the Trigger Event/Expression column. Animations can be instigated on a Project, Page or Object basis by selecting Object Actions, Page Actions or Project Actions from the Actions field.

  • Page 128: View Mode, Project

    Animation Editor SECTION 9 Animation A new action can be added to the list of current actions by clicking the button in the toolbar. An existing action can be removed from the current actions by clicking the Delete Action button in the toolbar, whereupon a confirmation dialog box opens.

  • Page 129

    Animation Editor SECTION 9 Animation ENDIF REM setup the paint spray colour ** IF position < 300 || position > 400 && changepaint THEN IF paintblue THEN POLYGON_34.colour = dark_blue ENDIF IF paint green THEN POLYGON_34.colour = Dark_green ENDIF IF paintred THEN POLYGON_34.colour = red ENDIF IF paintpurple THEN...

  • Page 130

    Animation Editor SECTION 9 Animation Blink Close page Colour Change (Analogue) Colour Change (Digital) Display page Display Value (Analog) Display Value (Digital) Display Value (Text) Edit point value (Analogue) Edit point value (Digital) Edit point value (Text) Enable/Disable Execute script Move (Horizontal) Move (Vertical) Percentage fill (Horizontal)

  • Page 131: Printing The Animation Editor, Runtime Actions, Script

    Runtime Actions SECTION 9 Animation Refer to the Script Language Manual for full details regarding the construction and syntax of script code. The script is created by selecting the Execute Script entry in the Animation Editor list. Chapter 10, Runtime Actions describes the application of object animations. 9-2-5 Printing the Animation Editor The Animation Editor can be printed in the same way pages can.

  • Page 132

    Runtime Actions SECTION 9 Animation The script editor is colour coded to help show correct syntax with keywords and different object types are shown in different colours. When creating the script choosing an action, function, etc. from the menu may require further information.

  • Page 133: Aliases, Execution Attributes

    Aliases An alias definition can be provided to replace strings in scripts and expressions used throughout CX-Supervisor applications. An associated string replaces the alias when used in a script or expression. Select the Aliases button from the Script Editor dialog box. The Alias Definitions dialog box opens.

  • Page 134: Script Code

    Runtime Actions SECTION 9 Animation For a project or page script, the following events trigger the execution of the script: • On a condition, based on a regular expression. • At a regular interval defined by an interval time. • At the initialisation of the page or project.

  • Page 135

    Runtime Actions SECTION 9 Animation 9-3-4-1 Points A point may be inserted into the script code in a number of ways: • Clicking the Browse button, picking the point off the list and clicking the OK button. • Typing the name of the point System points form part of the points list.

  • Page 136: Script Completion, Horizontal Move

    Runtime Actions SECTION 9 Animation 9-3-5 Script Completion When script entry or script modification is complete, click the OK button. To abort the Script Editor prior to completing the task, click the Cancel button. If there is an error in the script, the Compilation Error(s) dialog box opens. In this example, the error is caused by a spurious 'ENDIF'.

  • Page 137: Vertical Move, Resize Width

    Runtime Actions SECTION 9 Animation expression reaches the Minimum Value. A value within the maximum and minimum values results in a proportionate movement between the left and right positions. To abort the Horizontal Move definition, click the Cancel button. By clicking the Browse button, a point may be directly specified, as described in chapter 9, Runtime Actions.

  • Page 138: Resize Height

    Runtime Actions SECTION 9 Animation To define the animation, an expression consisting of a number of operators and operands (which may be based on the status of a point) must be entered in the Expression: field. The boundaries in which the object moves are inserted into the Active Expression Range/Required Width: fields.

  • Page 139: Horizontal Percentage Fill

    Runtime Actions SECTION 9 Animation The boundaries in which the object moves are inserted into the Active Expression Range/Required Height: fields. The Maximum Height specifies the required height in pixels of the object when the result of the expression reaches the Maximum Value. The Minimum Height specifies the required height in pixels of the object when the result of the expression reaches the Minimum Value.

  • Page 140: Vertical Percentage Fill, Display

    9-3-12 Display Page CX-Supervisor allows the specification of pages within a project for display. This is set up using the Display Page dialog box. To access the Display Page dialog box to add an action, select Display Page from the animation list and click the Add Action button.

  • Page 141: Close

    Cancel button. 9-3-13 Close Page CX-Supervisor allows the specification of pages within a project to be removed from the display. This is set up using the Close Page dialog box. To access the Close Page dialog box, select Close Page from the animation list and click the Add Action button.

  • Page 142: Blink, Colour Change (analogue)

    Runtime Actions SECTION 9 Animation 9-3-14 Blink Objects can be animated so that they blink. This is achieved using the Blink dialog box. To access the Blink dialog box to add an action, select Blink from the animation list and click the Add Action button. To access Blink dialog box to modify an action, select Blink from the animation list and click the Modify Action button.

  • Page 143: Colour Change (digital)

    Runtime Actions SECTION 9 Animation Enter an expression in the Analogue Expression: field which results in a real or integer value. Only when the result of the expression reaches a value identified as a threshold does the object change colour. The object can have one of five colours depending on the value of the expression.

  • Page 144: Enable/disable

    Runtime Actions SECTION 9 Animation To specify a change in an object's colour, enter a Boolean expression in the Digital Expression: field. Non-Boolean expressions may be entered as long as the result is 'TRUE' or 'FALSE'. The colours are specified in the Colour Attributes: fields for Boolean State 0 and Boolean State 1.

  • Page 145: Rotate, Visibility

    Runtime Actions SECTION 9 Animation When completed, click the OK button. To abort the Enable/Disable operation, click the Cancel button. If invalid data has been inserted into any field, a descriptive error message opens. By clicking the Browse button, a point may be directly specified, as described in chapter 9, Runtime Actions.

  • Page 146: Display Value (digital)

    Runtime Actions SECTION 9 Animation To specify a change in an objects' visibility, enter a Boolean expression in the Digital Expression: field. Non-Boolean expressions may be entered as long as the result is 'TRUE' or 'FALSE'. Whether the object is rendered visible or invisible when the expression is 'TRUE' is specified with the Visibility State settings.

  • Page 147: Display Value (analogue), Display Value (text)

    Runtime Actions SECTION 9 Animation To abort the Display Status Text edit, click the Cancel button. By clicking the Browse button, a point may be directly specified, as described in chapter 9, Runtime Actions. When completed, click the OK button. If invalid data has been inserted into any field, a descriptive error message opens.

  • Page 148: Edit Point Value (digital)

    Runtime Actions SECTION 9 Animation To access the Display Value (Text) dialog box to add an action, select Display Text Point from the animation list and click the Add Action button. To access the Display Value (Text) dialog box to modify an action, select Display Text Point from the animation list and click the Modify Action button.

  • Page 149: Edit Point Value (analogue)

    Runtime Actions SECTION 9 Animation A Boolean point must be entered. This is typed into the Boolean Point: field. A text string to use as the caption of a user dialog box can be entered in the Caption: field. The range of input for the value, and the representations of Boolean State 0 and Boolean State 1 are specified in the State 0 Text: field and State 1 Text: field.

  • Page 150

    Runtime Actions SECTION 9 Animation A Real or Integer point must be entered. This is typed into the Integer/Real Point: field. A text string for the caption of a user dialog box can be entered in the Runtime Display Attributes: field. The limits imposed on the user for the value of the input are specified in the User Input Limits: fields.

  • Page 151: Edit Point Value (text)

    Runtime Actions SECTION 9 Animation CX-Supervisor provides an instruction based on the Runtime Display Attributes: field, the minimum and maximum values allowed, based on the User Input Limits: fields, and a New Value: field, in which the user types the desired Real or Integer value.

  • Page 152: Common Colour Palette

    Runtime Actions SECTION 9 Animation To abort the Edit Point Value (Text) edit, click the Cancel button. By clicking the Browse button, a point may be directly specified, as described in chapter 9, Runtime Actions. When completed, click the OK button. If invalid data has been inserted into any field, a descriptive error message opens.

  • Page 153

    Runtime Actions SECTION 9 Animation A colour can be selected by clicking on one of the palette colours. This becomes the selected colour, and is denoted as such in the Selected Colour: field. Alternatively, a colour can be selected by specifying a colour name or number in the Colour Name: field.

  • Page 154: What Is A Recipe, Recipe Components, Viewing Recipes In The Recipe Editor, Recipes

    Each ingredient assigns a value to a point by means of a target value. A suite of CX-Supervisor recipes may be created for any project. In runtime, the recipes are a great time-saver that eliminate mistakes that may otherwise be made were the repetitive tasks they perform left to human endeavour.

  • Page 155: Creating A New Recipe

    Creating a New Recipe SECTION 10 Recipes Display the Recipe Editor as described in the previous chapter. An example of the Recipe Editor dialog box is shown below: Recipes are displayed in three columns: Recipe, Access Level and Validation Script. Recipes are usually listed in alphabetical order by recipe name, although the ordering can be changed so that the entries are listed according to any of the three column titles.

  • Page 156: Recipe Configuration Attributes, Recipe Ingredients

    Creating a New Recipe SECTION 10 Recipes When all the information has been provided for the new recipe, selecting the OK button adds the new recipe definition to the project, while the Cancel button aborts this add operation. Note: The short-cut keyboard combinations for Cut, Copy and Paste operations are valid within the Add Recipe dialog box.

  • Page 157: Recipe Validation

    Points. The Quantity/Expression field is used to define the value which is assigned to the point by this ingredient. This may be a fixed value, such as 50 as in the above expression, or it may be any valid CX-Supervisor script language expression featuring one or more point names.

  • Page 158: Updating An Existing Recipe

    Updating an Existing Recipe SECTION 10 Recipes Enter the recipe validation code using any standard CX-Supervisor script language constructs. The validation code should check any possible invalid point value or error condition. The point value being checked is the value of the ingredient about to be downloaded, or the current point value if the point is not an ingredient of the recipe being downloaded.

  • Page 159: Copying An Existing Recipe Definition

    Copying an Existing Recipe Definition SECTION 10 Recipes The selected recipe can be redefined as described in chapter 10, Creating a New Recipe. The Modify Ingredient and Delete Ingredient buttons on this dialog box respectively allow the highlighted ingredient to be modified, or deleted (following confirmation).

  • Page 160: Deleting An Existing Recipe, Recipe Security Levels, Printing Recipes, Print Preview, Printing

    Deleting an Existing Recipe SECTION 10 Recipes 10-7 Deleting an Existing Recipe Open the Recipe Editor dialog box, as described in chapter 10, Viewing Recipes in the Recipe Editor. To remove an existing recipe, highlight the recipe from the recipe list and click button.

  • Page 161: Recipe Viewer, Using Recipes In Runtime

    10-10-1 Recipe Viewer The Recipe Viewer can be displayed in one of two ways in the runtime environment. It may be displayed by any CX-Supervisor script code attached, for example, to a button. The function call is simply 'DisplayRecipes()'. The Recipe Viewer may also be displayed using the floating menu. The floating menu needs to be configured to display the Recipes option.

  • Page 162

    Using Recipes in Runtime SECTION 10 Recipes This runtime version of the dialog box is rather more limited in the power it offers than the equivalent dialog box in the development environment; this is so that recipes which have been painstakingly created in the development environment cannot be accidentally overwritten or destroyed in the runtime environment.

  • Page 163: Downloading A Recipe

    10-10-2 Downloading a Recipe There are two ways of downloading a recipe definition in runtime. The first method is to use a CX-Supervisor script function attached to a graphical object on a page, such as a push button. The function call is: DownLoadRecipe("<NameOfRecipe>")

  • Page 164: Uploading A Recipe

    10-10-3 Uploading a Recipe There are two ways of uploading a recipe definition in runtime. The first method is to use a CX-Supervisor script function attached to a graphical object on a page, such as a push button. The function call is: UpLoadRecipe("<NameOfRecipe>")

  • Page 165

    Using Recipes in Runtime SECTION 10 Recipes When the recipe upload is complete, all the ingredients are saved and the CX- Supervisor runtime environment continues to run in the normal manner. An event is logged stating that the recipe was successfully uploaded.

  • Page 166: What Is Data Logging, Data Log Editor, Configuring Data Sets And Logging Settings

    What is Data Logging SECTION 11 Data Logging SECTION 11 Data Logging This chapter describes the CX-Supervisor data logging facilities including how to configure items to be logged, the logging of data and the viewing and exporting of recorded data. 11-1...

  • Page 167: Adding/editing Data Set Properties

    Data Log Editor SECTION 11 Data Logging The functionality of the Items is determined by their expression. If the expression is a single point name, the item is shown as the same type as the point as configured in the point editor, i.e. memory, input, output or input/ output.

  • Page 168: Editing Item Properties

    Data Log Editor SECTION 11 Data Logging keep process data for 2 years, you could keep 24 files of 1 month period. The file names are generated automatically based on the Data Set name, plus a suffix which is incremented by one as each new file is generated. If the Keep all Files option is checked the data files management is disabled and no files will be deleted.

  • Page 169: Editing Items

    Data Log Editor SECTION 11 Data Logging within the deadband, the values are ignored. Immediately the value exceeds the deadband limits the new value will be logged. This may dramatically reduce file size, and ease analysis. Entering a value of 0%, i.e. no deadband, will cause every sample to be logged.

  • Page 170: Data Logging At Runtime, File Management

    For example, if the CX-Supervisor project is in a directory called C:\CX- Supervisor\Project then, when the project runs for the first time a new directory called C:\CX-Supervisor\Project\Data Logging will be created to hold the data log files.

  • Page 171

    When the session is restarted and Data Set file opened CX-Supervisor checks to see if there are any differences between the current Data Set and the Data Set stored in the file. If any differences are detected the System will mark the existing file as invalid by altering the Timestamp brackets from "[ ]"...

  • Page 172: Data Records

    Data Logging at Runtime SECTION 11 Data Logging 11-3-1-5 Data Set Period Examples The following examples show how the specified period (Hour(s), Day(s), Month(s)) is implemented while the System is running: 1. Data Set period = Hours If a Data Set named CV500 starts logging at 12:30 on the 7th March 1999 with a period of 6 hours, the following files will be created: CV500[1999030712].dlv If the s7stem is left running the Data Logging directory will contain the...

  • Page 173: Data Log Viewer Component (v2.0 And V1.8), Invoking The Data Log Viewer, Viewing Logged Files

    From an external program. 11-4-2 Viewing Logged Files In CX-Supervisor 3.0 the Data Log Viewer was significantly enhanced with lots of new features. For systems that do not support version 3.5 of the.NET Framework, like Windows 2000, the old Data Log Viewer can continue to be used.

  • Page 174: Data Log Viewer 1.8

    Data Log Viewer Component (v2.0 and v1.8) SECTION 11 Data Logging 11-4-2-2 New Features: The basic functionality remains largely the same however the following features are new to version 2.0 of the Data Log Viewer. • Modern User Interface - The user interface has a modern look and feel. •...

  • Page 175

    Data Log Viewer Component (v2.0 and v1.8) SECTION 11 Data Logging 11-4-3-1 Features: • The Data Set viewed is the name passed as an argument with the script function, or a user-selected Data Set. • On start-up, a dialog box allowing selection of traces to view from the Data Set will be shown.

  • Page 176: Remote Data Log Viewer, Data Log Export Facilities, Exporting Data Via The Export Dialog

    11-5 Remote Data Log Viewer Data log files are not restricted to a machine that has CX-Supervisor installed on it. CX-Supervisor is supplied with a "Data Log Viewer" application that enables all the View and Export facilities (with the exception of Live updates) to be carried out on .dlv files that have been transferred to a stand alone...

  • Page 177: Single Selections, Multiple Selections

    Data Log Export Facilities SECTION 11 Data Logging A.Applications like Excel seem to complain about them being there. B.Less likely to be confused will .dlv files during searches/purges During the generation of files then obviously duplication of names can occur. To avoid this the following convention is used: "_nnn"...

  • Page 178: Generation Of Text Files, Data Logging, Add Database Link Dialog

    Database Logging, must first be created using the specific software for your choice of data source e.g. "MS-Access". To configure CX-Supervisor to log to a database: • Create an 'unpopulated' data source or 'template' for use in Database logging.

  • Page 179: Add Field Link Dialog

    Data Logging SECTION 11 Data Logging 11-7-1-2 Connection Select the Database Connection to link to from the list showing configured Database connections. 11-7-1-3 Recordset Select the Recordset to create a link to from the list showing Recordsets configured in the selected Connection. 11-7-1-4 Sample Rate Select whether field links defined within this Database Link are logged when their expression changes or on a regular interval, for example every 30...

  • Page 180

    Data Logging SECTION 11 Data Logging 11-7-2-5 Deadband This allows the value of the expression to change within the percentage limit without being logged. This is particularly useful when logging analogue values that are subject to noise. Each sample is checked (when the value changes for 'On Change' sampling, or every log period for 'On Interval') against the last logged value.

  • Page 181

    Data Logging SECTION 11 Data Logging...

  • Page 182: Database Connection Editor, Databases

    Schema objects in a familiar Tree View (hierarchical) format, using the popup menu. This editor is unique in CX-Supervisor, in that actual database connections can be tested online in the Development Environment. The ability to connect online also has the added benefit of providing assistance in creating objects lower down in the hierarchy.

  • Page 183: Configuring A Connection, Add/modify Database Connection Dialog Box

    Configuring a Connection SECTION 12 Databases 12-2 Configuring a Connection Connections to existing databases are added to the Workspace by using a right mouse-button context sensitive menu option 'Add Connection…' which invokes the Add/Modify Database connection dialog box. They can be modified later by selecting the 'Edit…' option from the menu.

  • Page 184: Testing Connections In The Development Environment, Database Errors, Database Connection String Dialog Box

    Because different Data Providers require different information to connect you to a data store, these strings can be quite complex and cumbersome. For this reason CX-Supervisor will automatically create a valid connection string for your selected data source (if it's supported). This string can be viewed and modified via the Connection String dialog box shown below, when 'Advanced' is pressed on the Add/Modify Database Connection dialog box.

  • Page 185

    Configuring a Connection SECTION 12 Databases If your data source is not supported, or you have your own drivers for a particular database, the 'Connection String' can be modified using this dialog box (consult your database documentation for the required connection string). 12-2-4-1 User Id and Passwords If a connection to a database requires a user id or password, this can be supplied by means of the connection string, which can be modified via the...

  • Page 186: Creating A Data Source Name File

    Verify the information shown and select 'Finish' to complete this part of the operation. • Depending on the driver selected, you may be prompted for details of the database you wish to connect to. • A new DSN file will now exist which can be used by CX-Supervisor to Create a Connection.

  • Page 187: Creating A Read/write Connection To An Excel File

    On the 'Insert' menu, point to 'Name', click 'Define' and enter a name for your range. • Create a connection in the CX-Supervisor Workspace specifying the File DSN as its source. • Add a Recordset to the connection and select the Named Range (which will appear in the list of available tables, if the connection is live) as the Table name.

  • Page 188: Creating A Read/write Connection To Csv/text File, Configuring Recordsets, Name, Recordset Type

    Configuring Recordsets SECTION 12 Databases Note: When updating files the column headings cannot contain numbers or spaces, for example "Column1" or "Invoice Total" is invalid. Also some words are reserved and can not be used, for example a column heading of "Number" will cause an error.

  • Page 189: Source, Lock

    Configuring Recordsets SECTION 12 Databases Server Query The Recordset is the results of a pre-defined Server Query stored in the database. SQL Text The Recordset is the results of an SQL query executed when the Recordset is opened. Note: It is more efficient to run a Server Query than an SQL query. Note: For Database connections all three of the above options are available, but for Text or CSV connections only one option is available, namely 'SQL Text'.

  • Page 190: Configuring Field Associations, Name, Point, Field, Field Property

    12-4 Configuring Field Associations Field associations provide a means of connecting CX-Supervisor Points with fields (i.e. columns of data) in a Recordset, thus enabling data transfers to be made between Points and Records. By creating a Field Association for each...

  • Page 191: Configuring Parameter Associations

    This concept is called Paging. Paging is supported by the Database script functions, enabling you to manipulate and navigate the database a page at a time. CX-Supervisor determines the page size, by using the number of elements in the Array point used in Field Associations, i.e.

  • Page 192: Name, Index, Data Type, Use Point To Hold Parameter Value, Point, Value

    Configuring Parameter Associations SECTION 12 Databases Parameter associations provide a means of supplying values to parameters whenever a Server Query is run. Each required parameter defined within the query is associated with a point or constant value. At the time the Query is run, the current value of the point (or the constant value) is passed to the query.

  • Page 193: Configuring Schemas, Name, Point, Type, Criteria, Filter, Read On Connection, Preview

    Configuring Schemas SECTION 12 Databases 12-6 Configuring Schemas Schemas enable information about a Database to be obtained from a Provider. There are a large number of Schema Types available. The most useful feature of schemas is the ability to obtain Table and Query names from the Database, in fact schemas are used by the Development Environment to populate the Combo boxes when working with 'live' connections.

  • Page 194: Database Schema Types

    Configuring Schemas SECTION 12 Databases 12-6-8 Database Schema Types The Database Schema types supported in ADO are: Schema Type values Criteria Values Schema Asserts CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME Schema Catalogs CATALOG_NAME Schema Character Sets CHARACTER_SET_CATALOG CHARACTER_SET_SCHEMA CHARACTER_SET_NAME Schema Check CONSTRAINT_CATALOG Constraints CONSTRAINT_SCHEMA CONSTRAINT_NAME Schema Collations...

  • Page 195

    Configuring Schemas SECTION 12 Databases Schema Foreign Keys PK_TABLE_CATALOG PK_TABLE_SCHEMA PK_TABLE_NAMEFK_TABLE_CATALOG FK_TABLE_SCHEMA FK_TABLE_NAME Schema Indexes TABLE_CATALOG TABLE_SCHEMA INDEX_NAME TYPE TABLE_NAME Schema Key Column CONSTRAINT_CATALOG Usage CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME Schema Primary Keys PK_TABLE_CATALOG PK_TABLE_SCHEMA PK_TABLE_NAME Schema Procedure PROCEDURE_CATALOG Columns PROCEDURE_SCHEMA PROCEDURE_NAME...

  • Page 196: Using Transactions

    Using Transactions SECTION 12 Databases Schema Table CONSTRAINT_CATALOG Constraints CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE Schema Table Privileges TABLE_CATALOG TABLE_SCHEMA TABLE_NAME GRANTOR GRANTEE Schema Tables TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE Schema Translations TRANSLATION_CATALOG TRANSLATION_SCHEMA TRANSLATION_NAME Schema Usage Privileges OBJECT_CATALOG OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE GRANTOR GRANTEE...

  • Page 197: Nested Transactions, Saving Recordsets As Xml

    Saving Recordsets as XML SECTION 12 Databases modifications to data in a connection, regardless of the Recordset. A transaction is started by calling DBExecute with the 'BeginTrans' command. From that point, any request to add, modify or delete records are stored instead of being immediately processed.

  • Page 198: Datashaping

    Datashaping SECTION 12 Databases 12-9 Datashaping The ADO SHAPE command can be used to produce hierarchical recordsets i.e. where a value within the current record is used to access another Recordset. For example, a record showing Customer Details might contain a field for Customer ID.

  • Page 199: Simple Relation Hierarchy Example, Examples, Compound Relation Hierarchy Example, Hierarchy With Aggregate Example

    Examples SECTION 12 Databases 12-10 Examples 12-10-1 Simple Relation Hierarchy example: SHAPE {select * from customers} APPEND ({select * from orders} AS rsOrders RELATE customerid TO customerid) The parent recordset contains all fields from the Customers table and a field called rsOrders.

  • Page 200: Multiple Groupings Example, Grand Total Example, Grouped Parent Related To Grouped Child Example

    Examples SECTION 12 Databases COMPUTE rsOrders, SUM(rsOrders.OrderTotal) AS CustTotal, ANY(rsOrders.contactname) AS Contact BY customerid Note: The inner SHAPE clause in this example is identical to the statement used in the Hierarchy with Aggregate example. 12-10-6 Multiple Groupings example: SHAPE (SHAPE {select customers.*, od.unitprice...

  • Page 201

    Examples SECTION 12 Databases...

  • Page 202: Cfr (title 21 Part 11) Functionality, Overview, Supported Databases

    A CX-Supervisor Audit Trail 'event' can be one of three different types..• A CX-Supervisor Point. An Audit Trail event is triggered by a change in value of a CX-Supervisor point. • A CX-Supervisor Alarm. An Audit Trail event is triggered by a change in state of a CX-Supervisor alarm.

  • Page 203: Creating / Running A Cfr Application (microsoft Access), Cfr Test Application

    Creating / Running a CFR Application (Microsoft Access) SECTION 13 CFR (Title 21 To assist with the correct identification of users CX-Supervisor has the ability to log-in to the runtime application with the same identity and password as a Windows user, (refer to section 6.11 of the manual for details).

  • Page 204: Configuring Points For Audit, Default Audit Trail Configuration

    IMPORTANT NOTE: The use of CX-Supervisor I/O points is not recommended for audit trail logging since unexpected or spurious results can be observed due to the asynchronous input and output nature of these points.

  • Page 205: Default Connection String

    Creating / Running a CFR Application (Microsoft Access) SECTION 13 CFR (Title 21 • Logging Alarms and Events\Errors are disabled by default. No changes to the default state are required to enable the points Audit trail logging function of the test project. 13-4-4 Default Connection String Clicking the Setup button on the ‘Audit Trail Configuration’...

  • Page 206: Logged In User, Starting And Stopping An Audit Trail

    Before starting an audit trail it is recommended that there is a user logged in. The current CX-Supervisor user logged in has the user identity will be saved in the audit trail records. If no user is logged in when a record is created, then ‘User Unknown’...

  • Page 207: Viewing The Audit Trail Database

    Open the Points table to show the Audit Trail that was generated by pressing the Increment Point button: Notes: 1 The UserID field shows the currently logged in CX-Supervisor User. 2 The Index field shows the array index for the point.

  • Page 208: Audit Trail Configuration Settings – Alarms Errors And Events, Configuring Alarms For Audit Trail Records

    Creating / Running a CFR Application (Microsoft Access) SECTION 13 CFR (Title 21 13-4-9 Audit Trail Configuration Settings – Alarms Errors and Events It is not necessary to invoke the Audit Trail Configuration dialog for auditing points, but to generate an audit trail for alarms, errors and events the default configuration state must be modified.

  • Page 209

    Creating / Running a CFR Application (Microsoft Access) SECTION 13 CFR (Title 21 To generate an Alarm events take the following steps: • Create a Boolean memory point called ‘bSimpleAlarm’ which will be used to trigger the Alarm condition. • Launch the Add Alarm dialog and create a simple alarm as follows: NOTES: 1.

  • Page 210: Generating Errors And Events In Audit Trail Records

    Creating / Running a CFR Application (Microsoft Access) SECTION 13 CFR (Title 21 13-4-11 Generating Errors and Events in Audit Trail Records By selecting the Log Errors\Events option in the Audit Trail Configuration dialog, all Errors and Events will be logged as records in the Audit trail database.

  • Page 211: Viewing The Alarm Error And Events Data Tables, Logging Audit Trails To An Sql Database

    SQL Server Database To use an SQL Server Database the database must first be created and the connection string must be configured. CX-Supervisor provides supports for SQL Server database as detailed below. The test project described in the section above could be converted to be used.

  • Page 212: Sql Server Database Prerequisites, Creating An Sql Server Test Project

    3. A database is created to be used for the Audit Trail. NOTE: Once the SQL Server database exists. CX-Supervisor will create the required tables in the specified database (if they do not already exist) namely, Points, Alarms, Events and Errors.

  • Page 213: Connection String For An Sql Database

    Logging Audit Trails to an SQL Database SECTION 13 CFR (Title 21 Part 11) Function- 13-5-3 Connection String for an SQL Database Invoke the Audit Trail Configuration dialog, select the ‘SQL Server’ radio button in the Database group and press the ‘Setup…’ button, this will display the ‘Audit Database Setup’...

  • Page 214: Running An Sql Server Test Project

    Further Settings and Configuration SECTION 13 CFR (Title 21 Part 11) Functionality 13-5-4 Running an SQL Server Test Project Build and run the modified project and carry out the following actions: 1. Press the Login Designer button. 2. Press the Start Audit Trail button. 3.

  • Page 215: Database File Location, Microsoft Access Database File Management

    13-6-2 Microsoft Access Database File Management By default CX-Supervisor will create a new access database file (with project name, date and unique number) in the project subfolder ‘AuditTrail’, every time the method StartAuditTrail() is called. This default functionality can be...

  • Page 216: Audit Trail Notes

    13-6-3 Audit Trail Notes CX-Supervisor allows the user to add free format notes to each audit record, this is achieved by associating two text points with the Audit Trail. To associate text points with the audit trail, first add two text points called...

  • Page 217: Sql Statements

    The following screen shot demonstrates a use of these notes. 13-6-4 SQL Statements If you do not want to give CX-Supervisor the privileges to create tables in your chosen database, you can create the tables in the required format using the...

  • Page 218: How To Access Information From A Cfr Database, Using Cx-supervisor

    How to Access Information from a CFR Database The following sections provide instructions on how to read the information from a CFR database that was generated by CX-Supervisor. 13-7-1 Using CX-Supervisor When configuring the ‘Data Source’ information in the ‘Add Connection’...

  • Page 219: Using Microsoft Excel

    How to Access Information from a CFR Database SECTION 13 CFR (Title 21 Part 11) application folder - this is where the ‘Guest’ user is stored and has ‘Read’ access to the CFR database tables. It should then be possible to connect to the database.

  • Page 220

    How to Access Information from a CFR Database SECTION 13 CFR (Title 21 Part 11) • Select the ‘Advanced’ tab and ensure that the read checkbox is selected. By default, the ‘Share Deny Write’ option may also be selected but other options are not selected.

  • Page 221

    How to Access Information from a CFR Database SECTION 13 CFR (Title 21 Part 11) • From this dialog, select the required table to be imported and click ‘OK’. Another dialog will be displayed (shown below) asking where you would like to put the data.

  • Page 222: Limitations

    There is a 2GB files size limit on Microsoft Access database files. To avoid this limitation, CX-Supervisor will monitor the number of records appended to a database file and it reaches 5 million records then a new database file will be created automatically.

  • Page 223

    Limitations SECTION 13 CFR (Title 21 Part 11) Functionality apparent when the database contains in excess of 1 million records, however, the exact point at which performance degradation occurs will probably be dependent on the exact PC specifications. Maximum Length of Text Strings When logging to audit trail databases, all text strings are limited to a maximum of 250 characters.

  • Page 224: Access, Overview, Standard Web

    14-1 Overview The standard web pages provide a web interface to a running CX-Supervisor application, similar to that of a network router or office printer. The pages provide the ability to monitor the state of the application and view current point values, alarm state and history, event/error log and perform basic maintenance operations.

  • Page 225: Configuration, Default Port, Dcom Settings, Error, Limitations

    14-4 Configuration At least 1 of the users configured for a CX-Supervisor application must have web access rights in order to 'log on' to the standard web pages. To configure web access for a particular user, the 'Allow web access for this user' option must be ticked within the 'Configure Users' dialog box.

  • Page 226: Section 15 Multilingual Features, Development Features

    Unicode. See the section Loading old projects for important information before you start. Multilingual issues can be very complex, but like most areas CX-Supervisor provides this functionality in an easy to use way, with a few simple dialogs.

  • Page 227: Runtime Language Features, Setting The Default Language

    Development application resources are installed in this language. In the unlikely event you ever need to change your language selection, simply uninstall CX-Supervisor in the normal manner, and then reinstall, selecting the desired language. Of course the designer enters all application data, like page names, on screen text, button captions etc, and these all form part of the runtime application.

  • Page 228: Runtime Multilingual Features, Changing Language At Runtime

    Runtime Multilingual Features SECTION 15 Multilingual Features After setting, when the application is next run it will start in the selected language Note: In this context for this dialog only, "<Default>" means no language file will be loaded so the default text compiled in the executable, i.e. English, will be used. This is the initial setting, and can be useful if no Language features are being used.

  • Page 229: User Defined Text, Translating User Defined Text With The Translation Tool

    <project>.SCS file. Note: IIn CX-Supervisor version 1.25 and earlier the user defined text was stored in files with a .USL extension. These files are in MBCS format. For backwards compatibility, if these files still exist they will be loaded as MBCS and converted to Unicode temporarily for the duration of the runtime.

  • Page 230

    Translating User Defined Text with the Translation Tool SECTION 15 Multilingual Fea- The Translation Tool can also be launched manually from the Start button, and the "Default.UDT" for the required project loaded. The Translation Tool can be distributed to translators licence free, and an installation package can be found on the original CD in the folder "Translation Tool"...

  • Page 231: Translating User Defined Text Manually

    Translating User Defined Text Manually SECTION 15 Multilingual Features If you need translations for the same text in different contexts, Show the Object ID column and select the Add new object ID string button. Select the application text for the new translation and the object context for this special case.

  • Page 232: Configuring Windows For Language Support, Windows Xp, Windows 2000

    These affect how the keyboard is mapped for typing letters and can be changed as CX-Supervisor is running by the box in the task bar. 6. OK all dialogs and install new OS files from CD if requested. Reboot if...

  • Page 233: Loading Old Projects

    SECTION 15 Multilingual Features 15-6-3 Loading Old Projects Projects and pages created in CX-Supervisor 1.25 and earlier use Microsoft's Double Byte Character Sets (known as DBCS, or sometimes MBCS) for multilingual features. The formatting of character tables in MBCS is not the same as Unicode.

  • Page 234: Data Log Viewer, Standard Web, Adding Unsupported Runtime Languages

    5. Create a new language file for the user defined text as described in the section User Defined Text above. To deploy this language to a new machine, just install CX-Supervisor as normal, and then copy the .LNG and .LND file to the installed application folder.

  • Page 235: Popup Keyboard Layout

    To create a new keyboard layout: 1. Copy the file "scsdefs.kbd" in the installed application folder (default is "C:\Program Files\Omron\CX-Supervisor") and rename the copy with the language name, e.g. "American.kbd". 2. Follow the instructions at the top of the file to add each character for each key.

  • Page 236: Section 16 Application Analysis / Performance Monitor, Application Analysis

    PLC program design so the two processes complement each other. Visualisation design should never be an after-thought CX-Supervisor comes with two utilities to help you monitor how healthy your application is while you are designing and testing it: •...

  • Page 237: Data Analysed

    Application Analysis SECTION 16 Application Analysis / Performance Monitor Summary Tab The 'Summary' tab provides an overview of the application data including any warnings or errors found. Warnings Tab The 'Warnings' tab identifies specific problems found with the application and may offer suggestions for resolving the problems.

  • Page 238

    CX-Supervisor auto generates the cdm file so if this has become corrupted for some References to invalid CX- reason, you can close all Omron software and Server point keys delete the file. When you re-open CX-Supervisor developer the file will be re-generated.

  • Page 239

    Total OPC/Other Points The total number of points that are external to CX- Supervisor using a comms interface such as OPC or on another CX-Supervisor runtime. Total Pages This is the total number of pages in your project (including pop up pages). This is limited in ME so this gives an idea of when you are approaching this limit.

  • Page 240: Performance Monitor

    Performance Monitor SECTION 16 Application Analysis / Performance Monitor Total Sleep commands The sleep command has been shown to cause problems with applications due to the necessity to have the containing script in a separate thread. It is highly recommended that this command is not used and an alternative method is used such as 'On Condition' scripts which can be triggered when something completes.

  • Page 241

    (e.g. scripts) is too much and you need to think more about the design of your application. Read Time (ms) This is the time it takes CX-Supervisor to read or write a point on the PLC, the lower this number the Write Time (ms) better performance you are getting.

  • Page 242

    TX Bytes (CX-Server) RX The bytes transmitted or received to the PLC from Bytes (CX-Server) CX-Server. TX Bytes (CX-Supervisor) The number of bytes transmitted from CX- Supervisor to CX-Server TX Bytes/Sec (CX- The current number of bytes per second being...

  • Page 243

    Performance Monitor SECTION 16 Application Analysis / Performance Monitor...

  • Page 244: Section 17 Using Cx-supervisor As An Opc Client, An Overview Of Opc

    The latest version of the OPC standard is version 2. This replaces the earlier version 1 standard. CX-Supervisor uses an OPC version 2 interface to connect to an OPC Server which is version 2 compliant. Note that the OPC version 1 interface has been superseded, and is not supported.

  • Page 245: Other Opc Specifications

    (typically used programmers). In 2000, using these DA 2.0 specifications Omron created the first version of CX-Server OPC, which provides Client and Server software for the CX- Automation Suite software range. The current version of Omron's CX-Server OPC is compliant with version 2.05 of the Data Access specification.

  • Page 246: Key Technologies Used By Opc

    An Overview of OPC SECTION 17 Using CX-Supervisor as an OPC Client Figure 1: OPC Interface Specifications 17-1-3 Key Technologies used by OPC This section provides, for convenience, a brief introduction to some key technologies that are used by, or that form part of, OPC. Some of these are described in more detail in the appendices;...

  • Page 247

    An Overview of OPC SECTION 17 Using CX-Supervisor as an OPC Client In the case of OPC these interfaces for each of the DCOM objects are defined within the relevant specifications. This guide only deals with the OPC Data Access specification Custom (used by C++) and Automation (used by script languages and VB) interfaces.

  • Page 248: Using Cx-supervisor With Opc Servers

    Using CX-Supervisor with OPC Servers SECTION 17 Using CX-Supervisor as an OPC 17-1-3-5 Who should care about OPC? You should care about OPC if your applications are largely run in personal computers and you are involved with solving plant integration problems. As a critical mass of servers and OPC-enabled applications become available, OPC is likely to become an important part of your plant integration tool set.

  • Page 249

    Using CX-Supervisor with OPC Servers SECTION 17 Using CX-Supervisor as an OPC Server: This shows the name of the communications object to connect to the server i.e. OMRONCXOPCCommunicationsControl. If you wish to use a different object make your selection from the drop down list. To Add, Modify or Delete an object click the Info button.

  • Page 250

    Computer Name: - This shows the system name for the computer with the OPC server. If the server is on the same computer as CX-Supervisor, set to '(Local)'. If the OPC server is on a remote computer click the Show All button and select the correct name from the list.

  • Page 251

    Using CX-Supervisor with OPC Servers SECTION 17 Using CX-Supervisor as an OPC Note: This dialog box cannot be opened until a valid project file exists in which to create the groups. Groups: - Use the Add, Edit and Delete buttons to show the Group Attributes dialog box and update the list of groups.

  • Page 252: Using With Omron's Cx-server Opc

    Using with Omron's CX-Server OPC SECTION 17 Using CX-Supervisor as an OPC Cli- Item ID: - This is the OPC Server's name for the data. If the server supports OPC item browsing facilities, click Browse to browse the OPC Server to list the namespace groups and items to create the OPC Item ID.

  • Page 253

    Using with Omron's CX-Server OPC SECTION 17 Using CX-Supervisor as an OPC Cli-...

  • Page 254: Two Tier, Client - Server Or Master - Slave, Peer To Peer

    This chapter explains how to connect multiple CX-Supervisor applications together to form a distributed solution. Point data from one application can be 'shared' directly with other CX-Supervisor applications across the PC network. Depending on the requirements, there are many reasons and topographies for interconnecting CX-Supervisor applications.

  • Page 255: Section 18 Connecting To A Remote Cx-supervisor Application, Distributed Server, Redundant Server

    Distributed Server SECTION 18 Connecting to a remote CX-Supervisor application 18-3 Distributed Server Several applications are configured as Servers for direct connection, so the data for the system is 'distributed' across several machines. One or more Client applications collect the data from the distributed servers. This can be useful to help performance, by distributing the communication on the device connections, and server processing.

  • Page 256: Creating A Cx-supervisor Server Application, Creating A Cx-supervisor Client Application

    Creating a CX-Supervisor Server application SECTION 18 Connecting to a remote CX- A distributed solution may be any of the above, or a combination of the ideas. When your topography is defined, the steps to connect each Client or Server are the same.

  • Page 257

    Creating a CX-Supervisor Client application SECTION 18 Connecting to a remote CX- 4. In the Add Point dialog box move to the I/O Type: options and select the Input, Output or Input / Output option as appropriate. Note that the I/O Update Rate: and I/O Attributes: options and displayed.

  • Page 258

    Creating a CX-Supervisor Client application SECTION 18 Connecting to a remote CX- 7. Having checked that all the parameters are correct return to the Point Editor window by closing any attributes window that may be open. To run the application, click the button.

  • Page 259

    Creating a CX-Supervisor Client application SECTION 18 Connecting to a remote CX-...

  • Page 260: Section 19 Connecting To Omron Industrial Components, Adding A Point Linked To A Parameter

    Counters. Any process value or parameter from these devices can be monitored or written. See the device documentation for available parameters and their description. This is achieved in CX-Supervisor by creating a point and linking it to the required parameter. Device ranges supported are following models that support communication (where '*' indicated a wildcard): •...

  • Page 261

    Adding a Point Linked to a Parameter SECTION 19 Connecting to Omron Industrial Selecting the Add option will open the Communications Control dialog box. From the list of control objects select the one to be added and click the OK button.

  • Page 262

    Point Editor window by closing any attributes window that may be open. The CX-Supervisor Point will now be connected to Device parameter and can be used like all other CX-Supervisor points, i.e. to drive animations, in alarm expressions, in recipes, for data logging etc. The application can...

  • Page 263

    Adding a Point Linked to a Parameter SECTION 19 Connecting to Omron Industrial...

  • Page 264: Section 20 Best Practices, Design, Design Your Page Layouts And Navigation Flow

    Note: If the Logical symbols are created in CX-Programmer, it can link them to a CX- Server file which CX-Supervisor can then 'Import' into the Points Editor. This is a very quick method of creating all the required points. •...

  • Page 265: Performance, Organise The Plc Memory Properly

    "1700" become "17:00". Instead consider writing this conversion as ladder in the PLC hardware rather than in CX-Supervisor software. This is particularly true if this conversion has to occur on several pages where the value is used or before data logging.

  • Page 266

    Performance SECTION 20 Best Practices Figure 2: Bad grouping example In Figure 2 we see the PLC Programmer has arbitrarily chosen to group data by its format: Integers, then BCD then Floats (or even worse not at all!). When the SCADA is written, this data is used by different pages and different update rates.

  • Page 267: Points

    Points SECTION 20 Best Practices 1. Group together points that will be configured as "Always Update" in contiguous PLC memory addresses 2. Group together points that will be configured as "Update when On Display", grouping for each page 3. Within groups from steps 1 & 2, create sub-groups for each required update rate 4.

  • Page 268: Drawing

    Drawing SECTION 20 Best Practices CX-Supervisor only allows update rates in standard groups, which allows a greater chance for CX-Server to optimise reads together. Old projects may still be using non-standard update rate and are best changed to the standard rates.

  • Page 269: Scripts

    Scripts SECTION 20 Best Practices To make Workspace navigation of objects easy, reduce the number of top level objects by collecting objects together into Groups. Grouped objects can be nested on other groups in a natural hierarchy e.g. a machine has several panels that have keypads that have buttons.

  • Page 270: Data Logging

    Data Logging SECTION 20 Best Practices • Keep scripts short Although the script editor can manage hundreds of lines this would suggest a serious design problem. Consider 30 lines as a practical maximum. 20-6 Data Logging This section covers some data logging related good practices. •...

  • Page 271

    Data Logging SECTION 20 Best Practices...

  • Page 272: A.1 Configuring A Client Pc Running Windows Xp Service Pack 2

    Appendix A Configuring a PC for Remote Connection The OPC interface and CX-Supervisor Communications Control use a Microsoft technology called DCOM. This allows the Clients and Servers to be seamlessly 'Distributed' over a PC network. The Server should be running on the PC with direct connection to the Device or Device network.

  • Page 273: A.4 Configuring A Server Pc Running Windows Xp Service Pack 2

    Configuring a Server PC running Windows XP Service Pack 2 Appendix A Configuring A.4 Configuring a Server PC running Windows XP Service Pack 2 Windows XP Service Pack 2 includes a communications 'Firewall' to protect your computer from malicious communications. By default, this firewall is turned on, and so will block all OPC and DCOM communications.

  • Page 274

    Configuring a Server PC running Windows NT or 2000 Appendix A Configuring a PC 3. From the Default Properties tab, configure the Default Authentication Level to Connect and the Default Impersonation Level to Identify. Setup the access permissions by either: •...

  • Page 275

    Configuring a Server PC running Windows NT or 2000 Appendix A Configuring a PC...

  • Page 276: Appendix B Frequently Asked Questions

    Appendix B Frequently Asked Questions Appendix B Frequently Asked Questions This appendix lists some FAQs, and of course their answers • What is the maximum limit of number of points? For Machine Edition projects it is possible to create an application with up to 500 user defined points.

  • Page 277

    Appendix B Frequently Asked Questions...

  • Page 278

    Appendix B Frequently Asked Questions See -> "How does the Operating System affect performance?" See -> "What is the maximum limit of number of points?"...

  • Page 279

    Use "CX-Supervisor Performance Monitor Tool" to see if the network is overloaded This tool is available in the CX-Supervisor run-time by right clicking and selecting Performance… ( if security privileges allow). It can be used to see how much of the available bandwidth is in use. You can also see how many points are waiting to be processed and the latency of actual communications.

  • Page 280

    "Updating CX-Supervisor does not affect how performance degrades when the system gets busy. Note: CX-Supervisor 1.2 and later do include automatic optimisations for writing array elements that can yield substantial results, particularly with serial communications. These performance improvements have been...

  • Page 281

    Appendix B Frequently Asked Questions Note: lower write time indicates greater performance See -> "How does upgrading CX-Server affect communications performance?" • does upgrading CX-Server affect communications performance? The graphs below should show that this does not have a significant impact.

  • Page 282

    Appendix B Frequently Asked Questions See -> "What is the maximum number of communication updates?" • How does my PC specification affect communications performance? The graphs below show that processor speed has a significant impact on performance, especially for large systems with high quantities of On Interval Subscription points.

  • Page 283

    Appendix B Frequently Asked Questions • Can I run CX-Supervisor Runtime as a restricted Windows User? CX-Supervisor (and CX-Server) require Administrator rights to be installed on a computer, but other users can then run the software. The runtime will run without problems as a Standard User (member of Power Users group) and will run as a Restricted User (member of Users Group) although will show errors when trying to update the registry.

  • Page 284

    7.Create the data folder ---> Finish 8.In the work CX-Simulator dialog box, connect to the virtual PLC. 9.Start the virtual PLC. It must be started first for CX-Supervisor to be able to open the device. 10.In CX-Supervisor project, set the PLC type as per CX-Simulator or FinsGateway.

  • Page 285

    Appendix B Frequently Asked Questions Vendor Server Name Product Version Result Alstom FBSOPC 1.30a Pass (although Technology noted not OPC compliant) Amersham UNICORN Zappa build 313 Pass Biosciences AXEDA Systems OPC DA Server 1.0.0.2 Pass CimQuest OPC Server for 2.25.00.01 Pass Allen Bradley (reported as 2.25...

  • Page 286

    Pass Wonderware Virtual PLC Server 1.0 (beta) Pass The following products have not passed: Vendor Server Name Product Version Result Klinkmann Omron driver Ignores 'Read from Device' option. Seen to lose device values, potential control risk. OPC Labs Time Monitor 2.01...

  • Page 287

    See documentation for "GenerateReport" script function for more information, and the "Coffee Tutorial" Step 12 in the CX-Supervisor Getting Started Manual. See -> "How do I make an HTML report update and refresh automatically?"...

  • Page 288

    Also the value after the url= is the name of the page to refresh. • Can CX-Supervisor be used with Industrial Touchscreen PCs (IPCs)? Absolutely. CX-Supervisor is designed for use with Omron's DyaloX Touchscreen IPC but can be used with other manufacturers. It has special features especially for Touchscreen PCs: •...

  • Page 289

    Appendix B Frequently Asked Questions In graphics editor select text tool from palette and type text e.g. Temperature = ##.### C The # after the decimal point indicate the precision of the real number display, e.g. to 3 decimal places. Finally select animation editor and animate with "Display Value (Analogue)"...

  • Page 290

    Error -115 during installation means the specified file could not be copied. This is most often caused by the file already being in use or locked. Reboot the machine, and attempt installing before running any Omron software. This error can also appear when attempting to install on a operating system that does not support extended European characters, e.g.

  • Page 291

    CX-Supervisor. Contact your supplier to receive details of the required Registry changes. • How does Sleep() work? The CX-Supervisor Sleep function is designed to create a short pause in script execution. The parameter specifies the duration of the pause in milliseconds. For example: <statements A>...

  • Page 292

    Endif becomes End If in VBScript. • Array indexing using ( ) uses square brackets in VBScript [ ] Note that CX-Supervisor interprets { and } characters as string delimiters, even in VBScript so the following code does not work: MsgBox("Press {Enter}")'does not work Instead use the following to replace these characters: MsgBox("Press "...

  • Page 293

    Is it possible to connect an external PLC to CX-Supervisor via a modem? Yes, you can connect from CX-Supervisor via CX-Server to a PLC via a modem. In the PLC configuration 'Network Settings' dialog box, select the 'Modem' tab. CX-Server uses standard TAPI build into the OS. The modem must be installed properly to be shown in the Modem list.

  • Page 294

    Appendix B Frequently Asked Questions Each array point may contain up to 1024 elements. • What is the maximum limit of number of pages? Machine edition projects can configure up to 100 pages, and the PLUS projects with up to 500. •...

  • Page 295

    If a spreadsheet has been set up with data directly inputted in Excel and an attempting to write new data to the spreadsheet from CX-Supervisor this error will occur. This is because the ODBC Driver sees different formats in a column.

  • Page 296

    Appendix B Frequently Asked Questions...

  • Page 297

    Appendix B Frequently Asked Questions...

  • Page 298

    Appendix B Frequently Asked Questions...

  • Page 299

    Appendix B Frequently Asked Questions...

  • Page 300: Troubleshooting, C.1 How To Diagnose Problems, C.2 Point Maintenance, C.3 Plc Data Monitor

    Perform one test at a time. • Check the data values are correct in the PLC using the PLC Data Monitor, and are correct in CX-Supervisor using the Point Maintenance tool • Prove that scripts are executed by popping up message boxes •...

  • Page 301: C.4.1 Overview, C.4.2 Summary, C.4.3 Cpu Time, C.4.4 Network, C.4.5 Plc

    CX-Supervisor Performance monitor Appendix C Troubleshooting C.4.1 Overview Shows an overview of the headline performance of all other components. C.4.2 Summary Provides a Summary view, totalising and averaging property values from all PLCs on all networks. C.4.3 CPU Time Lists specific CPU and process information including processing times for all scripts and all callbacks.

  • Page 302: C.5 Diagnostics Dialog Box

    Diagnostics dialog box Appendix C Troubleshooting C.5 Diagnostics dialog box The Runtime has a communications diagnostics window. This will only normally be used under guidance of Technical Support to assist diagnosing specific communication issues. To view the dialog box: 1. Log in as a user with 'Designer' privileges 2.

  • Page 303: C.6 Scripting Errors, C.6.1 Vbscript Syntax Errors, C.6.2 Cx-supervisor Syntax Errors

    These are seen during development when OK is pressed on the Script dialog box when the script type is 'CX-Supervisor script'. To troubleshoot further: • Refer to the comprehensive CX-Supervisor Script Reference manual or on-line help for detailed information including examples on specific script instructions •...

  • Page 304: C.6.3 Runtime Errors, C.6.4 Design Errors, C.7 Plc Maintenance Dialog Box, C.8 Database Errors

    See the effect of optimisations as points are 'Disabled' C.8 Database errors The database connectivity can sometimes be problematic to configure correctly. To troubleshoot CX-Supervisor database functionality: • Try viewing and writing the data from another data source, for example Microsoft Access application for mdb files etc.

  • Page 305: C.10 Information Necessary To Send To Support

    Information necessary to send to Support Appendix C Troubleshooting always steps to reproduce although sometimes these can be difficult to find. It can be timing dependant ("you have to do this exactly 1.342 seconds later"!) or just very difficult to see a pattern. However in most cases problems are quite repeatable.

  • Page 306: Appendix D Cx-server Error Codes

    Appendix D CX-Server Error Codes When errors occur in the communication package, CX-Server, an error code may be displayed in the CX-Supervisor Error Log. To explain the cause of this error: • In the CX-Supervisor Error log, press the "Display Code Converter" button to launch the Error converter and show further details.

  • Page 307

    Appendix D CX-Server Error Codes Code Cause 0xnn12 The device or function is locked by another user or application. 0xnn13 The name specified does not exist or cannot be found. 0xnn14 The specified PLC name does not exist. 0xnn15 The specified Project cannot be found or created. 0xnn16 The operation cannot be performed as the correct access permissions have not be obtained.

  • Page 308: Appendix E Using With The Omron Dyalox, E.1 General Use, E.1.1 Installing Cx-supervisor

    Appendix E Using with the Omron DyaloX The CX-Supervisor Runtime can be installed on an Omron DyaloX Industrial PC which can also be purchased with the Runtime software preinstalled. The preinstalled bundle will run "Machine Edition" projects without a USB Dongle, but a PLUS dongle must be purchased to run PLUS projects.

  • Page 309: E.1.2 Communication Settings

    Appendix E Using with the Omron DyaloX E.1.2 Communication Settings The USB port can be used to communicate with compatible Omron hardware. The CX-Server USB drivers for the USB PLC must be installed manually if required, and can be found in the CX-Server installation directory.

  • Page 310: Appendix F Obsolete Features, F.1 Windows 98, Windows Me, Windows Nt

    3. View the Default Properties tab. Ensure that the Enable Distributed COM on this computer is checked. A CX-Supervisor Client running on Windows 98 or ME also requires the Microsoft Remote Registry network service to be installed with the operating system and correctly configured on both the server and client machine.

  • Page 311: F.3 Configuring A Dcom / Opc Server Pc Running Windows 98 Or Me

    Configuring a DCOM / OPC Server PC running Windows 98 or MeAppendix F Obsolete F.3 Configuring a DCOM / OPC Server PC running Windows 98 or 1, 2, 3… 1. Ensure File and Printer sharing is enabled by selecting Network from the Control Panel.

  • Page 312: F.3.2 System Points, F.4.1 Dde Client Points

    All CX-Supervisor DDE data transfers are carried out on points and are asynchronous transfers. There are two types of DDE points that can be created, namely 'DDE Client Points' and 'DDE Server Points'.

  • Page 313: F.4.2 Dde Server Points

    Appendix F Obsolete Features 2. Enter "DDE1" in the Point Name: field. 3. Set the I/O Attributes setting to DDE and click the Setup button. The DDE attributes dialog box opens. 4. Enter "Excel" in the Server Name: field. This is the name of the external DDE server application.

  • Page 314: F.4.3 Dde Array Points

    "DDESVR3" to a DDE Client application for read/write access. Note: Any CX-Supervisor point can be given DDE Access, even DDE Client points. F.4.3 DDE Array Points CX-Supervisor supports arrays in DDE, for both 'Client' and 'Server' transactions.

  • Page 315

    ENDIF F.4.3.2 DDE Script Functions The existing DDE Script functions DDEPoke() and DDERequest() can be used with any array points as the following example CX-Supervisor Scripts show: Example CX-Supervisor Script demonstrating DDEPoke() with arrays: chan = DDEInitiate("Excel", "Book1:Sheet2") IF chan > 0 THEN 'Send element 1 of 'RealArray' to Excel DDEPoke(chan, "R16C1", RealArray[1])

  • Page 316

    All the above points must have DDE Read/Write access set. F.4.3.3 DDE Server Array Points The value of an array point named 'ddearray' in a CX-Supervisor project called 'ddetest.srt' can be read from a Microsoft Excel worksheet by entering the following formula format into a cell.

  • Page 317

    End Sub F.4.3.5 Requesting Arrays from CX-Supervisor via DDERequest() Requesting arrays from CX-Supervisor and storing them in Microsoft Excel is a little more complicated than sending, in that both CX-Supervisor and Microsoft Excel need to know if the array is to be stored in rows or columns.

  • Page 318: F.5 Ole Automation, F.6 Ole Overview

    F.5 OLE Automation OLE Automation provides a mechanism whereby one application can control another. In order to access a CX-Supervisor points value via OLE Automation, it must be given either OLE Read or OLE Write access. This can be achieved by checking the appropriate box in the Advanced Point Settings dialog box when the point is created or modified.

  • Page 319: F.7 Object Packager, F.7.1 Creating An Object From New

    Object Packager Appendix F Obsolete Features Note: Packages may only be embedded or linked into CX-Supervisor pages if they are created using OLE-compliant applications. This applies to objects either directly linked or embedded within CX-Supervisor, and those inserted using the Object Packager.

  • Page 320

    Object Packager Appendix F Obsolete Features 2. Click the OK button to insert the object into the current page and display it as it would look from within the application in which the object was created. To display the object as an icon, click the Display As Icon setting. The icon displayed is the first one which is stored in the icon resource table for the application which created the object (in the case of the example shown, a Paintbrush icon).

  • Page 321: F.7.2 Creating An Object From A File

    It is often more appropriate to link to an object rather than embedding it in the current page. By linking to an object rather than embedding it CX-Supervisor always has access to the most up-to-date copy of the object every time the page containing it is opened.

  • Page 322: F.7.3 Activating An Object

    In the following example, the bitmap image when activated launches the Format Chart Area application to allow editing: When editing is complete, select Update and Exit from the application's File menu to return to CX-Supervisor. Note: The Update and Exit command varies from application to application.

  • Page 323: F.7.4 Converting A Package Object

    Appendix F Obsolete Features If the object is an animation or sound file, when activated it is played through until it ends, at which point control is returned to CX-Supervisor. Note: If the application which created the object no longer be available, CX- Supervisor reports an error.

  • Page 324: Appendix G Glossary Of Terms

    Bitmap 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. Boolean type A type of point where the value of the point can be one of two states.

  • Page 325

    PLC device and address information and to communicate with OMRON PLCs and their supported network types. Constant Within CX-Supervisor, a constant is a point within the script language that takes only one specific value. Control Object In CX-Supervisor, a control object is applied in the...

  • Page 326

    DLL files have a *.DLL extension. DLL's comprise a number of stand-alone functions. In CX-Supervisor, a DLL containing icons can be accessed to represent the display part of an OLE object. One such DLL, 'MORICONS.DLL', is provided in the standard Microsoft Windows installation.

  • Page 327

    CX-Supervisor Point and a particular field (i.e. column) within a recordset. Graphic Object In CX-Supervisor, a graphic object is created in the development environment, and can be a line, an arc, a polygon (including a square and rectangle), a round rectangle, an ellipse (including a circle), or a polyline.

  • Page 328: Appendix G Glossary Of Terms

    'FALSE', then NOT returns 'TRUE'. If a is a statement and is 'TRUE', then NOT returns 'FALSE'. Object In CX-Supervisor, an object can be text, graphics, a control, a bitmap, or ActiveX 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.

  • Page 329

    See also Boolean type, Integer type, point variable, Real type and Text type. Project A CX-Supervisor application will consist of one or a number of pages linked together. The pages may contain passive or active graphics, text or animations, and may be grouped together logically to form a project.

  • Page 330

    Microsoft Windows based applications to be started. CX- Supervisor is run from the Taskbar. Text Object In CX-Supervisor, a text object is a string on a page. Attributes such as typeface, point size, embolden, italicise, underline, left justify, flush right, and centre can be applied to enhance its presentation.

  • Page 331

    Appendix G Glossary of Terms Wizard Wizards are dialogs used by the CX-Supervisor development environment to take the user through complex operations in a simplified step-by-step process.

  • Page 332: Revision History

    Cat. No. W10E-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 333

    Revision history...

  • Page 334

    Authorized Distributor: Cat. No. W10E-EN-01 Note: Specif cations subject to change without notice. Printed in Europe...

Comments to this Manuals

Symbols: 0
Latest comments: