Plain English

Sets the default size for all barcodes that follow. The "module width" controls how thick the thinnest bar is — bigger = easier to scan but takes more space. Set this once and it applies to all subsequent barcodes.

When to use

Before your first barcode command. Usually only needed once per label.

Syntax

^BYw,r,h

Parameters

ParameterDescription
wModule width: 1-10 dots (default 2). Thinnest bar width.
rWide-to-narrow ratio: 2.0-3.0 (default 3.0). For Code 39/ITF.
hDefault barcode height in dots (default 10)

Example

^XA
^FO50,50^BY3^BCN,100,Y^FD12345^FS
^XZ

^BY3 sets wider bars — easier to scan from distance

Try it in the playground View all ZPL commands