Specifications

Table Of Contents
^BY
Bar Code Field Default
Description: The ^BY command is used to change the default values for the Narrow
Element Module (Narrow Bar or Space) Width, the Wide Bar to Narrow Bar Width
Ratio and the Bar Height. It can be used as often as necessary within a label format.
Format: ^BYw,r,h
Parameters:
w = module (narrow bar) width (in dots)
Accepted Values: 1to10
Initial Value at Power-up: 2
r = wide bar to narrow bar width ratio
Accepted Values: 2.0 to 3.0, in .1 increments
(no effect on fixed ratio bar codes)
h = height of bars (in dots)
Accepted Values: 1 to 32000
Initial Value at Power-up: 10
For parameter r, the actual ratio generated is a function of the number of dots in
parameter w, narrow bar (module). Refer to the table “Bar Code Print Ratios” on the
following page.
For 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 x 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.
Module width and height (w and h) may be changed at anytime with the ^BY
command regardless of the symbology selected.
ZPL II Programming Guide Volume One: Command Reference for X.10
79