Programming instructions
30
Intermec Fingerprint 6.13 – Programmer's Guide
5. FINGERPRINT PROGRAMMING, cont'd.
Continued!
4. Programming Mode,
cont'd.
Note that the editing of the program takes place in the Immediate
Mode, while the execution is performed in the Programming Mode.
Often, programs are made as an autoexec (startup) file that starts up
automatically when the printer is turned on, and keeps on running
infinitely.
Important:
To send an instruction from the terminal to the printer, press the
Carriage Return key. In the programming examples later on in
this manual, this character will be omitted, but you must not forget
to enter it via the keyboard of the host.
Programming with Line Numbers
In this case you will start each line by manually entering a line
number. We recommend that you start with line number 10 and use
an increment of 10 between lines to allow additional lines to be
inserted later. To make the program easier to read, you can use a
space character between the line number and the instruction. If not,
the firmware will insert a space character automatically, that will
appear when the program is LISTed. Let us use the calculation
example from the Immediate Mode. It would look like this in the
Programming Mode:
10 ? ((5^2+5)\3)*5 ↵
RUN ↵
yields:
15
Ok
Let us have a look at the lines:
• The first line consists of a line number (10) followed by an
optional space character and the instruction ? ((5^2+5)\3)*5.
? is a shorthand form for the statement PRINT, which returns the
result of the calculation to the screen of the host). The line is
terminated by a Carriage Return character.
• Next line has no line number, and contains the statement RUN,
which orders the printer to execute all preceding numbered lines
in consecutive ascending order according to their line numbers.
• The result (15) will be displayed on the terminal's screen followed
by “Ok” to indicate that execution was successful.
In this manual, the programming examples will generally have line
numbers in order to make them easier to understand. For more
complex programs, programming without line numbers, as ex-
plained on next page, may be both easier and quicker.
☞
Autoexec-files (startup files)
Also see:
• Chapter 5.13