EasyManua.ls Logo

Omron CX-SUPERVISOR - V2.0 - Runtime Errors

Omron CX-SUPERVISOR - V2.0
370 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
APPENDIX C – Troubleshooting OMRON
Page 302 Release 2.0
CX-Supervisor Syntax errors
These are seen during development when OK is pressed on the Script dialog 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
As a test, use hardcoded values for parameters using known valid values
Runtime errors
If any script has correct syntax but generates an error at runtime e.g. trying to open a file that does not
exist, the error is recorded in the Error Log.
To troubleshoot further:
To confirm the line causing the problem, temporarily comment it out and see if the error is no
longer reported.
Display values using ‘MsgBox’/’Message’ command or using the LogEvent command.
Design errors
The only remaining errors are when the script compiles and runs correctly, but do not produce the
expected results. These are typically errors in the design of the script.
To troubleshoot further:
Confirm path of execution using ‘MsgBox’/’Message’ in all conditional branches.
Display values using ‘MsgBox’/’Message’ command.
PLC Maintenance dialog
The PLC Maintenance dialog is launched by right clicking and selecting PLC Maintenance. After
choosing the PLC you can:

Table of Contents

Related product manuals