Intermec PX4i Fingerprint Developer's Guide (old) - Page 139

Checking Immediate Mode and STDIO Status, Rebooting the Printer

Page 139 highlights

Chapter 7 - Controlling the Printer 10 20 30 40 50 60 70 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. Rebooting the Printer Rebooting the printer has the same consequences as switching the power off and then on. Use a REBOOT statement to reboot the printer as part of the program execution. When the printer is rebooted, a number of things happen: • The printer temporary memory ("tmp:") is erased, which means that programs not SAVEd to "/c" or "card1:" are lost, all buffers are emptied, all files are closed, all date- and time-related formats are lost, all arrays are lost, and all variables are set to zero. Fonts and images stored in the temporary memory are erased. • All parameters in the Fingerprint instructions are reset to default. • The printer performs a number of self-diagnostic tests, such as printhead resistance check and memory checksum calculations. • The printer checks for possible optional devices such as an interface board or cutter. • The printer memory is searched for possible startup programs. The first startup program found is executed. • The printer internal clock is reset to default, or updated from the real-time clock if one is installed. Intermec Fingerprint Developer's Guide 123

  • 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
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187

Chapter 7 — Controlling the Printer
Intermec Fingerprint Developer’s Guide
123
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
50
.....
60
.....
70
.....
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.
Rebooting the Printer
Rebooting the printer has the same consequences as switching the power off and
then on. Use a REBOOT statement to reboot the printer as part of the program
execution. When the printer is rebooted, a number of things happen:
The printer temporary memory (“tmp:”) is erased, which means that programs
not SAVEd to “/c” or “card1:” are lost, all buffers are emptied, all files are closed,
all date- and time-related formats are lost, all arrays are lost, and all variables are
set to zero. Fonts and images stored in the temporary memory are erased.
All parameters in the Fingerprint instructions are reset to default.
The printer performs a number of self-diagnostic tests, such as printhead
resistance check and memory checksum calculations.
The printer checks for possible optional devices such as an interface board or
cutter.
The printer memory is searched for possible startup programs. The first startup
program found is executed.
The printer internal clock is reset to default, or updated from the real-time clock
if one is installed.