Programming instructions
160
Intermec Fingerprint 6.13 – Programmer's Guide
15. PRINTER FUNCTION CONTROL, cont'd.
11. Version Check
VERSION$
The VERSION$ function returns one of three characteristics of the
printer:
VERSION$(0) returns the firmware version (e.g. “Inter-
mec Fingerprint 6.13”)
VERSION$(1) returns the printer family (e.g. “501”).
VERSION$(2) returns the CPU board generation (e.g.
“hardware version #4”).
This instruction allows you to create programs that will work with
several different printer models. For example, you may use the
VERSION$ function to determine the type of printer and select the
appropriate one of several different sets of setup parameters.
Example (sets the setup according to the type of printer):
10 A$=VERSION$(1)
20 IF A$="101" THEN GOTO 1000
30 IF A$="201" THEN GOTO 2000
40 IF A$="401" THEN GOTO 3000
50 IF A$="501" THEN GOTO 4000
60 IF A$="601" THEN GOTO 5000
70 .....
80 .....
1000 SETUP "SETUP101.SYS"
1010 GOTO 70
2000 SETUP "SETUP201.SYS"
2010 GOTO 70
3000 SETUP "SETUP401.SYS"
3010 GOTO 70
4000 SETUP "SETUP501.SYS"
4010 GOTO 70
5000 SETUP "SETUP601.SYS"
5010 GOTO 70