Programming instructions
19
Intermec Fingerprint 6.13 – Programmer's Guide
1. Lines
4. TERMINOLOGY AND SYNTAX
Continued!
You will always use one or several lines to give the instructions to
the printer, regardless whether you work in the immediate mode, in
the programming mode, or in the Direct Protocol. The difference
is that in the programming mode, the lines are always numbered
(visibly or invisibly), whereas in the immediate mode and the
Direct Protocol, they must not be numbered.
A line may contain up to 300 characters. A line must always be
terminated by a Carriage Return character (ASCII 13 decimal), see
note. When the line reaches the right edge of the screen of the host,
it will usually wrap to the next screen line.
Theoretically, line numbers up to > 2 billion can be used. If you
choose to enter the line numbers manually, start by numbering the
lines from 10 and upwards with an increment of 10, i.e. 10, 20, 30,
40 etc. That makes it possible to insert additional lines (e.g.
11,12,13...etc.), when the need arises. However, the line numbers
are your own decision, since you must type them yourself.
You can also omit line numbers at edition and let the software
number the lines automatically. Such line numbers will not be
visible before the program is listed.
After having typed the line number, use a blank space to separate
it from the statement or function that follows. That makes it easier
to read the program without having to list it.
Several instruction may be issued on the same line, provided they
are separated by colons (:), e.g.:
100 FONT "SW030RSN":PRTXT "HELLO"
This is especially useful in the immediate mode (see chapter 5.3)
and in the Direct Protocol, where you can send a complete set of
instructions as a single line, e.g.:
PP100,250:FT"SW050BSN":PT"Text 1":PF ↵
It is not possible to alter a line after it has been transmitted to the
printer. If you want to change such a line, you must send the whole
line again using the same line number, or delete it using a DELETE
statement (see chapter 5.4).
A statement is an instruction, which specifies an operation. It con-
sists of a keyword (e.g. PRTXT), usually followed by one or several
parameters, flags, or input data, which further define the statement.
The keyword can be entered as uppercase or lowercase letters but
will always appear as uppercase letters, when the program is listed
on the screen of the host. Some keywords can be used in an
abbreviated form, e.g. PRTXT may also be entered as PT.
Note:
If you enter a carriage return on your
terminal, the printer will, by default,
echo back a Carriage Return + a Line
Feed (ASCII 13 + 10 decimal). Using
the setup option “New Line", you may
restrict the printer only to echo back
either a Carriage Return (ASCII 13 dec.)
or a Line Feed (ASCII 10 dec.).
☞
Programming Mode
Also see:
• Chapter 5.4
☞
Immediate Mode
Also see:
• Chapter 5.3
☞
Intermec Direct Protocol
Also see:
• Intermec Direct Protocol,
Programmer's Guide
2. Statements
☞
Keywords
Also see:
• Chapters 4.7 and 4.8