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

^BY — Barcode Field Defaults

Sets the module width, ratio and height for the barcodes that follow.

Syntax^BYw,r,h
CategoryBarcodes

In the preview

This command is supported by the preview engine.

Example

^BY3,2,90

Runnable example

^XA^PW609^LL406^FO40,60^BY3^BCN,140,Y,N,N^FDBY-DEMO-123^FS^XZ

Open this label in the editor

Parameters

ParameterDescriptionType
wmodule (narrow bar) width in dotsintDefault: 2 · Range: 1–10
rwide-to-narrow bar ratio (2.0-3.0); unused in the previewstr
hbarcode height in dotsintDefault: 100 · Range: 1–32000

Source

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

^BC · ^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