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

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
®
®
Guide to
TM-T88/T88P
(TM-T85/T85P)
400670500
SEIKO EPSON C O RPORATION
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
SEIKO EPSON CORPORATION
SYSTEM DEVICE DIVISION
2070 Kotobuki Koaka, Matsumoto-shi, Nagano-ken 399, Japan

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

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

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
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
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
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
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
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
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
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
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

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
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
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
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
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
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
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
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
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
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
Loading...
+ 59 hidden pages