Programming instructions

32
Intermec Fingerprint 6.13 – Programmer's Guide
5. FINGERPRINT PROGRAMMING, cont'd.
4. Programming Mode,
cont'd.
Programming Instructions
There are a number of instructions that are used in connection with
the editing of programs in the Programming Mode:
NEW
Before you enter the first program line, always issue a NEW
statement in the Immediate Mode to clear the printer's working
memory, close all files and clear all variables.
Warning!
If there already is a program in the working memory, it will be
deleted and cannot be restored unless it has been SAVEd.
IMMEDIATE OFF
If you want to write the program without entering line numbers
manually, this statement should be issued in the Immediate Mode
before the first line is entered.
REM (')
To make the program easier to understand, you can enter remarks
and explanations on separate lines or in lines containing other
instructions. Any characters preceded by REM, or its shorthand
version ' (single quotation mark), will not be regarded as part of the
program and will not be executed. REM statements can also be used
at the end of lines, if they are preceded by a colon (:).
END
Usually, subroutines are entered on lines with higher numbers than
the main program. It is a good programming habit to finish the main
program with an END statement in order to separate it from the
subroutines. When an END statement is encountered, the execution
is terminated and all OPENed files and devices are CLOSEd.
IMMEDIATE ON
If you have issued an IMMEDIATE OFF statement before you
started to write the program, you must turn on the Immediate Mode
again by means of an IMMEDIATE ON statement before you can
start the execution, i.e. issue a RUN statement.
LIST
You can LIST the entire program, i.e. make the printer return the
lines to the screen of the host. You can also choose to list part of the
program or variables only. If you have edited the program without
line numbers, the numbers automatically assigned to the lines at
execution will now appear. LIST is usually issued in the Immediate
Mode.
Continued!