ZPL barcode guide

ZPL ^BC Code 128 Barcode

^BC creates Code 128 barcodes. The printed result depends on ^BY, barcode height, quiet zones, density, and label material.

^BCCode 128Scanner
Check barcode readiness

Basic ^BC sample

Use ^BY to set module width before ^BC. Small module width changes can decide whether a handheld scanner reads the label reliably.

^XA
^PW812
^LL406
^FO50,80^BY3,3,140
^BCN,140,Y,N,N
^FDABC123456789^FS
^XZ

Check encoded data, not decorative bars

Use ABC123 with ^BCN,70,Y,N,N and ^BY2. Generate a real PNG, then decode it and compare the payload. HRI is the text under the symbol; turning it off must not add a duplicate text field. If a valid long payload clips at the right edge, reduce module width only within scanner limits or enlarge the canvas. Do not stretch a finished image.

^XA
^FO20,20^BY2
^BCN,70,Y,N,N^FDABC123^FS
^XZ
ZPL ^BC Code 128 Barcode Guide