Sign In
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutionsAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›ZPL Command Matrix›^BC

^BC — Code 128

A Code 128 barcode — the most common linear barcode in shipping and logistics.

Syntax^BCo,h,f,g,e,m
CategoryBarcodes

In the preview

This command is supported by the preview engine. Parameters ignored in the preview: g, e.

Example

^BCN,100,Y,N,N

Runnable example

^XA^PW609^LL406^FO40,60^BY2^BCN,140,Y,N,N^FDCODE128-DEMO^FS^XZ

Open this label in the editor

Parameters

ParameterDescriptionType
orotationenumDefault: N · Options: N, R, I, B
hbarcode height in dots; falls back to the ^BY heightintRange: 1–32000
fprint the data below the barcodeenumDefault: Y · Options: Y, N
gprint the data above the barcodeenumDefault: N · Options: Y, N · ignored in preview
eUCC check digitenumDefault: N · Options: Y, N · ignored in preview
mmode: N=normal and A=automatic both produce plain Code 128; D=UCC/EAN and U=UCC Case produce GS1-128. In D (firmware x.11 and later) the printer calculates the check digit of (00), (01) and (02) and replaces the last digit, so 0 works as a placeholder; (410) to (415) GLN are printed with the digit givenenumDefault: N · Options: N, U, A, D

The marked parameters are part of the ZPL specification and work on a real printer; the preview engine ignores them today.

Code 128 →

Source

Zebra ZPL II Programming Guide (P1134473-11EN), page 94.

^BY · ^BE · ^BQ · ^BX · ^B3 · ^B7 · ^B1 · ^B2 · ^B8 · ^B9 · ^BA · ^BI · ^BJ · ^BK · ^BM · ^BU · ^BR · ^B0 · ^BO · ^BF · ^BD

Try this command in the preview