The words on the left side of this screen are bookmark s for all the
topics in this guide .
Use the scroll ba r 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 zoo m tools to magnify or reduce the page display .
Click the Fin d 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 .
Page 2
EPSON
®
Guide to
TM-U375/U375P
SEIKO EPSON CORPORATION
400609200
Page 3
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 publication may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, mechanical, photocopying, recording, or otherwise,
without the prior written permission of Seiko Epson Corporation. No patent liability is assumed with
respect to the use of the information contained herein. While every precaution has been taken in the
preparation of this book, Seiko Epson Corporation assumes no responsibility 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 modifications, repairs, or alterations 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 is a registered trademark of Seiko Epson Corporation.
ESC/POS is a trademark of Seiko Epson Corporation.
NOTI CE: The contents of this manual are subject to change without notice.
2070 Kotobuki Koaka, Matsumoto-shi, Nagano-ken 399, Japan
Page 4
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 devices is expected to rise. At present, however, many of the 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 Sale).
The aim when developing ESC/POS was to create a set of control codes that could be used to
operate any output device connected to a POS terminal. These new codes are 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 produce new models in the TM/DM series offering 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 procedures and a program for combining system
processes with the TM-U375, DM-D202II, and a drawer.
❏ 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. Ai
Page 5
Features
The TM-U375 and TM-U375P are high-performance POS printers that can print on slip,
validation, and journal paper. The printers have the following features:
❏ World’s smallest multi-function 1.5 station printer.
❏ High-speed printing using logic seeking.
❏ Easy problem handling (e.g., paper jams or objects dropped into the printer) via a clamshell
mechanism.
❏ Two cut-sheet entrances: from above for validation paper and from the front for slip paper.
❏ Both journal and receipt printing with pressure-sensitive paper.
❏ Free-format printing in page mode.
❏ Various check printing patterns.
❏ Logic seeking and page mode for check printing.
❏ Movable platen for easy paper insertion.
❏ Paper load switch for easy paper roll loading.
❏ Control capability for two drawers.
❏ Selectable character size (7 × 9 or 5 × 9 font).
❏ Command protocol based on the ESC/POS
TM
standard.
❏ Automatic Status Back (ASB) function that automatically transmits changes in printer status.
❏ EPSON intelligent module connection (TM-U375 only).
❏ EPSON customer display series connection (TM-U375 only).
Options and Accessories
❏ EPSON power supply unit, PS-150 (not required when the TM-U375 (only) is connected to
an intelligent module).
❏ Direct connection display modules, DM-D102 and DM-D203 (for use with TM-U375 only).
❏ Pass-through customer display modules, DM-D101II and DM-D202II (for use with TM-U375
only).
❏ EPSON ribbon cassette, ERC-38.
ii Rev. A
Page 6
Specifications
❏ Printing specifications
Printing method:9-pin, serial impact dot matrix
Printing speed:Approximately 3.5 LPS
Number of printable columns: 40/33
❏ Character specifications
Character fonts:7 × 9/5 × 9
Character pitch:16/13.3 CPI
Character size:1.24(W) × 3.1(H) mm/1.56(W) × 3.1(H) mm
Character sets:ASCII: 95 characters
❏ Paper specifications
Paper size:Paper roll: 75.5-76.5(W) mm × 83.0 mm diameter
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 NameFunction Type
HTHorizontal tabPrint position1-27
LFPrint and line feedPrint 1-4
1
Print and eject cut sheet (in standard mode)
FF
CRPrint and carriage returnPrint1-4
CANCancel print data in page modeCharacter1-17
DLE E OTReal-time status transmissionStatus1-36
DLE E NQReal-time request to printerMiscellaneous function1-46
ESC SPSet right-side character spaci ngCharacter1-9
GS ESelect head control methodMiscellaneous function1-43
GS ITransmit printer IDMiscellaneous function1-44
GS LSet left marginPrint position1-26
GS PSet horizontal and vertical motion unitsMiscellaneous function1-42
GS WSet printing area widthPrint position1-26
GS aEnable/disable Automatic Status Back (ASB)Status1-33
GS rTransmit statusStatus1-35
Se lect paper sensor(s) to output paper-end
signals
n
linesPrint 1-6
Paper sensor1-20
Page
Number
1-2 Command DescriptionsRev. A
Page 10
TM–U375/U375P Information Manual
Using Bit Value Tables
For each command that has a complex method of determining the variable n, there is a table showing
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 double height, double width, and underline, depending
on the numbering system used:
ASCIIESC!n
Hex1B21B0
Decimal2833176
BitOff/On HexDecimal Function
0
1, 2———Undefined.
3
4
5
6———Undefined.
7
Off000Character font 5 x 9 selected.
On011Character font 7 x 9 selected.
Off000Emphasized mo de not selected.
On088Emphasized mo de selected.
Off000Double-height mode not selected.
On1016Double-height mode selected.
Off000Double-width mode not selected.
On2032Double-width mode selected.
Off000Underline mode not selected.
On80128Underline mode selected.
Note that the program examples throughout this chapter use decimal numbers, but binary, decimal,
and hexadecimal numbers all have the same printing results.
Rev. A Command Descriptions 1-3
Page 11
Print Commands
The TM-U375/U375P supports the following commands for printing characters and advancing
paper:
CommandName
LFPrint and line feed
CRPrint and carriage return
FFPrint and eject cut sheet (in standard mode)
1
2
Print and return to standard mode (in page mode)
ESC JPrint and feed paper
ESC dPrint and feed n lines
LF
[Name]Print and line feed
[Format]ASCIILF
Hex0A
Decimal10
LF prints the data in the print buffer and feeds one line. The amount of paper fed per line is based on
the value set using the line spacing command. The default setting is 1/6 inch.
CR prints one line of data from the print buffer and does not feed the paper. This command sets the
print starting position to the beginning of the line.
[Name]Print and eject cut sheet (in standard mode)
1
2
Print and return to standard mode (in page mode)
[Format]ASCIIFF
Hex0C
Decimal12
In standard mode, FF prints the data in the print buffer and ejects the cut sheet (slip or validation
paper). This command is enabled only when a cut sheet is selected for printing. When the eject
length has been set by ESC C, the printer ejects the cut sheet based on the current eject length
regardless of the cut-sheet paper sensor state. Otherwise, the printer ejects the cut sheet completely.
Paper from the paper roll is not ejected, even if it is also selected.
After cut-sheet ejection, the paper roll is selected for printing. The cut sheet is ejected in the forward
direction only.
In page mode, FF prints the data in the print buffer collectively and returns to standard mode. The
buffer data is deleted after being printed, but the paper is not ejected.
Program Example <standard mod e>Print Sample <standard mode>
[Range]0 ≤ n ≤ 255
ESC J n prints the data in the print buffer and feeds the paper [n× (vertical or horizontal motion unit)]
inches. 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.
ESC J used to p rint one line and advance
the paper by 72/144 inch
ESC d n
[Name]Print and feed n lines
[Format]ASCIIESCdn
Hex1B64n
Decimal27100n
[Range]0 ≤ n ≤ 255
ESC d n prints the data in the print buffer and feeds n lines. The amount of paper fed per line is based
on the value set using the line spacing command. The maximum paper feed amount is 40 inches. The
default setting of the paper feed amount is 1/6 inch.
ESC d used to print one line and
advance the paper by six lines
Page 14
TM–U375/U375P Information Manual
Line Spacing Commands
The TM-U375/U375P supports the following commands for 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
effects the results of the LF and ESC d commands. The paper is advanced using the PAPER FEED
button.
CommandName
ESC 2Select default line spacing
ESC 3Set line spacing
ESC CSet cut sheet eject length
ESC 2
[Name]Select default line spacing
[Format]ASCIIESC2
Hex1B32
Decimal2750
ESC 3 n
[Name]Set line spacing
[Format]ASCIIESC3n
Hex1B33n
Decimal2751n
[Range]0 ≤ n ≤ 255
ESC 2 sets the line spacing to 1/6 inch. This is equivalent to 12 dots.
ESC 3 n sets the line spacing to [n× (vertical or horizontal motion unit)] inches. The default setting of
the paper feed amount is 1/6 inch (n=24). 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.
Program ExamplePrint Sample
PRINT #1, CHR$(&H1D);"P";CHR$(160);CHR$(144);
PRINT #1, CHR$(&H1B);"c1";CHR$(1);← Select paper roll
FOR n=10 TO 60 STEP 10
P RINT #1, CHR$(& H1B); "3";CHR$(n ) ;
P RINT #1, "AAAAA "; CH R$ ( &HA) ;
NEXT n
P RINT #1, CHR$(& H1B); "2 " ;
PRINT #1, "BBBBB "; CHR$(&HA);
PRINT #1, "CCCCC"; CHR$(&HA);
AAAAA
AAAAA
AAAAA
AAAAA
AAAAA
AAAAA
BBBBB
CCCCC
10/144 -inch (5-dot) line s pacing
20/144 -inch (10-dot) line spaci ng
ESC C n sets the eject length for cut sheet (slip or validation paper) to n lines. The maximum eject
length is 40 inches. The default setting for the eject length is n=0. This length is calculated by [n× line
spacing setting]. No eject length is set if n=0. When n=0, the paper is ejected continuously until it is
completely out of the printer. The eject length set by this command is used by the FF command. This
command sets the eject length for the paper specified by ESC c 1.
The TM-U375/U375P supports the following commands for setting character font and size:
CommandName
ESC SPSet right-side character spacing
ESC %Select/cancel user-defined character set
ESC &Define user-defined characters
ESC ?Cancel user-defined characters
ESC RSelect an international character set
ESC tSelect character code table
ESC !Select print mode(s)
ESC –Turn underline mode on/off
ESC ETurn emphasized mode on/off
ESC GTurn double-strike mode on/off
ESC {Turn upside-down printing mode on/off
ESC VTurn 90° clockwise rotation mode on/off
CANCancel print data in page mode
1-8 Command DescriptionsRev. A
Page 16
ESC SP n
[Name]Set right-side character spacing
[Format]ASCIIESCSPn
Hex1B20n
Decimal2732n
[Range]0 ≤ n ≤ 255
TM–U375/U375P Information Manual
ESC SP n sets the right-side character spacing to [n
× (horizontal or vertical motion unit)] inches. It is
used to 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
horizontal motion unit set by GS P is used for the print direction set by ESC T.
The right-side character spacing can be set independently in standard mode and in page mode.
P rogram Examp leP rint Samp le
PRINT #1, CHR$(&H1D);"P";CHR$(160);CHR$(144);
PRINT #1, CHR$(&H1B);" ";CHR$(0);← Character spacing set to 0
PRINT #1, "AAAAA "; CHR$(&HA);
PRINT #1, CHR$(&H1B);" ";CHR$ (6);← Character spacing set to 6
PRINT #1, "BBBBB "; CHR$(&HA);
PRINT #1, CHR$(&H1B);" ";CHR$ (12);← Character spacing set to 12
PRINT #1, "CCCCC "; CHR$(&HA);
AAAAA ← 0-inch right-side character spacing
BBBBB ← 6/160-inch right-side character spacing
CCCCC ← 12/160-inch right-side character spacing
Rev. A Command Descriptions 1-9
Page 17
ESC % n
[Name]Select/cancel user-defined character set
[Format]ASCIIESC%n
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 internal character set is selected; this is the
default setting.
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)) can 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.
1-10 Command DescriptionsRev. A
Page 18
TM–U375/U375P Information Manual
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 ExampleProgram Example (continued)
y=2
PRI NT #1, CHR$(& H1B ); "&" ;C HR$ (y) ;" AC" ;
x=7 : P RINT #1, CHR$(x);
FOR i= 1 TO y*x
R EAD d: PRINT #1, CHR$(d);
NEXT i
x=9 : P RINT #1, CHR$(x);
FOR i= 1 TO y*x
R EAD d: PRINT #1, CHR$(d);
NEXT i
x=9 : P RINT #1, CHR$(x);
FOR i= 1 TO y*x
R EAD d: PRINT #1, CHR$(d);
NEXT i
PRI NT # 1, CHR$(&H1B);"%";CHR$(0 ); ←
PRI NT #1, "A B C D E"; CHR$(&HA);
PRI NT #1, CHR$(&H1B);"%";CHR$(1); ←
PRI NT #1, "A B C D E"; CHR$(&HA):
PRI NT #1, CHR$(&H1B);"?";"A"; ←
PRI NT #1, "A B C D E"; CHR$(&HA);
Cancel the user-defined character
Select the i nternal character
set
Select the user-defined
charac ter set
Defines th e
user-defin ed
characters as
"A", "B", and "C"
ESC R n
[Name]Select an international character set
[Format]ASCIIESCRn
DA TA &H 30,&H 00, &H 78, &H0 0, &HF C, &H0 0,& H78,&H0 0
DA TA &H 30,&H 00, &H 00, &H0 0, &H0 0, &H0 0
DA TA &H 18,&H 00, &H 24, &H0 0, &H4 2, &H0 0,& H81,&H0 0
DA TA &H 42,&H 00, &H 24, &H0 0, $H1 8, &H0 0,& H00,&H0 0
DA TA &H 00,&H 0 0
DA TA &H 18,&H 00, &H 28, &H0 0, &H4 F, &H8 0,& H80,&H8 0
DA TA &H 4F,&H 80, &H 28, &H0 0, &H1 8, &H0 0,& H00,&H0 0
DA TA &H 00,&H 0 0
Print Sample
ABCDE ← Characters from internal character set
+◊↑DE ← Characters from user-defined character set
A ◊↑DE ← Characters from user-defined characte r set
(cancel one character)
Hex1B52n
Decimal2782n
[Range]0 ≤ n ≤ 10
Rev. A Command Descriptions 1-11
Page 19
ESC R n selects an international character set n as follows. The default value is U.S.A. (n=0).
ESC t n selects a page n from the character code table as follows. The alphanumeric characters (20H
(decimal 32) to 7FH (decimal 127)) are the same for each page. The graphic characters (80H (decimal
128) to FFH (decimal 255)) are different for each page. The default setting is page 0.
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
ESC ! n
[Name]Select print mode(s)
[Format]ASCIIESC!n
Hex1B21n
Decimal2733n
[Range]0 ≤ n ≤ 255
Page 1
Rev. A Command Descriptions 1-13
Page 21
ESC ! n selects print modes using n as follows. The default setting is n=1. This command cannot be
used with the 7 × 9 font or for emphasized printing in page mode. If the 7 × 9 font or emphasized
printing is selected or canceled in page mode, an internal flag is activated and this command is
enabled when the printer returns to standard mode.
ESC – n turns underline mode on or off. When n=1 or 49, underline mode is turned on, and when n=0
or 48, underline mode is turned off. When underline mode is on, 90° clockwise rotated characters
cannot be underlined. The default setting is n=0.
Program ExamplePrint Sample
PRINT #1, CHR$(&H1B);"-";CHR$(1); ← SelectAAAAA← Underline m ode turned on
PRINT #1, "AAAAA";CHR$(&HA);BBBBB ← Underline mode turned off
PRINT #1, CHR$(&H1B);"-";CHR$(0); ← Cancel
PRINT #1, "BBBBB";CHR$(&HA);
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 appear the same. This command is enabled only in standard
mode. If this command is entered in page mode, an internal flag is activated and the command is
enabled when the printer returns to standard mode.
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 enabled only in standard
mode. If this command is entered in page mode, an internal flag is activated and the command is
enabled when the printer returns to standard mode.
Program ExamplePrint Sample
PRINT #1, CHR$(&H1B);"G";CHR$(1); ← SelectAAAAA ← Dou ble-strike mode turn ed on
PRINT #1, "AAAAA"; CHR$(&HA);BB BBB ← Double-s trike mode turned of f
PRINT #1, CHR$(&H1B);"G";CHR$(0); ← Cancel
PRINT #1, "BBBBB"; CHR$(&HA);
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 turned on; when it is 0, upside-down printing mode is turned off. The
default setting 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 input at the
beginning of a line. In page mode, the print direction is set with ESC T, an internal flag is activated,
and this command is enabled when the printer returns to standard mode.
ESC V n turns 90° clockwise rotation mode on or off. When n=1 or 49, 90° clockwise rotation mode
(1-dot character spacing) is turned on; when n=2 or 50, 90° clockwise rotation mode (1.5-dot character
spacing) is turned on; and when n=0 or 48, this mode is turned off. The default setting is n=0. The
characters do not rotate when both the 7 × 9 font and the 90° clockwise rotation mode are selected,
because selecting the 7 × 9 font is higher priority. This command is enabled only in standard mode. If
this command is entered in page mode, an internal flag is activated and the command is enabled
when the printer returns to standard mode.
ESC c 5 n enables or disables the PAPER FEED and RELEASE buttons. When the LSB (least significant
bit) of n is 1, these buttons are disabled; when it is 0, these buttons are enabled. The default setting is
n=0. To prevent problems caused by accidentally pressing the buttons, use this command to disable
them. When the printer cover is open, the PAPER FEED button is disabled and the RELEASE button is
enabled, regardless of the setting of this command.
The TM-U375/U375P supports the following commands for controlling the paper sensor(s) that stop
printing and output paper-end signals:
CommandName
ESC c 4Select paper sensor(s) to stop printing
ESC c 3Select paper sensor(s) to output paper-end signals
ESC c 4 n
[Name]Select paper sensor(s) to stop printing
[Format]ASCIIESCc4n
Hex1B6334n
Decimal279952n
[Range]0 ≤ n ≤ 255
ESC c 4 n selects the paper sensor that stops printing when the paper runs out. The default setting is
n=0 (all paper sensors disabled).
If either bit 0 or 1 is 1, the paper roll near-end sensor is enabled to stop printing.
When a paper sensor is enabled with this command, printing stops only when the corresponding
paper is selected for printing. It is possible to select multiple sensors to stop printing. Then if any of
the selected sensors detects a paper-end or near-end, printing stops.
When the paper roll near-end sensor detects a near-end, printing stops after printing the current line
and feeding the paper.
When DIP switch 2-3 is off and the paper roll near-end sensor detects a paper near-end, the printer
goes off-line after printing stops.
When the slip or validation ejection sensor detects a paper-end, the printer ejects the paper after
printing and then enters the paper waiting state.
The paper sensor(s) used to stop printing are selected by using n as follows:
BitOff/On HexDecimal Function
Off000Paper roll near-end sensor disabled.
0
On011Paper roll near-end sensor enabled.
Off000Paper roll near-end sensor disabled.
1
On022Paper roll near-end sensor enabled.
2-4---Undefined.
Off000Slip ejection sensor disabled.
5
On2032Slip ejection sensor enabled.
Rev. A Command Descriptions 1-19
Page 27
BitOff/On HexDecimal Function
6---Undefined.
Off000Validation ejection sensor disabled.
7
On80128Validation ejection sensor enabled.
Program Example
PRINT #1, CHR$(&H1B);"c4";CHR$(1); ←
Paper roll near- end sensor enabl ed
ESC c 3 n
[Name]Select paper sensor(s) to output paper-end signals
[Format]ASCIIESCc3n
Hex1B6333n
Decimal279951n
[Range]0 ≤ n ≤ 255
ESC c 3 n selects paper sensor(s) to output paper-end signals to a parallel interface. The default value
is to enable the paper roll near-end sensor (n=3).
If either bit 0 or bit 1 is 1, the paper roll near-end sensor is selected as a paper-end sensor that is
enabled to output a paper-end signal.
If any of bits 4-7 are 1, the cut-sheet (slip or validation paper) sensor is selected as a paper-end sensor
that is enabled to output a paper-end signal.
When both of these sensors are selected to output signals and either one detects a paper-end, the
paper-end signal is output. This command is enabled only with a parallel interface and is ignored
with a serial interface.
The paper sensor(s) used to output paper-end signals are selected by using n as follows:
BitOff/On HexDecimal Function
Off000Paper roll near-end sensor disabled.
0
On011Paper roll near-end sensor enabled.
Off000Paper roll near-end sensor disabled.
1
On022Paper roll near-end sensor enabled.
2-3---Undefined.
Off000Cut-sheet (slip or validation) sensor disabled.
4
On1016Cut-sheet (slip or validation) sensor enabled.
Off000Cut-sheet (slip or validation) sensor disabled.
5
On2032Cut-sheet (slip or validation) sensor enabled.
1-20 Command DescriptionsRev. A
Page 28
TM–U375/U375P Information Manual
BitOff/On HexDecimal Function
Off000Cut-sheet (slip or validation) sensor disabled.
6
On4064Cut-sheet (slip or validation) sensor enabled.
Off000Cut-sheet (slip or validation) sensor disabled.
7
On80128Cut-sheet (slip or validation) sensor enabled.
Program Example
PRINT #1, CHR$(&H1B);"c3";CHR$(17); ← Both sensors enabled
Printing Paper Commands
The TM-U375/U375P supports the following commands for controlling printing paper:
CommandName
ESC c 0Select paper type(s) for printing
ESC c 1Select paper type(s) for command settings
ESC fSet cut sheet wait time
ESC c 0 n
[Name]Select paper type(s) for printing
[Format]ASCIIESCc0n
Hex1B6330n
Decimal279948n
[Range]1 ≤ n ≤ 11
ESC c 0 n selects paper type(s) for printing. The paper roll, slip, and validation paper are available.
The paper roll and slip or validation paper can be selected simultaneously. Slip and validation paper
cannot be selected simultaneously. When previously disabled slip or validation paper is enabled, the
printer waits for the slip or validation paper to be inserted. When previously enabled slip or
validation paper is disabled, the printer ejects the paper. The paper roll is enabled by the default
value (n=1). If either bit 0 or 1 is 1, the paper roll is selected.
When the paper roll and slip or validation paper are selected simultaneously, the paper roll must
contain pressure-sensitive paper or the image will not be printed.
This command is enabled only when input at the beginning of a line in standard mode. This
command is not valid in page mode.
Rev. A Command Descriptions 1-21
Page 29
The paper type(s) are selected for printing by using n as follows:
BitOff/On HexDecimal Function
Off000Paper roll disabled.
0
On011Paper roll enabled.
Off000Paper roll disabled.
1
On022Paper roll enabled.
Off000Slip paper disabled.
2
On044Slip paper enabled.
Off000Validation paper disabled.
3
On088Validation paper enabled.
4 - 7 ———Undefined.
Program Example
PRINT #1, CHR$(&H1B);"c0";CHR$(4);
PRINT #1, "AAAAA"; CHR$(&HA); ← Pr int on slip
PRINT #1, CHR$(&H1B);"c0";CHR$(1); ←Select paper roll
PRINT #1, "BBBBB"; CHR$(&HA); ← Print on paper r oll
← Select s lip
ESC c 1 n
[Name]Select paper type(s) for command settings
[Format]ASCIIESCc1n
Hex1B6331n
Decimal279949n
[Range]1 ≤ n ≤ 15
ESC c 1 n selects paper type(s) for use with various command settings. The paper roll, slip, and
validation paper are available. Multiple paper types can be selected. The default is all paper types
selected (n=15). If either bit 0 or 1 is 1, the paper roll is selected.
The paper types selected can be used with these commands: ESC 2, ESC 3, ESC C, GS L, and GS W.
The value of n is used as follows:
BitOff/On HexDecimal Function
Off000Paper roll disabled.
0
On011Paper roll enabled.
Off000Paper roll disabled.
1
On022Paper roll enabled.
Off000Slip paper disabled.
2
On044Slip paper enabled.
1-22 Command DescriptionsRev. A
Page 30
BitOff/On HexDecimal Function
Off000Validation paper disabled.
3
On088Validation paper enabled.
4-7———Undefined.
Program Example
TM–U375/U375P Information Manual
PRINT #1, CHR$(&H1B);"c1";CHR$(1); ←
PRINT #1, CHR$(&H1B);"3";CHR$(12); ← Se t line spacing for pa per roll
PRINT #1, CHR$(&H1B);"c1";CHR$(4); ← Se lect slip paper
PRINT #1, CHR$(&H1B);"3";CHR$(24); ← Se t line spacing for sl ip paper
Select p aper roll
ESC f t1 t2
[Name]Set cut sheet wait time
[Format]ASCIIESCft1t2
Hex1B66t1t2
Decimal27102t1t2
[Range]0 ≤ t1 ≤ 15
0 ≤ t2 ≤ 64
ESC f t1 t2 sets the time that the printer waits for cut sheet (slip or validation paper) to be inserted to
t1 × 1 minutes, and the time from insertion of the sheet to the start of printing to t2 × 0.1 seconds.
When t1=0, the sheet waiting time is not set and the printer continues waiting for a sheet to be
inserted. The default for the sheet waiting time is not set, and the start operation time is set to 1
second (t1=0, t2=10). This setting alone, however, does not cause the printer to immediately start
waiting for a sheet to be inserted. The setting becomes effective when ESC c 0 is used. DLE ENQ is
used to cancel the sheet waiting state.
The TM-U375/U375P supports the following commands for setting the print position:
CommandName
ESC $Set absolute print position
ESC \Set relative print position
ESC aSelect justification
GS LSet left margin
GS WSet printing area width
HTHorizontal tab
ESC DSet horizontal tab positions
ESC WSet printing area in page mode
ESC TSelect print direction in page mode
ESC $ nLnH
[Name]Set absolute print position
[Format]ASCIIESC$
Hex1B24nLnH
Decimal2736nLnH
[Range]0 ≤ nL≤ 255
nH≤ 255
0 ≤
ESC \ nLnH
[Name]Set relative print position
[Format}ASCIIESC\
Hex1B5CnLnH
Decimal2792nLnH
[Range]0 ≤ nL≤ 255
nH≤ 255
0 ≤
nLnH
nLnH
1-24 Command DescriptionsRev. A
Page 32
TM–U375/U375P Information Manual
ESC $nLnH sets the print starting position to [(nL + nH× 256) × (horizontal or vertical motion unit)]
inches from the left margin.
ESC \
nLnH moves the print starting position to [(nL+ nH× 256) × (horizontal or vertical motion
unit)] inches from the current position. Use the complement of N for setting N pitch movement to the
left: – N pitch = 65536 – N, where N = (
nL + nH× 256).
When standard mode is selected, the horizontal motion unit set by GS P is used. When page mode is
selected, the horizontal or vertical motion unit set by GS P is used for the print direction set by ESC T.
ESC a n aligns all the data in one line to a specified position. Left justification is selected when n=0 or
48, centering is selected when n=1 or 49, and right justification is selected when n=2 or 50. The default
setting is left justification (n=0). This command is enabled only at the beginning of a line in standard
mode. If this command is entered in page mode, an internal flag is activated and the command is
enabled when the printer returns to standard mode.
Program ExamplePrint Sample
FOR n=0 T O 2
PRINT #1, CHR$(&H1B);"a";CHR$(n);
PRINT #1, "ABC"; CHR$(&HA);
PRINT #1, "ABCD"; CHR$(&HA);
PRINT #1, "ABCDE"; CHR$(&HA);
NEX T n
ABC
ABCD
ABCDE
ESC a
0
ABC
ABCD
ABCDE
ESC a
1
ESC a
2
ABC
ABCD
ABCDE
Rev. A Command Descriptions 1-25
Page 33
GS L nLnH
[Name]Set left margin
[Format]ASCIIGSL
nLnH
Hex1D4CnLnH
Decimal2976nLnH
[Range]0 ≤nL ≤ 255
nH ≤ 255
0 ≤
GS W nLnH
[Name] Set printing area width
[Format]ASCIIGSW
nLnH
Hex1D 57nLnH
Decimal 2987nLnH
[Range]0 ≤ nL ≤ 255
nH ≤ 255
0 ≤
GS L
nLnH sets the left margin to [(nL + nH× 256) × (horizontal motion unit)] inches from the
beginning of a line. The default setting is
nL=0, nH=0. This command is enabled only at the beginning
of a line in standard mode. If this command is entered in page mode, an internal flag is activated and
the command is enabled when the printer returns to standard mode.
GS W
default setting is
nLnH sets the printing area width to [(nL + nH× 256) × (horizontal motion unit)] inches. The
nL=144, nH=1. This command is enabled only at the beginning of a line in standard
mode. If this command is entered in page mode, an internal flag is activated and the command is
enabled when the printer returns to standard mode.
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 units use the horizontal value set by the GS P command. The default setting is
1/160 inch.
Program Ex amplePrint Sample
PRINT #1, CHR$(&H1D);"P";CHR$(160);CHR$(144);
PRINT #1, CHR$(&H1B);:c0:;CHR$(1);←Select pape r roll
PRINT #1, "012345678901234567 89"; CHR$(&HA);
PRINT #1, CHR$(&H1B);"c1";CHR$(1);←Select pape r roll
PRINT #1, CHR$(&H1D);"L";CHR$ (60);CHR$(0);
PRINT #1, CHR$(&H1D);"W";CHR$ (120);CHR$(0);
PRINT #1, "012345678901234567 89"; CHR$(&HA);
HT moves the print start position to the next horizontal tab. This command is ignored unless the next
horizontal tab position has been set.
ESC D n1 ... nk NUL sets a horizontal tab to the left margin or n columns from the beginning of a line,
with k indicating the total number of horizontal tab positions to be set. 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 7 × 9 font.
This command is enabled only in page mode. If this command is entered in standard mode, an
internal flag is activated and the 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/160 and 1/144
inches, respectively.
CHR$(0);CHR$(4);CHR$(1);
PRINT #1, CHR$(&H1B);"T";CHR$ (0);
PRINT #1, "AAAAA "; CHR$(&HA);← S tore chara cters for printing
PRINT #1, "BBBBB "; CHR$(&HA);← S tore chara cters for printing
PRINT #1, CHR$(&H1B);"T";CHR$ (2);
PRINT #1, "CCCCC "; CHR$(&HA);← S tore chara cters for printing
PRINT #1, "DDDDD "; CHR$(&HC);← B atch print
AAAAA
BBBBB
←
DDDDD
CCCCC
Printing
area set
by ES C W
1-28 Command DescriptionsRev. A
Page 36
TM–U375/U375P Information Manual
ESC T n
[Name]Select print direction in page mode
[Format]ASCIIESCTn
Hex1B54n
Decimal2784n
[Range]0 ≤n≤ 3
48 ≤n ≤ 51
ESC T n selects the print direction and starting position in page mode specified by n as shown below.
The default setting is n=0. This command is enabled only in page mode. If this command is entered
in standard mode, an internal flag is activated and the command is enabled when the printer selects
page mode.
n
0, 48Left to rightUpper left (A in the figure)
1, 49Bottom to topLower left (B in the figure)
2, 50Right to leftLower right (C in the figure)
3, 51Top to bottomUpper right (D in the figure)
Print DirectionStarting Position
A
Pr intin g 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 starting position is the up per left or lower right of t he printing area (n = 0, 2, 48, o r 50):
❏These commands use horizontal motion units: ESC SP, ESC $, ESC W, ESC \
❏These commands use vertical motion units: ESC 3, ESC J, ESC W
If the starting position is the upper right or lower left of the printing area (n = 1, 3, 49, or 51):
❏These commands use horizontal motion units: ESC 3, ESC J, ESC W
❏These commands use vertical motion units: ESC SP, ESC $, ESC W, ESC \
CHR$(100);CHR$(0);CHR$(100);CHR$(0);
PRINT #1, CHR$(&H1B);"T";CHR$ (0);
PRINT #1, "AAAAA "; CHR$(&HA);← S tore chara cters for printing
PRINT #1, "BBBBB "; CHR$(&HA);← S tore chara cters for printing
PRINT #1, CHR$(&H1B);"T";CHR$ (1);
PRINT #1, "CCCCC "; CHR$(&HA);← S tore chara cters for printing
PRINT #1, "DDDDD "; CHR$(&HA);← S tore chara cters for printing
PRINT #1, CHR$(&H1B);"T";CHR$ (2);
PRINT #1, "EEEEE "; CHR$(&HC);← B atch print
Rev. A Command Descriptions 1-29
AAAAA
BBBBB
CCCCC
DDDDD
←
EEEEE
Printing
area set
by ESC W
Page 37
Bit-Image Commands
The TM-U375/U375P supports the following bit-image commands:
CommandName
ESC ✻Select bit-image mode
✻Define downloaded bit image
GS
GS /Print downloaded bit image
ESC ✻m nLnH d1 ... dk
[Name]Select bit-image mode
[Format]ASCIIESC
Hex1B2Am
Decimal2742m
✻mnLnHd1 ... dk
nLnHd1 ... dk
nLnHd1 ... dk
[Range]m = 0, 1
nL≤ 255
0 ≤
nH≤ 3
0 ≤
0 ≤ d ≤ 255
ESC ✻mnLnH d1 ... dk selects a bit-image mode using m for the number of dots specified by
(
nL+ nH× 256). This command is used to print a predefined picture or logo. The modes selectable by
m are as follows:
Vertical DirectionHorizontal Direction
Number of
m
08-dot single-de nsity87280 200
18-dot double-de nsity872160 400
Mode
Program ExamplePrint Sample
Dots
Dot Density
(DPI)
Dot Density
(DPI)
Total Dots in
Standard Mode
m=1: GOSUB bitimage8
END
bitimage8:
PRI NT #1 , CHR $(& H1B);"* ";CHR$(m);CHR$(18 0);CHR$(0);
FOR i=1 TO 180
PRINT #1, CHR$(i);
NEXT i
PRINT #1, CHR$(&HA);
RETURN
1-30 Command DescriptionsRev. A
m=0: GOSUB bitimage8
m
=0
m
=1
Page 38
GS ✻x y d1 ... d(x × y × 8)
[Name]Define downloaded bit image
TM–U375/U375P Information Manual
[Format]ASCIIGS
✻xyd1 ... d(x × y × 8)
Hex1D2Axyd1 ... d(x × y × 8)
Decimal2942xyd1 ... d(x × y × 8)
[Range]1 ≤ x ≤ 255
1 ≤ y ≤ 255x × y ≤ 512
0 ≤ d ≤ 255
GS / m
[Name]Print downloaded bit image
[Format]ASCIIGS/m
Hex1D2Fm
Decimal2947m
[Range]0 ≤ m ≤ 1
48 ≤ m ≤ 49
✻x y d1 ... d(x × y × 8) defines a downloaded bit image using x× 8 dots in the horizontal direction
GS
and y× 8 dots in the vertical direction. Once a downloaded bit image has been defined, it is available
until another definition is made; ESC @ or ESC & is executed; the printer is reset; or the power is
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 data in the print buffer. In page mode, double-
density mode is disabled. This command is ignored if a downloaded bit image has not been defined.
m
0, 48NormalDoubleProhibited
1, 49Double widthSinglePermitted
ModeHorizontal Dot Density Set Adjacent Dots
Rev. A Command Descriptions 1-31
Page 39
Program ExampleProgram 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$)
PRINT #1, CHR$(d);
NEXT i
FOR m=0 TO 1
PRINT #1, CHR$(&H1D);"/";CHR$(m)
PRINT #1, CHR$(&HA);
NEXT m
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
←
Define
downloade d
bit image
Print d ownloaded
bit ima ge
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
← GS /
0
← GS /
1
Status Commands
The TM-U375/U375P 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.
CommandName
GS aEnable/disable Automatic Status Back (ASB)
GS rTransmit status
DLE EOTReal-time status transmission
ESC uTransmit peripheral device status
ESC vTransmit paper sensor status
1-32 Command DescriptionsRev. A
Page 40
TM–U375/U375P Information Manual
GS a n
[Name]Enable/disable Automatic Status Back (ASB)
[Format]ASCIIGSan
Hex1D61n
Decimal2997n
[Range]0 ≤ n ≤ 255
GS a n selects a status for ASB transmission. ASB is enabled if any status item is selected. The printer
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 the DIP switch
settings. If ASB is enabled when the printer is disabled by the ESC = command, the printer transmits
a 4-byte status message whenever the status changes. The status items are selected using n as follows:
BitOff/On HexDecimal Function
Off000Drawe r kick-out connector pin 3 status disabled.
0
On011Drawer kick-out connector pin 3 status enabled.
Off000On-line/off-line status disabled.
1
On022On-l ine/off-line status enable d.
Off000Error status disabled.
2
On044Error status enabled.
Off000Paper roll sensor status disabled.
3
On088Paper roll sensor status enabled.
4———Undefined.
Off000Cut-sheet (slip or validation) sensor and status disabled.
5
On2032Cut-sheet (slip or validation) s ensor and status enabled.
6, 7———Undefined.
Program Example
PRINT #1, CHR$(&H1D);"a";CHR$ (4); ←
First byte (printer information)
BitOff/On HexDecimal Status for ASB
0Off000Not used. Fixed to Off.
1Off000Not used. Fixed to Off.
Off000Drawe r kick-out connector pin 3 is LOW.
2
On044Drawer kick-out connector pin 3 is HIGH.
Rev. A Command Descriptions 1-33
Enable " Error " status
Page 41
BitOff/On HexDecimal Status for ASB
Off000On-line.
3
On088Off- line.
4On1016Not used. Fixed to On.
Off000Cover closed.
5
On2032Cover open.
Off000
6
On4064Paper is being fed by the paper feed button.
7Off000Not used. Fixed to Off.
Paper is not being fed by t he paper feed
button.
Second byte (printer information)
BitOff/On HexDecimal Status for ASB
0, 1———Undefined.
Off000No mechanical error.
2
On044Mechanical error o ccurred.
3———Undefined.
4Off000Not used. Fixed to Off.
Off000No unrecoverable error.
5
On2032Unrecoverable error occurred.
Off000No automatically rec overable error.
6
On4064Automatically recoverable error occurred.
7Off000Not used. Fixed to Off.
Third byte (paper sensor information)
BitOff/On HexDecimal Status for ASB
Off000Paper roll near-end sensor: paper adequate.
0, 1
On033Paper roll near-end sensor: paper near end.
2, 3———Undefined.
4Off000Not used. Fixed to Off.
Off000Cut-sheet sensor: slip or validation paper present.
5, 6
On6096Cut-sheet sensor: slip or validation paper not present.
7Off000Not used. Fixed to Off.
1-34 Command DescriptionsRev. A
Page 42
Fourth byte (paper sensor information)
BitOff/On HexDecimal Status for ASB
Off000Slip paper selected.
0
On011Slip paper not selected.
Off000Slip paper status: possible to print.
1
On022Slip paper status: not possible to print.
Off000Validation paper selected.
2
On044Validat ion paper not selected.
Off000Validation paper status: possibl e to print.
3
On088Validat ion paper status: not possible to print.
4Off000Not used. Fixed to Off.
Off000Cut-sheet sensor: slip or validation paper present.
5, 6
On6096Cut-sheet sensor: slip or validation paper not present.
7Off000Not used. Fixed to Off.
GS r n
TM–U375/U375P Information Manual
[Name]Transmit status
[Format]ASCIIGSrn
Hex1D72n
Decimal29114n
[Range]1 ≤ n ≤ 3
49 ≤ n ≤ 51
GS r n transmits 1 byte of status data specified by n as follows: paper sensor status when n=1 or 49, drawer
kick-out connector status when n=2 or 50, and cut-sheet (slip or validation paper) status when n=3 or 51.
Program Example
PRINT #1, CHR$(&H1D);"r";CHR$ (1); ←
Transmit s pap er sensor status
Paper sensor status (n=1, 49)
BitOff/On HexDecimal Status
Off000Paper roll near-end sensor: paper adequate.
0, 1
On033Paper roll near-end sensor: paper near end.
2, 3 ———Undefined.
4Off000Not used. Fixed to Off.
Off000Cut-sheet sensor: slip or validation paper present.
5, 6
On6096Cut-sheet sensor: slip or validation paper not present.
7Off000Not used. Fixed to Off.
Rev. A Command Descriptions 1-35
Page 43
Drawer kick-out connector status (n=2, 50)
BitOff/On HexDecimal Status
Off000Drawer kick-out connector pin 3 is LOW.
0
On011Drawer kick-out connector pin 3 is HIGH.
1-3———Undefined.
4Off000Not used. Fixed to Off.
5, 6———Undefined.
7Off000Not used. Fixed to Off.
Cut-sheet (slip or validation paper) status (n=3, 51)
Transmits the values 00H - 0FH, indicating the remaining printable area as follows:
Number of
Remaining Dots
0 - 800H0
9 - 1701H1
18 - 26
•
•
•
117 - 125
126 - 1340EH14
135 and up0FH15
Cut- Sheet Status
HexDecimal
02H
•
•
•
0DH
2
•
•
•
13
DLE EOT n
[Name]Real-time status transmission
[Format]ASCIIDLEEOTn
Hex1004n
Decimal164n
[Range]1 ≤ n ≤ 6
DLE EOT n transmits the specified status in real time. This command is executed even when the
printer is off-line, the print buffer is full, or an error occurs. n indicates the status function as follows:
n
1Transmit printer status
2Transmit off-line status
3Transmit error status
4Transmit paper roll sensor status
Function
1-36 Command DescriptionsRev. A
Page 44
TM–U375/U375P Information Manual
n
5Transmit slip paper status
6Transmit validation paper status
PRINT #1, CHR$(&H10);CHR$(&H4 );CHR$(2); ←T ransmits off-line st atus
Function
Program Example
Printer status (n=1)
BitOff/On HexDecimal Status
0Off000Not used. Fixed to Off.
1On022Not used. Fixed to On.
Off000Drawer kick-out connector pin 3 is LOW.
2
On044Drawer kick-out connector pin 3 is HIGH.
Off000On-line.
3
On088Off-line.
4On1016Not use d. Fixed to On.
5, 6———Undefined.
7Off000Not used. Fixed to Off.
Off-line status (n=2)
BitOff/On Hex Decimal Status
0Off000Not used. Fixed to Off.
1On022Not used. Fixed to On.
Off000Cover is closed.
2
On044Cover is open.
Off000Paper is not being fed by the paper feed button.
3
On088Paper is being fed by the paper feed button.
4On1016Not used. Fixed to On.
Off000No paper-end stop.
5
On2032Printing stops due to paper-end.
Off000No error.
6
On4064Error occurred.
7Off000Not used. Fixed to Off.
Rev. A Command Descriptions 1-37
Page 45
Error status (n=3)
BitOff/On Hex Decimal Status
0Off000Not used. Fixed to Off.
1On022Not used. Fixed to On.
Off000No mechanical error.
2
On044Mechanical error o ccurred.
3———Undefined.
4On1016Not used. Fixed to On.
Off000No unrecoverable error.
5
On2032Unrecoverable error occurred.
Off000No automatically rec overable error.
6
On4064Automatically recoverable error occurred.
7Off000Not used. Fixed to Off.
Paper roll sensor status (n=4)
BitOff/On Hex Decimal Status
0Off000Not used. Fixed to Off.
1On022Not used. Fixed to On.
Off000Pape r roll near-end sensor: paper adequate.
2, 3
On0C12Paper roll near-end sensor: paper near end.
4On1016Not used. Fixed to On.
5, 6———Undefined.
7Off000Not used. Fixed to Off.
Slip paper status (n=5)
BitOff/On HexDecimal Status
0Off000Not used. Fixed to Off.
1On022Not used. Fixed to On.
Off000Slip paper selected.
2
On044Slip paper not selected.
Off000Does not wait for slip paper insertion.
3
On088Waits for slip paper insertion.
4On1016Not used. Fixed to On.
Off000Cut-sheet sensor: slip or validation paper present.
5, 6
On6096Cut-sheet sensor: slip or validation paper not persent.
7Off000Not used. Fixed to Off.
1-38 Command DescriptionsRev. A
Page 46
Validation paper status (n=6)
BitOff/On HexDecimal Status
0Off000Not used. Fixed to Off.
1On022Not used. Fixed to On.
Off000Validation paper selected.
2
On044Validation paper not selected.
Off000Does not wait for validation paper insertion.
3
On088Waits for validation paper insertio n.
4On1016Not used. Fixed to On.
Off000Cut-sheet sensor: slip or validation paper present.
5, 6
On6096Cut-sheet sensor: slip or validation paper not persent.
7Off000Not used. Fixed to Off.
ESC u n
[Name]Transmit peripheral device status
TM–U375/U375P Information Manual
[Format]ASCIIESCun
Hex1B75n
Decimal27117n
[Range]n = 0, 48
ESC u n transmits the status of drawer kick-out connector pin 3 as 1 byte 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. The status to be transmitted is
shown in the table below.
[Name]Transmit paper sensor status
[Format]ASCIIESCv
Hex1B76
Decimal27118
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. The status to be transmitted is shown in the
table below.
Program Ex ample
PRINT #1, CHR$(&H1B);"v";
Paper sensor status
BitOff/On HexDecimal Status
Off000Paper roll near-end sensor: paper adequate.
0, 1
On033Paper roll near-end sensor: paper near end.
2, 3———Undefined.
4Off000Not used. Fixed to Off.
Off000Cut-sheet sensor: slip or validation paper present.
5, 6
On6096Cut-sheet sensor: slip or validation paper not present.
7Off000Not used. Fixed to Off.
Mechanism Control Commands
The TM-U375/U375P supports the following mechanism control commands:
ESC < moves the print head to the home position. The print head first moves to the left-most position,
then to the right-most position, and then to approximately the center of the line.
To prevent paper jams, do not use this command while slip paper is inserted.
ESC U n turns unidirectional printing mode on or off. When the LSB (least significant bit) of n is 1,
unidirectional printing is turned on; when it is 0, unidirectional printing is turned off and
bidirectional printing mode is turned on. Unidirectional printing can be turned on when printing
double-height characters to ensure that the top and bottom of the characters are aligned. The default
setting is n=0 in standard mode and n=1 in page mode.
Program Example
PRINT #1, CHR$(&H1B);"U";CHR$(1); ← U nidirection al pri nting mode turned on
ESC q
[Name]Paper release
[Format]ASCIIESCq
Hex1B71
Decimal27113
ESC q releases the paper.
Program Example
PRINT #1, CHR$(&H1B);"q"
Rev. A Command Descriptions 1-41
Page 49
Miscellaneous Function Commands
The TM-U375/U375P supports the following miscellaneous function commands:
CommandName
GS PSet horizontal and vertical motion units
ESC @Initialize printer
GS ESelect head control method
GS ITransmit printer ID
ESC pGenerate pulse
ESC =Select peripheral device
ESC LSelect page mode
DLE ENQReal-time request to printer
GS P x y
[Name]Set horizontal and vertical motion units
[Format]ASCIIGSPxy
Hex1D50xy
Decimal2980xy
[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=160 and y=144. The calculated result
when using this command with other commands is truncated to the minimum value of the
mechanical pitch (1/160 inch horizontal and 1/144 inch vertical) or an exact multiple of that
minimum value. 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: ESC SP, ESC $, ESC W,ESC /, GS L, and GS W.
Commands used with the vertical motion unit (1/y ) in standard mode: ESC 3, ESC J, and ESC W.
1-42 Command DescriptionsRev. A
Page 50
TM–U375/U375P Information Manual
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 3, ESC J, ESC W, and ESC \.
ESC @ initializes the printer. All settings, including character font and line spacing settings, are
canceled. The data in the print buffer is cleared, and the printer mode is reset to the mode that was in
effect when the power was turned on. The DIP switch settings are not checked again, and the data in
the receive buffer is not cleared.
All settin gs ar e canceled after ESC @ is executed
GS E n
[Name]Select head control method
[Format]ASCIIGSEn
Hex1D45n
Decimal2969n
[Range]0 ≤ n ≤ 255
Rev. A Command Descriptions 1-43
Page 51
GS E n selects the head energizing time corresponding to the paper type selected by ESC c 0. The
default settings are Standard (n=1) when the paper roll is selected and Copy (n=0) when a cut sheet
(slip or validation paper) is selected. Independent settings can be used for each paper type. In
standard mode, this command is enabled only when input at the beginning of a line. The bit value of
n is used as follows:
BitOff/On Hex Decimal Function
Off000Head energizing time: Copy.
0
On011Head energizing time: Standard.
1-7 ———Undefined.
Program Example
PRINT #1,CHR$(&H1B);"c0";CHR$(1);←
PRINT #1,CHR$(&H1D);"E";CHR$(0); ← Select copy mo de
Select pa per r oll
GS I n
[Name]Transmit printer ID
[Format]ASCIIGSIn
Hex1D49n
Decimal2973n
[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
1, 49Printer model IDTM-U375/U375P0AH
2, 50Type IDSee table below.
3, 51ROM version IDDepends on ROM version.
Printer IDSpecificationID (hexadecimal)
Type ID (n=2 or 50)
BitOff/On Hex Decimal Function
0Off000Two-byte character code not supported.
1On000No auto-cutter equipped.
Off000Not customer display equipped (DIP switch 2-1 is Off).
2
On044Customer display equipped (DIP switch 2-1 is On).
3———Undefined.
4Off000Not used. Fixed to Off.
5, 6———Undefined.
7Off000Not used. Fixed to Off.
1-44 Command DescriptionsRev. A
Page 52
TM–U375/U375P Information Manual
Program Example
PRINT #1, CHR$(&H1D);"I";CHR$(1);← Transmi ts printer ID
ESC p m t1 t2
[Name]Generate pulse
[Format]ASCIIESCpmt1t2
Hex1B70mt1t2
Decimal27112mt1t2
[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 pulse is sent to drawer kick-out connector pin 2; when m=1 or 49, the pulse
is sent to drawer kick-out connector pin 5.
ESC = n selects the device to which the host computer sends data, based on the value of n as follows:
When the printer is disabled (n=2), it ignores all received data with the exception of the DLE ENQ 1
and DLE ENQ 2 commands. The default setting varies according to the DIP switch settings.
ESC L switches from standard mode to page mode. This command is enabled only when input at the
beginning of a line in standard mode; it has no effect in page mode. Standard mode is selected as the
default. When FF or ESC @ is entered in page mode, the printer returns to standard mode.
CHR$(0);CHR$(50);CHR$(0);CHR$(50);CHR$(0);
PRINT #1, CHR$(&H1B);"T";CHR$ (0);
PRINT #1, "AAAAA"; CHR$(&HA);← S tore chara cters for printing
PRINT #1, "BBBBB "; CHR$(&HA);← S tore chara cters for printing
PRINT #1, "CCCCC "; CHR$(&HC);← B atch print
BBBBB
CCCCC
DLE ENQ n
[Name]Real-time request to printer
[Format]ASCIIDLEENQn
Hex1005n
Decimal165n
[Range]1 ≤ n ≤ 3
1-46 Command DescriptionsRev. A
Page 54
TM–U375/U375P Information Manual
DLE ENQ n responds to a request in real time from the host computer, specified by n as shown
below. This command is executed even when the printer is off-line, the receive buffer is full, or an
error occurs. It is valid only when n=1 or n=2, or when a recoverable error other than an
automatically recoverable error occurs. When n=3, it is valid only when the printer is waiting for a
cut sheet (slip or validation paper).
n
1Restarts printing from the beginning of the line where an
2Recovers from an error after clearing the receive and print
3Cancels cut-sheet waiting status.
PRINT #1, CHR$(&H10);CHR$(&H5);CHR$(3);
Request
error occurred, after recovering from the error.
buffers.
Program Example
Rev. A Command Descriptions 1-47
Page 55
Character Code Tables
SP in a table represents space. Refer to page 1-51 for information on how to read these tables.
Page 0 (PC437: U.S.A., Standard Europe) (International character set: U.S.A)
Page 1 (Katakana)
1-48 Command DescriptionsRev. A
Page 56
Page 2 (PC850: Multilingual)
TM–U375/U375P Information Manual
Page 3 (PC860: Portuguese)
Rev. A Command Descriptions 1-49
Page 57
Page 4 (PC863: Canadian-French)
Page 5 (PC865: Nordic)
1-50 Command DescriptionsRev. A
Page 58
International character set
ASCII code
TM–U375/U375P Information Manual
Country
U.S. A.# $@[ \ ] ^` { ¦}
France# $à°ç§^`éùè¨
Germany# $§ÄÖÜ ^ `äöüß
U.K.£
Denmark I# $ @ÆØÅ^` æø å
S w e d e n# ¤ÉÄÖÅÜéäöåü
I t al y# $@°\é^ùàòèì
SpainPt $@¡Ñ¿^` ¨ñ}
Japan# $@[¥]^` { ¦}
N o r w a y# ¤ÉÆØÅÜéæøåü
D e n m a r k I I# $ÉÆØÅÜéæøåü
Hex2324405B5C5D5E607B7C7D 7E
Dec3536649192939496123124125126
$@
[ \]^`
{ ¦}
Using the Character Code Tables
~
~
~
~
~
The example below uses Page 0 (PC437) (see page 1-48) 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 column 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 the character "A".
Decimal ..............65
Hexadecimal .....41
Binary .................01000001
Rev. A Command Descriptions 1-51
Page 59
TM–U375/U375P Information Manual
Chapter 2
Application
This chapter presents an example illustrating ESC/POS command functions and printing results. The
example shows procedures and a program for combining system processes with the TM-U375,
DM-D202II, and a drawer.
System Processing and Procedures
ProcedureCommands UsedDescription
1. Define stamp data
2. StampESC =, ESC c 0, ESC a, GS /,
3. Display a messageESC =Selects only the customer display using ESC =. Displays a
4. Print date and timeESC =, ESC dSelects only the printer using ES C =. Selects left justification
5. Print item A
Display item A
6. Print item B
Display item B
7. Display the amount o f
change and a message
8. StampESC =, ESC a, GS /, ESC JPrints the stamp (downloaded bit image) for the next
✻Defines a downloade d bit image to be used as a stamp.
GS
Prints the specified stamp (downloaded bit image) in the
ESC J
ESC a, ESC =, ESC !, LFSelects both the printer and custo mer display using ESC =.
ESC =, ESC !, LF, ESC p, E SC d Selects only the printer using ES C = and prints item B.
ESC =Selects only the customer display using ESC = and displays
center of the receipt at the print position defined by ESC a.
message and the time.
after printing the date and time in the center of the
receipt.
Prints and displays item A.
Displays the amount paid only on the customer display.
the amount of change and a message.
receipt and advances the paper to the cut position.
Uses the manual cutter to cut the paper.
(Any additional data is omitted from the downloaded bit image.)
Displays ch ange
and a messa ge
Executes
the stamp
2-4 ApplicationRev. A
Page 63
TM–U375/U375P 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
classification is separated into basic commands and extension commands.
Basic commands are defined as fundamental printer controls, including print commands and character
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
Extensio n commands
Hardware extension commands
Software extension commands
Rev. A Command Reference 3-1
Page 64
Function Classification
Function TypeCommandNameMatrix Category
Print commandsLFPrint and line feedBasic single
FF1. 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)
CRPrint and carriage returnMechanical extension
ESC FFPrint data in page modeSoftware extension
ESC JPrint and feed paperMechanical extension
ESC KPrint and reverse feedMechanical extension
n
ESC dPrint and feed
ESC ePrint and reverse feed n linesMechanical extension
GS FFPrint and eject labelHardware extension
Line spacing
commands
Character commandsCANCancel print data in page mode Software extensionO
The TM-U375/U375P supports the commands marked with a O in the “ Supported Command” column.
The TM-U375P supports the commands marked with a ● in the “Supported Command” column.
ESC 2Select default line spacingMechanical extension
The TM-U375/U375P supports the commands marked with a O in the “ Supported Command” column.
The TM-U375P supports the commands marked with a ● in the “Supported Command” column.
ESC zTurn parallel printing mode on/
off for receipt and journal
ESC {Turn upside-down printing mode
on/off
GS !Select character sizeSoft ware extension
GS BTurn white/black reverse printing
mode on/off
GS bTurn smoothing mode on/offSoftware extension
ESC c 5Enable/disable panel buttonsHardware extension
ESC c 6Enable/disable on-line buttonHardware extensio n
ESC c 0Sele ct paper type(s) for printingBasic multipl e
GS AAdjust label print starting position Hardware extension
GS C 0Select counter print modeSoftware extension
GS C 1Select count mode (A)Software extension
GS C 2Set counterSoftware extension
GS C ;Select count mode (B)Software extension
GS ESelect head control methodHardware e xtensio n
GS ITransmit printer IDHardware extension
GS PSet horizontal and vertical
motion units
GS cPrint counterSoftware extension
GS z 0Set on-line recovery wait timeMechanical extension
● in the “Supported Command” column.
Mechanical extension
Mechanical exte nsion
Software e xtension
Software e xtension
Supported
Command
O
O
O
O
O
Rev. A Command Reference 3-5
Page 68
3-6
Reference Table
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
HTHo rizontal tab Moves the printing
position to the next
horizontal tab
posit ion.
●●●●●●●●●●●●●●●● ●
LFPrint and line
feed
Prints the data in the
print buffer and
feeds one line
based on t he curre nt
line spacing.
●●●●●●●●●●●●●●●●●●●
FF1. P rint and
ejec t cut
sheet (in
standard
mode)
Prints the data in the
print buffer and
ejects the cut sheet.
●●●●●
2. P rint and
return to
standard
mode (in
page
mode)
Prints the data in the
print buffer and
returns to standard
mode.
●●●●
3. P rint and
feed l abel
to print
starting
positi on (on
label )
Prints the data in the
print buffer and
feeds the next label
to the print starting
posit ion.
●●
The commands supported by each printer are marked by a ● or a O. The functions of the co mmands marked by a O may differ, depending on the printer model.
Page 69
3-7
TM–U375/U375P Information Manual
CRPrint and
carriage
return
When auto line feed
is e nabled, this
command functions
in the same way as
LF. When auto line
feed is disabled, this
command prints the
data in the print
buffer and does not
feed the pape r.
OOOO● ● ●●●●O●●●●O
CANCancel print
data in page
mode
Deletes all the print
data in the current
printing area in page
mode.
●●●●
RSJournal tabMoves the print
positi on to the
beginning of the
journal paper.
●
DLE EOTReal -time
status
transmissio n
Transmits a specified
status in real time.● ●●●●●●●
DLE EOT BS Real-time
MICR status
transmissio n
Transmits MICR
status in real time.OO
DLE ENQReal-time
request to
printer
Responds to a
request from the host
computer in real
time.
●●●●●●
ESC FFPrint data in
page mode
Prints the data in the
print buffer in page
mode.
●●
ESC SPSet ri ght-side
character
spacing
Sets the right-side
character spacing.
●●●●●●●●●●●●● ●●●●●●
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 70
3-8
ESC !Selec t print
mode(s)
Selects a print
mode(s).
●●●●●●●●●●●●●●●●●●●
ESC $Set absolut e
print positio n
Sets the print starting
position from the
beginning of the line.
●●●●●●● ● ●
ESC %Se lect/
cancel userdefined
charac ter set
Selects or cancels
the user-defined
charac ter set.
●●●●●●●●●●●●●●●●●●
●
ESC &Define user-
defined
characters
Defines user-de fined
charac ters for a
specified character
code .
●●●●●●●●●●●●●●●●●●
●
ESC ✻Se lect bit-
image mode
Selects a bit-image
mode for a specified
number of dots.
●●●●●●●●●●●●●●●●●●
●
ESC –Turn underline
mode on/off
Turns underline mode
on or off.
●●●●●●OOOO●●●
ESC 2Select default
line spacing
Sets the line spacing
to 1/6 inch.
●●●●●●●●●●●●●●●●●●
●
ESC 3Set line
spacing
Sets the line spacing
to a specified value.
●●●●●●●●●●●●●●●●●●
●
ESC <Return home Moves the print head
to the home position.
● ● ●●●●●●●
ESC =Se lec t
peripheral
device
Selects the device
to which the host
computer sends
data.
●●●●●●●●● ● ●●
ESC ?Cancel user-
defined
characters
Cancels the userdefined characters
for a specified
character code .
● ●●●●●●
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 71
3-9
TM–U375/U375P Information Manual
ESC @Initialize
printer
Clears the data in the
print buffer and resets
the printer mode to
the mode that was in
effect when the
power was turned on.
●●●●●●●●●●●●● ●●●●●●
ESC CSet cut sheet
eject length
Sets the eject length
for cut sheet to a
specified number of
lines.
●●●● ●
ESC DSe t horizontal
tab positio ns
Sets the horizontal
tab positio ns.
●●●●●●●●●●●●● ●●● ●
ESC ETurn
emphasized
mode on/off
Turns emphasized
mode on or off.●●●●●●OOOO●●●
ESC FSet/cance l
cut she et
reverse eject
Sets or cancels the
cut sheet reverse
ejec t.
●
ESC GTurn double-
strike mode
on/off
Turns double -strike
mode on or off.●●●●●●OOOO●●●
ESC JPrint and
feed paper
Prints the data in the
print buffer and
feeds the paper a
specifi ed distance.
●●●●●●●●●●●●● ●●●●●●
ESC KPrint and
reverse feed
Prints the data in the
print buffer and
feeds the paper a
specifi ed distance in
the reverse direct ion.
●●●●●
ESC LSelect page
mode
Switches from
standard mode to
page mode.
●●
●●
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 72
3-10
ESC RSelec t an
international
charac ter set
Selec ts a countr y’s
charac ter set.
●●●●●●●●●●●●●●●●●●●
ESC SSe lect
standard
mod e
Switches fro m page
mode to standard
mode.
●●
ESC TSelect print
direction in
page mode
Selec ts the print
dire ction a nd st arting
position in page
mode.
●●
●●
ESC UTurn
unidirectional
printing
mode on/off
Turns unidirectional
printing mode on or
off.
● ● ●●●●●●●●
ESC VTurn 90°
clockwis e
rotat ion mode
on/off
Turns 90° clockwise
rotation mode on or
off.
●●●●●●
●●
ESC WSet printing
area in page
mode
Sets the position and
size of the printing
area in page mode.
●●●●
ESC \Set relative
print positio n
Sets the print starting
position based on
the current position.
●●●●●●● ● ●
ESC aSe lect
jus tification
Aligns all the data in
one line to a
specified position.
●●●●●●●●● ● ●
ESC c 0Se lec t paper
type(s) fo r
printing
Selects paper type(s)
for printing.
●●●●●●
ESC c 1Se lec t paper
type(s) fo r
command
sett ings
Selects paper type(s)
for use with various
command settings.
●●●●
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a ● or a O. The functions of the co mmands marked by a O may differ, depending on the printer model.
Page 73
3-11
TM–U375/U375P Information Manual
ESC c 3Select pape r
sensor(s) to
output paperend signals
Selec ts paper
sensor(s) to output
paper-end signals.
O OOO O O OOOO OOOO
ESC c 4Select pape r
sensor(s) to
stop printing
Selects the paper
sensor that stops
printing when the
paper runs out.
●●●●●●●●●●●●● ●●●●●
ESC c 5Enable/disable
panel buttons
Enables or disables
the panel buttons.
●●●●●●●●●●●●● ●●●●●●
ESC c 6Enable/disable
on-line button
Enables or disables
the o n-line button .
●
●
ESC dPrint and
feed n lines
Prints the data in the
print buffer and
feeds n lines.
●●●●●●●●●●●●● ●●●●●●
ESC ePrint and
reverse feed
n
lines
Prints the data in the
print buffer and
feeds n lines in the
reverse direct ion.
●●●●●
ESC fSet cut sheet
wait time
Sets the t ime that the
printer waits for cut
sheet to be inserted
and the time from
insertio n of the sheet
until printing starts.
●●●●●● ●
ESC iPartial cut
(one po int
left uncut)
Executes a partial
cut of the paper with
one point left uncut.
●●●●●●● ●
ESC mP artial cut
(three points
left uncut)
Executes a partial
cut of the paper with
three po ints left
uncut.
●●●●●●●
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 74
3-12
ESC oStampExecutes stamp
printing.
●●
ESC pGenerate
pulse
Output s a specified
pulse t o a specified
connec tor pin.
●●●●●●●●●●●●●●●●●●
ESC qPaper release Releases t he paper.●●●
ESC rSelec t print
colo r
Selec ts the print
colo r.
●●●●O●
ESC tSelec t
charac ter
code table
Selects a page from
the character code
table.
●●●●●●●●●●●●●●●●●●●
ESC uTransmit
peripheral
device status
Transmits the st atus
of a specified
connector pin.
OO
●●●●
OOOO O
●●●●●
ESC vTransmit
paper sensor
status
Transmits the st atus
of a paper sensor.
●
OO●●
●●
OOOO O
●
●
●●●
ESC zTurn parallel
printing
mode on/off
for rec eipt
and journal
Turns parallel printing
mode on or off fo r
receipt and journal
paper.
●
ESC {Turn upside-
down printing
mode on/off
Turns upside-dow n
printing mode on or
off.
●●●●●●●●●●●●●●●●●●●
FS !Selec t print
mode(s) for
Kanji
characters
Selects print mo de(s)
for Kanji characters.
●OOOOOO
FS &Select Kanji
charac ter
mode
Selects Kanji
charac ter mode.
●OOOOOO
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 75
3-13
TM–U375/U375P Information Manual
FS –Turn underline
mode on/off
for Kanji
characters
Turns underline mo de
on or off for K anji
characters.
●OOOOOO
FS .Cancel Kanji
character
mod e
Cancels Kanji
character mode.
●OOOOOO
FS 2De fine user-
defined Kanji
characters
Defines user-defi ned
Kanji characters for
specifi ed character
codes .
●OOOOOO
FS CSelect Kanji
character
code system
Selects the Kanji
character code
system.
●OOOOOO
FS LSelec t
doubl edensity page
mode
Switches from
standard mode to
double-density
page mode.
O
FS SSet Kanji
character
spacing
Sets the right- and
left-side Kanji
character spacing.
●OOOOOO
FS WTurn
quadruplesize mode on/
off for Kanji
characters
Turns quadruple-size
mode on or off for
Kanji characters.
●OOOOOO
FS a 0Read chec k
paper
Selec ts the MICR
function and reads
the check paper.
OO
FS a 1Load check
paper to print
starting
positi on
Loads check paper
to the print starting
positi on.
OO
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 76
3-14
FS a 2Eject check
paper
Ejects the check
paper.
OO
FS bRequest
retransmission
of c heck
paper
reading result
Retransmits the
previous check
paper reading
results.
OO
FS cMICR
mechanism
cleaning
Cleans t he MICR
mechanism.OO
GS ENQTransmit real-
time printer
status
Transmits the st atus
of the printer in real
time.
●●
GS FFPrint and
eject label
Prints the data in the
print buffer and
ejects the label.
●●
GS !Se lect
charac ter size
Selec ts the
charac ter width and
height.
●●
GS $Set absolut e
vertical print
position in
page mode
Sets the absolute
vertical print starti ng
position in page
mode.
●●
GS ✻Define
downloaded
bit image
Defines a
downloaded bit
image using a
specified number of
dots .
●●●●●●●
●
●
GS /Print
downloaded
bit image
Prints a downloaded
bit image using a
specified mode.
●●●●●●●
●
●
GS :Start/end
macro
definition
Starts or ends a
macro definition.
●●●●●●
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a ● or a O. The functions of the co mmands marked by a O may differ, depending on the printer model.
Page 77
3-15
TM–U375/U375P Information Manual
GS <Initialize
printer
mechanism
Feeds a label to the
print starting position.●●
GS AAdjust label
print starting
positi on
Adjusts the l abel
position relative to
the de fault position.
●●
GS BTurn white/
black reverse
printing
mode on/off
Turns whit e/black
reverse printing
mode on or off.
●●
GS C 0Se lect
counter print
mode
Selects a print mode
for the serial counter.●●
GS C 1Se lect count
mode (A)
Selec ts a cou nt
mode for the serial
counter.
●●
GS C 2Set counterSe ts the serial
counter value.
●●
GS C ;Select count
mode (B)
Selec ts a cou nt
mode for the serial
counter and
specifi es the counter
value.
●●
GS ESelect he ad
control
method
Selec ts the print
speed and head
energizing time.
●●●●●●●
GS HSelect
printing
positi on of HRI
characters
Selec ts the printing
position of HRI
characters when
printing a bar code.
●●●●●●
GS ITransmit
printer ID
Transmits a specified
printer ID.
● ●●●●●● ●
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 78
3-16
GS LSet left margin Sets the left margin
using speci fied
values.
●●●
GS PSet horizontal
and vertical
motion units
Sets the horizontal
and vertical mo tion
units.
●●
●
●
●
GS VSelec t cut
mode and cut
paper
Cuts t he specified
paper.●●
GS VSelec t cut
mode and cut
paper
Advances the
specified paper to
the cut position and
performs the cut.
●●●
GS WSet printing
area widt h
Sets the printing area
width to a defined
area.
●●●
GS \Set relative
vertical print
position in
page mode
Moves the vertical
print starting position
in page mode to a
specified distance
from the current
posit ion.
●●
GS ^Execute
macro
Executes a macro.
●●●●●●
GS aEnable/
disable
Automatic
Status Back
(ASB)
Selects a status for
ASB transmission.
● ●●●●●●
●
GS bTurn
smoothing
mode on/off
Turns smoothing
mode on or off.●●
Command NameFu nc tion
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 79
3-17
TM–U375/U375P Information Manual
GS cPrint counter Stores a serial
counter value in the
print buffer and
increments or
decreme nts the
counter value.
●●
GS fSe lect font
for HRI
characters
Selects a font for the
HRI characters used
when printing a bar
code.
●●●●●●
GS hSet bar code
height
Sets the height of a
bar code.
●●●●●●
GS kPrint bar
code ➀
Selects a bar code
system and prints
the bar code.
●●●●●●
GS kPrint bar
code ➁
Selects a bar code
system and prints
the bar code.
●●
GS rTransmit status Transmits a specified
status.
● ●●●●●● ●
GS wSet bar code
width
Sets the horizontal
size of the bar code.
●●●●●●
GS z 0Se t on-line
recove ry wait
time
Sets the on-line
recove ry wait time.●●
Command NameFunction
Supported Command
TM-
267II
TM-T SeriesTM-L Series TM-U200 TM-300/300M
TM270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM295
T60 T80 T80M T85 L60 L60II BD A B C D
The commands supported by each printer are marked by a
● or a O. The functions of the commands marked by a O may differ, depending on the printer model.
Page 80
SEIKO EPSON CORPORATION
PERIPHERAL EQUIPMENT OPERATIONS DIV.
2070 Kotobuki Koaka, Matsumoto-shi, Nagano-ken 399, Japan
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.