Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›ZPL Command Matrix›^BB

^BB — CODABLOCK Barcode

Prints a CODABLOCK barcode: a stacked two-dimensional symbology of 1 to 44 rows for large amounts of data.

Syntax^BBo,h,s,c,r,m
In Labelixa's previewNot applied in the preview (ZPL1002)

What it does

Each 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.

In the preview

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.

Example

^XA
^FO100,75^BY3
^BBN,10,Y,15,,F
^FDCODABLOCK F SAMPLE DATA^FS
^XZ

CODABLOCK F, 15 characters per row, check characters on.

Parameters

ParameterDescriptionValuesDefault
oorientationN · R · I · BN
hrow height; the guide multiplies it by the module width to get each row's height in dots2–320008
ssecurity 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 charactersN · YY
ccharacters per row (data columns) — sets the symbol width2–62—
rrows to encode; without c and r one row is printed, without c the data length divided by r gives the row widthA: 1–22 · E/F: 2–4—
mmode: A Code 39 set, F Code 128 set, E Code 128 set with automatic FNC1A · E · FF

Source

Zebra ZPL II Programming Guide (P1134473-11EN Rev A), page 90. Zebra guide page →

^BY · ^B3 · ^BC · ^FH · ^CV

ZPL commands list and reference →

Try ZPL in the online viewer