![background image](http://html1.mh-extra.com/html/omron/cx-supervisor/cx-supervisor_user-manual_744211303.webp)
Scripting errors
Appendix C Troubleshooting
302
•
'…Elements': Same as above except multiplied by number of array
elements per point. Ratio between Total Active Points and Total Active
Points Elements shows how well optimised (or badly like above) with use
of arrays.
•
Read Callbacks: Number of data postings from CX-Server.
•
MSecs since last callback: Milliseconds waited since last data.
•
Min, Max Average Callback interval: Calculation using above values.
•
Write …: Same as above but for the writing part of output (and I/O) points.
•
Data Changes: Number of inputs causing change of value.
C.6 Scripting errors
The scripting engines are very complex which provides many opportunities for
errors. This can be categorised as follows:
C.6.1 VBScript Syntax errors
These are seen during runtime as errors in the Error Log, often giving the line
and character of the error. Referring back to the original script should easily
display the problem. Note that if the @VBScript syntax is used within CX-
Supervisor script the line number reported refers just to the lines of VBScript,
with the @VBScript being line 1.
To troubleshoot further:
•
For specific help on VBScript language syntax see Microsoft's web site at
http://msdn.microsoft.com/scripting
•
Double check capitalisation, and objects names
•
See Appendix B FAQ, "What are the syntax differences between VBScript
and CX-Supervisor script?"
•
To confirm the line causing the problem, temporarily comment it out and
see if the syntax error is no longer reported
•
As a test, try to simplify complex script lines into 1 or more lines with single
instruction to identify which instruction is causing the error
•
As a test, simplify complex math formulae into several lines with single
operation to identify which operation is causing the error
•
As a test, use hardcoded values for parameters using known valid values
•
Display values using 'MsgBox' command or using the LogEvent command
•
Confirm path of execution using 'MsgBox' in all conditional branches
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
•
Double check capitalisation, and objects names
•
To confirm the line causing the problem, temporarily comment it out and
see if the syntax error is no longer reported
•
As a test, try to simplify complex script lines into 1 or more lines with single
instruction to identify which instruction is causing the error
•
As a test, simplify complex math formulae into several lines with single
operation to identify which operation is causing the error
Summary of Contents for CX-Supervisor
Page 1: ...CX Supervisor Software Cat No W10E EN 01 User Manual Software Release 3 1...
Page 3: ...Copyright Notice 2...
Page 16: ...15...
Page 17: ...16...
Page 27: ...Tip of the Day SECTION 1 Graphics Editor 26...
Page 35: ...CX Supervisor Preferences SECTION 2 Pages 34...
Page 79: ...Responding to Events SECTION 5 ActiveX Objects 78...
Page 115: ...Printing the Graphics Library SECTION 7 Graphics Library 114...
Page 181: ...Data Logging SECTION 11 Data Logging 180...
Page 201: ...Examples SECTION 12 Databases 200...
Page 243: ...Performance Monitor SECTION 16 Application Analysis Performance Monitor 242...
Page 253: ...Using with Omron s CX Server OPC SECTION 17 Using CX Supervisor as an OPC Cli 252...
Page 259: ...Creating a CX Supervisor Client application SECTION 18 Connecting to a remote CX 258...
Page 263: ...Adding a Point Linked to a Parameter SECTION 19 Connecting to Omron Industrial 262...
Page 271: ...Data Logging SECTION 20 Best Practices 270...
Page 275: ...Configuring a Server PC running Windows NT or 2000 Appendix A Configuring a PC 274...
Page 277: ...Appendix B Frequently Asked Questions 276...
Page 296: ...Appendix B Frequently Asked Questions 295...
Page 297: ...Appendix B Frequently Asked Questions 296...
Page 298: ...Appendix B Frequently Asked Questions 297...
Page 299: ...Appendix B Frequently Asked Questions 298...
Page 333: ...Revision history 332...