^BU — UPC-A
Plain English
The standard barcode on products in the US and Canada. **You supply 11 digits; the printer calculates the 12th (check digit).** Numeric-only — any non-digit causes the field to be rejected. The full 12-digit UPC-A renders below the bars.
When to use
For retail products in North America. If your UPC has 12 digits, supply only the first 11 — the printer recomputes the check digit. Letters or symbols in `^FD` will fail validation, not silently encode.
Syntax
^BUo,h,f,g,e
Parameters
| Parameter | Description |
|---|---|
o | Rotation: N, R, I, B |
h | Bar height in dots |
f | Show human-readable text: Y or N |
g | Text above: Y or N |
e | Check digit: Y or N (Y = printer prints the calculated 12th digit alongside, N = printed barcode only) |
Example
^XA ^FO50,50^BY2^BUN,80,Y,N^FD07123456789^FS ^XZ
11 numeric digits in `^FD`. The printer computes and appends the 12th check digit automatically.