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