Intermec PB31 Fingerprint Developer's Guide (old) - Page 126

Clearing the Print Buffer With CLL and FIELDNO, OPTIMIZE BATCH ON|OFF

Page 126 highlights

Chapter 7 - Controlling the Printer As the printer prints the label, it empties the image buffer. High print speeds empty the image buffer more quickly. After the buffer is emptied, the printer processes the next bitmap pattern and stores it in the second image buffer. These Fingerprint commands can facilitate batch printing: • FIELDNO - Divides the program into portions that can be cleared individually. • CLL - Clears part or all of the image buffer. • OPTIMIZE "BATCH" ON|OFF If there are only small differences between the labels, write your program to use the CLL and FIELDNO instructions to manage the buffers first, and process variable data last. Should the printer stop between labels, lower the print speed somewhat. Usually, the overall time to produce a certain number of labels is more important than the actual print speed. For more information on adjusting the print speed, see the printer user's guide. Clearing the Print Buffer With CLL and FIELDNO The image buffer stores the bitmap pattern of the label layout between processing and printing. The image buffer can be cleared completely by a CLL statement, or partially by using a CLL statement and the FIELDNO function: • Complete clearing is obtained by a CLL statement without any reference to a field, and is useful to avoid printing a faulty label after certain errors have occurred. • Partial clearing is used in connection with print repetition when only part of the label should be modified between the copies. In this case, the CLL statement must include a reference to a field, specified by a FIELDNO function. When a CLL statement is executed, the image buffer is cleared from the specified field to the end of the program. In this example, the text "Month" is kept in the image buffer, and the names of the months are cleared from the image buffer as soon as they are printed: 10 FONT "Swiss 721 Bold BT",18 20 PRPOS 100,300 30 PRTXT "MONTH:" 40 PRPOS 100,200 50 A%=FIELDNO 60 PRTXT "JANUARY":PRINTFEED 70 CLL A% 80 FONT "Swiss 721 Bold BT",18 90 PRPOS 100,200 100 PRTXT "FEBRUARY":PRINTFEED 110 CLL A% 120 FONT "Swiss 721 Bold BT",18 130 PRPOS 100,200 140 PRTXT "MARCH":PRINTFEED 150 CLL A% RUN 110 Intermec 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
  • 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
110
Intermec Fingerprint Developer’s Guide
As the printer prints the label, it empties the image buffer. High print speeds empty
the image buffer more quickly. After the buffer is emptied, the printer processes the
next bitmap pattern and stores it in the second image buffer.
These Fingerprint commands can facilitate batch printing:
FIELDNO - Divides the program into portions that can be cleared individually.
CLL - Clears part or all of the image buffer.
OPTIMIZE “BATCH” ON|OFF
If there are only small differences between the labels, write your program to use the
CLL and FIELDNO instructions to manage the buffers first, and process variable
data last.
Should the printer stop between labels, lower the print speed somewhat. Usually, the
overall time to produce a certain number of labels is more important than the actual
print speed. For more information on adjusting the print speed, see the printer
user’s guide.
Clearing the Print Buffer With CLL and FIELDNO
The image buffer stores the bitmap pattern of the label layout between processing
and printing. The image buffer can be cleared completely by a CLL statement, or
partially by using a CLL statement and the FIELDNO function:
Complete clearing is obtained by a CLL statement without any reference to a
field, and is useful to avoid printing a faulty label after certain errors have
occurred.
Partial clearing is used in connection with print repetition when only part of the
label should be modified between the copies. In this case, the CLL statement
must include a reference to a field, specified by a FIELDNO function. When a
CLL statement is executed, the image buffer is cleared from the specified field to
the end of the program.
In this example, the text “Month” is kept in the image buffer, and the names of the
months are cleared from the image buffer as soon as they are printed:
10
FONT “Swiss 721 Bold BT”,18
20
PRPOS 100,300
30
PRTXT “MONTH:”
40
PRPOS 100,200
50
A%=FIELDNO
60
PRTXT “JANUARY”:PRINTFEED
70
CLL A%
80
FONT “Swiss 721 Bold BT”,18
90
PRPOS 100,200
100
PRTXT “FEBRUARY”:PRINTFEED
110
CLL A%
120
FONT “Swiss 721 Bold BT”,18
130
PRPOS 100,200
140
PRTXT “MARCH”:PRINTFEED
150
CLL A%
RUN