Programming instructions
31
Intermec Fingerprint 6.13 – Programmer's Guide
5. FINGERPRINT PROGRAMMING, cont'd.
4. Programming Mode,
cont'd.
Programming without Line Numbers
You can choose to omit entering line numbers manually when
writing a program. This is a special case of the Programming Mode,
but in order to make the printer understand what you want to do, you
must turn off the Immediate Mode by means of an IMMEDIATE
OFF statement. (Normally, the firmware interprets the lack of line
numbers as Immediate Mode).
Then you can write the program line by line without having to type
a line number at the start of each line. In other respects, you can
generally work just as in the normal programming mode.
However, a major difference is when you want to make the
execution branch to a certain line, e.g. by a GOTO statement. You
cannot use line numbers to specify the line in question. Instead,
there is a feature called “line labels”. The line you want to refer to
must start with a line label, i.e. a number of characters appended by
a colon (:). The line label must not start with a digit or interfere with
any keyword (see chapter 4.8).
When you want to refer to a line marked with a line label, just enter
the line label (without any colon), where you otherwise would have
put the line number.
Finish the program by issuing an IMMEDIATE ON statement
before you RUN it. The lines will automatically be numbered 10-
20-30-40-50 etc., but the line numbers will not be visible until you
LIST the program. Line labels will not be replaced by line numbers.
Two simple examples show the difference between using line
numbers and line labels:
Line Numbers Line Labels
IMMEDIATE OFF
10 GOSUB 1000 GOSUB Q123
20 END END
1000 SOUND 440,50 Q123:SOUND 440,50
1010 RETURN RETURN
IMMEDIATE ON
RUN RUN
LIST LIST
10 GOSUB 1000 10 GOSUB Q123
20 END 20 END
1000 SOUND 440,50 30 Q123: SOUND 440,50
1010 RETURN 40 RETURN
Continued!
☞
Branching the Program Execution
Also see:
• Chapter 5.6 – 5.8