Intermec PB51 Fingerprint Developer's Guide (old) - Page 125

Checking Printhead Status With FUNCTEST or FUNCTEST$, Reprinting Labels After Interruptions, About

Page 125 highlights

Chapter 7 - Controlling the Printer Checking Printhead Status With FUNCTEST or FUNCTEST$ The FUNCTEST statement checks the number of dots in the printhead and whether or not the printhead is lifted, and places the result in a string variable. The next example shows how to use FUNCTEST on a PF4i: 10 FUNCTEST "HEAD", A$ 20 PRINT "HEADTEST:", A$ RUN The printer returns (for example): HEADTEST: HEAD OK,SIZE:832 DOTS Ok The FUNCTEST$ function is similar to the FUNCTEST statement and is used for the same purpose. The next example shows how to use FUNCTEST$ on a PF4i: PRINT "HEADTEST:", FUNCTEST$ ("HEAD") The printer returns (for example): HEADTEST: HEAD OK,SIZE:832 DOTS Ok Reprinting Labels After Interruptions If an error occurs during batch printing, or if printing is otherwise interrupted, there are two ways to reprint lost or only partially printed labels without losing variable data, such as counter values. Instead of specifying the number of copies in a batch in a PRINTFEED statement, you can specify how many copies of the last printed label in a batch should be reprinted. The syntax is: PRINTFEED -1, For example, if a 100-label batch print job is interrupted by an out-of-ribbon condition during the printing of label #70, and you specified that 2 copies should be reprinted, label #70 will be printed twice when the error has been cleared. Note: You can only reprint the most recently printed label. The PRSTAT function can detect printing progress and report any print-related error conditions. This makes it possible to create an error-handling routine that automatically resumes interrupted print jobs and reprints lost labels. About Batch Printing Batch printing is the printing of many labels without stopping the media feed motor between the labels. The labels may be exact copies, or the labels may differ more or less in appearance. When a PRINTFEED is executed, the printer renders the program instructions into a bitmap pattern and stores the pattern in one of the two image buffers. The buffer compensates for differences between processing time and printing time. Intermec Fingerprint Developer's Guide 109

  • 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
109
Checking Printhead Status With FUNCTEST or FUNCTEST$
The FUNCTEST statement checks the number of dots in the printhead and whether
or not the printhead is lifted, and places the result in a string variable.
The next example shows how to use FUNCTEST on a PF4i:
10
FUNCTEST “HEAD”, A$
20
PRINT “HEADTEST:”, A$
RUN
The printer returns (for example):
HEADTEST: HEAD OK,SIZE:832 DOTS
Ok
The FUNCTEST$ function is similar to the FUNCTEST statement and is used for
the same purpose. The next example shows how to use FUNCTEST$ on a PF4i:
PRINT “HEADTEST:”, FUNCTEST$ (“HEAD”)
The printer returns (for example):
HEADTEST: HEAD OK,SIZE:832 DOTS
Ok
Reprinting Labels After Interruptions
If an error occurs during batch printing, or if printing is otherwise interrupted, there
are two ways to reprint lost or only partially printed labels without losing variable
data, such as counter values.
Instead of specifying the number of copies in a batch in a PRINTFEED statement,
you can specify how many copies of the last printed label in a batch should be
reprinted. The syntax is:
PRINTFEED -1,<number of copies to reprint>
For example, if a 100-label batch print job is interrupted by an out-of-ribbon
condition during the printing of label #70, and you specified that 2 copies should be
reprinted, label #70 will be printed twice when the error has been cleared.
The PRSTAT function can detect printing progress and report any print-related
error conditions. This makes it possible to create an error-handling routine that
automatically resumes interrupted print jobs and reprints lost labels.
About Batch Printing
Batch printing is the printing of many labels without stopping the media feed
motor between the labels. The labels may be exact copies, or the labels may differ
more or less in appearance.
When a PRINTFEED is executed, the printer renders the program instructions into
a bitmap pattern and stores the pattern in one of the two image buffers. The buffer
compensates for differences between processing time and printing time.
Note:
You can only reprint the most recently printed label.