← All guides

^BY · Barcode Field Default

Defines module width and default barcode height.

Values

Example: ^BY3,2,80 (module, ratio, height)

Example

^XA
^BY3,2,100
^FO50,50^BCN,100,Y,N,N^FD123456789^FS
^XZ

Tip

Use ^BY before barcode commands (^BC, ^B3, ^BE, etc.).

Frequently asked questions

What is ^BY used for in ZPL?

See the description and values above: they explain what ^BY does and how to use it inside a ZPL label.

How do I test ^BY without a printer?

Copy the example, paste it into the ZPL viewer and see the result instantly in your browser.

Related tools