Reference Guide

Index
Search
Glossary
Contents
Help

Product Information

Command Lists

EPSON ESC/P control codes
IBM PPDS emulation control codes

Your printer supports the following EPSON ESC/P control codes and IBM PPDS emulation control codes.

EPSON ESC/P control codes

Selecting an EPSON ESC/P printer in your software allows you to use advanced fonts and graphics.

General operation:

ESC @, ESC U, ESC EM

Paper feeding:

FF, LF, ESC 0, ESC 2, ESC 3, ESC 1, ESC A, CR

Page format:

ESC ( C, ESC C, ESC C 0, ESC Q, ESC l, ESC ( c, ESC N, ESC O, ESC (U

Print position motion:

ESC $, ESC \, ESC D, HT, ESC B, VT, ESC J

Font selection:

ESC k, ESC x, ESC y, ESC P, ESC M, ESC g, ESC p, ESC 4, ESC 5, ESC E, ESC F, ESC !

Font enhancement:

ESC W, DC4, SO, DC2, SI, ESC w, ESC G, ESC H, ESC T, ESC S, ESC -

Spacing:

ESC Space

Character handling:

ESC t, ESC ( t, ESC R, ESC %, ESC &, ESC :, ESC 6, ESC 7, ESC I

Bit image:

ESC K, ESC L, ESC Y, ESC Z, ESC ^, ESC *

Bar code:

ESC ( B

Bar code commands

Your printer has powerful bar code printing capabilities and includes the following resident bar code fonts: EAN-13, EAN-8, Interleaved 2 of 5, UPC-A, UPC-E, Code 39, Code 128, and POSTNET. See the bar code commands below:

ESC ( B

Select Bar code Printing

Format:

ASCII code:

ESC

(

B

m

n

Decimal:

27

40

66

m

n

Hexadecimal:

1B

28

42

m

n

Function:

ESC ( B n1 n2 k m s v1 v2 c data

n = (n1 + (256 x n2))

k: Select bar code

k = 0: EAN-13, 1: EAN-8, 2: Interleaved 2 of 5, 3: UPC-A,

     4: UPC-E, 5: Code 39, 6: Code 128, 7: POSTNET

m: Module width (120 dpi)

m = 2: 2 dots, 3: 3 dots, 4: 4 dots, 5: 5 dots

s: Space adjustment value

-3 s 3 (1/240-inch units)

v1, v2: Bar length

v1 + v2 x 256 (1/72-inch units)

Note:
The v1 and v2 values are ignored when POSTNET is selected. The long bar length of POSTNET is always 0.125 inch; the short bar length is always 0.050 inch.

c: Control flag

Bit 0 = Check digit

0: The printer does not add a check digit.

1: The printer adds a check digit.

Bit 1 = Human readable character (HRC)

0: The printer adds the HRC.

1: The printer does not add the HRC.

Bit 2 = Position of flag character (for EAN-13 and UPC-A only)

0: Center

1: Under

Bits 3-7 = Not used

Bar code data

Bar code data corresponds to the bar code symbology. The data number of each bar code type is constant. The bar code is printed only if the following valid characters are set.

Bar code type

Number of valid characters 1 (HEX)

Number of valid characters 2 (HEX)

EAN-13

EAN-8

Interleaved 2 of 5

UPC-A

UPC-E

Code 39

Code 128

POSTNET

0D

8

2 to FF

0C

0C or 8

1 to FF

2 to FF

6 or 0A or 0C

0C

7

2 to FF

0B

0B or 7

1 to FF

2 to FF

5 or 9 or 0B

Number of valid characters 1: Control flag c b0=0
Number of valid characters 2: Control flag c b0=1

The table below shows the valid data for each bar code type. If invalid data is included in the bar code data string, the bar code is not printed.

Bar code type

Bar code data

EAN-13

EAN-8

UPC-A

UPC-E

Interleaved 2 of 5

POSTNET

Code 39

Code 128

-9 (Hex 30-39)

0-9 (Hex 30-39)

0-9 (Hex 30-39)

0-9 (Hex 30-39)

0-9 (Hex 30-39)

0-9 (Hex 30-39)0-9 (Hex 30-39),

(Hex 41-5A), (Hex 20, 24, 25, 2B, 2D, 2E, 2F)

Set A, Set B, Set C

The following conditions are required for bar code printing:


[Top]

IBM PPDS emulation control codes

This printer emulates the IBM Proprinter using the commands below.

General operation:

NUL, DC3, ESC j, BEL, CAN, DC1, ESC Q, ESC [ K, ESC U, ESC [ F

Paper feeding:

FF, LF, ESC 5, ESC A, ESC 0, ESC 1, ESC 2, ESC 3, CR, ESC ]

Page format:

ESC C, ESC C0, ESC X, ESC N, ESC O, ESC 4

Print position motion:

ESC d, ESC R, ESC D, HT, ESC B, VT, ESC J

Font selection:

DC2, ESC P, ESC :, ESC E, ESC F, ESC I, ESC [d, ESC [I

Font enhancement:

DC4, SO, ESC SO, ESC W, ESC [ @, SI, ESC SI, ESC G, ESC H, ESC T, ESC S, ESC -, ESC _

Spacing:

BS, SP

Character handling:

ESC 6, ESC 7, ESC [ T, ESC ^, ESC \

Bit image:

ESC K, ESC L, ESC Y, ESC Z

Bar code:

ESC [f, ESC [p

Download:

ESC = (draft mode only)


[Top]


Previous

Next
Version 1.01E, Copyright © 2002, SEIKO EPSON CORPORATION