Intermec PC43d Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 130

Checking Hardware and Firmware Versions, Checking Immediate Mode and STDIO Status

Page 130 highlights

Chapter 7 - Controlling the Printer Checking Hardware and Firmware Versions The VERSION$ function returns one of three characteristics of the printer: • VERSION$(0) returns the firmware version (for example, "P10.03.006424"). • VERSION$(1) returns the printer family (for example, "PM43"). • VERSION$(2) returns the CPU board (for example, "Platform version 1.0"). VERSION$ allows you to create programs that 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. The next example selects a setup file according to the type of printer: 10 20 30 40 ... 1000 1010 2000 2010 3000 3010 A$=VERSION$(1) IF A$="PF2i" THEN GOTO 1000 IF A$="PF4i" THEN GOTO 2000 IF A$="PM4i" THEN GOTO 3000 SETUP "SETUP_PF2i.SYS" GOTO 50 SETUP "SETUP_PF4i.SYS" GOTO 50 SETUP "SETUP_PM4i.SYS" GOTO 50 Checking Immediate Mode and STDIO Status Use the IMMEDIATE statement to check the current Immediate Mode status or the status of the standard IN and OUT channels. IMMEDIATE MODE prints a line to the standard OUT port that shows the status (on or off) of the following modes: • Execution - On indicates that a Fingerprint application is running. • Immediate - On indicates the printer is in Immediate Mode. • Input - On indicates that Direct Protocol is enabled. • Layout input - On indicates that a layout is being recorded in Direct Protocol. • Debug STDIO (DBSTDIO) - On indicates that the debug standard IO is active. IMMEDIATE STDIO prints two lines to the standard OUT port with information on the current communication settings for the STDIN and STDOUT channels. 118 Fingerprint Developer's Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163

Chapter 7 — Controlling the Printer
118
Fingerprint Developer’s Guide
Checking Hardware and Firmware Versions
The VERSION$ function returns one of three characteristics of the printer:
VERSION$(0) returns the firmware version (for example, “P10.03.006424”).
VERSION$(1) returns the printer family (for example, “PM43”).
VERSION$(2) returns the CPU board (for example, “Platform version 1.0”).
VERSION$ allows you to create programs that 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.
The next example selects a setup file according to the type of printer:
10
A$=VERSION$(1)
20
IF A$=“PF2i” THEN GOTO 1000
30
IF A$=“PF4i” THEN GOTO 2000
40
IF A$=“PM4i” THEN GOTO 3000
...
1000
SETUP “SETUP_PF2i.SYS”
1010
GOTO 50
2000
SETUP “SETUP_PF4i.SYS”
2010
GOTO 50
3000
SETUP “SETUP_PM4i.SYS”
3010
GOTO 50
Checking Immediate Mode and STDIO Status
Use the IMMEDIATE statement to check the current Immediate Mode status or the
status of the standard IN and OUT channels.
IMMEDIATE MODE prints a line to the standard OUT port that shows the status
(on or off) of the following modes:
Execution - On indicates that a Fingerprint application is running.
Immediate - On indicates the printer is in Immediate Mode.
Input - On indicates that Direct Protocol is enabled.
Layout input - On indicates that a layout is being recorded in Direct Protocol.
Debug STDIO (DBSTDIO) - On indicates that the debug standard IO is active.
IMMEDIATE STDIO prints two lines to the standard OUT port with information
on the current communication settings for the STDIN and STDOUT channels.