What ^B9 does
^B9 encodes UPC-E, the zero-suppressed 6-digit form of UPC-A used where space is tight. The field data is 6 digits and the printer adds the check digit.
Syntax
^B9o,h,f,g,eParameters
| Parameter | Description | Values | Default |
|---|---|---|---|
o | Orientation | N,R,I,B | N |
h | Bar height in dots | — | — |
f | Print interpretation line | Y,N | Y |
g | Interpretation line above code | Y,N | N |
e | Print check digit | Y,N | Y |
Example
^XA
^FO50,50^B9N,100,Y,N,Y^FD123456^FS
^XZPaste this into the free ZPL viewer to see it render, or convert it to PDF.
Notes & tips
- Field data is 6 digits.
- UPC-E is a compressed representation of UPC-A.
Related commands
See the full ZPL command reference for all 92 documented commands.
