PLC Maintenance dialog box
Appendix C Troubleshooting
303
•
As a test, use hardcoded values for parameters using known valid values
C.6.3 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.
C.6.4 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.
C.7 PLC Maintenance dialog box
The PLC Maintenance dialog box is launched by right clicking and selecting
PLC Maintenance. After choosing the PLC you can:
•
Open and close the PLC
•
See if there are errors
•
Change the PLC Mode
•
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.
•
'Connect' to the database from the Developer to check Table and Field
names can be correctly read. Remember to disconnect before running if
the provider doesn't support multiuser connections (like the Excel
provider)
•
Note that every database function returns an error code to confirm if the
operation was successful. Always assign this to a temporary point and
after the call to check the value
•
When database errors occur, try calling DBGetLastError(). This will give a
textual description of the problem. As these errors are standard there is
often information about the cause of these errors available on the Internet
- just search for the exact text of the error
C.9 How to create steps to reproduce
The first step in troubleshooting is creating steps to reproduce the problem.
Not only does this help understand the problem but is a requirement so that
your potential fixes can be tested with confidence. Computers and software
are guaranteed to perform the same way with the given data and so there are
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...