
MotionBASIC
TM
Error Handler Table of Contents
TABLE OF CONTENTS
1. Welcome .................................................... 1
2. Description .................................................. 3
2.1 Operating The Error Handler (3)
2.2 Clearing The Faults (4)
2.3 Restarting The Machine (4)
3. Configuring The Module ........................................ 5
3.1 The Configuration Process (5)
4. Loading The Module ........................................... 9
4.1 Include Files (9)
4.2 Merging MBTools (10)
5. Modifying Your Program ........................................ 13
5.1 Steps Required To Modify Your Program (13)
5.2 Resolving Conflicts (14)
5.3 Initializing The Module (14)
5.4 Application Specific Error Traps (15)
5.5 Application Specific Shutdown Procedures (16)
5.6 Restart After Fault Procedures (16)
5.7 Invoking The Fault Menu (17)
5.8 Invoking From MENU.BAS (17)
6. Source Code Overview ......................................... 19
6.1 Faults vs Errors (20)
6.2 Response to Faults (20)
6.3 Description Of Subroutines (23)
ERR.INIT Subroutine (23)
ERR.HDLR Routine (23)
ERR.ESTOP Routine (23)
ERR.MENU Subroutine (24)
ERR.FLTS Subroutine (24)
ERR.CODES Subroutine (24)
ERR.AXIS Subroutine (25)
ERR.AFLT Subroutine (25)
ERR.APRN Subroutine (25)
ERR.MENUBAR Subroutine (25)
A1. Variables Used .............................................. 27
A2. Program Labels Used ......................................... 29
iii