Prints a CODABLOCK barcode: a stacked two-dimensional symbology of 1 to 44 rows for large amounts of data.
^BBo,h,s,c,r,mEach row starts and ends with its own start and stop pattern. CODABLOCK A uses the Code 39 character set and allows variable print ratios; F uses the Code 128 set and E the Code 128 set with an automatic FNC1 — both with a fixed ratio.
With ^BB the ^BY module width (2–10) applies to CODABLOCK A only, the ratio is fixed at 3, and the ^BY height is used as the overall symbol height only when ^BB's own h is empty. In modes E and F, function codes FNC1–FNC4 and the Code 128 <nul> are written with ^FH as hex 80–84; with ^CV active an invalid character prints an error instead of the barcode.
This command changes the printed label, but Labelixa's preview does not apply it yet. The linter reports it as ZPL1002, so you know the preview and the print will differ.
^XA
^FO100,75^BY3
^BBN,10,Y,15,,F
^FDCODABLOCK F SAMPLE DATA^FS
^XZCODABLOCK F, 15 characters per row, check characters on.
| Parameter | Description | Values | Default |
|---|---|---|---|
o | orientation | N · R · I · B | N |
h | row height; the guide multiplies it by the module width to get each row's height in dots | 2–32000 | 8 |
s | security level: add symbol check characters (never for single-row symbols; can be turned off only in mode A); each check character counts as two data characters | N · Y | Y |
c | characters per row (data columns) — sets the symbol width | 2–62 | — |
r | rows to encode; without c and r one row is printed, without c the data length divided by r gives the row width | A: 1–22 · E/F: 2–4 | — |
m | mode: A Code 39 set, F Code 128 set, E Code 128 set with automatic FNC1 | A · E · F | F |
Zebra ZPL II Programming Guide (P1134473-11EN Rev A), page 90. Zebra guide page →