Programming instructions

17
Intermec Fingerprint 6.13 – Programmer's Guide
9. Saving the Program
3. CREATING A SIMPLE LABEL, cont'd.
Continued!
If you want to save your first attempt, issue the following instruc-
tion:
SAVE "LABEL1"
Your program will be saved in the printer's memory under the name:
LABEL1.PRG
The program above is very simple and there is a very small risk of
encountering any errors. When writing more complex programs,
you might find use for an errorhandler. For that purpose we have
installed a program called ERRHAND.PRG in the standard Con-
figuration EPROM's. Should your printer not contain any error-
handling program, you will find ERRHAND.PRG listed in chapter
16.4.
ERRHAND.PRG contains subroutines that e.g. displays the type of
error on the printer's LCD display (e.g. "OUT OF PAPER" or
"HEAD LIFTED"), prints the error number on your screen, and
assigns subroutines to some of the keys on the keyboard (if any).
There is also a subroutine that performs a PRINTFEED with error-
checking. The ERRHAND.PRG occupies lines 10, 20 and 100000–
1900000.
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,
e.g. 50, before ERRHAND.PRG is merged:
RENUM 50,1,10
Ok
LIST
50 BARFONT ON
60 BARFONT "SW030RSN"
70 PRPOS 10,10
80 PRBOX 400,300,10
90 PRPOS 25,25
100 PRIMAGE "GLOBE.1"
110 PRPOS 75,250
120 BARTYPE "CODE39"
130 PRBAR "ABC"
140 PRPOS 25,200
150 FONT "SW030RSN"
160 PRTXT "My FIRST label"
170 PRINTFEED
180 END
ok
11. Renumbering Lines
10. Error Handling
Saving
Also see:
Chapter 5.13
ERRHAND.PRG
Also see:
Chapter 16.4
Renumbering Program Lines
Also see:
Chapter 5.4