A Code 128 barcode — the most common linear barcode in shipping and logistics.
^BCo,h,f,g,e,mThis command is supported by the preview engine. Parameters ignored in the preview: g, e.
^BCN,100,Y,N,N^XA^PW609^LL406^FO40,60^BY2^BCN,140,Y,N,N^FDCODE128-DEMO^FS^XZ| Parameter | Description | Type | |
|---|---|---|---|
o | rotation | enum | Default: N · Options: N, R, I, B |
h | barcode height in dots; falls back to the ^BY height | int | Range: 1–32000 |
f | print the data below the barcode | enum | Default: Y · Options: Y, N |
g | print the data above the barcode | enum | Default: N · Options: Y, N · ignored in preview |
e | UCC check digit | enum | Default: N · Options: Y, N · ignored in preview |
m | mode: N=normal and A=automatic both produce plain Code 128; D=UCC/EAN and U=UCC Case produce GS1-128. In D (firmware x.11 and later) the printer calculates the check digit of AIs such as (00) and (01) and replaces the last digit, so 0 works as a placeholder | enum | Default: N · Options: N, U, A, D |
The marked parameters are part of the ZPL specification and work on a real printer; the preview engine ignores them today.
Zebra ZPL II Programming Guide (P1134473-11EN), page 94.
^BY · ^BE · ^BQ · ^BX · ^B3 · ^B7 · ^B1 · ^B2 · ^B8 · ^B9 · ^BA · ^BI · ^BJ · ^BK · ^BM · ^BU · ^BR · ^B0 · ^BO · ^BF · ^BD