Professional Documents
Culture Documents
In page mode, these commands only move the print position and do not execute ESC ? n Cancel the user-defined character and return the font
ESC/POS Quick Reference actual printing.
pattern to the resident one for the current font.
LF Prints data and feeds one line. n = character code to be cleared the user-defined font
ESC/POS Command System
EPSON ESC/POS is a proprietary POS printer command system based on the CR Functions the same as LF when auto line feed is enabled. ESC t n Selects page n from the character code table.
escape sequence and includes patented or patent pending commands. ESC/POS is CR is ignored when auto line feed is disabled or when the n code table n code table
compatible with most type of EPSON POS printers and displays. serial interface model is used. 0 PC437: USA, Standard Europe 34 PC855: Cyrillic
ESC/POS is designed to reduce the processing load on the host computer in POS 1 Katakana 35 PC861: Icelandic
environments. It comprises a set of highly functional and efficient commands and ESC J n Prints data and feeds paper n dots. 2 PC850: Multilingual 36 PC862: Hebrew
also offers the flexibility to easily make future upgrades. 3 PC860: Portuguese 37 PC864: Arabic
ESC d n Prints data and feeds paper n lines. 4 PC863: Canadian-French 38 PC869: Greek
Aim of the Quick Reference 5 PC865: Nordic 39 ISO8859-2: Latin2
Line Spacing Commands 11 PC851: Greek 40 ISO8859-15: Latin9
Quick Reference is a guide to using ESC/POS command to control the printer. 12 PC853: Turkish 41 PC1098: Farsi
ESC 2 Selects default line spacing. 13 PC857: Turkish 42 PC1118: Lithuanian
Command Notation 14 PC737: Greek 43 PC1119: Lithuanian
RT : real-time command (executed as soon as received) ESC 3 n Sets line spacing to n dots. 15 ISO8859-7: Greek 44 PC1125: Ukrainian
16 WPC1252 45 WPC1250: Latin2
fn= : function number of the command 17 PC866: Cyrillic #2 46 WPC1251: Cyrillic
Numbers are written in decimal numeral. Character Commands 18 PC852: Latin2 47 WPC1253: Greek
n specifies 1 byte parameter in the range 0255. 19 PC858: Euro 48 WPC1254: Turkish
ESC SP n Sets right-side character spacing to n dots.
nL, nH specify 1 word (2 bytes) parameter as (nL+ n256) in the range 20 KU42: Thai 49 WPC1255: Hebrew
065,535. ESC n Selects underline. 21 TIS11: Thai 50 WPC1256: Arabic
pL, pH specify the number of parameters after pH as (pL+pH256) in the range n = 0: underline off, n = 1: 1-dot width, n = 2: 2-dot width 26 TIS18: Thai 51 WPC1257: Baltic Rim
165,535 30 TCVN-3: Vietnamese 52 WPC1258: Vietnamese
p1, p2, p3, p4 specify the number of parameters after p4 as ESC E n Turns emphasized character On or Off. 31 TCVN-3: Vietnamese 53 KZ-1048: Kazakhstan
n = odd: On, n = even: Off 32 PC720: Arabic 255 User-defined page
(p1+p2256+p365,536+p416,777,216) in the rage 14,294,967,295. 33 WPC775: Baltic Rim
kc1, kc2 specify key code (2 bytes) of NV graphics or download graphics. Each ESC G n Turns double-strike character On or Off.
range of kc1 and kc2 is 32126. ESC R n Selects an international character set by n.
n = odd: On, n = even: Off
Control codes are as follows: n country n country
name code ESC M n Selects a character font. 0 USA 9 Norway
NUL 0 n = 0, "0": Font A, n = 1, "1": Font B 1 France 10 Denmark II
EOT 4 2 Germany 11 Spain II
ENQ 5 GS ! n Selects character size (height/width magnification). 3 U.K. 12 Latin America
HT 9 Upper 4 bits of n: width magnification 4 Denmark I 13 Korea
LF 10 Lower 4 bits of n: height magnification 5 Sweden 14 Slovenia/ Croatia
FF 12 The both can be set 0(1) to 7(8) 6 Italy 15 China
CR 13 7 Spain I 16 Vietnam
DLE 16 GS b n Turns smoothing On or Off for magnified characters. 8 Japan 17 Arabia
DC4 20 n = odd: On, n = even: Off
CAN 24 Print Position Commands
ESC 27 GS B n Turns white/black reverse print On or Off for characters.
FS 28 n = odd: On, n = even: Off HT Moves print position to the next horizontal tab position.
GS 29
ESC { n Turns upside-down print mode On or Off in standard ESC D n1...nk NUL
No part of this document may be reproduced, stored in a retrieval system, or transmitted in any form mode. Sets tab stops at n1 to nk character columns.
or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior
n = odd: On, n = even: Off
written permission of Seiko Epson Corporation. GS L nL nH
The contents of this document are subject to change without notice. Please contact us for the latest ESC V n Turns 90 clockwise rotation On or Off for characters in Sets left margin in standard mode.
information.
While every precaution has been taken in the preparation of this document, Seiko Epson Corporation standard mode. nL + nH256: number of dots for left margin
assumes no responsibility for errors or omissions. n = 1, 2, "1", "2": On, n = 0, "0": Off
Neither is any liability assumed for damages resulting from the use of the information contained GS W nL nH
herein. ESC & 3 c1 c2 [x1 d1...d(3 x1)]...[xk d1...d(3 xk)] Sets print area width in standard mode.
Neither Seiko Epson Corporation nor its affiliates shall be liable to the purchaser of this product or
third parties for damages, losses, costs, or expenses incurred by the purchaser or third parties as a
Defines user-defined characters for character code: c1 to nL + nH256: number of dots for print area width
result of: accident, misuse, or abuse of this product or unauthorized modifications, repairs, or c2 of the current font.
alterations to this product, or (excluding the U.S.) failure to strictly comply with Seiko Epson ESC a n Aligns all data in one line to the selected layout in
x = width of the defined pattern
Corporation's operating and maintenance instructions.
d1...d(3x) = pattern data for a character standard mode.
Seiko Epson Corporation shall not be liable against any damages or problems arising from the use of
n = 0, "0": Left justification
any options or any consumable products other than those designated as Original EPSON Products or ESC % n Selects or cancels user-defined character set. n = 1, "1": Centering
EPSON Approved Products by Seiko Epson Corporation.
EPSON and ESC/POS are registered trademarks of Seiko Epson Corporation in Japan and other n = odd: Select, n = even: Cancel n = 2, "2": Right justification
countries/regions.
M00051201