Programming instructions
18
Intermec Fingerprint 6.13 – Programmer's Guide
3. CREATING A SIMPLE LABEL, cont'd.
12. 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:
MERGE "rom:ERRHAND.PRG" ↵
Instead of using a PRINTFEED statement, we will use a subroutine
in ERRHAND.PRG. Because ERRHAND.PRG assigns functions
to e.g. the PRINT key, you can create a loop in the program so you
will get a label every time you press the PRINT key.
160 GOSUB 500000 ↵
170 GOTO 170 ↵
RUN ↵
If your printer is fitted with a membrane keyboard, try pressing
different buttons on the printer's keyboard. Only those, to which
functions been assigned in ERRHAND.PRG (i.e. the <Pause>,
<Print>, <Setup> and <Feed> keys), will work.
You can break the program by simultaneously pressing the <C>
and <Pause> keys.
Save the program again using the same name as before:
SAVE "LABEL1"
The previously saved program "LABEL1.PRG" will be replaced
by the new version.
With this example, we hope you have got a general impression of
the basic methods for Intermec Fingerprint programming and that
you also see the advantages of using ERRHAND.PRG or a similar
program for errorhandling and initiation.
ERRHAND.PRG can easily be modified to fit into more complex
programs and we recommend that you use it when writing your
programs until you feel ready to create errorhandling programs
yourself (see chapter 16 “Error Handling”).
13. Using the Print Key
☞
Merging programs
Also see:
• Chapter 6.3
☞
Branching and Loops
Also see:
• Chapter 5.6 (GOTO)
• Chapter 5.7 (GOSUB)
Note:
The designations of the keys and buttons
in ERRHAND.PRG refer to the standard
type of keyboard of the “Enhanced”
models.