MotionBASIC
TM
Error Handler
Loading The Module
Chapter 4
Loading
The Module
4. Loading The Module
There are three steps to adding the Error Handler Module to your program:
1.
First, you must configure the module using MotionPRO’s off-line editor.
Chapter 1 described this step.
2.
Second, you merge ERRMENU.BAS, and any other MBTools you want
to use, into the controller’s Setup Area.
3.
Third, you modify your program to work with the Error Handler Module.
This chapter describes how to do step two.
4.1 Include Files
The best way to merge MBTools modules with your program is to use
MotionPRO’s INCLUDE directive. Using the off-line editor, you should create a
file called MBTOOLS.BAS.
Figure 3, MBTOOLS.BAS Include File
’!INCLUDE "C:\ORMEC\BAS\MBTOOLS\IOMENU.BAS",40000,1,40999
’!INCLUDE "C:\ORMEC\BAS\MBTOOLS\ERRMENU.BAS",41000,,41999
’!INCLUDE "C:\ORMEC\BAS\MBTOOLS\MENU.BAS",42000,,42999
’!INCLUDE "C:\ORMEC\BAS\MBTOOLS\MISC.BAS",43000,,43999
GN3-ERRb
page 9
Summary of Contents for MotionBASIC
Page 3: ...ii...
Page 5: ...MotionBASICTM Error Handler Table of Contents A3 Complete Program Listings 31 iv...
Page 6: ...v...
Page 8: ...vii...
Page 10: ...MotionBASICTM Error Handler Welcome THIS PAGE INTENTIONALLY LEFT BLANK page 2 GN3 ERRb...
Page 37: ...MotionBASICTM Error Handler Appendix A1 GN3 ERRb page 29...
Page 38: ...MotionBASICTM Error Handler Appendix A1 THIS PAGE INTENTIONALLY LEFT BLANK page 30 GN3 ERRb...
Page 40: ...MotionBASICTM Error Handler Appendix A2 THIS PAGE INTENTIONALLY LEFT BLANK page 32 GN3 ERRb...