ITEM SYMBOL Hexadecimal Decimal FUNCTION
d2=8,d3=0 : PC-863 d2=44,d3=0 : PC-858
d2=9,d3=0 : PC-865 d2=24,d3=0 : PC-861
d2=11,d3=0 : PC-857 d2=25,d3=0 : BRASCII
d2=17,d3=0 : ISO-8859-1 d2=26,d3=0 : ABICOMP
[26] ESC *m n1 n2 [1B,2A,m,n1,n2,data] H Sets various graphic modes.
data [27,42,m,n1,n2,data] D
Note (*): Horizontal adjacent dots can not be printed.
The total column number is calculated by n1+n2 x 256 for 8-pin graphics and
(n1 + n2x256) x3 for 24-pin graphics.
Each bit data in the 8-pin graphics corresponds to 2 print pins of the print head.
The following figure shows one column of data and its corresponding print position.
[27] ESC + n [1B,2B,n] H [27,43,n] D Sets line spacing to n/360" (0≤n≤255).
[28] ESC - n [1B,2D,n] H [27,45,n] D Sets or cancels underline.
n=0: underline is cancelled
n=1: underline is set
[29] ESC / c [1B,2F,c] H [27,47,c] D Selects a channel (c: 0-7) of vertical tab.
[30] ESC 0 [1B,30] H [27,48] D Sets line spacing to 1/8".
[31] ESC 2 [1B,32] H [27,50] D Sets line spacing to 1/6".
[32] ESC 3 n [1B,33,n] H [27,51,n] D Sets line spacing to n/180" (0≤n≤255).
[33] ESC 4 [1B,34] H [27,52] D Sets italic character mode.
Download characters and graphic characters
(B0h-DFh, F4h, and F5h) are not italicized.
[34] ESC 5 [1B,35] H [27,53] D Cancels italic character mode.
[35] ESC 6 [1B,36] H [27,54] D Enlarges the print code area.
Control code area (80h-9Fh) is printed as characters.
[36] ESC 7 [1B,37] H [27,55] D Clears ESC 6 command.
[37] ESC : NUL [1B,3A,00,n,00] H Copy RAM download character set from ROM
n NUL [27,58,0,n,0] D character set.
n=00h: ROMAN is copied
n=01h: SANS SERIF is copied
n=02h: COURIER is copied
n=03h: PRESTIGE is copied
n=04h: SCRIPT is copied
n=05h: OCR-B is copied
n=06h: OCR-A is copied
n=07h: ORATOR is copied
n=08h: ORATOR-S is copied
n=14h: GOTHIC is copied
[38] ESC < [1B,3C] H [27,60] D Moves print head to home position.
[39] ESC = [1B,3D] H [27,61] D Sets MSB of data to "0".
[40] ESC > [1B,3E] H [27,62] D Sets MSB of data to "1".
m Graphic Type Number Maximum Horizontal
of Pins Columns Density
0 Standard-density 8 816 60
1 Double-density 8 1632 120
2 Double-speed double-density* 8 1632 120
3 Quadruple-density * 8 3264 240
4 CRT I 8 1088 80
6 CRT II 8 1224 90
32 Standard-density 24 816 60
33 Double-density 24 1632 120
38 CRT III 24 1224 90
39 Triple-density 24 2448 180
40 Hex-density* 24 4896 360
Bit Data (MSB)
Print Pin (Top)
11101
0
1
1
(LSB)
(Bottom)
111
B. Control code summary (Epson)