C O N F I D E N T I A L
Paper roll
Usable application programs and tips
Ver. 4.0
p. 955
Tips (bar code printing)
Some printers such as the TM-T88II and TM-L60II support bar code printing. ESC/POS supports UPC-A, UPC-E,
JAN13(EAN13), JAN8(EAN8), CODE39, ITF (interleaved 2 of 5), CODABAR(NW7), CODE93, and CODE128.
When the standard mode is selected, a bar code and a character cannot be printed on the same printing line
and a ladder bar code cannot be printed. Page mode, which has a flexible layout for printing a character, a
bit image, and a bar code, should be selected when printing a bar code and a character on the same line or
printing a ladder code. When page mode is selected, a character and a bar code can be overlapped but the
bar code cannot be read. Be sure to check data layout so that a bar code can be read.
Basic processing for bar code printing (example):
Procedures:
1. Select a bar code height with
GS h
. The height of a HRI character cannot be selected by
GS h
.
2. Select a bar code width with
GS w
.
3. Select the printing position for HRI characters with
GS H
.
4. Select a font for HRI characters with
GS f
. The setting affects only the HRI characters.
5. Print a bar code with
GS k
.
Procedures 1 to 4 can be omitted. If there is no specified value, a default value is used. The settings from 1
to 4 are effective until the printer is initialized (
ESC @
), reset, or is turned off.
GS k
in procedure 5 supports
both functions “storing a bar code data in the print buffer” and “printing.” Therefore, no print command is
needed.