Intermec PF4i Fingerprint Developer's Guide (old) - Page 117
Handling Errors With ERRHAND.PRG, Renumbering Lines When Merging Files, Merging Programs
View all Intermec PF4i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 117 highlights
Chapter 6 - Designing Bar Code Labels 15 (Optional) To save your program, enter the following text and then press Enter: SAVE "LABEL1" Your program is saved in the printer memory with the filename "LABEL1.PRG". Handling Errors With ERRHAND.PRG The program you just created is unlikely to have caused any errors. However, when writing more complex programs you may find use for an error handler. For this purpose, Intermec includes ERRHAND.PRG in the firmware. Note: To use ERRHAND.PRG you must merge it with your program. For information, see "Merging Programs" in this section. ERRHAND.PRG contains subroutines that displays the type of error on the printer display (for example, "Out of paper" or "Head lifted"), prints the error number on your screen, and assigns subroutines to some of the keys on the keyboard. There is also a subroutine that performs a PRINTFEED with error-checking. The ERRHAND.PRG occupies lines 10, 20, and 100000-1900000. Renumbering Lines When Merging Files If ERRHAND.PRG is merged with the program you just wrote, lines 10 and 20 in your program will be replaced with lines 10 and 20 from ERRHAND.PRG. Therefore you have to renumber your program, so that your program begins with an unoccupied number, for example 50, before ERRHAND.PRG is merged: RENUM 50,1,10 Ok LIST 50 60 70 80 90 100 110 120 130 140 150 160 170 180 Ok BARFONT ON BARFONT "Swiss 721 BT",6 PRPOS 10,10 PRBOX 400,340,15 PRPOS 30,30 PRIMAGE "GLOBE.1" PRPOS 75,270 BARTYPE "CODE39" PRBAR "ABC" PRPOS 75,220 FONT "Swiss 721 BT",6 PRTXT "My FIRST label" PRINTFEED END Merging Programs Now your label-printing program LABEL1.PRG will not interfere with ERRHAND.PRG and you can merge the two programs into a single program. In fact, you will create a copy of ERRHAND.PRG which is merged into LABEL1.PRG. Thus the original ERRHAND.PRG can be merged into more programs later: Intermec Fingerprint Developer's Guide 101