Appendix C: Printer Commands

This appendix contains a listing of the printer commands for the IBM proprinter, Epson FX, and OKI MICROLINE emulations, grouped by function.

IBM Proprinter Printer Commands

IBM FunctionASCII CodeDecimal CodeHexadecimal Code

 

 

 

 

 

Bar Code Commands

 

 

 

 

Select Bar Code Type

ESC DLE A m n1 n8

27 16 65 m n1 n8

1B

10 41 m n1 n8

and Size

 

 

 

 

Print Bar Code Data

ESC DLE B m n [data]

27 16 66 m n [data]

1B

10 42 m n [data]

Print Postnet Bar Code

ESC DLE C n [data]

27 16 67 n [data]

1B

10 43 n [data]

Data

 

 

 

 

Select Bar Code Type

ESC [ f Ln Hn Pk Pm Ps

27 91 102 Ln Hn Pk

1B

5B 66 Ln Hn Pk

 

Lv Hv Pc

Pm Ps Lv Hv Pc

Pm Ps Lv Hv Pc

Print Bar Code

ESC [ f Ln Hn DATA

27 91 112 Ln Hn

1B

5B 70 Ln Hn

 

 

DATA

DATA

 

 

 

 

 

Character Sets

 

 

 

 

Select IBM Character Set I

ESC 7

27 55

1B

37

Select IBM Character Set

ESC 6

27 54

1B

36

II

 

 

 

 

Print from IBM

ESC \ Ln Hn

27 92 Ln Hn

1B

5C Ln Hn

Character Set III

 

 

 

 

Print One Character from

ESC n

27 94 n

1B

5E n

IBM Character Set III

 

 

 

 

Select International

ESC ! n

27 33 n

1B

21 n

Character Set *

 

 

 

 

Select Code Page

ESC [ TLn Hn 0 0 Hcp Lcp

27 91 84 Ln Hn 0 0

1B

5B 54 Ln Hn 0 0

 

0

Hcp Lcp 0

Hcp Lcp 0

Character Size/Spacing

 

 

 

 

Select 10 cpi Pitch

DC2

18

12

 

Select 12 cpi Pitch

ESC :

27 58

1B

3A

Select 15 cpi Pitch *

ESC g

27 103

1B

67

Select 20 cpi Pitch *

ESC SI

27 15

1B

0F

Set Compressed Pitch

SI

15

0F

 

Superscript Printing On

ESC S 1

27 83 1

1B

53 01

Subscript Printing On

ESC S 0

27 83 0

1B

53 00

Super script/Subscript

ESC T

27 84

1B

54

 

 

 

 

 

ML720/721 Printer Handbook

81