BARCODE (ZEBRA) |
Top Previous Next |
Syntax
barcode col|{numexpr}, row|{numexpr}, ( "value" | {expr} ), symbology, height, spc-pixels, text [above|yes|no], rotate [90|180|270], ratio rvalue, checkdigit, start startc, stop stopc, ucc, mode m, security s, cols c, rows r, symbolno val, totsymbol val, chkhmn val, magfactor val, ecis val, errctrl val, menusymbol val, appendid val, model val, hqml val, nabk val, symboltype val, sepheight val, segwidth val, width39 val, ratio39 val, height39 val, heightpdf val, widthpdf val, quality val, escchar val
Description
col and row define the upper left corner of the barcode. If used, numexpr is a Business Basic expression that generates a numeric value for the column or row.
value is a literal value to barcode, expr is a Business Basic expression that generates the text to barcode.
symbology is one of:
Many options are required only by certain symbologies. The options used are given in the table above. For details about use and required values for options, see the ZPL reference manual available from Zebra Technologies Corporation (http://zebra.com).
For Maxicode, you may specify a mode of 2 for UPS US addresses, 3 for UPS non-US addresses, or 4 for non-UPS coding (the default is 2). The data must consist of 2 segments:
Segment 1:
Zebra requires this segment; the remaining segment format is specified by UPS. Segment 2:
For modes other than 2 or 3, segment 2 can contain variable content.
height is either an integer, interpreted as the number of pixels, or a decimal number, such as 20.0 or 40.6, interpreted as points (1/72 inch).
spc-pixels is the narrow bar width in pixels, from one to 10, defaulting to 2.
Following spc-pixels, the options can be in any order.
Rotate will rotate the barcode the given number of degrees.
Ratio will modify the wide bar to narrow bar ratio, from 2.0 to 3.0 in 0.1 increments. The default ratio is 2.0. Some symbologies have fixed ratios.
text or text yes will print the human readable value below the barcode. text above (or just above) will print this value above the barcode.
text no will not print the value, even if that is the default for the given symbology.
checkdigit will cause a checkdigit to be calculated and printed by the printer.
start char will set the start character, if used by the symbology.
stop char will set the stop character.
ucc will set the UCC Case Mode on code 128 barcodes.
mode m will set the mode code, which is symbology dependent. The UCC Case Mode may be set for code 128 with 'mode U'. The code 49 mode can be A for auto, or 0-5 as defined in the ZPL programmers' guide.
security n will set the security and/or error correction level for the PDF417 bar code. n can be a digit from 0 to 8.
cols c, rows r will set the cols and rows values for the PDF417 barcode. If not set, this barcode will assume a 1:2 row to column aspect ratio. c can range from 1 to 30, r from 3 to 90, and the product of c x r can't exceed 927.
For other options, see reference materials offered by Zebra Technologies Corporation (http://zebra.com).
Drivers: zebra only |