Testing and debugging utilities – Rockwell Automation 8520-9API 9/Series OCI API Developer's Guide User Manual

Page 47

Advertising
background image

3–26

OCI Basic Display Set (BDS)

Publication 8520-6.6 - August 1999

The following screen shows the english.stx file created when a
request is made to print the screen text in English. The left column
of this file contains the text pointer number, the right column
contains the screen text.

The Basic Display Set has built in testing and debugging utilities that
can simplify diagnosing problems with your modifications. There
are two different utilities provided:

Debugging – when this utility is enabled extensive error messages
appear in a MsgBox reporting detailed information on coding
errors.

Write to File – this utility writes program errors, data linking
errors, and data poke errors to their respective files.

Debugging Utility

The debugging utility enables a Message box which identifies errors.

The Debugging utility is only available when the source code is
loaded in the same directory as the Basic Display Set and the
variable DEBUGGING is set to True. Set this variable by one of
these methods:

Manually change the variable in source code
(DEBUGGING is found in Global.Bas InitGlobals) or

Manually change the variable FINAL_EXE to False

Testing and

Debugging Utilities

Advertising