15
Example 2: The following escape sequence will print a UPC-E bar code with the following: human readable, 30 mm high,
containing “1234565” where 5 is the check digit.
Escape Sequence: ESC Z 4 7 240 1 2 3 4 5 6 CR LF
Hexadecimal: 1B 5A 34 07 F0 31 32 33 34 35 36 0D 0A
Decimal: 27 90 52 7 240 49 50 51 52 53 54 13 10
Example 3: The following escape sequence will print an EAN/JAN-8 bar code with the following: human readable, 30 mm high,
containing “12345670” where 0 is the check digit.
Escape Sequence: ESC Z 4 8 240 1 2 3 4 5 6 7 CR LF
Hexadecimal: 1B 5A 34 08 F0 31 32 33 34 35 36 37 0D 0A
Decimal: 27 90 52 8 240 49 50 51 52 53 54 55 13 10
Example 4: The following escape sequence will print an EAN/JAN-13 bar code with the following: human readable, 30 mm high,
containing “1234567890128” where 8 is the check digit. Due to limited spacing CR LF are not shown at the end of this
command.
Escape Sequence:ESC Z 4 13 240 1 2 3 4 5 6 7 8 9 0 1 2
Hexadecimal: 1B 5A 34 0D F0 31 32 33 34 35 36 37 38 39 30 31 32
Decimal: 27 90 52 13 240 49 50 51 52 53 54 55 56 57 48 49 50
Note that all heights are total height, including a 1.23mm drop bar pattern printed after the bar code pattern.
Codabar Specifications
Description
Each symbol starts with Leading Quiet Zone, followed with Start Symbol, Data Symbols, ending with
Stop Symbol and Trailing Quiet Zone
Character set
0-9, {$, -, :, /, ., +} and start/stop pairs {A/T, B/M, C/*, D/E}
Elements per
symbol
7 (4 bars, 3 spaces)
Character density
8.1 CPI
Bar width
0.25mm
Characters per line
2 Inch Printer
: 15 (maximum) plus start/stop, automatically centered
3 inch printer
: 20 (maximum) plus start/stop, automatically centered
4 inch printer
: 35 (maximum) plus start/stop, automatically centered
Example 1: The following escape command prints a Codabar barcode with the following: Encoding “123456”, human readable,
20 mm high, start character A and stop character T
Escape Sequence: ESC Z 5 8 160 A 1 2 3 4 5 6 T CR LF
Hexadecimal: 1B 5A 35 08 A0 41 31 32 33 34 35 36 54 0D 0A
Decimal: 27 90 53 8 160 65 49 50 51 52 53 54 84 13 10
Example 2: The following escape command prints Codabar barcode with the following: Encoding “2468”, human readable, 10
mm high, start character C and stop character *. .
Escape Sequence: ESC Z 5 6 P C 2 4 6 8 * CR LF
Hexadecimal: 1B 5A 35 06 50 43 32 34 36 38 2A 0D 0A
Decimal: 27 90 53 6 80 67 50 52 54 56 42 13 10