Command Lists

Home > Product Information

# Command Lists

EPSON ESC/P2 control codes
IBM PPDS emulation control codes
Your printer supports the EPSON ESC/P2 control codes and IBM 2391 Plus emulation control codes listed below.

## EPSON ESC/P2 control codes

Selecting an EPSON ESC/P2 printer in your software allows you to use advanced fonts and graphics.
General operation:
ESC @, ESC U
Paper feeding:
FF, LF, ESC 0, ESC 2, ESC 3, ESC +, CR
Page format:
ESC (C, ESC C, ESC C 0, ESC Q, ESC 1, ESC (c, ESC N, ESC O
Print position motion:
ESC $, ESC ¥, ESC (V, ESC (v, ESC D, HT, ESC B, VT, ESC J
Font selection:
ESC k, ESC x, ESC y, ESC X, 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 -, ESC (-, ESC q
Spacing:
ESC Space, ESC c, ESC (U
Character handling:
ESC t, ESC (t, ESC R, ESC %, ESC &, ESC :, ESC 6, ESC 7, ESC (^
Bit image:
ESC *
Raster graphic:
ESC (G, ESC .
Bar code:
ESC (B

### Barcode commands

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

ESC ( B | Select Barcode Printing
Format: ASCII code: Decimal: Hexadecimal: | ESC 27 1B | ( 40 28 | B 66 42 | m m m | n n n

Function:
ESC ( B n1 n2 k m s v1 v2 c data
n = (n1 + (256 × n2))
k: Select barcode
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 (180 dpi)
m = 2: 2 dots, 3: 3 dots, 4: 4 dots, 5: 5 dots
s: Space adjustment value
-3 £ s £ 3 (1/360-inch units)
v1, v2: Bar length
v1 + v2 × 256 (1/180-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

### Barcode data

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

Barcode 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 valid data for each barcode type is described below. If invalid data is included in the barcode data string, the barcode is not printed.

Barcode type | Barcode data

EAN-13
EAN-8
UPC-A
UPC-E
Interleaved 2 of 5
POSTNET
Code 39
Code 128

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)
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 barcode printing:
Barcode printing is always performed unidirectionally. However, when it is mixed with raster bit image data, neither barcode nor raster bit image data is printed.
A barcode is not printed when part of the barcode extends beyond the right margin.
When barcode data and text data are mixed in a data sequence, barcodes and text are printed in the same place.
The start and stop (*) characters of Code 39 are added to human readable characters.
The initial data of Code 128 (Set A, B, or C) is identified as the first data of Code 128, and must be hexadecimal (41, 42, and 43, respectively).
When Code 128 Set C and Interleaved 2 of 5 are selected, barcode data requires an even number data string. However, if an odd number string is sent, a 0 is automatically added, making it an even number data string.
The barcode print start position (except for POSTNET) is always 40/360 inch above the baseline.
Top

## IBM PPDS emulation control codes

This printer emulates the IBM Proprinter using the commands below. For detailed information, see the IBM PPDS reference manual.
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 A (AGM*), ESC 0, ESC 1, ESC 2, ESC 3, ESC 3 (AGM*), 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, ESC J (AGM*)
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 _, ESC [-
Spacing:
BS, SP, ESC [¥
Character handling:
ESC 6, ESC 7, ESC [ T, ESC ^, ESC ¥
Bit image:
ESC K, ESC L, ESC Y, ESC Z, ESC [g, ESC * (AGM*)
Barcode:
ESC [f, ESC [p
Download:
Download command is not provided.
* Alternate Graphic Mode
Top