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›^B5

^B5 — Planet Code Barcode

Prints a PLANET Code barcode, the US postal symbology; resident on all printers and limited to the digits 0–9.

Syntax^B5o,h,f,g
In Labelixa's previewDrawn in the preview

What it does

^B5 takes digits only. Like the other ZPL barcodes it reads its module width from ^BY, and its height falls back to the ^BY height when h is empty. The same symbology is also available through ^BZ with t=1.

In the preview

Labelixa's preview draws this command.

Example

^XA
^FO150,100^BY3
^B5N,100,Y,N
^FD01234567890^FS
^XZ

Three-dot modules, 100 dots high, interpretation line below the bars.

Parameters

ParameterDescriptionValuesDefault
oorientationN · R · I · B^FW
hbarcode height in dots1–9999^BY
fprint the interpretation lineN · YN
gprint the interpretation line above the barcodeN · YN

Source

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

^BZ · ^BY · ^FD

ZPL commands list and reference →

Try ZPL in the online viewer