What ^BC does
^BC creates a Code 128 barcode, the most common 1D symbology on shipping and carrier labels. It encodes full ASCII compactly and supports automatic subset switching. Amazon FBA, UPS, and FedEx tracking barcodes are typically Code 128.
Syntax
^BCo,h,f,g,e,mParameters
| Parameter | Description | Values | Default |
|---|---|---|---|
o | Orientation | N, R, I, B | — |
h | Bar height, dots (uses ^BY if omitted) | — | — |
f | Print interpretation line | Y, N | Y |
g | Interpretation line above | Y, N | N |
e | UCC check digit | Y, N | N |
Example
^XA
^BY2,3,120
^FO50,50^BCN,120,Y,N,N^FD1Z999AA10123456784^FS
^XZPaste this into the free ZPL viewer to see it render, or convert it to PDF.
Notes & tips
- Set height/width via ^BY before ^BC.
- Field data goes in the ^FD that follows.
Related commands
See the full ZPL command reference for all 92 documented commands.
