Intermec PC23d Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 138
Commands for Error-Handling Routines, Branching to Subroutines With ON ERROR GOTO...
View all Intermec PC23d manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 138 highlights
Chapter 8 - Error Handling Commands for Error-Handling Routines This section describes Fingerprint commands you use to create error-handling routines. Branching to Subroutines With ON ERROR GOTO... Use ON ERROR GOTO... to branch execution to a subroutine if any kind of error occurs when a program is run. The error can be identified and managed, and program execution can be resumed at an appropriate program line. For more information, see "Instructions for Conditional Branching" on page 18. Checking Error Codes with ERR and ERL ERR returns the reference number of an error that has occurred. For more information, see the Error Codes topic in the Fingerprint Command Reference Manual. ERL returns the number of the line on which an error has occurred. Resuming Execution After Errors This statement resumes execution after the error has been handled in a subroutine. Execution can be resumed at the statement where the error occurred, at the statement immediately following the one where the error occurred, or at any other specified line. For more information, see "Instructions for Conditional Branching" on page 18. Returning Print Job and Printhead Status with PRSTAT In addition to returning insertion point and field information, PRSTAT can return print job and printhead status, including multiple error conditions. Calling PRSTAT without parameters returns a numeric value. If 0 returns, the printer is OK. Any other value indicates a print job or printhead error condition, or some combination of error conditions as shown in the next table. PRSTAT Error Values Value 0 1 2 4 8 16 32 128 Description Printer is OK Printhead lifted Label not removed (valid if Label Taken Sensor is installed, and returns 0 if printer has no LTS) Label Stop Sensor does not detect a label Printer out of thermal transfer ribbon, or the printer is set for direct thermal printing, a ribbon is installed Printhead voltage too high Printer is feeding Printer out of media 126 Fingerprint Developer's Guide