Programming instructions

48
Intermec Fingerprint 6.13 – Programmer's Guide
Renaming a Program
To rename a program, LOAD it, SAVE it under a new name, and
finally KILL the original program.
Example (renames LABEL1.PRG with the name LABEL2.PRG):
LOAD "LABEL1.PRG"
SAVE "LABEL2.PRG"
KILL "LABEL1.PRG"
Note: The same general principles also apply to files!
Saving in EPROM:s and Non DOS-formatted Memory Cards
Saving a program or file in the printer's read-only memory ("rom:"),
i.e. EPROM's, or non DOS-formatted memory cards requires
special equipment such as a PROM programmer and special
software (Toolbox).
You can edit and test the program in the printer's working memory
as described earlier in this chapter. When it works properly, LIST
it back to the host computer. Save the file in the host and convert it
to a format suitable for the PROM programmer or the memory card
programming device.
Creating a Startup Program
The MKAUTO.PRG program is used to create so called startup
programs or autoexec-files, i.e. programs that will be LOADed and
RUN automatically as soon as the power to the printer is turned on.
Usually, a startup program contains some kind of loop which makes
it run infinitely, awaiting some input or action from the operator.
“Autoexec” programs are very useful for applications when one
single program is to be run all the time.
The MKAUTO.PRG program is included in all Fingerprint
EPROMs.
Startup files can be stored in RAM, ROM or in optional memory
cards. Each part of the memory can hold one startup file
1
. If there
are more than one startup file in the printer's entire memory, they
will be used with the following priority:
1. Inserted DOS-formatted memory card ("card1:")
2. Printer's RAM memory ("ram:")
3. Inserted Non DOS-formatted memory card ("rom:")
4. Printer's ROM memory ("rom:")
The MKAUTO.PRG program consists of the following lines:
10 OPEN "AUTOEXEC.BAT" FOR OUTPUT AS 1
20 INPUT "Startup file name:",S$
30 PRINT#1,"RUN";CHR$(34);S$;CHR$(34)
40 CLOSE1
5. FINGERPRINT PROGRAMMING, cont'd.
13. Saving the Program,
cont'd.
Continued!
1
/. There must not be more than one startup
program in each part of the memory, i.e.:
DOS-formatted memory cards:
Max. one startup program per card.
Printer's RAM memory:
Max. one startup program.
Non DOS-formatted memory cards:
Max. one startup program per card.
Printer's RAM memory:
Max. one startup program.