Kyocera TASKalfa 181 PRESCRIBE Commands Technical Reference Manual - Rev. 4.7 - Page 86

Linear Barcodes - scanner

Page 86 highlights

Chapter 5 Barcodes Linear Barcodes The printing system is capable of printing a wide variety of barcodes, with human-readable text if desired. The user need only specify the type of barcode and the data to be encoded. The printing system performs the rest of the work, including bar and space generation, symbol translation, insertion of start and stop codes, checksum calculation, interleaving, padding, zero suppression, and parity reversal. The scanability of barcodes is affected by the quality of the paper and the type of scanner used. Parameters of the BARC command enable the width of the bars and spaces to be Note adjusted to compensate for these factors. A certain amount of testing and experimentation may be needed to find the right parameter values for a particular set of conditions. PRESCRIBE uses the BARC (draw BARCode) command to execute barcodes. This printing system feature is described fully in this chapter. The BARC command uses the following format. BARC type, flag, 'string'[, short, tall[, bar1, bar2, bar3, bar4, space1, space2, space3, space4]]; The BARC command prints specified data in barcode form. The cursor is located at the top left corner of the barcode for types 0 to 38, 40 and 41, and at the bottom left corner of the barcode for type 39, and does not move. The type, flag, and string parameters are always required. The other parameters are optional. The type parameter is a number from 0 to 42 designating one of the barcode types listed in Numbers outside the range from 0 to 42 are regarded as type 15 (MSI barcode with no check digit). The flag parameter specifies whether (Y or y) or not (N or n) to print a human-readable text under the barcode. The text is printed in the printing system's current font. Any desired font can be obtained by placing a font selection command before the BARC command. The flag parameter for barcodes 39 and 40 (USPS) must be N. The string parameter gives the barcode data enclosed in apostrophes or quotation marks. The allowable length of the string and the characters that can be included depend on the barcode type. lists the allowed lengths and character sets. also lists a default character that is used to fill out strings shorter than the minimum length and which may be substituted for any illegal characters in the string. If the string is too long, it is truncated to the maximum allowed length. Examples: !R! UNIT I; BARC 11, N, '123456'; EXIT; !R! BARC 0, Y, '12345678910'; EXIT; 5-2

  • 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
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260

Chapter 5 Barcodes
5-2
Linear Barcodes
The printing system is capable of printing a wide variety of barcodes, with human-read-
able text if desired. The user need only specify the type of barcode and the data to be
encoded. The printing system performs the rest of the work, including bar and space gen-
eration, symbol translation, insertion of start and stop codes, checksum calculation, inter-
leaving, padding, zero suppression, and parity reversal.
Note
The scanability of barcodes is affected by the quality of the paper and the type of scanner
used. Parameters of the BARC command enable the width of the bars and spaces to be
adjusted to compensate for these factors. A certain amount of testing and experimentation
may be needed to find the right parameter values for a particular set of conditions.
PRESCRIBE uses the BARC (draw BARCode) command to execute barcodes. This
printing system feature is described fully in this chapter.
The BARC command uses the following format.
BARC
type
,
flag
, ’
string
’[,
short
,
tall
[,
bar1
,
bar2
,
bar3
,
bar4
,
space1
,
space2
,
space3
,
space4
]];
The BARC command prints specified data in barcode form. The cursor is located at the
top left corner of the barcode for types 0 to 38, 40 and 41, and at the bottom left corner of
the barcode for type 39, and does not move.
The
type, flag
, and
string
parameters are always required. The other parameters are
optional. The type parameter is a number from 0 to 42 designating one of the barcode
types listed in
Numbers outside the range from 0 to 42 are regarded as type 15 (MSI bar-
code with no check digit).
The
flag
parameter specifies whether (Y or y) or not (N or n) to print a human-readable
text under the barcode. The text is printed in the printing system’s current font. Any
desired font can be obtained by placing a font selection command before the BARC
command. The flag parameter for barcodes 39 and 40 (USPS) must be N.
The
string
parameter gives the barcode data enclosed in apostrophes or quotation marks.
The allowable length of the string and the characters that can be included depend on the
barcode type.
lists the allowed lengths and character sets.
also lists a default character that is used to fill out strings shorter than the minimum
length and which may be substituted for any illegal characters in the string.
If the string is too long, it is truncated to the maximum allowed length.
Examples:
!R! UNIT I; BARC 11, N, ’123456’; EXIT;
!R! BARC 0, Y, ’12345678910’; EXIT;