Specifications
The format for the ^BY instruction is:
^BYw,r,h
where
^BY = Change Bar Code Default Parameters
w = Module (Narrow Bar) Width
Initial power -up value: 2 dots
Acceptable values: 1-10 dots
r = Wide Bar to Narrow Bar Width Ratio
Initial power-up ratio: 3.0
Acceptable ratios: From 2.0 to 3.0 in .1 increments.
(No affect on Fixed Ratio bar codes.)
h = Height of Bars
Initial Power-up value: 10 dots,
Acceptable values: 1 dot to height of label
For parameter r, the actual ratio generated is a function of the number
of dots in parameter w, narrow bar (module). See Table - Bar Code
Print Ratios on previous page.
For example, select module width w at 9 and the ratio r at 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 (parameters w and h) may be changed at
anytime with the ^BY instruction regardless of the symbology
selected.
NOTE 1: Once a ^BY instruction is entered into a label format, it
stays in effect until the another ^BY instruction is encountered.
NOTE 2: Parameter b in the ^BY instruction is overridden by the
“h” parameter in any bar cod
e that comes after the ^BY instruction.
ZPL II COMMAND REFERENCE 175
C
O
M
M
A
N
D
R
E
F
E
R
E
N
C
E










