Programming instructions
49
Intermec Fingerprint 6.13 – Programmer's Guide
5. FINGERPRINT PROGRAMMING, cont'd.
13. Saving the Program,
cont'd.
Creating a Startup Program, cont'd.
A startup program can easily be created from an ordinary program
using the following method:
• After having written and tested the program, SAVE it.
• Enter the following statement:
RUN "rom:MKAUTO"
• The following prompt will be displayed on the screen:
STARTUP FILE NAME?
• Type the name of the program you just SAVEd (with or without
the extension .PRG) and press the Carriage Return key.
• “Ok” on the screen indicates that the operation is ready.
• The startup program will be stored in the printer's current directory
(by default "ram:", i.e. the printer's RAM memory).
• When you restart the printer, the new startup program will start
running, provided there is no other startup program with higher
priority (see previous page).
To undo the operation, use the statement:
KILL "AUTOEXEC.BAT"
This will not erase the original program, but it will no longer be used
as a startup program. Note that you cannot KILL startup programs
stored in EPROM:s or Non DOS-formatted memory cards.
In most cases startup programs are stored in EPROM's, which
requires special equipment, such as an EPROM programming
device and the Toolbox software.
Rebooting the printer has the same consequences as turning off and
then on the power.
REBOOT
The REBOOT statement allows you to reboot the printer from the
host or as a part of the program execution. A typical example of the
use of REBOOT in a program is found in Intermec Shell, where the
printer is automatically rebooted when a new application has been
selected.
When the printer is rebooted, or the power to the printer is turned
on, a number of things happens (refer to the Fingerprint 6.13
Reference Manual, REBOOT statement for a complete list):
• The printer's working memory is erased, i.e. any program not
already SAVEd will be irrevocably lost, all buffers will be
emptied, all files will be closed, all date- and time-related formats
will be lost, all arrays will be lost and all variables will be set to
zero. Fonts and images stored in the no-save area of the printer's
RAM memory will be erased.
☞
Current Directory
Also see:
• Chapter 6.1
14. Rebooting the Printer
Continued!