MotionBASIC
TM
Error Handler
Source Code Overview
6.2 Response to Faults
You will need to evaluate the way ERRMENU responds to faults and errors so
you can decide what modifications might be necessary to make ERRMENU
behave appropriately and safely in your application.
Figure 6 shows the program flow when a fault occurs.
R U N M A C H I N E
F A U L T
O R
E R R O R
O C C U R S
E R R . H L D R E R R . E S T O P
S U B R O U T I N E R O U T I N E
A P P L . E S T O P
D I S P L A Y
C H E C K D A T A
R A N G E L I M I T S E N T R Y R A N G E
A P P L I C A T I O N
T H E N R E S U M E
E R R O R S
S P E C I F I C E S T O P
S E Q U E N C E
N O T A
D A T A
E N T R Y
E R R O R
R E S U M E ,
E R R O R
A P P L . E R R . T R A P
H A L T
R E S U M E N E X T
F I X E D
W A I T 5 0 0
O R R E S U M E
C H E C K F O R
D I S A B L E
L A B E L
R E C O V E R A B L E
R E - A R M
E R R O R S E R R . H D L R
N O T A
R E C O V E R A B L E
E R R O R
G O T O G O S U B
E R R . E S T O P
E R R . M E N U
E R R . M E N U E N T E R
K E Y
A T T E M P T T O
D I S P L A Y F A U L T
C L E A R
S T A T U S F A U L T S
E S C A P E
K E Y
A P P L . R E S T A R T
G O T O
A P P L I C A T I O N
A P P L . R E S T A R T
R E S T A R T
S E Q U E N C E
Figure 6, Response to Faults
GN3-ERRb
page 21
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...