7265 Programmer’s Manual 33
Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar Codes
Chapter 3. ANSI Bar Codes
This chapter describes the characteristics and lists ANS I control sequences for 23 resident bar
code styles. You have to be in ANSI emulation to print th e resident bar codes. You can adjust
various bar code attributes including rotation, height, pr int density, status of the human-readable
line, and element widths. Subject to some constraints bas ed on style and rotation, the human-
readable font is also selectable. For some styles, the pr inter will calculate checksum characters
for you.
To print a bar code symbol, you need to:
1) Set the printer to ANSI emulation.
2) Send the escape sequence to set the user-adjustable attributes . Always do this at least
once.
3) Send the control sequence to turn on bar code.
4) Send the ASCII representation of symbol data you want to encod e.
5) Send the control sequence to turn off bar code.
6) Send a line terminator at some point thereafter.
In bar code parlance, a module is the narrowest nominal width of measure, while an element is a
single bar or space. A character is a group of elements that r epresents a number, letter, or
punctuation mark. A symbol is a group of characters that can stand alone in terms of being
interpreted by the reader. A symbol always comprises one or m ore data characters framed by
white spaces known as quiet zones. The symbol frame almost always includes start and stop
characters. Depending on the style, some bar code symbols can also include check characters,
center characters, and guard bars.
Among printers that generate bar codes internally and that a lso support any user-adjustment of
bar code widths, some enable the specification of module width, while others, such as this one,
enable the adjustment of element widths. From the program mer's point of view, adjustable
module widths tend to guarantee that the ratio among elem ent widths remains correct, while
adjustable element widths afford more flexibility.
When we ship the printer, the ratios among element widths in a given bar code style are within
generic specifications for that style. You can restore thes e default element widths by performing
an initial setup (ISU) as described in the User's m anual. Since this printer lets you specify
element widths independently of each other, it is possibl e to print bar codes that are outside of
generic specifications, or outside of the limits of your part icular reading system, or both. You need
to know the requirements of your system before you program your printer.
Bar codes printed with this printer are suitable for readers designed for low- or medium-density
bar code symbols. Avoid readers with apertures smaller t han 7 mils. If bar codes are to be read
with an infrared reader, then you must use a special carbon r ibbon.
The examples given in this section use the Code 3-of-9 for mat.