Programming instructions
28
Intermec Fingerprint 6.13 – Programmer's Guide
5. FINGERPRINT PROGRAMMING, cont'd.
To make the strings shorter, use the Fingerprint abbreviations.
Several statements can be issued on the same line separated by
colons (:), or on separate lines.
Examples:
A line of text can be defined and printed this way....
PP160,250:DIR3:AN4:FT"SW030RSN":PT"Hello":PF ↵
or this way...
PP160,250 ↵ (print start position)
DIR3 ↵ (print direction)
AN4 ↵ (alignment)
FT"SW030RSN" ↵ (font select)
PT"Hello" ↵ (text input data)
PF ↵ (print one copy)
As soon as a carriage return is received, the firmware checks the
instructions for syntax errors. Provided there is a working two-way
communication and the verbosity is on, the printer will either return
an error message or “Ok” to the host.
This type of communication works well and is easy to learn, but it
does not take full advantage of the flexibility and computing
capacity offered by the Fingerprint printers. For example, you
cannot save the labels in the printer but must download each new
label, and all error-handling must be taken care of by the host.
Rather than using the Immediate Mode, the Direct Protocol is
usually to prefer, since it allows variable input data to be combined
with predefined layouts, handles counters and contains a flexible
error-handler.
Beside printing text, bar codes and graphics, you can perform other
tasks in the Immediate Mode as well, e.g. calculation. Try typing
this instruction on the keyboard of the host:
? ((5^2+5)\3)*5 ↵ (↵ = Carriage Return key)
The calculation will be performed immediately and the result will
be returned to the screen of the host:
50
Ok
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.
3. Immediate Mode,
cont'd.
Continued!
☞
Standard Error-Handling
Also see:
• Chapter 16.1
☞
Intermec Direct Protocol
Also see:
• Intermec Direct Protocol,
Programmer's Guide