Summary of the content on the page No. 1
CONFIDENTIAL
ESC/POS
ESC/POS
ESC/POS
EPSON
ESC/POS
®
ESC/POS Application
Paper Roll Printers Programming Guide
Version 10.01
ESC/POS
Printers & Commands
ESC/POS
What’s New in This Version?
ESC/POS Information
ESC/POS
How to Use This Guide
Character Code Tables
ESC/POS
About This Guide
Confidentiality Agreement
ESC/POS
ESC/POS
404394101
Summary of the content on the page No. 2
CONFIDENTIAL ESC/POS EPSON ESC/POS printers & commands ESC/POS Commands in Alphanumeric Order • ESC/POS Commands Arranged by Function • ESC/POS Commands Arranged by Printer • TM-T88III TM-T90 ESC/POS TM-L60II TM-L90 ESC/POS TM-J2000/J2100 TM-U210 TM-U220 ESC/POS TM-U230 TM-U300A/U300B ESC/POS TM-P60 ESC/POS
Summary of the content on the page No. 3
CONFIDENTIAL ESC/POS EPSON ESC/POS how to use this guide ESC/POS Text blue ESC/POS text Any text colored blue is a link to another screen. Click the text to go to that topic. Printer information PRINTER ESC/POS Most information applies to all printers in a category. name If there is information specific to one printer, you see its name in colored text, with a different color for ESC/POS each printer. The model dependent information appears if you click on the name of the printer or look at the
Summary of the content on the page No. 4
CONFIDENTIAL ESC/POS EPSON ESC/POS what’s new in this version? ESC/POS Version 10.00 ESC/POS TM-U220 added. This guide (Paper Roll Printers) is now ESC/POS separate from the guides for other types of printers. ESC/POS Version 10.01 TM-P60 added. ESC/POS ESC/POS ESC/POS ESC/POS
Summary of the content on the page No. 5
CONFIDENTIAL ESC/POS EPSON ESC/POS about this guide ESC/POS ESC/POS ESC/POS ® ESC/POS Application Programming Guide for Paper Roll Printers Version 10.01 Seiko Epson Corporation, System Device Division ESC/POS Notice: The contents of this manual are subject to change without notice ESC/POS EPSON and ESC/POS are registered trademarks of Seiko Epson Corporation. ® ™ Acrobat Reader copyright ©1987–2002 Adobe Systems Incorporated. ESC/POS All rights reserved. Adobe and Acrobat are registered tra
Summary of the content on the page No. 6
CONFIDENTIAL ESC/POS EPSON ESC/POS confidentiality agreement ESC/POS BY USING THIS DOCUMENT, YOU AGREE TO ABIDE BY THE TERMS OF THIS AGREEMENT. PLEASE RETURN THIS DOCUMENT IMMEDIATELY IF YOU DO NOT AGREE TO THESE TERMS. This document contains confidential, proprietary information of Seiko Epson ESC/POS Corporation or its affiliates. You must keep such information confidential. If the user is a business entity or organization, you must limit disclosure to those of your employees, agents and con
Summary of the content on the page No. 7
CONFIDENTIAL ESC/POS proprietary command system ® ESC/POS PROPRIETARY COMMAND SYSTEM The market for store automation equipment is changing rapidly with the widespread introduction of POS (point of sale) terminals. These terminals are now appearing even in small retail stores and specialty shops. As personal computers begin to be used as POS terminals, the demand for matching uniform peripheral devices is expected to rise. At present, however, many of the competing POS terminal printers on t
Summary of the content on the page No. 8
CONFIDENTIAL Command classification COMMAND CLASSIFICATION ESC/POS printer commands are classified by functions such as print, character, print position, printing paper, line spacing, panel button, paper sensor, mechanism control, status, bar code, bit-image, macro function, control option, and miscellaneous functions. The classification is called function classification. ESC/POS printer commands are also classified by sheet and grade. The sheet and grade classification is called matrix cla
Summary of the content on the page No. 9
CONFIDENTIAL Multiple sheet Multiple sheet commands Sheet Single sheet Single sheet commands Basic commands Extension commands Grade Paper roll Command classification Ver. 10.01 p. 9 Mechanical extension commands Hardware extension commands Software extension commands
Summary of the content on the page No. 10
CONFIDENTIAL Overview of data processing OVERVIEW OF DATA PROCESSING Character Data and Normal Commands The printer stores data sent from the host computer in the receive buffer temporarily, and then the printer interprets the data and classifies them into commands or character data sequentially. If the data from the receive buffer is a normal command, the printer processes the command corresponding to its function; for example, if the data interpreted is ESC 3, the printer changes a settin
Summary of the content on the page No. 11
CONFIDENTIAL Data processing diagram Real-time Interface command Host processing computer Receive buffer Character generator Main processing (Font data) [Data analysis/processing] (Character data/normal command) Mechanism Print buffer Paper roll Overview of data processing Ver. 10.01 p. 11
Summary of the content on the page No. 12
CONFIDENTIAL Definitions DEFINITIONS Normal commands Normal commands are all the commands except real-time commands. The normal commands are stored in the receive buffer temporarily and then processed sequentially. Real-time commands Real-time commands are the commands that consist of a DLE extension (such as DLE EOT or DLE ENQ). The real- time commands execute processing when received. After executing, they are stored in the receive buffer and then discarded as undefined codes when the normal
Summary of the content on the page No. 13
CONFIDENTIAL Beginning of the line The beginning of the line meets all of the following conditions: • No data exists in the print buffer. • No spaces are skipped by HT in the print buffer. • The print position has not been specified by ESC $ or ESC \. In standard mode, the beginning of the line is the left margin. Printable area This is the maximum printable area specified for each printer model. This can be changed by setting the paper width with GS ( E fn = 5 or DIP switch or setting of paper
Summary of the content on the page No. 14
CONFIDENTIAL Executing commands Executing commands affect printer operation and change the printer status temporarily but do not affect the following printer operation. Functions of printing, paper cutting, and status transmission are executing commands and the real-time commands and some of the normal commands are executing commands. MSB Most Significant Bit LSB Least Significant Bit Obsolete commands These are commands that will not be supported by future printer models. The description of e
Summary of the content on the page No. 15
CONFIDENTIAL TM-U375 supported commands TM-T88III SUPPORTED COMMANDS Command Classification Name Function type HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS LF EXECUTING COMMAND Print and line feed PRINT COMMANDS FF (in page mode) EXECUTING COMMAND Print and return to standard mode PRINT COMMANDS CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS CAN EXECUTING COMMAND Cancel print data in page mode CHARACTER COMMANDS DLE EOT EXECUTING COMMAND Real-time status transmiss
Summary of the content on the page No. 16
CONFIDENTIAL Command Classification Name Function type ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS ESC = SETTING COMMAND Select peripheral device MISCELLANEOUS COMMANDS ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS ESC @ EXECUTING + SETTING Initialize printer MISCELLANEOUS COMMANDS ESC D SETTING COMMAND Set horizo
Summary of the content on the page No. 17
CONFIDENTIAL Command Classification Name Function type ESC a SETTING COMMAND Select justification PRINT POSITION COMMANDS ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COM
Summary of the content on the page No. 18
CONFIDENTIAL Command Classification Name Function type GS W SETTING COMMAND Set printing area width PRINT POSITION COMMANDS GS \ EXECUTING COMMAND Set relative vertical print position in page mode PRINT POSITION COMMANDS GS ^ EXECUTING COMMAND Execute macro MACRO FUNCTION COMMANDS GS a EXECUTING + SETTING Enable/disable Automatic Status Back (ASB) STATUS COMMANDS GS b SETTING COMMAND Turn smoothing mode on/off CHARACTER COMMANDS GS f SETTING COMMAND Select font for HRI characters BAR CODE COMM
Summary of the content on the page No. 19
CONFIDENTIAL The following commands are supported only by Japanese/Simplified Chinese/Traditional Chinese/Korean supporting models. Command Classification Name Function type FS ! SETTING COMMAND Set print mode(s) for Kanji characters KANJI COMMANDS FS & SETTING COMMAND Select Kanji character mode KANJI COMMANDS FS ( A SETTING COMMAND Define character effects of Kanji characters. KANJI COMMANDS FS – SETTING COMMAND Turn underline mode on/off for Kanji characters KANJI COMMANDS FS . SETTING COM
Summary of the content on the page No. 20
CONFIDENTIAL TM-U375 supported commands TM-T90 SUPPORTED COMMANDS Command Classification Name Function type HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS LF EXECUTING COMMAND Print and line feed PRINT COMMANDS FF (in page mode) EXECUTING COMMAND Print and return to standard mode PRINT COMMANDS CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS CAN EXECUTING COMMAND Cancel print data in page mode CHARACTER COMMANDS DLE EOT EXECUTING COMMAND Real-time status transmission