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:

 

Symbology

Name

Options Used

1

Code 11

rotate,checkdigit,height,text,above

2

Interleaved 2 of 5

rotate,height,text,above,checkdigit

3

Code 39

rotate,checkdigit,height,text,above

4

Code 49

rotate,height,text,mode

5

Planet

rotate,height,text,above

7

PDF417

rotate,height,security,cols,rows,truncate

8

EAN-8

rotate,height,text,above

9

UPC-E

rotate,height,text,above,checkdigit

A

Code 93

rotate,height,text,above,checkdigit

B

CODEABLOCK

rotate,height,security,cols,rows,mode

C

Code 128

rotate,height,text,above,checkdigit,mode

D

UPS Maxicode

mode,symbolno,totsymbol

E

EAN-13

rotate,height,text,above

F

Micro PDF417

rotate,height,mode

I

Industrial 2 of 5

rotate,height,text,above

J

Standard 2 of 5

rotate,height,text,above

K

ANSI Codabar

rotate,checkdigit,height,text,above,start,stop

L

LOGMARS

rotate,height,above

M

MSI

rotate,checkdigit,height,text,above,chkhmn

O

Aztec

rotate,magfactor,ecis,errctrl,menusymbol,symbolno,appendid

P

Plessey

rotate,checkdigit,height,text,above

Q

QR Code

rotate,model,magfactor,hqml,nabk

R

RSS (Reduced Space Symb)

rotate,symboltype,magfactor,sepheight,height,segwidth

S

UPC/EAN extensions

rotate,height,text,above

T

TLC39

rotate,width39,ratio39,height39,heightpdf,widthpdf

U

UPC-A

rotate,height,text,above,checkdigit

X

Data Matrix

rotate,height,quality,cols,rows,formatid,escchar

Z

Postnet

rotate,height,text,above

 

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:

Mode 2: 3-digit class of svc, 3-digit country code, 9-digit zip code

Mode 3: 3-digit class of svc, 3-digit country code, 6-character zip code

 

Zebra requires this segment; the remaining segment format is specified by UPS.

Segment 2:

Data content as required by UPS, starting with the "[)>"+$1E$ header.

 

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