
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:
Summary of Contents for CX-SUPERVISOR - V2.0
Page 2: ...CX Supervisor User Manual Software Release 2 0...
Page 3: ......
Page 5: ...CX Supervisor User Manual OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor User Manual OMRON Page iv Revision 2 0...
Page 11: ...CX Supervisor User Manual OMRON Page viii Revision 2 0...
Page 13: ...CX Supervisor User Manual OMRON Page x Revision 2 0...
Page 15: ...CX Supervisor User Manual OMRON Page xii Revision 2 0...
Page 17: ...CX Supervisor User Manual OMRON Page xiv Revision 2 0...
Page 19: ...CX Supervisor User Manual OMRON Page xvi Revision 2 0...
Page 21: ...CX Supervisor User Manual OMRON Page xviii Revision 2 0...
Page 23: ......
Page 67: ......
Page 97: ......
Page 137: ...CHAPTER 7 Graphics Library OMRON Page 114 Release 2 0...
Page 183: ...CHAPTER 9 Animation OMRON Page 160 Release 2 0...
Page 215: ......
Page 263: ......
Page 269: ......
Page 274: ...OMRON CHAPTER 16 Connecting to Omron Industrial Components Release 2 0 Page 251...
Page 275: ......
Page 285: ......
Page 319: ......
Page 331: ......
Page 351: ......
Page 359: ...GLOSSARY OF TERMS CX Supervisor User Manual OMRON Page 336 Release 2 0...