Epson TM-T88, TM-T88P, TM-T85, TM-T85P Information Manual

Page 1
TM-T88/T88P (TM-T85/T85P)
Information Manual
Using this online information guide
The words on the left side of this screen are bookmarks for all the topics in this guide.
Use the scroll bar next to the bookmarks to find any topic you want. Click a bookmark to instantly jump to its topic. (If you wish, you can increase the size of the bookmark area by dragging the dividing bar to the right.)
Use the scroll bar on the right side of this screen to move through the text.
Use the zoom tools to magnify or reduce the page display.
Click the Find button if you want to search for a particular term. (However, using the bookmarks is usually quicker.)
Complete online documentation for Acrobat Reader is located in the Help directory for Acrobat Reader.
Return to main menu
Page 2
®
®
Guide to
TM-T88/T88P
(TM-T85/T85P)
400670500
Page 3
SEIKO EPSON C O RPORATION
Page 4
The programming examples in this manual are provided for the sole purpose of illustrating the functions of the products. Seiko Epson Corporation makes no warranty, either expressed or implied, as to their reliability and appropriateness for other uses.
All rights reserved . No part of this publicatio n may be reproduced , stored in a retrieval system, o r transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written perm ission of Seiko Epso n Corporation. No patent liability is assumed with respect to the use of the information contai ned herein. Whil e every precaution has been taken in the preparation of this book, Seiko E pson Corporation assumes no responsibil ity for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein.
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 purchaser or third parties as a result of: accident, misuse, or abuse of this product or unauthorized modificati ons, rep airs, or al ter ati ons to this product, or (excluding the U.S.) failure to strictly comply with Seiko Epson Corporation’s operating and maintenance instructions.
Seiko Epson Corporation shall not be liable against any damages or problems arising from the use of any options or any consumable products other than those designated as Original Epson Products or Epson Approved Products by Seiko Epson Corporation.
EPSON and ESC/POS are registered trademarks of Seiko Epson Corporation.
NOTICE: The contents of this manual are subject to change without notice.
Copyright © 1996 by Seiko Epson Corporation, Nagano, Japan.
ESC/POS® Information Manual
Guide to TM–T88/T88P (TM–T85/T85P) 9610-00
SEIKO EPSON CORPORATION SYSTEM DEVICE DIVISION
2070 Kotobuki Koaka, Matsumoto-shi, Nagano-ken 399, Japan
Page 5
SEIKO EPSON CORPORATION
SYSTEM DEVICE DIVISION
2070 Kotobuki Koaka, Matsumoto-shi, Nagano-ken 399, Japan
Page 6

Introduction

ESC/POS

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. They occupy a secure position in the range of applications available for personal computers.
As more personal computers come to be used as POS terminals, the demand for matching standardized peripheral devi ces is expected to rise. At present, however, many of t he competing POS terminal printer displays on the market employ mutually incompatible command sets. This imposes limits on the expandability and range of applications possible with PC-based systems. There is a need for a new command set designed to provide the expandability and universal applicability demanded by the market.
To meet this need, Seiko Epson Corporation proposes the adoption of a newly developed command set to standardize POS terminal peripheral devices: ESC/POS (Epson Standard Code for Point of S ale).
The aim when developing ESC/POS was to create a set of control codes that could be used to operate any output device c onnected to a PO S terminal. T hese new codes ar e intended to replace the mutually incompatible command sets previously in use.
TM/DM series models already support ESC/POS, and they have been evaluated highly in the marketplace.
Seiko Epson Corporation plans to produ ce new models in t he TM/DM series offeri ng ESC/POS support and to continue to work for the standardization of the entire POS environment to promote the dissemination of ESC/POS.

About This Manual

Chapter 1 contains a table of supported commands, descriptions of all the commands
arranged by function with program examples and print samples, and character code tables.
Chapter 2 contains an example showing several commands used in a program for issuing a
coupon containing bar codes.
Chapter 3 contains a table of the commands listed by function type and a table showing
which commands are supported by various EPSON printers.
Rev. A i
Page 7

Features

The TM-T88 and TM-T88P (TM-T85/T85P) can be used as one-statio n printers for ECR and POS, as ticket-issuing devices, and as output devices for weighing and measuring. The printers have the following features:
Light weigh t and ultra- compact size. High speed printing: 16.5 lines per second. (12 lines per second for TM85/T85P). Low-noise thermal printing. Easy maintenance for tasks such as head cleaning. New paper handling enables easy paper roll setting. Command protocol based on the ESC/POS™ standard. Various layouts possible using page mode. Font selection (12 × 24 or 9 × 24) possible using a command. Character extension (up to 64 times the standard size) and character smoothing. Four different print densities selectable via DIP switch settings. Water-resistant operation panel. Bar code printing possible both in the vertical direction (fence bar code) and horizontal
direction (ladder bar code in page mode) using a command.
Repeated operation and copy printing possible using macro definitions. Control capability for two drawers via the built-in interface. The auto-cutter is equipped.

Option

EPSON power supply unit, PS-170.
ii Rev. A
Page 8

Specifications

Printing specifications
Printing method: Thermal line printing Printing speed: Approximately 16.5 lines/second (1/6-inch feed)
(Approximately 12 lines/second for TM-T85/T85P)
Paper feed speed: Approximately 70 mm/s
Approximately 50 mm/s for TM-T85/T85P)
Dot density: 180 dpi × 180 dpi Printing width: 72 mm (2.83”), 512 dot positions
Character specifications
Character fonts: 12 × 24/9 × 24 Characters per line: 42/56 Character size: 1.41(W) × 3.39(H) mm/.99(W) × 3.39(H) mm Character sets: ASCII: 95 characters
International: 32 characters Extended graphics: 128 characters × 6 pages
Paper size: Paper roll: 79-80(W) mm × 83.0 mm diameter Interface: RS-232 (seria l interface)
IEEE 1284 (parallel interface) or RS-485 ( a dealer option)
Receive buffer: 4K or 45 bytes (selectable by DIP switch)
TM-T88
POWER
ERROR
PAPER
OUT
FEED
Rev. A iii
Page 9
Contents Chapter 1 Command Descriptions
Using Bit Value Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Print Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Line Spacing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
Character Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Panel Button Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
Paper Sensor Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
Print Position Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-21
Bit-Image Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-28
Status Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-32
Bar Code Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-39
Macro Function Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-44
Mechanism Control Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-46
Miscellaneous Function Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-47
Character Code Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-54
Chapter 2 Application Chapter 3 Command Reference
Command Classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Reference Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
iv Rev. A
Page 10
TM-T88/T88P (TM-T85/T85P) Information Manual
Chapter 1
Command Descriptions
Following this table are all the commands organized by function and described with program examples and print samples. The print samples are images of the printing results of the program examples; they do not represent actual printing.
Supported Commands
Command N ame Function Type
HT LF
FF
CR CAN DLE EOT DLE ENQ ESC FF ESC SP ESC ! ESC $ ESC % ESC &
Select bit-image mode Bit image 1-28
ESC ESC – ESC 2 ESC 3 ESC = ESC ? ESC @ ESC D ESC E ESC G ESC J ESC L ESC R ESC S ESC T
Horizontal tab Print position 1-23 Print and line feed Print 1-4 Print and return to standard mode (in page
mode) Print and carriage return Print 1-4 Cancel print data in page mode Character 1-18 Real-time status transmission Status 1-35 Real-time reques t to p rin t e r Miscellaneous function 1-52 Print data in pag e mo de Print 1 -6 Set right-side character spacing Character 1-8 Select print mode(s) Character 1-13 Set absolute print position Print position 1-21 Select/cancel user-define d chara cte r set Character 1-9 Define user- defined characters Character 1-9
Turn underline mode on/off Character 1-14 Select default line spacing Line spacing 1-7 Set line spacing Line spacing 1-7 Select peripheral device Miscellaneous function 1-50 Cancel user-defined chara ct ers Character 1-9 Initialize printer Miscellaneous function 1-48 Set horizontal tab positions Print position 1-23 Turn emphasized mode on/off Character 1-14 Turn double-strike mode on/off Character 1-15 Print and feed paper Print 1-5 Select page mode Miscellaneous function 1-51 Select an international charac ter set Character 1-11 Select standard mode Miscellaneous function 1-51 Select print direction in page mode Print position 1-26
Print 1-6
Page Number
Rev. A Command Descriptions 1-1
Page 11
Command N ame Function Type
ESC V Turn 90° clockwise rotation mode on/off Character 1-16 ESC W Set printing area in page mode Print position 1-25 ESC \ Set relative print position Print position 1-22 ESC a Select justification Print position 1-22
ESC c 3
ESC c 4 Select paper sensor(s) to stop printing Paper sensor 1-19 ESC c 5 Enable/disable panel buttons Panel button 1-19 ESC d Print and feed n lines Print 1-5 ESC i Partial cut (one poin t lef t unc ut ) Mechanism c o nt rol 1-46 ESC p Generate pulse Miscellaneous function 1 -5 0 ESC t Select character code table Character 1-12 ESC u Transmit peripheral de vice status Status 1-38 ESC v Transmit paper sensor status Status 1-38 ESC { Turn upside-down printin g mode on/off Character 1-15 GS ! Select character size Character 1-16 GS $ Set absolute vertical print position in page mode Print position 1-27
Define downloaded bit image Bit image 1-29
GS GS / Print downloaded bit image Bit image 1-30 GS : Start/end macro definition Macro function 1-44 GS B Turn white/black reverse printing mode on/off Character 1-17 GS H Select printing position of HRI characters Bar code 1-43 GS I Transmit printer ID Miscellaneous function 1-49 GS L Set left ma rgi n Print positio n 1-24 GS P Set horizontal and vertical motion units Miscellaneous function 1-48 GS V Select cut mode and cut paper Mechanism control 1-46 GS W Set printing area width Print position 1-24 GS \ Set relative vert ic a l pr in t po s it io n in pag e mo d e Print position 1-27 GS ^ Execute macro Macro function 1-44 GS a Enable/disable Automatic Status Back (ASB) Status 1-32 GS b Turn smoothing mode on/off Character 1-18 GS f Select font for HRI characters Bar code 1-43 GS h Set bar code height Bar code 1-39 GS k Print bar code Bar code 1-42 GS r Transmit status Status 1-34 GS w Set bar code width Bar code 1-39
Select paper sensor(s) to output pap er-en d signals
Paper sensor 1-20
Page Number
1-2 Command Descriptions Rev. A
Page 12
TM-T88/T88P (TM-T85/T85P) Information Manual
ESC i, ESC u, and ESC v are supported only by TM-T85/T85P.
These commands are not recommended. (There are other commands which support the same functions of the above commands.) For the TM -T88/T88P, GS V and GS r can be used as the above commands.
The functions of GS V and ESC c 5 are different for TM-T88/T88P and TM-T85/T85P. For DLE EOT, GS a and GS r, conditions of status changes for paper roll sensor and
automatic recovery error are different for TM-T88/T88P and TM-T85/T85P.

Using Bit Value Tables

For each command that has a compl ex method o f determi ning the variable n, there is a t able sho wing how to calculate the variable in three numbering systems: binary, hexadecimal, and decimal.
When you look at the table, first find the value of each component of the variable. Then add the values of the components together to determine the value of the variable n.
For example, here is how you would use the table below, which selects the print mode, to combine double height, double width, and underline. In the table, you see that bit 4 on (or hex 10 or decimal
16) turns on double height, bit 5 on (or hex 20 or decimal 32) turns on double width, and bit 7 on (or hex 80 or decimal 128) turns on underline mode.
To combine all three, turn on bits 4, 5, and 7, which is 10110000 in binary. Or you can add the hex values 10, 20, and 80 for the hex sum of B0, or you can add the decimal values 16, 32, and 128 for the decimal value of 176.
Therefore, you send the following to turn on do uble hei ght , doubl e wid th , and underli ne, d epending on the numbering system used:
ASCII ESC ! n Hex 1B 21 B0 Decimal 28 33 176
Bit Off/On Hex Decimal Function
0
1, 2 Undefined.
3
4
5
6 Undefined.
7
Off 00 0 Character f o nt A selected. On 01 1 Character font B selected.
Off 00 0 Emphasized mode not selected. On 08 8 Emphasized mode selected. Off 00 0 Double-height mode not selected. On 10 16 Double-height mode selected. Off 00 0 Double-width mo de not selected. On 20 32 Double-width mode selected.
Off 00 0 Underline mode not selected. On 80 128 Underline mode selected.
Rev. A Command Descriptions 1-3
Page 13
Note that the program examples throughout this chapter use decimal numbers, but binary, decimal, and hexadecimal numbers all have the same printing results.

Print Commands

The TM-T88/T88P (TM-T85/T85P) supports the following commands for printing characters and advancing paper. When executing printing with the standard mode selected, the printer executes paper feed. When the page mode is selected, except for FF and ESC FF, only the data development position is moved and actual printing and paper feeding are not executed.
Command Name LF Print and line feed CR Print and carriage return ESC J Print and feed paper ESC d Print and feed n lines FF Print and return to standard mode (in page mode) ESC FF Print data in page mode
LF
[Name] Print and line feed [Format] ASCII LF
Hex 0A Decimal 10
LF prints the data i n the print buffer and feeds one li ne. The amount of paper fed per li ne i s based on the value set using the line spacing command. The default setting is 1/6 inch.
Program Example Print Sample
PRINT #1, "AAAAA"; CHR$(&HA); AAAAA PRINT #1, "BBBBB"; CHR$(&HA); BBBBB
CR
[Name] Print and carriage return [Format] ASCII CR
Hex 0D Decimal 13
1-4 Command Descriptions Rev. A
Page 14
TM-T88/T88P (TM-T85/T85P) Information Manual
CR functions in the same way as LF when auto line feed is enabled. Auto line feed can be disabled or enabled by DIP switch 1-1. This command sets the print position to the beginning of the line. When auto line feed is disabled, this command is ignored. This command is available only with a parallel interface an d is ignored with a serial interf ace.
Program Example Print Sample
PRINT #1, "AAAAA"; CHR$(&HD); AAAAA PRINT #1, " BBBBB"; CHR$(&HA); BBBBB
AAAAA BBBBB
Auto line feed enabled
Auto line feed disabled
ESC J n
[Name] Print and feed pa per [Format] ASCII ESC J n
Hex 1B 4A n Decimal 27 74 n
[Range] 0 n 255 ESC J n prints the data in the print buffer and feeds the pap er n × (vert ical or horizo ntal mot ion uni t).
This command is used to temporarily feed a specific length without changing the line spacing set by other commands. The maximum paper feed amount is 40 inches. When standard mode is selected, the vertical motion unit set by GS P is used. When page mode is selected, the vertical or horizontal motion unit set by GS P is used for the print direction set by ESC T.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"J";CHR$(100); PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA);
AAAAA BBBBB
CCCCC DDDDD
ESC J used to print one line and advance the paper by 100/180 inc
h
ESC d n
[Name] Print and feed n lines [Format] ASCII ESC d n
Hex 1B 64 n Decimal 27 100 n
[Range] 0 n 255
Rev. A Command Descriptions 1-5
Page 15
ESC d n prints the data in the pr int buffer and feeds n lines. The amount of pap er fed per line is based on the value set using the line spac ing command. The maximum paper feed amount is 40 i nches. The default setting of the paper feed amount is 1/6 inch.
Program Example Print Sample
PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"d";CHR$(6); PRINT #1, "CCCCC"; CHR$(&HA);
AAAAA BBBBB
CCCCC
FF
[Name] Print and return to standard mode (in page mode) [Format] ASCII FF
Hex 0C Decimal 12
ESC FF
[Name] Print data in page mode [Format] ASCII ESC FF
ESC d used to print one line and advance the paper by six lines
Hex 1B 0C Decimal 27 12
FF prints the data in the print bu ffer collectively and returns to standard mode. The buffer data is deleted after being printe d. This comman d returns the values set by ESC W to the default values. The value set by ESC T is maintained. This command is enabled only in page mode.
ESC FF prints all buffered data in the printable area collectively, in page mode. This command is enabled only in page mode. After printing, the printer does not clear the buffered data or values set by other commands. When the printer returns to standard mode, FF or ESC S should be executed. The above commands do not cut the paper.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"L"; PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0); CHR$(0);CHR$(120);CHR$(0);CHR$(240);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, "CCCCC"; CHR$(&H1B);CHR$(&HC); PRINT #1, CHR$(&H1D);"V";CHR$(66);(CHR$(0); PRINT #1, CHR$(&HC);
Select page mode
Select print direction Store characters for printing Store characters for printing
Batch print
Cut
Batch print and return to standard mode
AAAAA BBBBB CCCCC
AAAAA BBBBB CCCCC
Cut paper
1-6 Command Descriptions Rev. A
Page 16
TM-T88/T88P (TM-T85/T85P) Information Manual

Line Spacing Commands

The TM-T88/T88P (TM-T85/T85 P ) su pports the following comman ds f or setting line spacing. These commands only set the line spacing; they do not actually advance the paper. The line spacing can be set independently in standard mode and in page mode. The line spacing set using these commands affects the results of LF and ESC d and paper feeding by using the FEED button.
Command Name ESC 2 Select default line spacing ESC 3 Set line spacing
ESC 2
[Name] Select default line spacing [Format] ASCII ESC 2
Hex 1B 32 Decimal 27 50
ESC 3 n
[Name] Set line spacing [Format] ASCII ESC 3 n
Hex 1B 33 n Decimal 27 51 n
[Range] 0 n 255
ESC 2 sets the line spacing to 1/6 inch. This is equivalent to 30 dots. ESC 3 n sets the line spacing to n × (vertical or horizontal motion unit). The default setting of the
paper feed amount is 1/6 inch (n=60). The maximum line spacing amount is 40 inches. When standard mode is selected, the vertical motion unit set by GS P is used. When page mode is selected, the vertical or horizontal motion unit set by GS P is used for the print direction set by ESC T.
The line spacing can be set independently in standard mode and in page mode.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); FOR n=25 TO 50 STEP 5
PRINT #1, CHR$(&H1B);"3";CHR$(n);
PRINT #1, "AAAAA"; CHR$(&HA); NEXT n PRINT #1, CHR$(&H1B);"2"; PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, "CCCCC"; CHR$(&HA);
Set the default
Set line spacing
AAAAA AAAAA
AAAAA AAAAA
AAAAA
AAAAA BBBBB
CCCCC
25/180-inch line spacing 30/180-inch line spacing 35/180-inch line spacing
40/180-inch line spacing 45/180-inch line spacing
50/180-inch line spacing
1/6-inch line spacing
Rev. A Command Descriptions 1-7
Page 17

Character Commands

The TM-T88/T88P (TM-T85/T85P) supports the following commands for setting character font and size:
Command Name ESC SP Set right-side character spacing ESC % Select/cancel user-defined character set ESC & Define user-defined characters ESC ? Cancel user-defined characters ESC R Select an international character set ESC t Select character code table ESC ! Select print mode(s) ESC – Turn underline mode on/off ESC E Turn emphasized mode on/off ESC G Turn double-strike mode on/off ESC { Turn upside-down printing mode on/off ESC V Turn 90° clockwis e rotation mode on/off GS ! Select character size GS B Turn white/black reverse printing mode on/off GS b Turn smoothing mode on/off CAN Cancel print data in page mode
ESC SP n
[Name] Set right-side character spacing [Format] ASCII ESC SP n
Hex 1B 20 n Decimal 27 32 n
[Range] 0 n 255
×
ESC SP n sets the right-side character spacing to n change the spacing between characters. The default setting is n=0. When standard mode is selected, the horizontal motion unit set by GS P is used. When page mode is selected, the vertical or horizon tal motion unit set by GS P is used for the print direction set b y ESC T.
This command is effective for all characters (except for HRI characters).
(horizontal or vertical moti on unit ). It is used to
1-8 Command Descriptions Rev. A
Page 18
TM-T88/T88P (TM-T85/T85P) Information Manual
The right-side character spacing can be set independently in standard mode and in page mode.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);" ";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);" ";CHR$(6); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1B);" ";CHR$(12); PRINT #1, "CCCCC"; CHR$(&HA);
Character spacing set to 0
Character spacing set to 6
Character spacing set to 12
ESC % n
[Name] Select/cancel user-defined character set [Format] ASCII ESC % n
Hex 1B 25 n Decimal 27 37 n
AAAAA BBBBB CCCCC
0-inch right-side character spacing
6/180-inch right-side character spacing
12/180-inch right-side character spacing
[Range] 0 n 255
ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
[Name] Define user-defined characters [Format] ASCII ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
Hex 1B 26
c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
y
Decimal 27 38 y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
[Range] y = 3
32 c1 c2 126 0 x 12 (Font A (12 × 24)) 0 x 9 (Font B (9 × 24)) 0 d1 ... d(y × xk) 255 k = c2-c1+1
ESC ? n
[Name] Cancel user-defined characters [Format] ASCII ESC ? n
Hex 1B 3F n Decimal 27 63 n
[Range] 32 n 126 ESC % n selects or cancels the user-defined character set. When the LSB (least significant bit) of n is 1,
the user-defined character set is selected. When it is 0, the int ern al cha rac ter set is selected; this is the default settin g.
Rev. A Command Descriptions 1-9
Page 19
ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)] defines user-defined characters from character code c1 to c2. y and x are the configuration of a user-defined character. y specifies the number of bytes in the vertical direction. x specifies the number of dots in the horizontal direction. Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) ca n be defined by c1 and c2. Data (d) specifies a bit printed to 1 and not printed to 0. As the default, user-defined characters are not defined and the internal character set is printed. Once the user-defined characters have been defined, they are available until ESC ?, ESC @, or GS is executed; the user-defined characters are redefined; the power is turned off; or the printer is reset. When this command is executed, the downloaded bit image is canceled.
ESC ? n cancels the user-defined characters defined for the character code n. After the user-defined characters are canceled, the internal character set is printed.
Program Example Program Example (continued)
y=3 PRINT #1, CHR$(&H1B);"&";CHR$(y);"AC"; x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=11: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=12: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i PRINT #1, CHR$(&H1B);"%";CHR$(0);← PRINT #1, "A B C D E"; CHR$(&HA); PRINT #1, CHR$(&H1B);"%";CHR$(1); PRINT #1, "A B C D E"; CHR$(&HA): PRINT #1, CHR$(&H1B);"?";"A"; PRINT #1, "A B C D E"; CHR$(&HA);
DATA &H00,&H20,&H00,&H00,&HF8,&H00,&H03,&HFE DATA &H00,&H0F,&HFF,&H80,&H3F,&HFF,&HE0,&H0F DATA &HFF,&H80,&H03,&HFE,&H00,&H00,&Hf8,&H00 DATA &H00,&H20,&H00 DATA &H00,&H20,&H00,&H00,$HF8,&H00,&H03,&H8E DATA &H00,&H0E,&H03,&H80,&H38,&H00,&HE0,&HE0 DATA &H00,&H38,&H38,&H00,&HE0,&H0E,&H03,&H80 DATA &H03,&H8E,&H00,&H00,&HF8,&H00,&H00,&H20 DATA &H00
Select the internal character set
Select the user-defined
character set
Cancel the user-defined character
Defines the user-defined
characters as "A", "B", and "C"
DATA &H00,&H30,&H00,&H00,&HF0,&H00,&H03,&HF0 DATA &H00,&H0F,&H3F,&HF8,&H3C,&H3F,&HF8,&HF0 DATA &H00,&H00,&HF0,&H00,&H00,&H3C,&H3F,&HF8 DATA &H0F,&H3F,&HF8,&H03,&HF0,&H00,&H00,&HF0 DATA &H00,&H00,&H30,&H00
Print Sample
ABCDE
♦◊⇑
A◊⇑DE
Characters from internal character set
Characters from user-defined character set
DE
Characters from user-defined character set
(cancel one character)
1-10 Command Descriptions Rev. A
Page 20
TM-T88/T88P (TM-T85/T85P) Information Manual
ESC R n
[Name] Select an international character set [Format] ASCII ESC R n
Hex 1B 52 n Decimal 27 82 n
[Range] 0 n 10 ESC R n selects an international character set n as follows. The default value is U.S.A. (n=0).
ASCII code
n Country
Hex2324405B5C5D5E607B7C7D 7E
Dec 35 36 64 91 92 93 94 96 123 124 125 126
0 U.S.A. # $ @
\
[
^` { ¦}
]
1 Fra nc e # $ à ° ç § ^ ` é ù è ¨
2 G ermany # $ § Ä Ö Ü ^ ` ä ö ü ß
3U.K. £
$@
[
\
]
^`
{ ¦ }
4 Denmark I # $ @ Æ Ø Å ^ ` æ ø å
5 Swe den # ¤ É Ä Ö Å Ü é ä ö å ü
6 Ita ly # $ @ ° \ é ^ ù à ò è ì
7 S pai n Pt $ @ ¡ Ñ ¿ ^ ` ¨ ñ }
8 Japan # $ @
¥
[
^` { ¦}
]
9 Nor way # ¤ É Æ Ø Å Ü é æ ø å ü
10 D enmark II # $ É Æ Ø Å Ü é æ ø å ü
Program Example Print Sample
~
~
~
~
~
~
FOR n=0 TO 10
PRINT #1, CHR$(&H1B);"R";CHR$(n); PRINT #1, "# $ @ [ \ ] ^ ` { ¦ }
NEXT n
~
"; CHR$(&HA);
# $@[ \]^` { ¦} # $à°ç§^`éùè¨← # $§ÄÖÜ ^ `äöüß
£ $@[\ ]^`{ ¦}
# $ @ÆØÅ^` æø å # ¤ЙДЦЕЬйдцеь← # $@°\й^щатим
Pt $@¡Ñ¿^` ¨ñ}
# $@[¥]^`{¦} # ¤ЙЖШЕЬйжшеь← # $ЙЖШЕЬйжшеь
n
=0 (Default setting)
n
=1
n
=2
~
n
=3
~
n
=4
n
=5
n
=6
~
n
=7
~
n
=8
n
=9
n
=10
Rev. A Command Descriptions 1-11
Page 21
ESC t n
[Name] Select character code table [Format] ASCII ESC t n
Hex 1B 74 n Decimal 27 116 n
[Range] 0 n ≤ 5
n = 255
ESC t n selects a page n from the character code table as follows. The default setting is page 0 (n=0). The alphanumeric characters (20H (decimal 32) to 7FH (decimal 12 7)) are the same for each page. The extended characters (80H (decimal 128) to FFH (decimal 255)) are different for each page.
n Character Code Table
0 Page 0 [PC437 (U.S.A. , Standard Europe)]
1 Page 1 [Katakana]
2 Page 2 [PC850 (Multilingual)]
3 Page 3 [PC860 (Portuguese)]
4 Page 4 [PC863 (Canadian-French)]
5 Page 5 [PC865 (Nordic)]
255 Page 255 [Space page]
Program Example Print Sample
PRINT #1, CHR$(&H1B);"t";CHR$(0); ← GOSUB printing PRINT #1, CHR$(&H1B);"t";CHR$(1); GOSUB printing END
printing: FOR i=&H20 TO &H7F PRINT #1, CHR$(i); NEXT i PRINT #1, CHR$(&HA); FOR i=&H80 TO &HFF PRINT #1, CHR$(i); NEXT i PRINT #1, CHR$(&HA); RETURN
Select page 0
Select page 1
1-12 Command Descriptions Rev. A
Page 22
TM-T88/T88P (TM-T85/T85P) Information Manual
ESC ! n
[Name] Select print mode(s) [Format] ASCII ESC ! n
Hex 1B 21 n Decimal 27 33 n
[Range] 0 n 255 ESC ! n selects print modes using n as follows. The default setting is n=0. This command is effective
for all characters (except for HRI characters). When underline mode is turned on, 90° clockwise­rotated characters and white/black reverse characters cannot be underlined.
Bit Off/On Hex Decimal Function
Off 00 0 Character font A (12 x 24) selected.
0
On 01 1 Character font B (9 x 24) selected.
1, 2 Undef in e d.
Off 00 0 Emphasized mode not selected.
3
On 08 8 Emphasized mode selected. Off 00 0 Double-height mode not selected.
4
On 10 16 Double-height mode selected. Off 00 0 Double-width mode selected.
5
On 20 32 Double-width mo de n ot sel ec ted.
6 Undefined.
Off 00 0 Un derline mode not selec ted .
7
On 80 128 Underline mode selected.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"!";CHR$(0); "AA"; PRINT #1, CHR$(&H1B);"!";CHR$(8); "BB"; PRINT #1, CHR$(&H1B);"!";CHR$(16); "CC"; PRINT #1, CHR$(&H1B);"!";CHR$(24); "DD"; PRINT #1, CHR$(&H1B);"!";CHR$(32); "EE"; PRINT #1, CHR$(&H1B);"!";CHR$(40); "FF"; PRINT #1, CHR$(&H1B);"!";CHR$(48); "GG"; PRINT #1, CHR$(&H1B);"!";CHR$(56); "HH"; CHR$(&HA); PRINT #1, CHR$(&H1B);"!";CHR$(129); "AA"; PRINT #1, CHR$(&H1B);"!";CHR$(137); "BB"; PRINT #1, CHR$(&H1B);"!";CHR$(145); "CC"; PRINT #1, CHR$(&H1B);"!";CHR$(153); "DD"; PRINT #1, CHR$(&H1B);"!";CHR$(161); "EE"; PRINT #1, CHR$(&H1B);"!";CHR$(169); "FF"; PRINT #1, CHR$(&H1B);"!";CHR$(177); "GG"; PRINT #1, CHR$(&H1B);"!";CHR$(185); "HH"; CHR$(&HA);
AA: Normal BB: Emphasized CC: Double-height DD: Emphasized + Double-height EE: Double-width FF: Emphasized + Double-width GG: Double-height + Double-width HH: Emphasized + Double-height + Double-width
Font A (12x24)
Font B (9x24) with underline
Rev. A Command Descriptions 1-13
Page 23
ESC – n
[Name] Turn underline mode on/off [Format] ASCII ESC n
Hex 1B 2D
n
Decimal 27 45 n
[Range] 0 n ≤ 2
48 n 50
ESC – n turns underline mode on or off. When n=1 or 49, underline mode (one-dot width) is turned on; when n=2 or 50, underline mode (two-dot width) is turned on; and when n=0 or 48, underline mode is turned off. This command is effective for all characters (except for HRI characters). When underline mode is on, 90° clockwise rotated characters and white/black reverse characters cannot be underlined. The default sett ing is n=0.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"-";CHR$(1);← PRINT #1, "AAAAA"; CHR$(&HA); BBBBB PRINT #1, CHR$(&H1B);"-";CHR$(0);← PRINT #1, "BBBBB"; CHR$(&HA);
Select
Cancel
AAAAA
Underline (one-dot width) turned on
Underline turned off
ESC E n
[Name] Turn emphasized mode on/off [Format] ASCII ESC E n
Hex 1B 45 n Decimal 27 69 n
[Range] 0 n 255 ESC E n turns emphasized mode on or off. When the LSB (least significant bit) of n is 1, emphasized
mode is turned on; when it is 0, emphasized mode is turned off. The default setting is n=0. Emphasized and double-strike printing appea r the same. This command is effective for all characters (except for HRI characters).
Program Example Print Sample
PRINT #1, CHR$(&H1B);"E";CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA); BBBBB ← PRINT #1, CHR$(&H1B);"E";CHR$(0); PRINT #1, "BBBBB"; CHR$(&HA);
Select
Cancel
AAAAA ←
Emphasized Normal
1-14 Command Descriptions Rev. A
Page 24
TM-T88/T88P (TM-T85/T85P) Information Manual
ESC G n
[Name] Turn double-strike mode on/off [Format] ASCII ESC G n
Hex 1B 47 n Decimal 27 71 n
[Range] 0 n 255 ESC G n turns double-strike mode on or off. When the LSB (least significant bit) of n is 1, double-
strike mode is turned on; when it is 0, double-strike mode is turned off. The default setting is n=0. Double-strike and emphasized printing appear the same. This command is effective for all characters (except for HRI characters).
Program Example Print Sample
PRINT #1, CHR$(&H1B);"G";CHR$(1);← PRINT #1, "AAAAA"; CHR$(&HA); BBBBB PRINT #1, CHR$(&H1B);"G";CHR$(0);← PRINT #1, "BBBBB"; CHR$(&HA);
Select
Cancel
AAAAA
Double-strike
Normal
ESC { n
[Name] Turn upside-down printing mode on/off [Format] ASCII ESC { n
Hex 1B 7B n Decimal 27 123 n
[Range] 0 n ≤ 255 ESC { n turns upside-down printing mode on or off. When the LSB (least significant bit) of n is 1,
upside-down printing mode is tur ned on; when it is 0 , upside -down printi ng mo de is turned off. The default settin g is n=0. When upside-down mode is turned on, the printer prints 180°-rotated characters from right to left. The line printing order is not reversed; therefore, be careful of the order of the data transmitted. In standard mode, this command is enabled only when processed at the beginning of a line. In page mode, an internal fl ag is activate d and this co mmand is enabled when t he printer returns to standard mode.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"{";CHR$(0);← GOSUB printing PRINT #1, CHR$(&H1B);"{";CHR$(1);← GOSUB printing END printing: PRINT #1, "ABCDE"; CHR$(&HA); PRINT #1, "BCDEF"; CHR$(&HA); RETURN
Cancel
Select
Normal printing
ABCDE BCDEF
ABCDE BCDEF
Upside-down printing
Rev. A Command Descriptions 1-15
Page 25
ESC V n
[Name] Turn 90° clockwise rotation mode on/off [Format] ASCII ESC V n
Hex 1B 56 n Decimal 27 86 n
[Range] n = 0, 1, 48, 49 ESC V n turns 90° clockwise rot ation mode on or off. When n=1 or 49, 90° cl ock wise rotation mode is
turned on; when n=0 or 48, this mod e is turned off. The defau lt s etting is n=0. I n standard mode, this command is enabled only when processed at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the pri nter retur ns to standard mode. This command is effective for all characters (except for HRI characters).
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);" ";CHR$(20); PRINT #1, CHR$(&H1B);"3";CHR$(15); PRINT #1, CHR$(&H1B);"V";CHR$(1); GOSUB printing PRINT #1, CHR$(&H1B);"2"; PRINT #1, CHR$(&H1B);"V";CHR$(0); GOSUB printing END
Printing PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, "CCCCC"; CHR$(&HA); RETURN
Set paper feed amount
Set right-side spacing
Set line spacing
Select
Cancel
GS ! n
[Name] Select character size [Format] ASCII GS ! n
Hex 1D 21 n Decimal 29 33 n
Right-side spacing
ABC
ABC
ABC
AAAAA
A B
BBBBB
C
CCCCC
Right-side spacing
ABC
ABC
ABC
Line spacing
Line spacing
ESC V
0
ESC V
1
[Range] 0 n 255
(1 vertical number of times normal font size 8,
1 horizontal number of times normal font size 8)
GS ! n selects the character height (vertical number of times normal font size) using bits 0 to 3 and selects the character width (horizontal number of times normal font size) using bits 4 to 7, as follows. The default setting is n=0. This co mmand is effect ive for al l cha racters (except for HRI characters). If
n is outside of the defined range, this command is ignored.
1-16 Command Descriptions Rev. A
Page 26
TM-T88/T88P (TM-T85/T85P) Information Manual
Character Width S election Ch ar acter He ight Selec tio n
Hex Decimal Width Hex Decimal Height
00 0 1 (normal) 00 0 1 (normal) 10 16 2 (double width) 01 1 2 (double height) 20 32 3 02 2 3 30 48 4 03 3 4 40 64 5 04 4 5 50 80 6 05 5 6 60 96 7 06 6 7 70 112 8 07 7 8
.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"!";CHR$(68); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1D);"!";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA);
BBBBB
AAAAA
Normal
Select five-times normal font height and five-times normal font width
GS B n
[Name] Turn white/ black reverse printing mode on/off [Format] ASCII GS B n
Hex 1D 42 n Decimal 29 66 n
[Range] 0 n 255 GS B n turns white/black reverse printing mode on or off. When the LSB (least significant bit) of n is
1, white/black reverse printing mode is turned on; when it is 0, this mode is turned off. The default setting is n=0. In white/black reverse printing mode, characters are printed in white on a black background. This command is effective for all characters (except for HRI characters).
Program Example Print Sample
PRINT #1, CHR$(&H1D);"B";CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1D);"B";CHR$(0); PRINT #1, "BBBBB"; CHR$(&HA);
Select
Cancel
AAAAA
BBBBB
White/black reverse printing
Normal printing
Rev. A Command Descriptions 1-17
Page 27
GS b n
[Name] Turn smoothing mode on/off [Format] ASCII GS b n
Hex 1D 62 n Decimal 29 98 n
[Range] 0 n 255 GS b n turns smoothing mode on or off. When the LSB (least significant bit) of n is 1, smoothing
mode is turned on; when it is 0, smoothing mode is turned off. The default setting is n=0. Smoothing is available for quadruple-size or larger characters.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"!";CHR$(68); PRINT #1, CHR$(&H1D);"b";CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA);
Select font size
Select smoothing
AAAAA
CAN
[Name] Cancel print data in page mode [Format] ASCII CAN
Hex 18 Decimal 24
CAN deletes all the print data for the current print job in page mode. This command is enabled only in page mode.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"L"; PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);
CHR$(0);CHR$(240);CHR$(0);CHR$(44);CHR$(1); PRINT #1, CHR$(&H1B);"T";CHR$(0); FOR i=1 TO 200 : PRINT #1, "A"; : NEXT i PRINT #1, CHR$(&H1B);"W";CHR$(60);CHR$(0);CHR$(90);
CHR$(0);CHR$(60);CHR$(0);CHR$(120);CHR$(0); PRINT #1, CHR$(&H18); PRINT #1, CHR$(&HC);
Select page mode
Select print direction
Cancel print data
Batch print and return to standard mode
AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAA AAAAAAAAAA AAAAA AAAAAAAAAA AAAAA AAAAAAAAAA AAAAA AAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA
1-18 Command Descriptions Rev. A
Page 28
TM-T88/T88P (TM-T85/T85P) Information Manual

Panel Button Command

TheTM-T88/T88P ( TM-T85/T85P) supports the following command for enabling and disabling the panel button (FEED):
Command Name
ESC c 5 Enable/disable panel buttons
ESC c 5 n
[Name] Enable/disable panel buttons [Format] ASCII ESC c 5 n
Hex 1B 63 35 n Decimal279953n
[Range] 0 n 255 ESC c 5 n enables or disables the FEED button. When the LSB (least significant bit) of n is 1, this
button is disabled; when it is 0, this button is enabled. To prevent problems caused by accidentally pressing the FEED button, use this command to disable t he button. When th e PAPER OUT LED blinks to indicate th at the printer is w aiting for a ma cro to be execute d, the button i s enabled (but paper cannot be fed). For TM-T88/T88P, when the printer cover is open, and the paper roll end sensor detects a paper end, paper cannot be fed by the button regardless of the setti ng of this command. For TM-T85/T85P, when the printer cover is open, paper can be fed by the button regardless of the setting of this command. When the paper roll end sensor detects a paper end, paper canno t be fed by the button.
Program Example
PRINT #1, CHR$(&H1B);"c5";CHR$(1);
Disable panel button

Paper Sensor Comm ands

The TM-T88/T88P (TM-T85/T85P) supports the following commands for controlling the paper sensor(s) that stop printing and output paper-end signals:
Command Name ESC c 4 Select paper sensor(s) to stop printing ESC c 3 Select paper sensor(s) to output paper-end signals
ESC c 4 n
[Name] Select paper sensor(s) to stop printing [Format] ASCII ESC c 4 n
Hex 1B 63 34 n Decimal279952n
Rev. A Command Descriptions 1-19
Page 29
[Range] 0 ≤ n 255
ESC c 4 n selects whether to stop print in g or not when the pap er near end is detect ed. The paper roll near-end sensor is enabled when either bit 0 or bit 1 is on. When a paper near-end is detected, printing stops after printing the current line. The printer goes off-line after printing stops. The default settin g is n=0. If the paper roll near-end sensor is disabled and a paper near-end is detected, printing does not stop. The printer does not g o off-line, and the PAPER OUT LED comes on. Paper roll end sensor is always enabled and it detects a paper end, the printer stops printing.
The paper sensor(s) used to stop printing are selected by using n as follows :
Bit Off/On Hex Decimal Function
Off 00 0 Paper roll near-end sensor disabled.
0
On 01 1 Paper roll near-end sensor enabled. Off 00 0 Paper roll near-end sensor disabled
1
On 02 2 Paper roll near-end sensor enabled.
2-7 - - - Undefined.
Program Example
PRINT #1, CHR$(&H1B);"c4";CHR$(1);
Paper roll near-end sensor enabled
ESC c 3 n
[Name] Select paper sensor(s) to output paper-end signals [Format] ASCII ESC c 3 n
Hex 1B 63 33 n Decimal279951n
[Range] 0 n 255 ESC c 3 n selects whet her to o utput paper-end signal s or no t to a par allel inter face. The default value
is to enable the paper roll near-end and paper roll end sensors (n=15).
When both of these sensors are selected to output signals and either one detects a paper-end, the paper-end signal is output. When all sensors are disabled, and a paper end is detected, status is always a paper present. The paper roll near-end sensor is enable d whe n eit her bi t 0 or bit 1 or bot h i s on. The paper roll end sensor is enabled when either 2 or 3 or both bits is on. This command is enabled on ly with a para llel interface and is ignore d with a seria l interface.
The paper sensor(s) used to output paper-end signals are selected by using n as follows:
Bit Off/On Hex Decimal Function
Off 00 0 Paper roll near-end sensor disabled.
0
On 01 1 Paper roll near-end sensor enabled. Off 00 0 Paper roll near-end sensor disabled
1
On 04 2 Paper roll near-end sensor enabled.
1-20 Command Descriptions Rev. A
Page 30
Bit Off/On Hex Decimal Function
Off 00 0 Paper ro ll en d sen sor di sa bl ed .
2
On 04 4 Paper ro ll en d sen sor en abl ed . Off 00 0 Paper ro ll en d sen sor di sa bl ed .
3
On 08 8 Paper ro ll en d sen sor en abl ed .
4-7 - - - Undefined
TM-T88/T88P (TM-T85/T85P) Information Manual
Program Example
PRINT #1, CHR$(&H1B);"c3";CHR$(15);
All sensors enabled

Print Position Commands

The TM-T88/T88P ( TM-T85/T85 P) supports the following commands for setting the print position:
Command Name ESC $ Set absolute print position ESC \ Set relative print pos i ti on ESC a Select justification HT Horizontal tab ESC D Set horizo ntal tab positions GS L Set left marg in GS W Set printing area width ESC W Set printing area in page mode ESC T Select print direction in page mode GS $ Set absolute vertica l print position in page mode GS \ Set relative vertical print position in page mode
ESC $
n
n
L
H
[Name] Set absolute print position
n
[Format] ASCII ESC $
Hex 1B 24 Decimal 27 36
0
n
L
nH
255
255
[Range] 0
n
L
H
n
n
L
H
n
n
L
H
Rev. A Command Descriptions 1-21
Page 31
ESC \
n
n
L
H
[Name] Set relative print position [Format} ASCII ESC \
Hex 1B 5C Decimal 27 92
n
n
L
H
n
n
L
H
n
n
L
H
[Range] 0
ESC $
n
n
L
H
n
255
L
n
0
255
H
sets the print starting posit ion to (
+
n
L
× 256) × (horizontal or vertical motion unit)
n
H
from the beginning of the line. When a left margin is set in standard mode, the position of the left margin is the beginning of the line.
ESC \
moves the print star ting po sition to (
n
n
L
H
+
n
× 256) × (horizontal or vertical motion unit)
n
L
H
from the current position. Use the complement of N for set ting N pitch mov ement to the left: -Np itch = 65536 – N, where (
+
n
L
× 256) = 65536 - N.
n
H
When standard mode is selected, the hor izo ntal mot ion u nit set by GS P is used. When page mode is selected, the horizontal or vertica l motio n unit set by GS P is used for the print direct ion set by ES C T .
If the excessive printing area is selected, it is ignored.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "ABCD"; PRINT #1, CHR$(&H1B);"$";CHR$(90);CHR$(0); PRINT #1, "EFGH"; CHR$(&HA); PRINT #1, "ABCD"; PRINT #1, CHR$(&H1B);"\";CHR$(90);CHR$(0); PRINT #1, "EFGH"; CHR$(&HA);
90/180 inch
ABCD EFGH ABCD EFGH
90/180 inch
ESC a n
[Name] Select justification [Format] ASCII ESC a n
Hex 1B 61 n Decimal 27 97 n
[Range] 0 n ≤ 2
48 n 50
1-22 Command Descriptions Rev. A
Page 32
TM-T88/T88P (TM-T85/T85P) Information Manual
ESC a n aligns all t he data in one li ne to a specifi ed positio n. Left justif icati on is selecte d when n=0 o r 48, centering is selected when n=1 or 49, a nd right justificati on is selected when n=2 or 50 . The defau lt setting is left justification (n=0). In standard mode, this command is enabled only when processed at the beginning of a line. In page mod e, an internal flag is activa ted and this command is enabled when the printer returns to standard mode.
Program Example Print Sample
FOR n=0 TO 2 PRINT #1, CHR$(&H1B);"a";CHR$(n); PRINT #1, "ABC"; CHR$(&HA); PRINT #1, "ABCD"; CHR$(&HA); PRINT #1, "ABCDE"; CHR$(&HA); NEXT n
ABC ABCD ABCDE
HT
[Name] Horizontal tab [Format] ASCII HT
Hex 09 Decimal 9
ESC D n1 ... nk NUL
[Name] Set horizontal tab positions [Format] ASCII ESC D n1 ... nk NUL
Hex 1B 44 n1 ... nk 00 Decimal 27 68 n1 ... nk 0
ESC a
0
ABC
ABCD
ABCDE
ESC a
1
ESC a
2
ABC
ABCD
ABCDE
[Range] 1 n 255
0 k 32
HT moves the print start position to th e next horizontal tab. Thi s command is ignored unless the next horizontal tab position has been set.
ESC D n1 ... nk NUL sets a horizontal tab position to n columns from the beginning of a line, with k indicating the total number of horizonta l tab positi ons to be set. When a left margin is set in st andard mode, the position of the left margin is the beginning of the line. A maximum of 32 tab positions can be set. This command cancels any previous horizontal tab settings. The default tab positions are every eight characters for the font A (12 × 24).
Rev. A Command Descriptions 1-23
Page 33
Program Example Print Sample
PRINT #1, "0123456789012345678901234567890123456"; PRINT #1, CHR$(&HA); GOSUB ht PRINT #1, CHR$(&H1B);"D";CHR$(10);CHR$(20); PRINT #1, CHR$(30);CHR$(0); GOSUB ht END
ht:
FOR i=1 TO 4
PRINT #1, CHR$(&H9); "H"; NEXT i PRINT #1, CHR$(&HA); RETURN
GS L
n
n
L
H
[Name] Set left margin [Format] ASCII GS L
Hex 1D 4C Decimal 29 76
0123456789012345678901234567890123456
HHHH
HHHH
↑↑↑
Tab position 10
Default
n
n
L
H
n
n
L
H
n
n
L
H
8162432
Tab position 20
Tab position 30
0
n
L
n
H
255
255
[Range] 0
GS W
n
n
L
H
[Name] Set printing area width
n
[Format] ASCII GS W
Hex 1D 57 Decimal 29 87
0
n
L
n
H
255
255
+
n
n
L
=0,
n
L
=0. In standard mode, this command is enabled only when
n
H
[Range] 0
GS L
sets the left marg in to (
n
n
L
H
line. The def ault setting is
× 256) × (horizontal motion unit) from the beginning of a
H
n
L
H
n
n
L
H
n
n
L
H
processed at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode.
GS W
setting is
sets the printing area width to (
n
n
L
H
=0,
n
L
=2. In standard mode, this command is enabled only when processed at the
n
H
+
n
× 256) × (horizontal motion unit). The default
n
L
H
beginning of a line. In page mode, an internal fl ag is activate d and this co mmand is enabled when t he printer returns to standard mode.
1-24 Command Descriptions Rev. A
Page 34
TM-T88/T88P (TM-T85/T85P) Information Manual
If the above commands set the printing area width to less than the width of one character, the printing area width is extended to accommodate one character for the line.
The horizontal motion unit uses the horizontal value set by the GS P command. The default setting of the horizontal motion unit is 1/180 inch.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "01234567890123456789"; CHR$(&HA); PRINT #1, CHR$(&H1D);"L";CHR$(60);CHR$(0); PRINT #1, CHR$(&H1D);"W";CHR$(120);CHR$(0); PRINT #1, "01234567890123456789"; CHR$(&HA);
ESC W
x
x
y
y
dx
L
H
L
H
dx
L
H
dy
dy
L
H
[Name] Set printing area in page mode [Format] ASCII ESC W
Hex 1B 57 Decimal 27 87
x
x
y
y
dx
[Range] 0
(except for
ESC W
x
x
y
L
H
L
,
L
y
dx
H
,
,
H
dx
dx
L
,
L
H
dx
=
L
dy
H
L
= 0 or
H
dy
L
dx
,
H
dy
sets the size and positi on of the print ing area in pag e mode
H
as follows:
Horizontal starting posi tion = (x Vertical starting position = (y Printing area width = (dx Printing area height = (dy
+ dxH × 256) × (horizontal motion unit)
L
L
+ xH × 256) × (horizontal motion unit)
L
+ yH × 256) × (vertical motion un it)
L
+ dyH × 256) × (vertical m otion unit)
01234567890123456789
0123456789 0123456789
Left Printing area margin width
x
x
y
y
dx
dx
dy
L
H
L
x
x
y
H
y
H
255
y
L
y
L
L
x
x
L
dy
dy
,
,
L
H
dy
=
L
= 0)
H
H
L
H
dx
dx
H
L
H
dx
dx
H
L
H
dy
L
H
dy
dy
L
H
dy
dy
L
H
The default settings are as follows:
= 0, xH = 0, yL = 0, y
x
L
= 0, dxH = 2, dyL = 126, dyH = 6
dx
L
H
= 0
This command is enabled only in page mode. If this command is processed in standard mode, an internal flag is activated and this command is enabled when the printer selects page mode.
The horizontal and vertical motion units use the horizontal and vertical values set by the GS P command. The default settings of the horizontal and vertical motion units are 1/180 and 1/360 inches, respectively.
Rev. A Command Descriptions 1-25
Page 35
Program Example Print Sample
AAAAA BBBBB
CCCCC
DDDDD
Printing by ESC W
area set
PRINT #1, CHR$(&H1B);"L"; PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(180);
CHR$(0);CHR$(132);CHR$(3); PRINT #1, CHR$(&H1B);"T";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1B);"T";CHR$(2); PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HC);
Select page mode
Select print direction
Store characters for printing
Store characters for printing
Select print direction
Store characters for printing
Batch print and return to standard mode
ESC T n
[Name] Select print direction in page mode [Format] ASCII ESC T n
Hex 1B 54 n Decimal 27 84 n
[Range] 0 n 3
48 n 51
ESC T n sets the print direction and starting position in page mode specified by n as shown below. The default sett ing is n=0. This command is enabled only in page mode. If this command is processed in standard mode, an internal flag is activated and this command is enabled when the printer returns to page mode. .
n Print Direction Starting Position
0, 48 Left to right Upper left (A in the figure)
1, 49 Bottom to top Lower left (B in the figure)
2, 50 Right to left Lower right (C in the figure)
3, 51 Top to bottom Upper right (D in the figure)
A
Printing area
B
Paper feed direction
D
C
The parameters for the horizontal or vertical motion units (x or y) differ depending on the starting position of the printing area as follows:
If the starti ng position is t he upper left or lower right of the printing area (n = 0, 2, 48, or 50):
These commands use horizontal motion units: ESC SP, ESC $, ESC \ These commands use vertical motion units: ESC 3, ESC J, GS $, GS \
1-26 Command Descriptions Rev. A
Page 36
TM-T88/T88P (TM-T85/T85P) Information Manual
If the start ing position is t he lower left o r upper right of the printing area (n = 1, 3, 49, or 51):
These commands use horizontal motion units: ESC 3, ESC J, GS $, GS \ These commands use vertical motion units: ESC SP, ESC $, ESC \
Program Example Print Sample
PRINT #1, CHR$(&H1B);"L"; PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);
CHR$(240);CHR$(0);CHR$(224);CHR$(1); PRINT #1, CHR$(&H1B);"T";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1B);"T";CHR$(1); PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA); PRINT #1, CHR$(&H1B);"T";CHR$(2); PRINT #1, "EEEEE"; CHR$(&HC);
GS $
n
n
L
H
Select page mode
Select print direction
Store characters for printing
Store characters for printing
Select print direction
Store characters for printing
Store characters for printing
Select print direction
Batch print and return to standard mode
[Name] Set absolute vertical print position in page mode
n
[Format] ASCII GS $
Hex 1D 24 Decimal 29 36
0
n
L
n
H
255
255
[Range] 0
n
L
H
n
n
L
H
n
n
L
H
AAAAA BBBBB
CCCCC
DDDDD
EEEEE
Printing area set
by ESC W
GS \
n
n
L
H
[Name] Set relative vertical print position in pag e mode
n
[Format] ASCII GS \
Hex 1D 5C Decimal 29 92
0
n
L
n
H
255
255
[Range] 0
GS $
sets the vertical print st art in g position for buffer characte r dat a in p age mode to (
n
n
L
H
n
L
H
n
n
L
H
n
n
L
H
+
n
n
L
H
× 256) × (vertical or horizontal motion unit) from the starting position by ESC T. This command is effective only in page mode.
GS \
moves the vert ical print starting position in page mode to (
n
n
L
H
+
n
L
× 256) × (vertical or
n
H
horizontal motion unit) fr om the current p osition. This command i s effecti ve only in p age mod e. Use the complement of N for setting pitch movement upward: N pitch = 65536 N, where (
+
n
L
× 256) = 65536 - N.
n
H
Rev. A Command Descriptions 1-27
Page 37
The horizontal and vertical motion units set by GS P is used for the print direction set by ESC T.
If the excessive printing area is selected, it is ignored.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"L"; PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);
CHR$(180);CHR$(0);CHR$(132);CHR$(3); PRINT #1, CHR$(&H1B);"T";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; PRINT #1, CHR$(&H1D);"$";CHR$(90);CHR$(0); PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA); PRINT #1, "EEEEE"; PRINT #1, CHR$(&H1D);"\";CHR$(90);CHR$(0); PRINT #1, "FFFFF"; CHR$(&HC);
Select page mode
Select print direction
Store characters for printing
Store characters for printing
Store characters for printing
Batch print and return to standard mode
AAAAA BBBBB
DDDDD EEEEE

Bit-Image Commands

The TM-T88/T88P (TM-T85/T85P) supports the following bit-image commands:
Command Name
Select bit-image mode
ESC GS
Define downloaded bit image
CCCCC
FFFFF
90/180 inch
Printing
area set by ESC W
90/180 inch
GS / Print downloaded bit image
ESC
m n
n
L
d1 ... dk
H
[Name] Select bit-image mode [Format] ASCII ESC m
Hex 1B 2A m Decimal 27 42 m
[Range] m = 0, 1, 32, 33
n
0
255
L
n
0
H
3
0 d 255
n
n
d1 ... dk
L
H
n
n
d1 ... dk
L
H
n
n
d1 ... dk
L
H
1-28 Command Descriptions Rev. A
Page 38
TM-T88/T88P (TM-T85/T85P) Information Manual
ESC m
(
+
n
n
L
d1 ... dk selects a bit-image mode using m for the number of dots specified by
n
n
L
H
× 256). Set a bit to 1 to print a dot, or set a bit to 0 to not pr int a dot. d ind ica tes t he bit i m age
H
data. The modes selectable by m are as follows:
Vertical Direction Hor izo ntal Dire ction
m Mode
0 8-dot single-density 8 60 90 n
1 8-dot double-density 8 60 180 n 32 24-dot single-density 24 180 90 (n 33 24-dot double-density 24 180 180 (n
Program Example Print Sample
m=1: GOSUB bitimage8 END
bitimage8:
PRINT #1, CHR$(&H1B);"*";CHR$(m);CHR$(180);CHR$(0); FOR i=1 TO 180 : PRINT #1, CHR$(i); : NEXT i PRINT #1, CHR$(&HA); RETURN
Number of Bit s
for vertical data
Dot Density
(DPI)
Dot Density
(DPI)
m=0: GOSUB bitimage8
Amount of
Data (k)
L
+ nH x 256
L
+ nH x 256
L
+nH x 256) x 3
L
+ nH x 256) x 3
m
=0
m
=1
GS x y d1 ... d(x × y × 8)
[Name] Define downloaded bit image [Format] ASCII GS x y d1 ... d(x × y × 8)
Hex 1D 2A x y d1 ... d(x × y × 8) Decimal 29 42 x y d1 ... d(x × y × 8)
[Range] 1 x 255
1 y 48 x × y 1536 0 d 255
Rev. A Command Descriptions 1-29
Page 39
GS / m
[Name] Print downloaded bit image [Format] ASCII GS / m
Hex 1D 2F m Decimal 29 47 m
[Range] 0 m ≤ 3
48 m 51
x y d1 ... d(x × y × 8) defines a d ownl oaded bi t image u sing x × 8 d ot s in the horizontal direction
GS
and y × 8 dots in t he ve rt ic al di re cti on. On ce a downloaded bit image h as been defi ned, i t is avail able until another definition is made; ESC & or ESC @ is exec uted; the printer is reset; or the power i s turned off. When this command is executed, the user-defined characters are cleared. The default setting is no downloaded bit image defined.
GS / m prints a downloaded bit image using the mode specified by m, as follows. In standard mode, this command is effective only when there is no dat a in the print buf fer. This command is ignored if a downloaded bit image has not been defined.
m Mode Vertical Dot Density (DPI ) Horizontal Dot Density (DPI)
0, 48 Normal 180 180 1, 49 Double-width 180 90 2, 50 Double-height 90 180 3, 51 Quadruple 90 90
1-30 Command Descriptions Rev. A
Page 40
TM-T88/T88P (TM-T85/T85P) Information Manual
Program Example Program Example (continued)
x=16: y=5 PRINT #1, CHR$(&H1D);"*";CHR$(x);CHR$(y); FOR i=1 TO x*y*8
READ a$: d=VAL("&H"+a$)
Define downloaded bit image
PRINT #1, CHR$(d);
NEXT i
PRINT #1, CHR$(&H1D);"/";CHR$(0);CHR$(&HA); PRINT #1, CHR$(&H1D);"/";CHR$(1);CHR$(&HA);
Normal
Doublewidth
END
DATA FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,C0,00,00,00,03,C0 DATA 00,00,00,03,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF DATA FF,FF,F3,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,C0,FC DATA 03,F3,CF,C0,FC,03,F3,CF,C0,FC,03,F3,CF,C0,FC,03
DATA F3,CF,C0,FC,03,F3,CF,C0,FC,03,F3,CF,C0,FC,03,F3 DATA CF,C0,FC,03,F3,CF,C0,FC,03,F3,CF,C0,00,03,F3,C0 DATA 00,00,00,03,C0,FF,00,03,F3,C3,FF,C0,03,F3,C7,FF DATA E0,03,F3,C7,FF,F0,03,F3,CF,FF,F8,03,F3,CF,FF,FC DATA 03,F3,CF,E3,FE,03,F3,CF,C1,FF,03,F3,CF,C0,FF,83 DATA F3,CF,C0,7F,C7,F3,CF,C0,3F,FF,F3,CF,C0,1F,FF,F3 DATA CF,C0,0F,FF,E3,CF,C0,07,FF,E3,CF,C0,03,FF,C3,C0 DATA 00,00,FF,03,C0,00,00,00,03,C0,3F,FF,FC,03,C0,FF DATA FF,FF,03,C3,FF,FF,FF,C3,C7,FF,FF,FF,E3,C7,FF,FF DATA FF,E3,CF,FF,FF,FF,F3,CF,F0,00,0F,F3,CF,C0,00,03 DATA F3,CF,C0,00,03,F3,CF,C0,00,03,F3,CF,C0,00,03,F3 DATA CF,C0,00,03,F3,CF,C0,00,03,F3,CF,C0,00,03,F3,CF DATA C0,00,03,F3,CF,C0,00,03,F3,C0,00,00,00,03,C0,00 DATA 00,00,73,C0,00,00,03,C3,C0,00,00,1E,03,C0,00,00 DATA 70,03,C0,00,03,C0,03,C0,00,1E,00,03,C0,00,78,00 DATA 03,C0,03,C0,00,03,C0,0E,00,00,03,C0,78,00,00,03 DATA C3,C0,00,00,03,CE,00,00,00,03,C0,00,00,00,03,CF
DATA FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF DATA FF,FF,F3,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,C0,0F DATA C0,03,CF,C0,0F,C0,03,CF,C0,0F,C0,03,CF,C0,0F,C0 DATA 03,CF,C0,0F,C0,03,CF,E0,1F,C0,03,CF,FF,FF,C0,03 DATA CF,FF,FF,CO,03,C7,FF,FF,80,03,C7,FF,FF,80,03,C1 DATA FF,FE,00,03,C0,3F,F0,00,03,C0,00,00,00,03,C0,0F DATA FF,F0,03,C0,FF,FF,FF,03,C3,FF,FF,FF,C3,C7,FF,FF DATA FF,E3,C7,FF,FF,FF,E3,CF,FF,FF,FF,F3,CF,F0,00,0F DATA F3,CF,C0,00,03,F3,CF,C0,00,03,F3,CF,C0,00,03,F3 DATA CF,C0,00,03,F3,CF,C0,00,03,F3,CF,C0,00,03,F3,CF DATA C0,00,03,F3,CF,F0,00,0F,F3,CF,FF,FF,FF,F3,C7,FF DATA FF,FF,E3,C7,FF,FF,FF,E3,C3,FF,FF,FF,C3,C0,FF,FF DATA FF,03,C0,0F,FF,F0,03,C0,00,00,00,03,C0,FF,00,03 DATA F3,C3,FF,C0,03,F3,C7,FF,E0,03,F3,C7,FF,F0,03,F3 DATA CF,FF,F8,03,F3,CF,FF,FC,03,F3,CF,E3,FE,03,F3,CF DATA C1,FF,03,F3,CF,C0,FF,83,F3,CF,C0,7F,C7,F3,CF,C0 DATA 3F,FF,F3,CF,C0,1F,FF,F3,CF,C0,0F,FF,E3,CF,C0,07 DATA FF,E3,CF,C0,03,FF,C3,C0,00,00,FF,C3,C0,00,00,00 DATA 03,C0,00,00,00,03,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF
Print Sample
0
GS/
1
GS/
Rev. A Command Descriptions 1-31
Page 41

Status Commands

The TM-T88/T88P (TM-T85/T85P) supports the following status transmission commands. These commands can be used to determine the status of the printer, paper sensors, and peripheral devices connected to the printer. ESC u and ESC v are supported only by TM-T85/T85P.
Command Name GS a Enable/disable Automatic Status Back (ASB) GS r Transmit status DLE EOT Real-time status transmission ESC u Transmit peripheral device status ESC v Transmit paper sensor status
GS a n
[Name] Enable/disable Automatic Status Back (ASB) [Format] ASCII GS a n
Hex 1D 61 n Decimal 29 97 n
[Range] 0 n 255 GS a n selects a status for ASB tran smission. ASB is en abled if any status item i s selected . The print er
automatically transmits a 4-byte status message whenever the status changes. Multiple status items can be selected. When n=0, ASB is disabled. The default (n=0 or 2) depends on DIP switch 2-1 settings. If ASB is enabled when the printer is disabled by ESC = , the printer transmits a 4-byte status message whenever the status changes. The status items are selected using n as follows:
Bit Off/On Hex Decimal Function
Off 00 0
0
On 01 1
Off 00 0 On-line/off-line status disabled.
1
On 02 2 On-line/off-line status enabled. Off 00 0 Error status disab led.
2
On 04 4 Error status en ab led . Off 00 0 Paper roll sensor status disabled.
3
On 08 8 Paper roll sensor status enabled.
4-7 — Undefined.
Drawer kick-out connector pin 3 status disabled.
Drawer kick-out connector pin 3 status enabled.
Program Example
PRINT #1, CHR$(&H1D);"a";CHR$(4);
Enable "Error" status
1-32 Command Descriptions Rev. A
Page 42
TM-T88/T88P (TM-T85/T85P) Information Manual
First byte (printer information)
Bit Off/On Hex Decimal Status for ASB
0 Off 00 0 Not used. Fixed to Off. 1 Off 00 0 Not used. Fixed to Off.
Off 00 0 Drawer ki ck-o ut con ne cto r pin 3 is LOW.
2
On 04 4 Dra wer ki ck-o ut c onne ctor pin 3 is HIGH. Off 00 0 On-line.
3
On 08 8 Off-line.
4 On 10 16 Not used. Fixed to On.
Off 00 0 Cover closed.
5
On 20 32 Cover open. Off 00 0 Paper is not being fed by the paper feed butt on.
6
On 40 64 Paper is being fed by the paper feed button.
7 Off 00 0 Not used. Fixed to Off.
Second byte (printer information)
Bit Off/On Hex Decimal Status for ASB
0-2 — Undefined.
Off 00 0 No auto-cutter error.
3
On 08 8 Auto-cutter error occurred.
4 Off 00 0 Not used. Fixed to Off.
Off 00 0 No unrecoverable error.
5
On 20 32 Unrecoverable error occurred. Off 00 0 No automatically recoverable error.
*6
On 40 64 Automatically recoverable error occurred.
7 Off 00 0 Not used. Fixed to Off.
* For TM-T88/T88P, bit 6 is on when a head temperature error occurs and the cover is open during printing. For TM-T85/T85P, bit 6 is on when a head temperature error occurs.
Rev. A Command Descriptions 1-33
Page 43
Third byte (paper sensor information)
Bit Off/On Hex Decimal Status for ASB
Off 00 0 Paper rol l nea r-en d sensor : pap er ad eq ua te.
0, 1
On 03 3 Paper roll near-end sensor: paper near en d. Off 00 0 Paper roll end sensor: paper present.
*2, 3
On 0C 12 Paper roll end sensor: paper not present. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefined. 7 Off 00 0 Not used. Fixed to Off.
* For TM-T88/T88P, when the cover is open, paper detection may be incorrect.
Fourth byte (paper sensor information)
Bit Off/On Hex Decimal Status for ASB
0-3 Undefined. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefin ed. 7 Off 00 0 Not used. Fixed to Off.
GS r n
[Name] Transmit status [Format] ASCII GS r n
Hex 1D 72 n Decimal 29 114 n
[Range] n = 1, 2, 49, 50 GS r n transmits 1 byte of status data specified by n as follows: paper sensor status when n=1 or 49
and drawer kick-out connector status when n=2 or 50. When the paper roll end sensor detects a paper-end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 do not transmit paper-end status
Program Example
PRINT #1, CHR$(&H1D);"r";CHR$(1);
.
Transmits paper sensor status
Paper sensor status (n=1, 49)
Bit Off/On Hex Decimal Status
Off 00 0 Paper rol l nea r-en d sensor : pap er ad eq ua te.
0, 1
On 03 3 Paper roll near-end sensor: paper near en d.
1-34 Command Descriptions Rev. A
Page 44
TM-T88/T88P (TM-T85/T85P) Information Manual
Bit Off/On Hex Decimal Status
Off 00 0 Paper roll end sensor: paper present.
*2, 3
On (0C) (12) Paper roll end sensor: paper not present. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefined. 7 Off 00 0 Not used. Fixed to Off.
* For TM-T88/T88P, when the cover is open, paper detection may be incorrect.
Drawer kick-out connector status (n=2, 50).
Bit Off/On Hex Decimal Status
Off 00 0 Drawer ki ck-o ut con ne cto r pin 3 is LOW.
0
On 01 1 Dra wer ki ck-o ut c onne ctor pin 3 is HIGH. 1-3 Undefined. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefin ed. 7 Off 00 0 Not used. Fixed to Off.
DLE EOT n
[Name] Real-time status transmissi on [Format] ASCII DLE EOT n
Hex 10 04 n Decimal 16 4 n
[Range] 1 n ≤ 4 DLE EOT n transmits the specified status in real time.
With a serial interface model, this command is executed even when the printer is off-line, the receive buffer is full, or an error occurs.
With a parallel interface model, this command is not executed in the following status because the printer is busy and unable to receive data from the host computer.
Receive buffer is full when DIP switch 2-1 is set to On. Printer is off-line, an error occurs, or receive buffer is full when DIP switch 2-1 is set to Off.
Rev. A Command Descriptions 1-35
Page 45
n indicates the status function as follows:
n Func tion
1 Transmit printer status
2 Transmit off-line status
3 Transmit error status
4 Transmit paper roll sensor status
Program Example
PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(2);
Transmits off-line status
Printer status (n=1)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On.
Off 00 0 Drawer kick-out connector pin 3 is LOW.
2
On 04 4 Drawer kick-out connector pin 3 is HIGH. Off 00 0 On-line.
3
On 08 8 Off-line. 4 On 10 16 Not used. Fixed to On. 5, 6 Undefined. 7 Off 00 0 Not used. Fixed to Off.
Off-line status (n=2)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On.
Off 00 0 Cover is closed.
2
On 04 4 Cover is open. Off 00 0 Paper is no t being fed by the paper feed button.
3
On 08 8 Paper is being fed by the paper feed button.
4 On 10 16 Not used. Fixed to On.
Off 00 0 No pa per-end stop.
5
On 20 32 Printing stops due to paper-end.
1-36 Command Descriptions Rev. A
Page 46
Bit Off/On Hex Decimal Status
Off 00 0 No error.
6
On 40 64 Error occurred.
7 Off 00 0 Not used. Fixed to Off.
Error status (n=3)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On. 2 Undefined.
Off 00 0 No auto-cu tter error.
3
On 08 8 Auto-cutter error occurred.
4 On 10 16 Not used. Fixed to On.
Off 00 0 No unreco v era bl e error .
5
On 20 32 Unrecoverable error occurred. Off 00 0 No auto -re coverable error.
*6
On 40 64 Auto-recoverable error occurred.
7 Off 00 0 Not used. Fixed to Off.
TM-T88/T88P (TM-T85/T85P) Information Manual
* For TM-T88/T88P, bit 6 is on when a head temperature error occurs and the cover is open during printing. For TM-T85/T85P, bit 6 is on when a head temperature error occurs.
Paper roll sensor status (n=4)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On.
Off 00 0 Paper roll nea r-en d sens or: pap er adequ at e.
2, 3
On 0C 12 Paper roll near-end sensor: paper near end.
4 On 10 16 Not used. Fixed to On.
Off 00 0 Paper roll end sensor: paper present.
*5, 6
On 60 96 Paper roll end sensor: paper not present.
7 Off 00 0 Not used. Fixed to Off.
* For TM-T88/T88P, when the cover is open, paper detection may be incorrect.
Rev. A Command Descriptions 1-37
Page 47
ESC u n
[Name] Transmit peripheral device status [Format] ASCII ESC u n
Hex 1B 75 n Decimal 27 117 n
[Range] n = 0, 48 ESC u n transmits the status of dra wer kick-out connect or pin 3 as 1 byt e of data when n=0 or 48. This
command allows the host to determine the status of a peripheral device. GS r is preferred for checking the status because ESC u is not a recommended command. This command is supported only by TM-T85/T85P.
Program Example
PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250); PRINT #1, CHR$(&H1B);"u";CHR$(0);
Peripheral device status
Bit Off/On Hex Decimal Status
Off 00 0 Drawer ki ck-o ut con ne cto r pin 3 is LOW.
0
On 01 1 Dra wer ki ck-o ut c onne ctor pin 3 is HIGH. 1-3 Undefined. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undef in e d. 7 Off 00 0 Not used. Fixed to Off.
ESC v
[Name] Transmit paper sensor status [Format] ASCII ESC v
Hex 1B 76 Decimal 27 118
Generates a pulse
ESC v transmits the status of a paper sensor as 1 byte of data. GS r is preferred for checking the status because ESC v is not a recommended command. When the paper roll end sensor detects a paper-end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 do not transmit paper-end status. The status to be transmitted is shown in the table below. This command is supported only by TM-T85/T85P.
1-38 Command Descriptions Rev. A
Page 48
TM-T88/T88P (TM-T85/T85P) Information Manual
Program Example
PRINT #1, CHR$(&H1B);"v";
Paper sensor status
Bit Off/On Hex Decimal Status
Off 00 0 Paper rol l nea r-en d sensor : pap er ad eq ua te.
0, 1
On 03 3 Paper roll near-end sensor: paper near en d. Off 00 0 Paper roll end sensor: paper present.
2, 3
On (0C) (12) Paper roll end sensor: paper not present. 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefin ed. 7 Off 00 0 Not used. Fixed to Off.

Bar Code Command s

The TM-T88/T88P (TM-T85/T85P) supports the following bar code commands:
Command Name GS h Set bar code height GS w Set bar code width GS k Print bar code GS H Sele ct printing position of Human Readable Interpretation (HRI) characters GS f Select font for HRI characters
GS h n
[Name] Set bar code height [Format] ASCI GS h n
Hex 1D 68 n Decimal 29 104 n
[Range] 1 n 255 GS h n selects the height of a bar code. n specifies the number of dots in the vertical direction. One
dot corresponds to 1/180 inch. The default setting is n=162.
Rev. A Command Descriptions 1-39
Page 49
Program Example Print Sample
PRINT #1, CHR$(&H1D);"h";CHR$(50);
PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA);
PRINT #1, CHR$(&H1D);"h";CHR$(100);
PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA);
Set height to 50
Print bar code
Set height to 100
Print bar code
Height: 50 dots
Height: 100 dots
GS w n
[Name] Set bar code width [Format] ASCII GS w n
Hex 1D 77 n Decimal 29 119 n
[Range] 2 n ≤ 6 GS w n selects the horizontal size of a bar code. n specifies the bar code width as shown below. The
multilevel bar codes are UPC-A, UPC-E, JAN13 (EAN13), JAN8 (EAN8), CODE93, and CODE128. The binary level bar codes are CODE39, ITF, and CODABAR. The default setting is n=3.
Module Width (mm) for
n
2 0.282 0.282 0.706
3 0.423 0.423 1.129
4 0.564 0.564 1.411
5 0.706 0.706 1.834
6 0.847 0.847 2.258
Multilevel Bar Code
Thin Element Width (mm) T h i ck El ement Width (m m)
Binary Level Bar Code
1-40 Command Descriptions Rev. A
Page 50
TM-T88/T88P (TM-T85/T85P) Information Manual
Program Example Print Sample
PRINT #1, CHR$(&H1D);"w";CHR$(3); PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA);
PRINT #1, CHR$(&H1D);"w";CHR$(4); PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA);
PRINT #1, CHR$(&H1D);"w";CHR$(5); PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA);
Set width size to 3 Print bar code
Set width size to 4 Print bar code
Set width size to 5 Print bar code
Width size 3
Width size 4
Width size 5
Rev. A Command Descriptions 1-41
Page 51
GS k m d1 ... dk NUL GS k m n d1 ... dn
[Name] Print bar code [Format] ASCII GS k m d1 ... dk NUL
Hex 1D 6B m d1 ... dk 00 Decimal 29 107 m d1 ... dk 0
ASCII GS k m n d1 ... dn
Hex 1D 6B m n d1 ... dn Decimal 29 107 m n d1 ... dn
[Range] 0 m 6 (k and d depend on the bar code system used)
65 m 73 (n and d depend on the bar code system used)
GS k m d1 ... dk NUL and ➁ GS k m n d1 ... dn select a bar code system and print the bar code. m
specifies a bar code system as follows:
m Bar Code System Number of Characters Remarks
0 1 2 3 4
5 6
65 66 67 68 69
UPC-A UPC-E JAN13 (EAN13) JAN8 (EAN8) CODE39
ITF CODABAR
UPC-A UPC-E JAN13 (EAN13) JAN8 (EAN8) CODE39
k 12
11
k 12
11
k 13
12
k 8
7
k
1
k (even number)
1
k
1
n 12
11
n 12
11
n 13
12
n 8
7
n 255
1
d 57
48
d 57
48
d 57
48
d 57
48
d 57, 65d 90,
48 d = 32, 36, 37, 43, 45, 46, 47
d 57
48
d 57, 65d 68,
48 d = 36, 43, 45, 46, 47, 58
48
d 57d 57
48
d 57
48
d 57
48
d 57, 65d 90,
48 d = 32, 36, 37, 43, 45, 46, 47
70 71
72 73
ITF CODABAR
CODE93 CODE128
n 255 (even number)
1
n 255
1
n 255
1
n 255
2
d 57
48
d 57, 65d 68,
48 d = 36, 43, 45, 46, 47, 58
d 127
0
d 127
0
In GS k m d1 ... dk NUL, d indicates the character code to be printed and k indicates the number of characters to be printed. In GS k m n d1 ... dn, n indicates the number of the bar code data; the printer processes n bytes from the next character data as bar code data. d indicates the character code to be printed. If n is outside of the specified range, the printer stops command processing and processes the following data as normal data. If the bar code width exceeds the printing area, the printer does not print the bar code. In standard mode, these commands are enabled only when no data exists in the print buffer.
1-42 Command Descriptions Rev. A
Page 52
TM-T88/T88P (TM-T85/T85P) Information Manual
Program Example Print Sample
PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"k";CHR$(67);CHR$(12); PRINT #1, "496595707379";
Print bar code
Print bar code
GS H n
[Name] Select printing position of HRI characters [Format] ASCII GS H n
Hex 1D 48 n Decimal 29 72 n
[Range] 0 n 3
48n 51
GS f n
[Name] Select font for HRI characters [Format] ASCII GS f n
Hex 1D 66 n Decimal 29 102 n
[Range] n = 0, 1, 48, 49 GS H n selects the printing position for HRI characters when printing a bar code. n selects the
printing position as follows:
n Printing Position
0, 48 Not printed
1, 49 Above the bar code
2, 50 Below the bar code
3, 51 Both above and below the bar code
The default sett ing is n=0. HRI characters are printed using the font specified by GS f.
Rev. A Command Descriptions 1-43
Page 53
GS f n selects a font for the HRI characters used when printing a bar code. When n=0 or 48, the font
49659 957 7 7 703
49659 957 7 7 703
49659 957 7 7 703
49659 957 7 7 703
496 5 9 957 7 7 703
A (12 × 24) is selected. When n=1 or 49, the font B ( 9 × 24) i s sel ected . T he de fault sett ing is n=0. HRI characters are printed at the position specified by GS H.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"h";CHR$(80); PRINT #1, CHR$(&H1D);"f";CHR$(0); FOR n=0 to 3
PRINT #1, CHR$(&H1D);"H";CHR$(n); PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0);
PRINT #1, CHR$(&HA); NEXT n PRINT #1, CHR$(&H1D);"f";CHR$(1); PRINT #1, CHR$(&H1D);"H";CHR$(2); PRINT #1, CHR$(&H1D);"k";CHR$(2); PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA);
Set height to 80 dots
Select font
Select print position
Print bar code
Select font
Select print position
Print bar code
94965 9570737 7

Macro Function Commands

The TM-T88/T88P (TM-T85/T85P) supports the following macro function commands.
Command Name
GS : Start/end macro definition
GS H
GS H
GS H
GS H
GS H
0
1
2
3
2
Font A (12x24)
Font B (9x24)
GS :
[Name] Start/end macro definition [Format] ASCII GS :
GS ^ r t m
[Name] Execute macro [Format] ASCII GS ^ r t m
[Range] 0 r 255
GS ^ Execute macro
Hex 1D 3A Decimal 29 58
Hex 1D 5E r t m Decimal 29 94 r t m
0 t 255 m = 0, 1
1-44 Command Descriptions Rev. A
Page 54
TM-T88/T88P (TM-T85/T85P) Information Manual
GS : starts or ends macro definition. Macro definition starts when this command is received during normal operation and ends when it is received during macro definition. If the printer receives this command again immediately after previously receiving it, the printer remains in the macro undefined state.
The macro definition can contain up to 2048 bytes. If the macro definition exceeds this value, the excess data is not stored.
GS ^ r t m executes a macro r times while waiting t × 100 msec for each macro execution. When m=0, the macro executes r times continuously at the interval specified by t. When m=1, the printer waits for the period specified by t, blinks the PAPER OUT LED indicator, and then waits for the FEED button to be pressed. After this button is pressed, the printer executes the macro once. The printer repeats this operation r times.
If this command is received while a macro is being defined, the printer ends macro definition mode and clears the definition. If a macro is not d efined or if r is 0, nothing is executed. When the macro is executed by pressing the FEED button (m=1), paper cannot be fed with this b utton.
Program Example Print Sample
PRINT #1, CHR$(&H1D);":"; PRINT #1, CHR$(&H1B);"a";CHR$(1); PRINT #1, "*** Hello"; PRINT #1, CHR$(&H1D);"!";CHR$(17); PRINT #1, "EPSON"; PRINT #1, CHR$(&H1D);"!";CHR$(0); PRINT #1, "World! ***"; PRINT #1, CHR$(&HA); CHR$(&HA); PRINT #1, CHR$(&H1B);"a";CHR$(0); PRINT #1, CHR$(&H1B);"-";CHR$(1); PRINT #1, "No. "; CHR$(&HA); PRINT #1, "Name "; CHR$(&HA); PRINT #1, "Address "; PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(60) PRINT #1, CHR$(&H1B);"-";CHR$(0); PRINT #1, CHR$(&H1D);":"; PRINT #1, CHR$(&H1D);"^";CHR$(2);CHR$(0);CHR$(0);
Defines a macro
***
No. Name
Address
***
No. Name
Address
*Cutting is different, depndin g
on the printer model
EPSON
Hello
EPSON
Hello
World!
World!
***
***
Rev. A Command Descriptions 1-45
Page 55

Mechanism Control Commands

TheTM-T88/T88P (TM-T85/T85P) supports the following mechanism control commands. Cutting is diffferent for TM-T88/T88P and TM-T85/T85P. A full cut of GS V and ESC i are supported only by TM-T85/T85P.
Command Name GS V Select cut mode and cut paper ESC i Partial cut (one point left uncut)
GS V m GS V m n
[Name] Select cut mode and cut paper [Format] ASCII GS V m
Hex 1D 56 m Decimal 29 86 m
ASCII GS V m n
Hex 1D 56 m n Decimal 29 86 m n
[Range] m = 1, 49 (for TM-T88/T88P)
m = 0, 1, 48, 49 (for TM-T85/T85P)
m = 66 (for TM-T88/T88P)
m = 65, 66 (for TM-T85/T85P) 0 n 255
ESC i
[Name] Partial cut (one point left uncut) [Format] ASCII ESC i
Hex 1B 69 Decimal 27 105
GS V m and GS V m n select a paper cutting mode and then cut the paper. When standard mode is selected, these commands are effective only processed at the beginning of a line.
When m=1 or 49 in GS V m, the printer executes a partial cut (o ne point left un cut). For TM-T85/ T85P, when m=0 or 48, the printer executes a full cut. When using this command, there is a gap between the auto-cutter position and the print position.
1-46 Command Descriptions Rev. A
Page 56
TM-T88/T88P (TM-T85/T85P) Information Manual
When m=66 in GS V m n, the printer feeds the paper to (cutting position + n × vertical motion unit) and executes a partial cut (one point left uncut). For TM-T85/T85P, when m=65, the printer feeds the paper to (cutting position + n × vertical motion unit) and executes a full cut. The vertical motion unit is specified by GS P. The default setting of the vertical motion unit is 1/360 inch.
The value of m selects the mode for GS V m and GS V m n as follows:
m
0, 48 Full cut (cuts the paper completely)
1, 49 Partial cut (one point left uncut)
65 Feeds paper to (cutting pos iti on + n x vertical motion un it )
and cuts the paper completely
66 Feeds the paper to (cutting po s iti on + n x vertical motion
unit) and cuts the paper partially ( one point left uncut)
Print Mode
ESC i executes a parti al cut of the p ap er wi th one poi nt left uncut. ESC i operates in t he same w ay a s GS V when m=1 or 49. GS V is preferred for cutting paper because ESC i is not a recommended command. ESC i is supported only by TM-T85/T85P.
Program Example Print Sample
PRINT #1, " AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"J";CHR$(250); PRINT #1, CHR$(&H1D);"V";CHR$(1); PRINT #1, " BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(0);
Cut paper
Feed paper and cut
Partial cut (one point left uncut)
Paper fed to the cutting position and partial cut (one point left uncut) performed
AAAAA
BBBBB

Miscellaneous Function Commands

The TM-T88/T88P (TM-T85/T85P) supports the following miscellaneous function commands:
Command Name GS P Set horizontal and vertical motion units ESC @ Initialize printer GS I Transmit printer ID ESC p Generate pulse ESC = Select peripheral device ESC L Select page mode ESC S Select standard mode DLE ENQ R eal-time request to printer
Rev. A Command Descriptions 1-47
Page 57
GS P x y
[Name] Set horizontal and vertical motion units [Format] ASCII GS P x y
Hex 1D 50 x y Decimal 29 80 x y
[Range] 0 x 255
0 y 255
GS P x y sets the horizontal and vertical motion units to 1/x and 1/y inches, respectively. The horizontal and vertical motion units indicate the minimum pitch used for calculating the values of related commands (shown below). The default values are x=180 and y=360. These values equal a normal dot pitch in horizontal and half dot pitch in vertical. When x and y are set to 0, the default setting of each value is used.
Commands used with the horizontal motion unit (1/x) in standard mode: ES C SP, ESC $, ESC \, GS L, and GS W.
Commands used with the vertical motion unit (1/y ) in standard mode: ESC 3, ESC J, and GS V. Commands used with the horizontal and vertical motion units (1/x and 1/y) in page mode (either x
or y can be used, depending on the print direction set with ESC T): ESC SP, ESC $, ESC \, ESC 3, ESC J, ESC W, GS $, GS \, and GS V.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); AAAAA PRINT #1, CHR$(&H1B);"3";CHR$(30); PRINT #1, "AAAAA"; CHR$(&HA); CCCCC PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(90); DDDDD PRINT #1, CHR$(&H1B);"3";CHR$(30); PRINT #1, "CCCCC"; CHR$(&HA); EEEEE PRINT #1, "DDDDD"; CHR$(&HA); PRINT #1, "EEEEE"; CHR$(&HA);
Set line spacing
Set line spacing
BBBBB
ESC @
[Name] Initialize printer [Format] ASCII ESC @
Hex 1B 40 Decimal 27 64
30/180-inch line spacing
30/90-inch line spacing
1-48 Command Descriptions Rev. A
Page 58
TM-T88/T88P (TM-T85/T85P) Information Manual
ESC @ initializes the prin ter. All settings, including character font an d line spacing settings, are canceled. The data in the print buffer is cleared and the print er mode is reset to t he mode that wa s in effect when the power was turned on. The DIP switch settings are not checked again, the data in the receive buffer is not cleared, and any macro definitions are not cleared.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"!";CHR$(17); PRINT #1, CHR$(&H1B);"E";CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"@"; ← PRINT #1, "BBBBB"; CHR$(&HA);
Initialize printer
AAAAA
BBBBB
All settings are canceled after ESC @ is executed
GS I n
[Name] Transmit printer ID [Format] ASCII GS I n
Hex 1D 49 n Decimal 29 73 n
[Range] 1 n ≤ 3
49 n 51
GS I n transmits the printer ID specified by n as follows. Each printer ID consists of 1 byte of data.
n Printer ID Specification ID (he xade cim a l)
1, 49 Printer model ID
2, 50 Type ID See table below. 3, 51 ROM version ID Dep en ds on RO M ve rs io n.
TM-T88/T88P 20 (decimal 32) TM-T85/T85P 08 (decimal 8)
Type ID
Bit Off/On Hex Decimal Function
0 Off 00 0 Two-byte charac ter code not supported . 1 On 02 2 Auto-cutter equipped. 2 Off 00 0 Customer display not connected 3 Off 00 0 Without MICR model 4 Off 00 0 Not used. Fixed to Off. 5, 6 Undefined. 7 Off 00 0 Not used. Fixed to Off.
Rev. A Command Descriptions 1-49
Page 59
Program Example
PRINT #1, CHR$(&H1D);"I";CHR$(1);
Transmits printer ID
ESC p m t1 t2
[Name] Generate pulse [Format] ASCII ESC p m t1 t2
Hex 1B 70 m t1 t2 Decimal 27 112 m t1 t2
[Range] m = 0, 1, 48, 49
0 t1 255 0 t2 255
ESC p m t1 t2 sends a pulse (on time= t1 × 2 msec / off time= t2 × 2 msec) to the specified connector pin. When m=0 or 48, the pul s e is sent to dr awer ki ck-ou t c onnect or pi n 2; when m=1 or 49, the pulse is sent to drawer kick-out connector pin 5.
Program Example
PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250);
ESC = n
[Name] Select peripheral device [Format] ASCII ESC = n
Hex 1B 3D n Decimal 27 61 n
[Range] 0 n 255 ESC = n selects the device to which the host computer sends data, based on the value of n as follows:
Bit Off/On Hex Decimal Function
Off 00 0 Printer disabled.
0
On 01 1 Printer en abled.
1-7 Undefined.
When the LSB (least significant bit) of n is 1, the printer is enabled; when it is 0, the pri nter is di sabled.
1-50 Command Descriptions Rev. A
Page 60
TM-T88/T88P (TM-T85/T85P) Information Manual
When the printer is disabled, it ignores all received data with the exception of DLE ENQ 1 and DLE ENQ 2. The default setting is n=1. If ASB is enabled when the printer is disabled by ESC =, the
printer transmits a 4-byte status message whenever the status changes.
Program Example Print Sample
AAAAA CCCCC PRINT #1, CHR$(&H1B);"=";CHR$(1); PRINT #1, "AAAAA"; PRINT #1, CHR$(&H1B);"=";CHR$(0); PRINT #1, " BBBBB"; PRINT #1, CHR$(&H1B);"=";CHR$(1); PRINT #1, " CCCCC"; CHR$(&HA);
ESC L
[Name] Select page mode [Format] ASCII ESC L
Hex 1B 4C
Printer enabled
Printer disabled
Printer enabled
Decimal 27 76
ESC S
[Name] Select standard mode [Format] ASCII ESC S
Hex 1B 53 Decimal 27 83
ESC L switches from standard mode to page mode. This command is enabled only when processed at the beginning of a line in standard mode; it has no effect in page mode. Standard mode is selected as the default.
The following commands are not effective in page mode: ESC V, ESC a, ESC {, GS L, and GS W.
If these commands are processed in page mode, an internal flag is activated. ESC S switches from page mode to standard mode. This command is effective only in page mode.
Data buffered in page mode is cleared. This command returns the values set by ESC W to the default values. The value set by ESC T is maintained. The printer returns to standard mode with ESC S, FF, and ESC @. When it returns to standard mode by ESC @, all settings are canceled. This command sets the print position to the beginning of the line. The setting of ESC T and ESC W are not effective in printing in standard mode but an internal flag is a ctivated. In standard mode, FF, CAN, ESC FF, ESC S, GS $ and GS / are ignored. Standard mode is selected as the default.
Rev. A Command Descriptions 1-51
Page 61
Program Example Print Sample
PRINT #1, CHR$(&H1B);"L"; PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);
CHR$(0);CHR$(60);CHR$(0);CHR$(180);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, "CCCCC"; PRINT #1, CHR$(&H1B);CHR$(&HC) PRINT #1, CHR$(&H1B);"S";
Select page mode
Select print direction
Store characters for printing
Store characters for printing
Batch print
Select standard mode
AAAAA BBBBB
CCCCC
DLE ENQ n
[Name] Real-time request to printer [Format] ASCII DLE ENQ n
Hex 10 05 n Decimal 16 5 n
[Range] n = 1, 2 DLE ENQ n responds to a request in real time from the host computer, specified by n as shown
below. When an auto-cutter error occurs, after removing a cause of the error, the printer can recover from the error by using this command wi thout turni ng off the power. If an auto-cutter error occurs in page mode and the printer recovers from the error by setting n to 2, the printer returns to standard mode after clearing the data develo ped in page mode and set ting t he printi ng area d efined by ESC W to the default values. If an auto-cutter error o ccur s when the printer is disabled by ESC =, the printer can recover from the error by using DLE ENQ.
With a serial interface model, this command is executed even when the printer is off-line, the receive buffer is full, or an error occurs.
1-52 Command Descriptions Rev. A
Page 62
TM-T88/T88P (TM-T85/T85P) Information Manual
With a parallel interface model, this command is not executed in the following status because the printer is busy and unable to receive data from the host computer.
Receive buffer is full when DIP switch 2-1 is set to on. Printer is off-line, an error occurs, or receive buffer is full when the DIP switch 2-1 is set to
off.
n Request
1 Restarts printing from the beginning of the line where an
2 Recovers from an error after clearing the receive and print
PRINT #1, CHR$(&H10);CHR$(&H5);CHR$(2);
error occurred, after recovering from the error.
buffers.
Program Example
Rev. A Command Descriptions 1-53
Page 63

Character Code Tables

SP in a table represents space. Refer to page 1-58 for information on how to read these tables.
Page 0 (PC437: U.S.A., Standard Europe) (International character set: U.S.A)
1-54 Command Descriptions Rev. A
Page 64
Page 1 (Katakana)
TM-T88/T88P (TM-T85/T85P) Information Manual
Page 2 (PC850: Multilingual)
Rev. A Command Descriptions 1-55
Page 65
Page 3 (PC860: Portuguese)
Page 4 (PC863: Canadian-French)
1-56 Command Descriptions Rev. A
Page 66
Page 5 (PC865: Nordic)
TM-T88/T88P (TM–T85/T85P) Information Manual
Rev. A Command Descriptions 1-57
Page 67

Using the Character Code Tables

The example below uses Page 0 (PC437) (see page 1-54) to illustrate the use of the character code tables.
You can find the character “A” in Page 0 as follows:
The decimal value for the character “A” is 65. Follow its co lumn straight up to find the digits.
Hexadecimal......4
Binary.................0100
These numbers are the most significant bits of the ASCII code.
Follow its row to the left to find the digits.
Hexadecimal......1
Binary.................0001
These numbers are the least significant bits of the ASCII code.
The combination of the numbers above is the ASCII code for character “A”.
Decimal ..............65
Hexadecimal......41
Binary.................01000001
1-58 Command Descriptions Rev. A
Page 68
TM-T88/T88P (TM–T85/T85P) Information Manual
Chapter 2
Application
This chapter presents an exampl e illustr ating ESC/POS command fun cti ons and printing result s. The example shows how to issue a coupon containing bar codes with the TM-T88.
Coupon Issuing
Procedure Commands Used Description
1. Print message A
2. Print bar code A
3. Execute partial cut
4. Print bar code B
5. Print message B
6. Execute partial cut
ESC a, LF, GS !, ESC !, GS b, ESC J
GS h, GS H, GS k
GS V GS h, GS k GS !, GS b, LF
GS V
Sets the print position to the center with Changes the font size with
message A. Selects smoothing with
Prints bar code A after selecting th e height of the bar code with characters with
Executes a partial cut of the paper. Changes the height of bar code B and prints it. Prints message B after changing the font size with
selecting smoothing with Feeds the paper to the cutting position an d executes a
partial cut.
and the printing pos iti on of th e HR I
GS h
GS H
.
and
GS !
for the enlarged characters.
GS b
GS b
ESC !
.
.
ESC a
and prints
GS !
and
Print Sample
LUCKY NOW OFFERS CHEC KOUT COUP ONS!
GOOD FRI SEPT. 20 199 6
GLADE
PLUG-INS
GOOD ON ONE WAR MER UN IT ONLY
SAVE 65¢
*00002*
GOOD FRI SEPT. 20 199 6
*00002*
PLUG INTO 30 DAY FRESH NESS
GOOD ON ONE WAR MER UN IT ONLY
REDEEMABLE ONLY AT
LUCKY
Message A
Bar code A
Partial cut
Bar code B
Message B
Partial cut
Rev. A Application 2-1
Page 69
Program Example
PRINT #1, CHR$(&H1B);"@"; PRINT #1, CHR$(&H1B);"a";CHR$(1);
Initializes the printer
Selects center print position
PRINT #1, "LUCKY NOW OFFERS CHECKOUT COUPONS!";CHR$(&HA); PRINT #1, " ";CHR$(&HA); PRINT #1, "GOOD FRI SEPT. 20 1996";CHR$(&HA); PRINT #1, CHR$(&H1D);"!";CHR$(16);
Selects double-width font size
PRINT #1, "GLADE";CHR$(&HA); PRINT #1, "PLUG-INS";CHR$(&HA); PRINT #1, CHR$(&H1D);"!";CHR$(0);
Selects normal font size
PRINT #1, "GOOD ON ONE WARMER UNIT ONLY";CHR$(&HA); PRINT #1, CHR$(&H1B);"!";CHR$(56);
PRINT #1, CHR$(&H1D);"b";CHR$(1);
Selects character print mode
(emphasized + double-height + double-width)
Selects smoothing
PRINT #1, "SAVE 65";CHR$(&H9B); PRINT #1, CHR$(&H1B);"J";CHR$(120); PRINT #1, CHR$(&H1D);"b";CHR$(0); PRINT #1, CHR$(&H1B);"!";CHR$(0);
PRINT #1, CHR$(&H1D);"h";CHR$(80); PRINT #1, CHR$(&H1D);"H";CHR$(2); PRINT #1, CHR$(&H1D);"k";CHR$(4);"*00002*";CHR$(0);
Cancels smoothing Cancels previous character print mode
Sets bar code height to 80 dots
Selects printing position for HRI characters
Prints bar code
PRINT #1, CHR$(&HA);CHR$(&HA);CHR$(&HA);
PRINT #1, "GOOD FRI SEPT. 20 1996";CHR$(&HA);CHR$(&HA);
Prints message A
Prints bar code A
PRINT #1, CHR$(&H1D);"V";CHR$(1);
PRINT #1, CHR$(&H1D);"h";CHR$(50); PRINT #1, CHR$(&H1D);"k";CHR$(4);"*00002*";CHR$(0);
Executes partial cut
Sets bar code height to 50 dots
Prints bar code
PRINT #1, CHR$(&HA);
PRINT #1, "PLUG INTO 30 DAY FRESHNESS";CHR$(&HA); PRINT #1, "GOOD ON ONE WARMER UNIT ONLY";CHR$(&HA);CHR$(&HA); PRINT #1, "REDEEMABLE ONLY AT";CHR$(&HA); PRINT #1, CHR$(&H1D);"!";CHR$(34); PRINT #1, CHR$(&H1D);"b";CHR$(1);
Selects triple-width/triple-height font size
Selects smoothing
PRINT #1, "LUCKY";CHR$(&HA); PRINT #1, CHR$(&H1D);"b";CHR$(0); PRINT #1, CHR$(&H1D);"!";CHR$(0);
PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(60);
Cancels smoothing Selects normal font size
Feeds the paper and executes a full cut
Prints bar code B
Prints message B
2-2 Application Rev. A
Page 70
TM–T88/T88P (TM–T85/T85P) Information Manual
Chapter 3
Command Reference

Command Classification

ESC/POS printer commands in this chapter are classified by function and by sheet and grade. The sheet and grade classification is called matrix classification.
The sheet classification is divided into single sheet commands and multiple sheet commands. The grade classificat ion is separated into basic commands and extension commands.
Basic commands are defined as fundamental p rinter cont rols, i ncludi ng print commands a nd chara cter type selection commands. Extension commands are defined as control codes for functions specific to individual printers. These commands are further divided into mechanical extension commands that relate to additional mechanical functions such as stamp and auto-cutter units, hardware extension
commands that relate to additional hardware functions such as panel button control, and software extension commands that relate to additional software functions such as user-defined and Bar code
control.
The commands can also be classified by function, which is how they are presented in Chapter 1 and the Function Type table in this chapter. The function types, such as Print Commands and Line Spacing Commands, are briefly explained in the corresponding sections of Chapter 1.
The illustration below shows the ESC/POS command overview diagram for printers.
Multiple sheet
Sheet
Single sheet
Multiple sheet commands
Single sheet commands
Basic commands
Grade
Mechanical extension commands
Extension commands
Hardware extension commands
Software extension commands
Rev. A Command Reference 3-1
Page 71
Function Type
Function Type Command Name Matrix Category
Print commands
Line spacing commands
LF FF
CR ESC FF ESC J ESC K ESC d ESC e GS FF ESC 2 ESC 3
ESC C
Print and line feed Basic single
1. Print and eject cut sheet (in standard mode)
2. Print and return to standard mode (in page mode)
3. Print and feed label to print starting position (on label)
Print and carriage return Mechanical extension Print data in page mode Software extension Print and feed paper Mechanical extension Print and reverse feed Mechanical extension Print and feed n lines Basic single Print and reverse feed n lines Mechanical extension Print and eject label Hardware extensio n Select default line s pa c in g Mechanical exte n sio n Set line spacing Mechanical extension
Set cut sheet eject length Mecha ni cal extensio n
Mechanical extension
Mechanical extension
Mechanical extension
Supported Command
T88 T88M T85
●●●
●●●
OOO
●●●
●●●
●●●
●●●
●●●
Character commands
The TM-T88/T88P/T88M/T88PM/T85/T85P supports the commands marked with a ● in the Supported Command column. The TM-T88P/T88PM/T85P supports the commands marked with a O in the Supported Comman d co lumn .
CAN ESC SP ESC ! ESC %
ESC & ESC – ESC ? ESC E ESC G ESC R
ESC V
ESC r ESC t
Cancel print data in page mode Software extension Set right-si de c h ar a c ter spacing Basic sin gle Select print mode(s ) Basic single Select/cancel user-defined
character set Define user-defined chara cte rs Software extens ion Turn underline mode on/off Software extension Cancel user-defined chara cte rs Software extension Turn emphasized mode on/off Software extension Turn double-strike mode on/off Softwa re exten s ion Select an international character
set Turn 90° clockwise rotation mode
on/off Select print color Mecha ni cal ext en s io n Select character code table Basic single
Software extension
Basic single
Software extension
●●●
●●●
●●●
●●●
●●●
●●●
●●●
●●●
●●●
●●●
●●●
●●●
3-2 Command Reference Rev. A
Page 72
TM–T88/T88P (TM–T85/T85P) Information Manual
Function Type Command Name Matrix Category
Character commands (continued)
Paper sensor commands
Panel button commands
Printing paper commands
Print position commands
The TM-T88/T88P/T88M/T88PM/T85/T85P supports the commands marked with a ● in the Supported Command column. The TM-T88P/T88PM/T85P supports the commands marked with a O in the “Supported Command column.
ESC z Turn parallel printing mode on/off
for receipt and journal paper
ESC { Turn upside-down printing mode
on/off
GS ! Select character size Software extension ●●● GS B Turn white/black reverse printing
mode on/off
GS b Turn smoothing mode on/off Software extension ●●● ESC c 3 Select paper sensor(s) to output
paper-end signals
ESC c 4 Select paper sensor(s) to stop
printing
ESC c 5 Enable/disable pan el buttons Hardware extension ESC c 6 Enable/disable on-line switch Hardware extension ESC c 0 Select paper type(s) for printing Basic multiple ESC c 1 Select paper type(s) for command
settings
ESC f Set cut sheet wait time Mechanical extension HT Horizontal tab Software extension RS Journa l ta b Mechanical extensio n ESC $ Set absolute print position Software extension ESC D Set horizontal t ab po sit ions Software exten s ion ●●● ESC T Select print direction in page mode Software extension ●●● ESC W Set printing area in page mode Software extens ion ●●● ESC \ Set relative print position Software extension ●●● ESC a Se lect ju st ifi c at io n Software extension ●●● GS $ Set absolute vertical print position in
page mode
GS L Set left margi n Software extension ●●● GS W Set printing area width Software exten sion ●●● GS \ Set relative vertical print position in
page mode
Mechanical extension
Basic single
Software extension ●●●
Mechanical extension
Mechanical extension ●●●
Mechanical extension
Software extension ●●●
Software extension ●●●
Supported Command
T88 T88M T85
●●●
OOO
●●●
●●●
●●●
Rev. A Command Reference 3-3
Page 73
Function Type Command Name Matrix Category
Mechanism control commands
Status commands
ESC < Return home Mechanical extension ESC F Se t/c ancel cu t shee t reverse eject Mechanical extension ESC U Turn unidirectional printing mode
on/off
ESC i Partial c ut (on e po in t left uncut) Mechani cal extension ESC m Partial cut (three points left uncut) Mechanical extension ESC o Stamp Mechanical extension ESC q Release Mechanical extension GS V Select cut mode and cut paper Mechanical extension DLE EOT Real-time status transmission Hardware extension ●●● DLE EOT BS Real-time MICR status transmission Hardware extension
Mechanical extension
Supported Command
T88 T88M T85
●●●
ESC u Transmit periph era l devi ce statu s Hardware extensio n ESC v T ran smi t pa per sen sor sta tus Hardware extension GS ENQ Transmi t real -time printer status Ha rdware extension
GS a Enable/disable Automatic Status
GS r Transmit status Hardware extension ●●●
Bit-image commands
Bar code commands
Macro function commands
MICR commands
The TM-T88/T88P/T88M/T88PM/T85/T85P supports the commands marked with a ● in the Supported Command column. The TM-T88P/T88PM/T85P supports the commands marked with a O in the Supported Comman d co lumn .
ESC
GS
GS / Print down lo a ded bit ima g e Software exten s ion ●●● GS H Select printing position of HRI
GS f Select font for HRI characters Software extension ●●● GS h Set bar code height Software extension ●●● GS k Print bar code Software extension ●●● GS w Set bar code width Software extension ●●● GS : Start/end macro de fini tion So ftware ext en sion GS ^ Execute macro Software extension ●●●
FS a 0 Read check paper Mechanical extension FS a 1 Load check paper to print starting
FS a 2 E je ct check pape r Mechanical extension FS b Request retransmission of check
FS c MICR mechanism cleaning Mechanical extension
Back (ASB)
Select bit-image mode Basic single ●●● Define downloaded bit image Software extension ●●●
characters
position
paper reading result
Hardware extension
Software extension
Mechanical extension
Mechanical extension
●●●
●●●
●●●
3-4 Command Reference Rev. A
Page 74
TM–T88/T88P (TM–T85/T85P) Information Manual
Function Type Command Name Matrix Category
Kanji control commands
Miscellaneous function commands
The TM-T88/T88P/T88M/T88PM/T85/T85P supports the commands marked with a ● in the Supported Command column. The TM-T88P/T88PM/T85P supports the commands marked with a O in the “Supported Command column.
FS ! Select print mode( s ) for Ka nj i
characters
FS & Se lect Kan j i char acter mo d e Software extension FS – Turn underline mode on/off for Kanji
characters
FS . Cancel Kanji character mode Software extension FS 2 Define user-defined Kanji
characters
FS C Se lect Kan j i charact er cod e system Software exten sion FS S Set Kanji character spacing Software extension FS W Turn quadruple-size mode on/off for
Kanji characters
DLE ENQ Real-time request to printe r Software extension ESC = Select periphera l devi ce Software extension ●●● ESC @ Initialize printer Basic single ●●● ESC L Select page mode Software extension ●●● ESC S Select standard m o de So ftwa re exte ns ion ●●● ESC p Generate pulse Hardware extension ●●● FS L Select double-density page mode Software extension GS < Initialize printer mechanism Mechanical extension GS A Adjust label print starting position Hardware extension GS C 0 Select counter print mode Software extension GS C 1 Select count mode (A) Software extension GS C 2 Set counter Software extension GS C ; Select count mode (B) Software extension GS E Select head control method Hardware extension GS I Transmit printer ID Hardware extension GS P Set horizon t al an d vertic al mo t io n
units
GS c Print counter S o f tw a r e e x t ension GS z 0 Set on-l ine recovery wait time Software extension
Software extension
Software extension
Software extension
Software extension
Software extension ●●●
Supported Command
T88 T88M T85
●●●
●●●
Rev. A Command Reference 3-5
Page 75
3-6

Reference Table

Command Nam e Function
HT Horiz onta l tab Moves the printing
LF Print and line feed Prints the data in the
FF 1. Print and eject
CR Print and carriage
CAN Cancel print data
The commands supported by each printer are marked by a or a O. The functions of the commands marked by a O ma y differ, de pe nd in g on the printer mo d el.
cut sheet (in standard mode)
2. Print and return to standard mode (in page mode)
3. Print and feed label to print starting position (on label)
return
in page mode
position to the next horizontal tab position.
print buffer and feeds one line based on the current line spacing.
Prints the da ta in the print buffer and ejects the cut sheet.
Prints the da ta in the print buffer and returns to standard mode.
Prints the da ta in the print buffer and feeds the next label to the print starting position.
When auto line feed is enabled, this command functions in the same way as LF. When auto line feed is disabled, this command p rints the data in the print buffer and does not feed the paper, or is ignored.
Deletes a ll th e pr i n t data in the current printing area in pag e mode.
Supported Command
TM-
T85
TM-
T88/
T88M
TM-
L60II
TM-300/300M TM-U200 TM-
ABCDB D
U375/
U375M
TM-
H5000/
H5000M
TM-
U925
TM-
U950/
U950M
TM­295
TM-
215S
●●●●●●●●● ● ●●
●●●●●●●●● ● ● ● ● ●●
●●●●●
●●●
OOO
●●●●● ●
●●●●
O
●●●
Page 76
3-7
Command Name Function
RS Journal tab Moves the print position
to the beginning of the journal pape r.
DLE EOT Re al- ti me sta tu s
DLE EOT BS Re al-time MICR
DLE ENQ Real-time request
ESC FF Print data in
ESC SP Set right-side
ESC ! Select print
ESC $ Set absolute print
ESC % Select/cancel
ESC & Define user-
ESC
The commands supported by each prin ter are ma rked by a
transmission
status transmission
to printer
page mode
character spacing
mode(s)
position
user-defined character set
defined characters
Select bit-image mode
Transmits a specified status in real time.
Transmits MICR status in real time.
Responds to a request from the host compute r in real time.
Prints the data in the print buffer in page mode.
Sets the right-side character spacing.
Selects a print mode(s).
Sets the print starting position from the beginning of the line.
Selects or cancels the user-defined character set.
Defines user-defin ed characters for a specified character code.
Selects a bit-image mode for a specified number of dots.
Supported Command
TM-
T85
TM-
T88/
T88M
TM-
L60II
TM-300/300M TM-U200 TM-
ABCDB D
U375/
U375M
TM-
H5000/
H5000M
TM-
U925
TM-
U950/
U950M
TM­295
TM-
215S
●●● ●● ● ● ● ● ●
OOO
●● ●●
●●●
●●●
●●●●●●●●● ● ● ● ● ●●
●●●●●●●●● ● ● ● ● ●●
●●● ● ● ●
●●●●●●●●● ●
●●●●●●●●● ●
●●●●●●●●● ●
●●
●●
●●
or a O. The functions of the commands marked by a O may differ, dependi ng on the printer model.
TM–T88/T88P (TM–T85/T85P) Information Manual
Page 77
3-8
Supported Command
Command Nam e Function
ESC – Turn underline
mode on/off
ESC 2 Select default line
spacing
ESC 3 Set line spacing Sets the line spacing to
ESC < Return home Moves the p r in t h ea d t o
ESC = Select peripheral
device
ESC ? Cancel user-
defined characters
ESC @ Initialize pr inter Clears the data in the
ESC C Set cut sheet
eject length
ESC D Set horizontal tab
positions
ESC E Turn emphasized
mode on/off
ESC F Set/cancel cut
sheet reverse eject
The commands supported by each printer are marked by a
Turns underline mode on or off.
Sets the line spac in g to 1/6 inch.
a specified value.
the home position. Selects the device to
which the host computer sends data.
Cancels the user­defined characters for a specified character code.
print buffer and rese ts the printer mode to the mode that was in effect when the power was turned on.
Sets the eject length for a cut sheet to a specified number of lines.
Sets the hor izontal tab positions.
Turns emphas ized mode on or off.
Sets or cancels the cut sheet reverse eject.
TM-
TM-
T85
T88M
T88/
TM-
L60II
●●●OOOO●● ● ● ●
●●●●●●●●● ●
●●●●●●●●● ●
●●● ●● ● ● ● ● ●
●●● ●● ● ● ● ●
●●●●●●●●● ● ● ● ● ●●
●●●●●●●●● ● ●●
●●●OOOO●● ● ● ●
or a O. The functions of the commands marked by a O ma y differ, de pe nd in g on the printer mo d el.
TM-300/300M TM-U200 TM-
ABCDB D
U375/
U375M
●●●●● ●
●●●●●
TM-
H5000/
H5000M
TM-
U925
●●
●●
●●
TM-
U950/
U950M
TM­295
TM-
215S
●●
Page 78
3-9
Command Nam e Function
ESC G Turn double-strike
mode on/off
ESC J Print and feed
paper
ESC K Print and reverse
feed
ESC L Select page
mode
ESC R Select an
international character set
ESC S Select standard
mode
ESC T Select print
direction in pa ge mode
ESC U Turn
unidirectional printing mode on/ off
ESC V Turn 90°
clockwise rotation mode on/off
ESC W Set printing area
in page mode
The commands supported by each prin ter are ma rked by a
Turns double-strike mode on or off.
Prints the data in the print buffer and feeds the paper a specified distance.
Prints the data in the print buffer and feeds the paper a specified distance in the reverse direction.
Switches from standard mode to page mode.
Selects a coun tr y ’s character set.
Switches from page mode to standard mode.
Selects the print direction and sta r ti ng position in page mode.
Turns unidirectional printing mode on or of f .
Turns 90° clockwise rotation mode on or off.
Sets the position and size of the printing area in page mode.
Supported Command
TM-
T85
TM-
T88/
T88M
TM-
L60II
TM-300/300M TM-U200 TM-
ABCDB D
U375/
U375M
TM-
H5000/
H5000M
TM-
U925
TM-
U950/
U950M
TM­295
TM-
215S
●●●OOOO●● ● ● ●
●●●●●●●●● ● ● ● ● ●●
●●●
●●
●●
●●
●●●●●●●●● ● ● ● ● ●●
●●●
●●●
●●●●● ●
●●●
●●
●● ●
●●
●●●
or a O. The functions of the commands marked by a O may differ, dependi ng on the printer model.
TM–T88/T88P (TM–T85/T85P) Information Manual
Page 79
3-10
Supported Command
Command Nam e Function
ESC \ Set relative print
position
ESC a Select justification Aligns all the data in
ESC c 0 Select paper
type(s) for printing
ESC c 1 Select paper
type(s) for command settings
ESC c 3 Select paper
sensor(s) to ou tput paper-end signals
ESC c 4 Select paper
sensor(s) to stop printing
ESC c 5 Enable/disable
panel buttons
ESC d Print and feed n
lines
ESC e Print and reverse
feed n lines
The commands supported by each printer are marked by a
Sets the print starting position based on the current position.
one line to a spec if ie d position.
Selects paper type(s) for printing.
Selects paper type(s) for use with various command settings.
Selects paper sensor(s) to output paper-end signals.
Selects the paper sensor(s) that stops printing when the paper runs out.
Enables or disables th e panel buttons .
Prints the da ta in the print buffer and feeds n lines.
Prints the da ta in the print buffer and feeds n lines in the reverse direction.
TM-
TM-
T85
T88M
T88/
TM-
L60II
●●● ● ● ●
●●● ●● ● ● ● ●
OOOOOOOOO O O O O
●●●●●●●●● ● ● ● ● ●
●●●●●●●●● ● ● ● ● ●●
●●●●●●●●● ● ● ● ● ●●
or a O. The functions of the commands marked by a O ma y differ, de pe nd in g on the printer mo d el.
TM-300/300M TM-U200 TM-
ABCDB D
●●
●●
U375/
U375M
TM-
H5000/
H5000M
TM-
U925
●●
●●
TM-
U950/
U950M
TM­295
●●●●
TM-
215S
Page 80
Supported Command
Command Nam e Function
ESC f Set cut sheet wait
time
ESC i Partial cut (one
point left uncut)
ESC m Partial cut (three
points left uncut)
ESC o Stamp Execut es stam p pri ntin g . ESC p Generate pulse Outputs a specified
ESC q Paper release Release s the pa pe r. ●● ESC r Select print color Selects the print color.
Sets the time that the printer waits for cut sheet to be inserted and the time from insertion of the sheet until printing starts.
Executes a partial cut of the paper with one point left uncut.
Executes a partial cut of the paper with three points left uncut.
pulse to a specified connector pin.
TM-
TM-
T85
T88M
T88/
TM-
L60II
●●●●●●●●● ● ● ● ● ●●
TM-300/300M TM-U200 TM-
ABCDB D
●●
U375/
U375M
●●●●●
TM-
H5000/
H5000M
TM-
U925
TM-
U950/
U950M
TM­295
TM-
215S
●●
●●
●●
●●●OO
TM–T88/T88P (TM–T85/T85P) Information Manual
3-11
ESC t Select character
code table
ESC u Transmit
peripheral device status
ESC v Transmit paper
sensor status
ESC z Tu rn paral lel
printing mode on/ off for receipt and journal paper
The commands supported by each prin ter are ma rked by a
Selects a page from the character code table.
Transmits the status of a specified connector pin.
Transmits the status of a paper sensor.
Turns parallel printing mode on or off for receipt and journal paper.
●●●●
●●
OOOO
OOOO
●●
●● ● ●●●●
●●
●●●
or a O. The functions of the commands marked by a O may differ, dependi ng on the printer model.
Page 81
3-12
Supported Command
Command Nam e Function
ESC { Turn upside-down
printing mode on/ off
FS ! Select print
mode(s) for Kanji characters
FS & Select Kanji
character mode
FS – Turn underline
mode on/off for Kanji character s
FS . Cancel Kanji
character mode
FS 2 Define user-
defined Kanji characters
FS C Select Kanji
character code system
FS L Select double-
density page mode
FS S Set Kanji
character spacing
FS W Turn qu ad rup le-
size mode on/off for Kanji characters
FS a 0 Read check
paper
The commands supported by each printer are marked by a
Turns upside-down printing mode on or of f.
Selects print mod e ( s ) for Kanji characters. O O O O O O O O
Selects Kanji cha rac ter mode.
Turns underline mode on or off for Kanji characters.
Cancels Kanji character mode.
Defines user-defined Kanji characters for specified character codes.
Selects the Kanj i character code system. O O O O O O O O
Switches fr om standard mode to double ­density page mode.
Sets the righ t- an d left­side Kanji chara cter spacing.
Turns quadruple-size mode on or off for Kanji characters.
Selects the MICR function and reads the check paper.
TM-
TM-
T85
T88M
T88/
TM-
L60II
●●●●●●●●● ● ● ● ● ●●
OOOOO OO O
OOOOO OO O
OOOOO OO O
OOOOO OO O
OOOOO OO O
OOOOO OO O
or a O. The functions of the commands marked by a O ma y differ, de pe nd in g on the printer mo d el.
TM-300/300M TM-U200 TM-
ABCDB D
U375/
U375M
O
TM-
H5000/
H5000M
OOO
TM-
U925
TM-
U950/
U950M
TM­295
TM-
215S
Page 82
3-13
Command Nam e Function
FS a 1 Load check
paper to print starting position
FS a 2 Eject check
FS b Request
FS c MICR mechanism
GS ENQ Transmit real-time
GS FF Print and eject
GS ! Select character
GS $ Set absolute
GS
GS / Print downloaded
GS : Start/end macro
The commands supported by each prin ter are ma rked by a
paper
retransmission of check paper reading result
cleaning
printer status
label
size
vertical print position in page mode
Define downloaded bit image
bit image
definition
Loads check paper to the print starting position.
Ejects the check paper.
Retransmits the previous check paper reading results.
Cleans the MICR mechanism.
Transmits the status of the printer in real time.
Prints the data in the print buffer and ejects the label.
Selects the character width and height.
Sets the absolute vertical print starting position in page mode.
Defines a downloaded bit image using a specified number of dots.
Prints a downloade d bit image using a specified mode.
Starts or ends a macro definition.
Supported Command
TM-
T85
TM-
T88/
T88M
TM-
L60II
TM-300/300M TM-U200 TM-
ABCDB D
U375/
U375M
TM-
H5000/
H5000M
OOO
OOO
OOO
OOO
TM-
U925
TM-
U950/
U950M
TM­295
●●
●●●
●●●
●●●
●●●
●●●
●●
●●
or a O. The functions of the commands marked by a O may differ, dependi ng on the printer model.
TM-
215S
TM–T88/T88P (TM–T85/T85P) Information Manual
Page 83
3-14
Supported Command
Command Name Function
GS < Initialize printer
mechanism
GS A Adjust label
position to start printing
GS B Turn white/blac k
reverse printing mode on/off
GS C 0 Select counter
print mode
GS C 1 Select count
mode (A)
GS C 2 Set counter Sets the serial counter
GS C ; Select count
mode (B)
GS E Select head
control meth od
GS H Select printing
position of HRI characters
GS I Transmit printer ID Transmits a specified
GS L Set left margin Sets the left margin
GS P Set horizontal and
vertical motion units
The commands supported by each printer are marked by a
Feeds a label to the print starting position.
Adjusts the label position relative to the default posit ion.
Turns white/black reverse printing mode on or off.
Selects a print mod e for the serial counter.
Selects a count mode for the serial counter.
value. Selects a count mode
for the serial counter and specifies the counter value.
Selects the print spe e d and head energizing time.
Selects the print in g position of HRI characters when printing a bar code.
printer ID.
using specified values. Sets the horizontal and
vertical motion units.
TM-
TM-
T85
T88M
T88/
TM-
L60II
●●●
●●●
●●● ●●
●●●
●●●
or a O. The functions of the commands marked by a O ma y differ, de pe nd in g on the printer mo d el.
TM-300/300M TM-U200 TM-
ABCDB D
U375/
U375M
●●●●
TM-
H5000/
H5000M
TM-
U925
●●
●●
TM-
U950/
U950M
TM­295
215S
TM-
Page 84
Command Nam e Function
GS V Select cut mode
and cut paper
GS V Select cut mode
and cut paper
GS W Set printing area
width
GS \ Set relative
vertical print position in page mode
GS ^ Execute macro Executes a macro.
Cuts the specified paper.
Advances the specified paper to the cut position and performs the cut.
Sets the printing area width to a defined area.
Moves the vertical print starting position i n page mode to a specified distance from the current position.
Supported Command
TM-
T85
TM-
T88/
T88M
TM-
L60II
TM-300/300M TM-U200 TM-
ABCDB D
U375/
U375M
TM-
H5000/
H5000M
●●
●● ●●
●●●
●●●
●●●
TM-
U925
TM-
U950/
U950M
TM­295
TM-
215S
TM–T88/T88P (TM–T85/T85P) Information Manual
3-15
GS a Enable/disable
Automatic Status Back (ASB)
GS b Turn smoothing
mode on/off
GS c Print cou nter Stores a se ria l cou nter
GS f Select font
for HRI characters
GS h Set bar code
height
The commands supported by each prin ter are ma rked by a
Selects a status for ASB transmission.
Turns smoothing mode on or off.
value in the print buffer and increments or decrements the counter value.
Selects a font for the HRI characters used when printing a bar code.
Sets the height of a bar code.
●●● ●● ●
●●
●●●
●●●
●●●
or a O. The functions of the commands marked by a O may differ, dependi ng on the printer model.
Page 85
3-16
Supported Command
Command Nam e Function
GS k Print bar code Selects a bar code
GS r Transmit status Transmits a specified
GS w Set bar code
width
GS z 0 Set on-line
recovery wait time
The commands supported by each printer are marked by a
system and prints the bar code.
status. Sets the horizontal size of
the bar code. Sets the on-line recovery
wait time.
TM-
TM-
T85
T88M
T88/
TM-
L60II
●●●
●●● ●●
●●●
or a O. The functions of the commands marked by a O ma y differ, de pe nd in g on the printer mo d el.
TM-300/300M TM-U200 TM-
ABCDB D
●●
U375/
U375M
TM-
H5000/
H5000M
TM-
U925
●●
TM-
U950/
U950M
TM­295
215S
TM-
Loading...