Control Codes

PcOS Series 150

Programmer's Guide

Bar codes

Bar codes

The Series 150 Printer has the ability to print bar codes. The printer will print one of five formats, Interleaved 2 of 5, Code 39, Code 128, UPC A, and EAN-13. The host does not need to form the graphic image for these bar codes. The host need only send the printer the information to be bar coded, and a graphic will be generated. Bar codes can be printed in a high-resolution normal mode or a fast, high-speed mode. The normal mode is more readable than the high speed mode. (See the [ESC] [EM] B command on the next page for setting the bar code height and print speed.)

Function

Print bar code

 

 

ASCII

[ESC] b <n> {information} [ETX]

Hexadecimal

1BH 62H <n>... 03H

 

 

Decimal

<27> <98> <n> ... <3>

 

IPCL

&%25 ... [CR]

Interleaved 2 of 5

 

&%39 ... [CR]

Code 39

 

&%12 ... [CR]

Code 128

 

&%UP ... [CR]

UPC A

 

&%UE ... [CR]

UPC E

 

&%EA .. [CR]

EAN-13

 

&%E8 ... [CR]

EAN-8

 

&%93 ... [CR]

Code 93

 

&%HB<n> ..

Hollerith10

EPOS

[ESC] b <n> or [GS] k <n>

 

Description

This command prints the information as a bar code. The bar code will be

 

centered on the print zone.

 

Where n

0

Interleaved 2 of 5

Numeric (0-9) only; must be an even number of

 

 

 

 

digits

 

1

Code 39

 

26 uppercase letters (A-Z) and 10 digits (0-9)

 

2

Code 128

 

Three sets of 106 different characters

 

3

UPC A

 

Numeric (0-9) only; 11 digits

 

4

EAN-13

 

Numeric (0-9) only; 12 digits

 

5

UPC E

 

Numeric (0-9) only; 11 digits

 

6

EAN-8

 

Numeric (0-9) only; 7 digits

 

7

Code 93

 

26 letters, 10 digits (0-9), and 7 special characters

 

10

Hollerith

 

ASCII data up to 16 digits

Interleaved 2 of 5 is a high-density, self-checking, continuous, numeric bar code. It is mainly used where fixed length numeric fields are required. The data field must be an even number of characters. If an odd data field is sent to the printer, it will be zero padded. Due to space limitations, only 16 characters can be printed. (Note: Interleaved 2 of 5 does not read well in fast mode.)

Code 39

is an alphanumeric bar code. It is a discrete, self-checking, variable length

 

code. The complete data field is printed. Due to space limitations, only eight

 

characters can be printed. If illegal characters are passed to the printer, they

 

will be converted to legal codes, i.e., a A.

Code 128

is an alphanumeric bar code. It is a high-density, variable length, continuous

 

code that employs multiple element widths. Code 128 has three possible start

 

codes. The start code defines the set as Code A, B, or C. The first character in

10The Hollerith bar code is only available on custom configurations.

Page 48

Rev G

12/14/99

Page 58
Image 58
Star Micronics 150 manual Bar codes