Specifications

103
ZPL Commands
^BY
9/15/06 ZPL II Programming Guide 45541L-004 Rev. A
^BY
Bar Code Field Default
Description The ^BY command is used to change the default values for the module width
(in dots), the wide bar to narrow bar width ratio and the bar code height (in dots). It can be
used as often as necessary within a label format.
Format ^BYw,r,h
This table identifies the parameters for this format:
For parameter
r, the actual ratio generated is a function of the number of dots in parameter w,
module width. See Table 11 on page 104.
Parameters Details
w = module width (in
dots)
Accepted Values: 1 to 10
Initial Value at power-up: 2
r
= wide bar to
narrow bar width
ratio
Accepted Values:
2.0 to 3.0, in 0.1 increments
This parameter has no effect on fixed-ratio bar codes.
Default Value: 3.0
h = bar code height
(in dots)
Initial Value at power-up: 10
Example • Set module width (w) to 9 and the ratio (r) to 2.4. The width of the narrow bar is
9 dots wide and the wide bar is 9 by 2.4, or 21.6 dots. However, since the printer rounds out
to the nearest dot, the wide bar is actually printed at 22 dots.
This produces a bar code with a ratio of 2.44 (22 divided by 9). This ratio is as close to 2.4 as
possible, since only full dots are printed.