Bar Code
2-42
Draft document
USAGE NOTES
• The printer must receive the Setup command ESC [ f prior to the ESC [ p
command.
• The barcode prints after the printer receives the LF line feed command.
• The printer may ignore this command in the following conditions:
– The barcode print area exceeds the left or right margin.
– The barcode print area exceeds the page margin.
– Undefined data is included in the command. In this case, the command
strings defined "n1,n2" are ignored.
• n1 and n2 specify:
– n1, n2 show data quantity following ESC [ p n1, n2.
– n1 is a low byte of command length data in hexadecimal.
– n2 is a high byte of command length data in hexadecimal.
– If an undefined value is found in the data string, the printer will ignore all the
received barcode data with a length defined as n1, n2.
– Valid n1, n2 values are listed in the following table:
Table 2-22: Barcode Data n1, n2 values
n1 (low byte) OFF
a
a. Automatic check digit generation flag is OFF.
n1 (low byte) ON
b
b. Automatic check digit generation flag is ON.
n2 (high byte)
c
c. The value of n2 does not change based on the check digit generation flag status.
Decimal Hexadecimal Decimal Hexadecimal Decimal Hexadecimal Barcode Style
13 0D 12 0C 0 00 EAN-13
8 08 7 07 0 00 EAN-8
1 to 255 01 to FF 1 to 255 01 to FF 0 00 CODE 39
1 to 255 01 to FF 1 to 255 01 to FF 0 00 INTERLEAVED 2 of 5
12 0C 11 0B 0 00 UPC-A
10 0A 9 09 0 00 POST-NET
2 to 255 02 to FF 2 to 255 02 to FF 0 00 CODE 128