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
Содержание MotionBASIC
Страница 3: ...ii...
Страница 5: ...MotionBASICTM Error Handler Table of Contents A3 Complete Program Listings 31 iv...
Страница 6: ...v...
Страница 8: ...vii...
Страница 10: ...MotionBASICTM Error Handler Welcome THIS PAGE INTENTIONALLY LEFT BLANK page 2 GN3 ERRb...
Страница 16: ...MotionBASICTM Error Handler Configuring The Module THIS PAGE INTENTIONALLY LEFT BLANK page 8 GN3 ERRb...
Страница 20: ...MotionBASICTM Error Handler Loading The Module THIS PAGE INTENTIONALLY LEFT BLANK page 12 GN3 ERRb...
Страница 26: ...MotionBASICTM Error Handler Modifying Your Program THIS PAGE INTENTIONALLY LEFT BLANK page 18 GN3 ERRb...
Страница 35: ...MotionBASICTM Error Handler Source Code Overview THIS PAGE INTENTIONALLY LEFT BLANK GN3 ERRb page 27...
Страница 37: ...MotionBASICTM Error Handler Appendix A1 GN3 ERRb page 29...
Страница 38: ...MotionBASICTM Error Handler Appendix A1 THIS PAGE INTENTIONALLY LEFT BLANK page 30 GN3 ERRb...
Страница 40: ...MotionBASICTM Error Handler Appendix A2 THIS PAGE INTENTIONALLY LEFT BLANK page 32 GN3 ERRb...