Epson Escape Codes (ESC/P-83)

Compatible with Epson LQ and FX series Dot Matrix printers.

See the examples at the end of the table

© Copyright 1995-1998 All rights reserved

07/13/1998

ASCII DEC HEX Description ASCII DEC HEX Description
BEL 707 Beeper ESC > 62 3E Set MSB to 1
BS 8 08 Backspace ESC ? 63 3F Reassign graphics mode
HT 9 09 Tab horizontally ESC @ 64 40 Initialize printer
LF 100A Line feedESC A 65 41 Set n/72-inch line spacing
VT 11 0B Tab vertically ESC B 66 42 Set vertical tabs
FF 12 0C Form feed ESC C 67 43 Set page length in lines
CR 130D Carriage return ESC C0 67 67 Set page length in inches
SO 14 0E Select double-wide (1 line) ESC D 68 44Set horizontal tabs
SI 15 0F Select condensed mode ESC E 69 45 Select emphasized mode
DC1 17 11 Select printer ESC F 70 46 Cancel emphasized mode
DC2 18 12 Cancel condensed modeESC G 71 47 Select double-strike mode
DC3 19 13 Deselect printer ESC H 72 48 Cancel double-strike mode
DC4 20 14 Cancel double-wide (1 line)ESC J 744A Perform n/216-inch line feed
CAN 2418 Cancel lineESC K 75 4B Select single-density graphics
DEL 1277F Delete character ESC L 76 4C Select double-density graphics
ESC SO 14 0E Select double-wide (1 line) ESC M 774DSelect 12 cpi
ESC SI 15 0F Select condensed mode ESC N 78 4E Set skip over perforation
ESC EM 25 19 Cut sheet feeder on/off ESC O 79 4FCancel skip over perforation
ESC SP 32 20 Set inter character space ESC P 8050 Select 10 cpi
ESC ! 33 21 Master select ESC Q 81 51 Set right margin
ESC # 3523 Cancel MSB control ESC R 82 52 International character set
ESC $ 36 24 Set absolute print position ESC S0 83 53 Select superscript mode
ESC % 37 25 Select user-defined set ESC S1 8353 Select subscript mode
ESC & 3826 Define user-defined characters ESC T 8454 Cancel superscript/subscript
ESC (- 40 28 Select Score ESC U 85 55Turn unidirectional mode on/off
ESC * 422A Select graphics mode ESC W 87 57Turn double-wide on/off
ESC + 43 2B Set n/360-inch Line Spacing ESC Y 89 59 High-speed dbl-density graphics
ESC - 45 2D Turn underlining on/offESC Z 90 5A Quadruple-density graphics
ESC / 47 2F Select vertical tab channel ESC \ 925C Retrieve relative position
ESC 0 48 30 Select 1/8-inch line spacingESC a 9761 Select justification
ESC 2 5032 Select 1/6-inch line spacing ESC b 98 62Set vertical tabs in channels
ESC 3 5133 Select n/216-inch line spacing ESC g 103 67 Select 15 CPI
ESC 4 52 34 Select italic modeESC k 107 6B Select typestyle family
ESC 5 53 35 Cancel italic modeESC l 1086C Set left margin
ESC 6 5436 Enable printable characters ESC p 112 70 Turn proportional mode on/off
ESC 7 55 37 Enable upper control codesESC q 113 71 Select character style
ESC : 58 3A Copy ROM into RAMESC t 116 74 Select character table
ESC < 60 3C Unidirectional mode (1 line) ESC w 11977 Turn double-high on/off
ESC = 61 3D Set MSB to 0 ESC x 120 78 Select NLQ or draft

NOTE!! The ESC character is DEC 027 or HEX 1B. Use the above table to determine which character code (Dec or Hex) that should be sent after the ESC character.

EXAMPLE. To set the "emphasized" mode in the printer, either of the following character strings may be sent.

ASCII…..ESC….E

Decimal…027…..069

Hex……..1B……45