What ^B8 does
^B8 encodes an EAN-8 symbol — the short, 8-digit version of EAN used on small retail packages. The field data must be exactly 7 digits; the printer calculates the 8th check digit automatically.
Syntax
^B8o,h,f,gParameters
| 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 |
Example
^XA
^FO50,50^B8N,100,Y,N^FD1234567^FS
^XZProvide 7 digits; the check digit is added by the printer.
Paste this into the free ZPL viewer to see it render, or convert it to PDF.
Notes & tips
- Requires exactly 7 numeric digits.
- Use ^BY to change bar width before ^B8.
Related commands
See the full ZPL command reference for all 92 documented commands.
