^BY โ€” Barcode Field Defaults

ZPL course ยท ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

^BY โ€” Barcode Field Defaults

Goal

Set barcode defaults once with ^BY.

Description

^BY sets barcode defaults for the whole label: narrow-bar width in dots, wide-to-narrow ratio and bar height. Every barcode in the next lessons inherits them unless it overrides.

Example

^XA
^BY4,,80
^FX Wide bars, default ratio, 80-dot height for every barcode below.
^FO20,20^B3N,N,Y,N,N^FDBY-DEMO^FS
^XZ

Rendered ^BY label

Result

One ^BY governs the barcode below: 4-dot modules at 80-dot height.

Article author: Arthur Isaev