Epson U375P - TM B/W Dot-matrix Printer, TM-U375 Information Manual

Page 1
TM-U375/TM-U375 P
Using this online information guid e
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.
Copyright© 1996 by Seiko Epson Corporation, Nagano, Japan.
ESC/POS™ Information Manual
Guide to TM–U375/U375P 9603-01
SEIKO EPSON CORPORATION SYSTEM DEVICE D IVISION
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. A i
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
(40 columns, 16 CPI, continuous printing) Approximately 5.4 LPS (20 columns, 16 CPI, continuous printing)
International: 32 characters Extended graphics: 128 characters × 6 pages
Slip paper: 70(W) × 160(L) mm – 182(W) × 257(L) mm Validation paper: 135(W) × 70(L) mm – 182(W) × 257(L) mm
Thickness: Paper roll: 0.06 mm – 0.085 mm
Slip paper: 0.09 mm – 0.31 mm
Interface: RS-232 (serial interface)
or IEEE-1284 (parallel interface)
Data buffer: 4K or 40 bytes (selectable by DIP switch)
Rev. A iii
Page 7
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-18
Paper Sensor Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
Printing Paper Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-21
Print Position Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-24
Bit-Image Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-30
Status Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-32
Mechanism Control Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-40
Miscellaneous Function Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-42
Character Code Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-48
Chapter 2 Application
Chapter 3 Command Reference
Command Classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Reference Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
iv Rev. A
Page 8
TM–U375/U375P 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 Name Function Type
HT Horizontal tab Print position 1-27
LF Print and line feed Print 1-4
1
Print and eject cut sheet (in standard mode)
FF
CR Print and carriage return Print 1-4
CAN Cancel print data in page mode Character 1-17
DLE E OT Real-time status transmission Status 1-36
DLE E NQ Real-time request to printer Miscellaneous function 1-46
ESC SP Set right-side character spaci ng Character 1-9
ESC ! Se lect print mode(s) Character 1-13
ESC $ Set absolute print position Print position 1-24
ESC % Se lect/cancel user-defined character set Character 1-10
ESC & Define user-defined characters Character 1-10
Select bit-image mode Bit image 1-30
ESC
ESC – Turn underline mode on/off Character 1-14
ESC 2 Select de fault line spacing Line spacing 1-7
ESC 3 Set line spacing Line spacing 1-7
ESC < Return home Mechanism control 1-40
ESC = Se lect peripheral device Miscellaneous function 1-45
ESC ? Cancel user-defined characters Character 1-10
ESC @ Initialize printer Miscellaneous function 1-43
ESC C Set cut sheet eject length Line spacing 1-8
ESC D Set horizontal tab positions Print position 1-27
ESC E Turn emphasized mode on/off Character 1-15
ESC G Turn double-strike mode on/off Character 1-15
ESC J Print and feed paper Print 1-6
ESC L Se lect page mode Miscellaneous function 1-46
ESC R Select an international character set Character 1-11
2
Print and return to standard mode (in page
mode)
Print 1-5
Page Number
Rev. A Command Descriptions 1-1
Page 9
Command Name Function Type
ESC T Se lect print direction in page mode Print position 1-29
ESC U Turn unidirectional printing mode on/off Mechanism control 1-41
ESC V Turn 90° clockwise rotatio n mo de on/off Character 1-17
ESC W Set printing area in page mode Print position 1-28
ESC \ Set relative print position Print position 1-24
ESC a Select justification Print position 1-25
ESC c 0 Se lect paper type(s) for printing Printing paper 1-21
ESC c 1 Se lect paper type(s) for command settings Printing paper 1-22
ESC c 3
ESC c 4 Se lect paper sensor(s) to stop printing Paper sensor 1-19
ESC c 5 Enable/disable panel buttons Panel button 1-18
ESC d Print and feed
ESC f Set cut s heet wait time Printing paper 1-23
ESC p Generate pulse Miscellaneous function 1-45
ESC q Paper release Mechanism control 1-41
ESC t Select character code table Character 1-12
ESC u Transmit peripheral device status Status 1-39
ESC v Transmit paper sensor status Status 1-40
ESC { Turn upside-down printing mode on/off Character 1-16
Define downloaded bit image Bit image 1-31
GS
GS / Print downloaded bit image Bit image 1-31
GS E Select head control method Miscellaneous function 1-43
GS I Transmit printer ID Miscellaneous function 1-44
GS L Set left margin Print position 1-26
GS P Set horizontal and vertical motion units Miscellaneous function 1-42
GS W Set printing area width Print position 1-26
GS a Enable/disable Automatic Status Back (ASB) Status 1-33
GS r Transmit status Status 1-35
Se lect paper sensor(s) to output paper-end signals
n
lines Print 1-6
Paper sensor 1-20
Page Number
1-2 Command Descriptions Rev. 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:
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 font 5 x 9 selected.
On 01 1 Character font 7 x 9 selected.
Off 00 0 Emphasized mo de not selected.
On 08 8 Emphasized mo de selected.
Off 00 0 Double-height mode not selected.
On 10 16 Double-height mode selected.
Off 00 0 Double-width mode not selected.
On 20 32 Double-width mode selected.
Off 00 0 Underline mode not selected.
On 80 128 Underline 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:
Command Name
LF Print and line feed CR Print and carriage return FF Print and eject cut sheet (in standard mode)
1
2
Print and return to standard mode (in page mode)
ESC J Print and feed paper ESC d Print and feed n lines
LF
[Name] Print and line feed [Format] ASCII LF
Hex 0A Decimal 10
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.
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
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.
Program Example Print Sample
PRINT #1, "AAAAA "; CHR$(&HD); AAAAABB BBB PRINT #1, " BBBBB"; CHR$(&HA);
1-4 Command Descriptions Rev. A
Page 12
FF
TM–U375/U375P Information Manual
[Name] Print and eject cut sheet (in standard mode)
1
2
Print and return to standard mode (in page mode)
[Format] ASCII FF
Hex 0C Decimal 12
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>
PRINT #1, CHR$(&H1B);"c0";CHR$(4);Selec t slip PRINT #1, "AAAAA "; CHR$(&HA); PRINT #1, "BBBBB "; CHR$(&HC);
AAAAA BBBBB
Program Example <page mode> Print Sample <page mode>
PRINT #1, CHR$(&H1B);"L";←Select page mode PRINT #1, CHR$(&H1B);"W";CHR$ (0);CHR$(0);CHR$(0); CHR$(0);CHR$(30);CHR$(0);CHR$(30);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$ (0); PRINT #1, "AAAAA "; CHR$(&HA);←Store chara cters for printing PRINT #1, "BBBBB "; CHR$(&HA);←Store chara cters for printing PRINT #1, "CCCCC "; CHR$(&HC);←Batch print
The paper is completely eject ed.
AAAAA BBBBB CCCCC
Rev. A Command Descriptions 1-5
Page 13
ESC J n
[Name] Print and feed paper [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 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.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(160);CHR$(144); PRINT #1, "AAAAA "; CHR$(&HA); PRINT #1, "BBBBB "; CHR$(&H1B);"J";CHR$(72); PRINT #1, "CCCCC "; CHR$(&HA); PRINT #1, "DDDDD "; CHR$(&HA);
AAAAA BBBBB
CCCCC DDDDD
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] ASCII ESC d n
Hex 1B 64 n Decimal 27 100 n
[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.
Program Ex ample Print Sample
PRINT #1, "AAAAA "; CHR$(&HA); PRINT #1, "BBBBB "; CHR$(&H1B);"d";CHR$(6); PRINT #1, "CCCCC "; CHR$(&HA);
1-6 Command Descriptions Rev. A
AAAAA BBBBB
CCCCC
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.
Command Name
ESC 2 Select default line spacing ESC 3 Set line spacing ESC C Set cut sheet eject length
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 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 Example Print 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
30/144 -inch (15-dot) line spaci ng
40/144 -inch (20-dot) line spaci ng
50/144 -inch (25-dot) line spaci ng
60/144 -inch (30-dot) line spaci ng
1/6-in ch (12-dot) line spa cing
Rev. A Command Descriptions 1-7
Page 15
ESC C n
[Name] Set cut sheet eject length [Format] ASCII ESC C n
Hex 1B 43 n Decimal 27 67 n
[Range] 0 n ≤ 255
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.
P rogram Examp le P rint Samp le
PRINT #1, CHR$(&H1B);"c1";CHR$(4);Select slip PRINT #1, CHR$(&H1B);"C";CHR$(8);Set eject length PRINT #1, CHR$(&H1B);"c0";CHR$(4);Select slip PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HC);
AAAAA BBBBB
Eject le ngth set to 8 lines using
ESC C
Character Commands
The TM-U375/U375P 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° clockwise rotation mode on/off CAN Cancel print data in page mode
1-8 Command Descriptions Rev. A
Page 16
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
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 le P 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] ASCII ESC % n
Hex 1B 25 n Decimal 27 37 n
[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 y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
Decimal 27 38 y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
[Range] y = 2
32 c1 c2 126 0 x 6 (5 × 9 font) 0 x ≤ 10 (7 × 9 font) 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 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 Descriptions Rev. 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 Example Program 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] ASCII ESC R n
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)
Hex 1B 52 n Decimal 27 82 n
[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).
n
Country
0U.S.A.
1 France
2 Germany
3U.K.
4 Denmark I
5 Sweden
6Italy
7Spain
8 Japan
9 Norway
10 Denmark lI
Program Example Print Sample
FOR n=0 T O 10
PRINT #1, CHR$(&H1B);"R";CHR$(n); PRINT #1, "# $ @ [ \ ] ^ ` { ¦ } ~"; CHR$(&HA);
NEX T n
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
254 n ≤ 255
# $@[ \]^` { ¦}~← # $à°ç§^`éùè¨ # $§ÄÖÜ ^ `äöüß £ $@[\]^`{ ¦}~← # $ @ЖШЕ^` жш е~← # ¤ЙДЦЕЬйдцеь # $@°\й^щатим 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
1-12 Command Descriptions Rev. A
Page 20
TM–U375/U375P Information Manual
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.
n
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)]
254 Page 254 [space page]
255 Page 255 [space page]
PRINT #1, CHR$(&H1B);"!";CHR$(0); PRINT #1, CHR$(&H1B);"t";CHR$(0); Select page 0 GOSUB printing PRINT #1, CHR$(&H1B);"t";CHR$(1); Select page 1 GOSUB printing END
Character Code Table
Program Example Print Sample
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] ASCII ESC ! n
Hex 1B 21 n Decimal 27 33 n
[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.
Bit Off/On Hex Decimal Function
Off 00 0 Character font 5 x 9 selected.
0
On 01 1 Character font 7 x 9 selected.
1, 2 — Undefined.
Off 00 0 Emphasized mode not select ed.
3
On 08 8 Emphasized mode selected.
Off 00 0 Double-height mode not selected.
4
On 10 16 Double-height mode s elected.
Off 00 0 Double-width mode not selected.
5
On 20 32 Double-width mode selected.
6 Undefined.
Off 00 0 Underline mode not selected.
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);
ESC – n
[Name] Turn underline mode on/off [Format] ASCII ESC n
5 x 9 font7 x 9 font
with underline
AA: Nor mal BB: Emp hasized CC: Dou ble-height DD: Emp hasized + Double-heig ht EE: Dou ble-width FF: Emp hasized + Double-widt h GG: Dou ble-height + Double-w idth HH: Emp hasized + Double-heig ht + Double-width
Hex 1B 2D n
Decimal 27 45 n
[Range] n = 0, 1, 48, 49
1-14 Command Descriptions Rev. A
Page 22
TM–U375/U375P Information Manual
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 Example Print Sample
PRINT #1, CHR$(&H1B);"-";CHR$(1); ← Select AAAAA 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
[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 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 Example Print Sample
PRINT #1, CHR$(&H1B);"E";CHR$(1); Select AAAAA Em phasized mode turned on PRINT #1, "AAAAA"; CHR$(&HA); BB BBB ← Emphasized mode turned off PRINT #1, CHR$(&H1B);"E"; CHR$(0); Cancel PRINT #1, "BBBBB"; CHR$(&HA);
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
Rev. A Command Descriptions 1-15
Page 23
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 Example Print Sample
PRINT #1, CHR$(&H1B);"G";CHR$(1); ← Select AAAAA 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
[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 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.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"{";CHR$(0); Cancel GOSUB printing PRINT #1, CHR$(&H1B);"{";CHR$(1); Select GOSUB printing END
printing: PRINT #1, "ABCDE"; CHR$(&HA); PRINT #1, "BCDEF"; CHR$(&HA); RETURN
Normal printing
ABCDE BCDEF
ABCDE BCDEF
Upside-do wn printing
1-16 Command Descriptions Rev. A
Page 24
TM–U375/U375P Information Manual
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] 0 n 2
48 n 50
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.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(160);CHR$(144); PRINT #1, CHR$(&H1B);"3";CHR$(10); PRINT #1, CHR$(&H1B);"V";CHR$(1);Select GOSUB printing PRINT #1, CHR$(&H1B);"2"; PRINT #1, CHR$(&H1B);"V";CHR$ (0);Cancel GOSUB printing END
printing: PRINT #1, CHR$(&H1B);" ";CHR$ (0); "AAA"; PRINT #1, CHR$(&H1B);" ";CHR$ (10); "AAA"; PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1B);" ";CHR$ (0); "BBB" PRINT #1, CHR$(&H1B);" ";CHR$ (10); "BBB"; PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1B);" ";CHR$ (0); "CCC"; PRINT #1, CHR$(&H1B);" ";CHR$ (10); "CCC"; PRINT #1, CHR$(&HA);iCHR$(& HA); RETURN
CAN
Right-s ide spacing
ABC
ABC
ABC
ABC
ABC
A
A
A B C
A
A
A
B
B
B
B
B
C
C
C
C
C
Right-si de sp acing
ABC
Line spacing
Line spacin g
ESC V
ESC V
0
1
[Name] Cancel print data in page mode [Format] ASCII CAN
Hex 18 Decimal 24
Rev. A Command Descriptions 1-17
Page 25
CAN deletes all the print data for the current print job in page mode. This command is enabled only in page mode.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"L";← Select page mode PRINT #1, CHR$(&H1B);"W";CHR$ (0);CHR$(0);CHR$(0);
CHR$(0);CHR$(120);CHR$(0);CHR$(100);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$ (0); FOR i=1 TO 200 PRINT #1, "A"; NEX T i PRINT #1, CHR$(&H1B);"W";CHR$ (30);CHR$(0);CHR$(30); CHR$(0);CHR$(30);CHR$(0);CHR$(30);CHR$(0); PRINT #1, CHR$(&H18);Cancel print data
PRINT #1, CHR$(&HC);← Ba tch print
AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA
AAAAA AAAAAAAAAA AAAAA AAAAAAAAAA AAAAA AAAAAAAAAA AAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA
Panel Button Command
The TM-U375/U375P supports the following command for enabling and disabling the panel buttons (PAPER FEED and RELEASE):
Command Name
ESC c 5 Enable/disable panel buttons
ESC c 5 n
[Name] Enable/disable panel buttons [Format] ASCII ESC c 5 n
Hex 1B 63 35 n Decimal 27 99 53 n
[Range] 0 n ≤ 255
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.
Program Example
PRINT #1, CHR$(&H1B);"c5";CHR$(1); Disable panel buttons
1-18 Command Descriptions Rev. A
Page 26
TM–U375/U375P Information Manual
Paper Sensor Commands
The TM-U375/U375P supports the following commands for controlling the paper sensor(s) that stop printing and output paper-end signals:
Command Name
ESC c 4 Select paper sensor(s) to stop printing ESC c 3 Select paper sensor(s) to output paper-end signals
ESC c 4 n
[Name] Select paper sensor(s) to stop printing [Format] ASCII ESC c 4 n
Hex 1B 63 34 n Decimal 27 99 52 n
[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:
Bit Off/On Hex Decimal Function
Off 00 0 Paper roll near-end sensor disabled.
0
On 01 1 Paper roll near-end sensor enabled.
Off 00 0 Paper roll near-end sensor disabled.
1
On 02 2 Paper roll near-end sensor enabled.
2-4 - - - Undefined.
Off 00 0 Slip ejection sensor disabled.
5
On 20 32 Slip ejection sensor enabled.
Rev. A Command Descriptions 1-19
Page 27
Bit Off/On Hex Decimal Function
6 - - - Undefined.
Off 00 0 Validation ejection sensor disabled.
7
On 80 128 Validation 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] ASCII ESC c 3 n
Hex 1B 63 33 n Decimal 27 99 51 n
[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:
Bit Off/On Hex Decimal Function
Off 00 0 Paper roll near-end sensor disabled.
0
On 01 1 Paper roll near-end sensor enabled.
Off 00 0 Paper roll near-end sensor disabled.
1
On 02 2 Paper roll near-end sensor enabled.
2-3 - - - Undefined.
Off 00 0 Cut-sheet (slip or validation) sensor disabled.
4
On 10 16 Cut-sheet (slip or validation) sensor enabled.
Off 00 0 Cut-sheet (slip or validation) sensor disabled.
5
On 20 32 Cut-sheet (slip or validation) sensor enabled.
1-20 Command Descriptions Rev. A
Page 28
TM–U375/U375P Information Manual
Bit Off/On Hex Decimal Function
Off 00 0 Cut-sheet (slip or validation) sensor disabled.
6
On 40 64 Cut-sheet (slip or validation) sensor enabled.
Off 00 0 Cut-sheet (slip or validation) sensor disabled.
7
On 80 128 Cut-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:
Command Name ESC c 0 Select paper type(s) for printing ESC c 1 Select paper type(s) for command settings ESC f Set cut sheet wait time
ESC c 0 n
[Name] Select paper type(s) for printing [Format] ASCII ESC c 0 n
Hex 1B 63 30 n Decimal 27 99 48 n
[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:
Bit Off/On Hex Decimal Function
Off 00 0 Paper roll disabled.
0
On 01 1 Paper roll enabled.
Off 00 0 Paper roll disabled.
1
On 02 2 Paper roll enabled.
Off 00 0 Slip paper disabled.
2
On 04 4 Slip paper enabled.
Off 00 0 Validation paper disabled.
3
On 08 8 Validation 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] ASCII ESC c 1 n
Hex 1B 63 31 n Decimal 27 99 49 n
[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:
Bit Off/On Hex Decimal Function
Off 00 0 Paper roll disabled.
0
On 01 1 Paper roll enabled.
Off 00 0 Paper roll disabled.
1
On 02 2 Paper roll enabled.
Off 00 0 Slip paper disabled.
2
On 04 4 Slip paper enabled.
1-22 Command Descriptions Rev. A
Page 30
Bit Off/On Hex Decimal Function
Off 00 0 Validation paper disabled.
3
On 08 8 Validation 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] ASCII ESC f t1 t2
Hex 1B 66 t1 t2 Decimal 27 102 t1 t2
[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.
Program Example
PRINT #1, CHR$(&H1B);"f";CHR$(15);CHR$(20); PRINT #1, CHR$(&H1B);"c0";CHR$(4); Se lect slip PRINT #1, "AAAAA"; CHR$(&HA);
Rev. A Command Descriptions 1-23
Page 31
Print Position Commands
The TM-U375/U375P supports the following commands for setting the print position:
Command Name
ESC $ Set absolute print position ESC \ Set relative print position ESC a Select justification GS L Set left margin GS W Set printing area width HT Horizontal tab ESC D Set horizontal tab positions ESC W Set printing area in page mode ESC T Select print direction in page mode
ESC $ nL nH
[Name] Set absolute print position [Format] ASCII ESC $
Hex 1B 24 nL nH Decimal 27 36 nL nH
[Range] 0 nL ≤ 255
nH ≤ 255
0
ESC \ nL nH
[Name] Set relative print position [Format} ASCII ESC \
Hex 1B 5C nL nH Decimal 27 92 nL nH
[Range] 0 nL ≤ 255
nH ≤ 255
0
nL nH
nL nH
1-24 Command Descriptions Rev. A
Page 32
TM–U375/U375P Information Manual
ESC $ nL nH sets the print starting position to [(nL + nH × 256) × (horizontal or vertical motion unit)] inches from the left margin.
ESC \
nL nH 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.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(160);CHR$(144); PRINT #1, "ABCD"; PRINT #1, CHR$(&H1B);"$";CHR$(80);CHR$(0); PRINT #1, "EFGH"; CHR$(&HA); PRINT #1, "ABCD"; PRINT #1, CHR$(&H1B);CHR$(&H5C);CHR$(80);CHR$(0); PRINT #1, "EFGH"; CHR$(&HA);
80/160 inch
AB CD EFG H ABCD EFGH
80/160 inc h
ESC a n
[Name] Select justification [Format] ASCII ESC a n
Hex 1B 61 n Decimal 27 97 n
[Range] 0 n ≤ 2
48 n ≤ 50
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 Example Print 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 nL nH
[Name] Set left margin [Format] ASCII GS L
nL nH
Hex 1D 4C nL nH Decimal 29 76 nL nH
[Range] 0 nL 255
nH ≤ 255
0
GS W nL nH
[Name] Set printing area width [Format] ASCII GS W
nL nH
Hex 1D 57 nL nH Decimal 29 87 nL nH
[Range] 0 nL ≤ 255
nH ≤ 255
0
GS L
nL nH 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
nL nH 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 ample Print 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);
01234567890123456789
0123456789 0123456789
Left Printing area margin width
1-26 Command Descriptions Rev. A
Page 34
TM–U375/U375P Information Manual
HT
[Name] Horizontal tab [Format] ASCII HT
Hex 09 Decimal 9
ESC D n1 ... nk NUL
[Name] Set horizontal tab positions [Format] ASCII ESC D n1 ... nk NUL
Hex 1B 44 n1 ... nk 00 Decimal 27 68 n1 ... nk 0
[Range] 1 n 255
0 k ≤ 32
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.
Program Example Print Sample
PRINT #1, "0123456789012345678901234567890123456"; PRINT #1, CHR$(&HA); GOSUB ht PRINT #1, CHR$(&H1B);"D";CHR$(10);CHR$(20); CHR$(30);CHR$(0); GOSUB ht END
ht:
FOR i=1 TO 4
PRINT #1, CHR$ (& H9); "H" ; NEXT i PRINT #1, CHR $(& HA); RETURN
012 34 567890123456 78901234567890123456
HHHH
HHHH
↑↑↑
Defaul t
Tab position 10
8162432
Tab position 20
Tab positio n 30
Rev. A Command Descriptions 1-27
Page 35
ESC W xL xH yL yH dxL dxH dyL dyH
[Name] Set printing area in page mode [Format] ASCII ESC W
xL xH yL yH dxL dxH dyL dyH
Hex 1B 57 xL xH yL yH dxL dxH dyL dyH Decimal 27 87 xL xH yL yH dxL dxH dyL dyH
[Range] 0 xL, xH, yL, yH, dxL, dxH, dyL, dyH 255
dxL = dxH = 0 or dyL= dyH = 0)
ESC W
(except for
xL xH yL yH dxL dxH dyL dyH sets the size and position of the printing area in page mode
as follows:
Horizontal starting position = [( Vertical starting position = [( Printing area width = [( Printing area height = [(
dxL + dxH × 256) × (horizontal motion unit)] inches
dy + dyH × 256) × (vertical motion unit)] inches
xL + xH × 256) × (horizontal motion unit)] inches
yL + yH × 256) × (vertical motion unit)] inches
The default settings are as follows:
xL = xH = yL = yH = 0 dxL = 144, dxH = 1, dyL = 128, dyH = 5
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.
Pro gr am Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(160);CHR$(144); PRINT #1, CHR$(&H1B);"L";← Select page mode PRINT #1, CHR$(&H1B);"W";CHR$ (0);CHR$(0);CHR$(0);CHR$(0);CHR$(100);
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 Descriptions Rev. A
Page 36
TM–U375/U375P Information Manual
ESC T n
[Name] Select print direction in page mode [Format] ASCII ESC T n
Hex 1B 54 n Decimal 27 84 n
[Range] 0 n 3
48 n 51
ESC T n 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, 48 Left to right Upper left (A in the figure)
1, 49 Bottom to top Lower left (B in the figure)
2, 50 Right to left Lower right (C in the figure)
3, 51 Top to bottom Upper right (D in the figure)
Print Direction Starting 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 \
Program Example Print Sample
PRINT #1, CHR$(&H1B);"L";← Select page mode PRINT #1, CHR$(&H1B);"W";CHR$ (0);CHR$(0);CHR$(0);CHR$(0);
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:
Command Name
ESC Select bit-image mode
Define downloaded bit image
GS GS / Print downloaded bit image
ESC m nL nH d1 ... dk
[Name] Select bit-image mode [Format] ASCII ESC
Hex 1B 2A m Decimal 27 42 m
m nL nH d1 ... dk
nL nH d1 ... dk nL nH d1 ... dk
[Range] m = 0, 1
nL 255
0
nH ≤ 3
0 0 d 255
ESC m nL nH 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 Direction Horizontal Direction
Number of
m
0 8-dot single-de nsity 8 72 80 200
1 8-dot double-de nsity 8 72 160 400
Mode
Program Example Print 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 Descriptions Rev. 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] ASCII GS
x y d1 ... d(x × y × 8)
Hex 1D 2A x y d1 ... d(x × y × 8) Decimal 29 42 x y d1 ... d(x × y × 8)
[Range] 1 x 255
1 y 255 x × y 512
0 d ≤ 255
GS / m
[Name] Print downloaded bit image
[Format] ASCII GS / m
Hex 1D 2F m Decimal 29 47 m
[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, 48 Normal Double Prohibited
1, 49 Double width Single Permitted
Mode Horizontal Dot Density Set Adjacent Dots
Rev. A Command Descriptions 1-31
Page 39
Program Example Program Example (continued)
x=16: y=5 PRINT #1, CHR$(&H1D);"*";CHR$(x);CHR$(y); FOR i=1 TO x*y*8
READ a$: d=VAL("&H"+a$) 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.
Command Name
GS a Enable/disable Automatic Status Back (ASB) GS r Transmit status DLE EOT Real-time status transmission ESC u Transmit peripheral device status ESC v Transmit paper sensor status
1-32 Command Descriptions Rev. A
Page 40
TM–U375/U375P Information Manual
GS a n
[Name] Enable/disable Automatic Status Back (ASB) [Format] ASCII GS a n
Hex 1D 61 n Decimal 29 97 n
[Range] 0 n 255
GS a n selects a status for ASB 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:
Bit Off/On Hex Decimal Function
Off 00 0 Drawe r kick-out connector pin 3 status disabled.
0
On 01 1 Drawer kick-out connector pin 3 status enabled.
Off 00 0 On-line/off-line status disabled.
1
On 02 2 On-l ine/off-line status enable d.
Off 00 0 Error status disabled.
2
On 04 4 Error status enabled.
Off 00 0 Paper roll sensor status disabled.
3
On 08 8 Paper roll sensor status enabled.
4 Undefined.
Off 00 0 Cut-sheet (slip or validation) sensor and status disabled.
5
On 20 32 Cut-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)
Bit Off/On Hex Decimal Status for ASB
0 Off 00 0 Not used. Fixed to Off.
1 Off 00 0 Not used. Fixed to Off.
Off 00 0 Drawe r kick-out connector pin 3 is LOW.
2
On 04 4 Drawer kick-out connector pin 3 is HIGH.
Rev. A Command Descriptions 1-33
Enable " Error " status
Page 41
Bit Off/On Hex Decimal Status for ASB
Off 00 0 On-line.
3
On 08 8 Off- line.
4 On 10 16 Not used. Fixed to On.
Off 00 0 Cover closed.
5
On 20 32 Cover open.
Off 00 0
6
On 40 64 Paper is being fed by the paper feed button.
7 Off 00 0 Not used. Fixed to Off.
Paper is not being fed by t he paper feed button.
Second byte (printer information)
Bit Off/On Hex Decimal Status for ASB
0, 1 Undefined.
Off 00 0 No mechanical error.
2
On 04 4 Mechanical error o ccurred.
3 Undefined.
4 Off 00 0 Not used. Fixed to Off.
Off 00 0 No unrecoverable error.
5
On 20 32 Unrecoverable error occurred.
Off 00 0 No automatically rec overable error.
6
On 40 64 Automatically recoverable error occurred.
7 Off 00 0 Not used. Fixed to Off.
Third byte (paper sensor information)
Bit Off/On Hex Decimal Status for ASB
Off 00 0 Paper roll near-end sensor: paper adequate.
0, 1
On 03 3 Paper roll near-end sensor: paper near end.
2, 3 Undefined.
4 Off 00 0 Not used. Fixed to Off.
Off 00 0 Cut-sheet sensor: slip or validation paper present.
5, 6
On 60 96 Cut-sheet sensor: slip or validation paper not present.
7 Off 00 0 Not used. Fixed to Off.
1-34 Command Descriptions Rev. A
Page 42
Fourth byte (paper sensor information)
Bit Off/On Hex Decimal Status for ASB
Off 00 0 Slip paper selected.
0
On 01 1 Slip paper not selected.
Off 00 0 Slip paper status: possible to print.
1
On 02 2 Slip paper status: not possible to print.
Off 00 0 Validation paper selected.
2
On 04 4 Validat ion paper not selected.
Off 00 0 Validation paper status: possibl e to print.
3
On 08 8 Validat ion paper status: not possible to print.
4 Off 00 0 Not used. Fixed to Off.
Off 00 0 Cut-sheet sensor: slip or validation paper present.
5, 6
On 60 96 Cut-sheet sensor: slip or validation paper not present.
7 Off 00 0 Not used. Fixed to Off.
GS r n
TM–U375/U375P Information Manual
[Name] Transmit status [Format] ASCII GS r n
Hex 1D 72 n Decimal 29 114 n
[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)
Bit Off/On Hex Decimal Status
Off 00 0 Paper roll near-end sensor: paper adequate.
0, 1
On 03 3 Paper roll near-end sensor: paper near end.
2, 3 — Undefined.
4 Off 00 0 Not used. Fixed to Off.
Off 00 0 Cut-sheet sensor: slip or validation paper present.
5, 6
On 60 96 Cut-sheet sensor: slip or validation paper not present.
7 Off 00 0 Not used. Fixed to Off.
Rev. A Command Descriptions 1-35
Page 43
Drawer kick-out connector status (n=2, 50)
Bit Off/On Hex Decimal Status
Off 00 0 Drawer kick-out connector pin 3 is LOW.
0
On 01 1 Drawer kick-out connector pin 3 is HIGH.
1-3 Undefined.
4 Off 00 0 Not used. Fixed to Off.
5, 6 Undefined.
7 Off 00 0 Not 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 - 8 00H 0
9 - 17 01H 1
18 - 26
• 117 - 125
126 - 134 0EH 14
135 and up 0FH 15
Cut- Sheet Status
Hex Decimal
02H
• 0DH
2
• 13
DLE EOT n
[Name] Real-time status transmission [Format] ASCII DLE EOT n
Hex 10 04 n Decimal 16 4 n
[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
1 Transmit printer status
2 Transmit off-line status
3 Transmit error status
4 Transmit paper roll sensor status
Function
1-36 Command Descriptions Rev. A
Page 44
TM–U375/U375P Information Manual
n
5 Transmit slip paper status
6 Transmit validation paper status
PRINT #1, CHR$(&H10);CHR$(&H4 );CHR$(2); T ransmits off-line st atus
Function
Program Example
Printer status (n=1)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off.
1 On 02 2 Not used. Fixed to On.
Off 00 0 Drawer kick-out connector pin 3 is LOW.
2
On 04 4 Drawer kick-out connector pin 3 is HIGH.
Off 00 0 On-line.
3
On 08 8 Off-line.
4 On 10 16 Not use d. Fixed to On.
5, 6 Undefined.
7 Off 00 0 Not used. Fixed to Off.
Off-line status (n=2)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off.
1 On 02 2 Not used. Fixed to On.
Off 00 0 Cover is closed.
2
On 04 4 Cover is open.
Off 00 0 Paper is not being fed by the paper feed button.
3
On 08 8 Paper is being fed by the paper feed button.
4 On 10 16 Not used. Fixed to On.
Off 00 0 No paper-end stop.
5
On 20 32 Printing stops due to paper-end.
Off 00 0 No error.
6
On 40 64 Error occurred.
7 Off 00 0 Not used. Fixed to Off.
Rev. A Command Descriptions 1-37
Page 45
Error status (n=3)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off.
1 On 02 2 Not used. Fixed to On.
Off 00 0 No mechanical error.
2
On 04 4 Mechanical error o ccurred.
3 Undefined.
4 On 10 16 Not used. Fixed to On.
Off 00 0 No unrecoverable error.
5
On 20 32 Unrecoverable error occurred.
Off 00 0 No automatically rec overable error.
6
On 40 64 Automatically recoverable error occurred.
7 Off 00 0 Not used. Fixed to Off.
Paper roll sensor status (n=4)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off.
1 On 02 2 Not used. Fixed to On.
Off 00 0 Pape r roll near-end sensor: paper adequate.
2, 3
On 0C 12 Paper roll near-end sensor: paper near end.
4 On 10 16 Not used. Fixed to On.
5, 6 Undefined.
7 Off 00 0 Not used. Fixed to Off.
Slip paper status (n=5)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off.
1 On 02 2 Not used. Fixed to On.
Off 00 0 Slip paper selected.
2
On 04 4 Slip paper not selected.
Off 00 0 Does not wait for slip paper insertion.
3
On 08 8 Waits for slip paper insertion.
4 On 10 16 Not used. Fixed to On.
Off 00 0 Cut-sheet sensor: slip or validation paper present.
5, 6
On 60 96 Cut-sheet sensor: slip or validation paper not persent.
7 Off 00 0 Not used. Fixed to Off.
1-38 Command Descriptions Rev. A
Page 46
Validation paper status (n=6)
Bit Off/On Hex Decimal Status
0 Off 00 0 Not used. Fixed to Off.
1 On 02 2 Not used. Fixed to On.
Off 00 0 Validation paper selected.
2
On 04 4 Validation paper not selected.
Off 00 0 Does not wait for validation paper insertion.
3
On 08 8 Waits for validation paper insertio n.
4 On 10 16 Not used. Fixed to On.
Off 00 0 Cut-sheet sensor: slip or validation paper present.
5, 6
On 60 96 Cut-sheet sensor: slip or validation paper not persent.
7 Off 00 0 Not used. Fixed to Off.
ESC u n
[Name] Transmit peripheral device status
TM–U375/U375P Information Manual
[Format] ASCII ESC u n
Hex 1B 75 n Decimal 27 117 n
[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.
Program Example
PRINT #1, CHR$(&H1B);"p";CHR$ (0);CHR$(25);CHR$(250); PRINT #1, CHR$(&H1B);"u";CHR$ (0);
Generates a pulse
Peripheral device status
Bit Off/On Hex Decimal Status
Off 00 0 Drawe r kick-out connector pin 3 is LOW.
0
On 01 1 Drawer kick-out connector pin 3 is HIGH.
1-3 Undefined.
4 Off 00 0 Not used. Fixed to Off.
5, 6 — Undefined.
7 Off 00 0 Not used. Fixed to Off.
Rev. A Command Descriptions 1-39
Page 47
ESC v
[Name] Transmit paper sensor status [Format] ASCII ESC v
Hex 1B 76 Decimal 27 118
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
Bit Off/On Hex Decimal Status
Off 00 0 Paper roll near-end sensor: paper adequate.
0, 1
On 03 3 Paper roll near-end sensor: paper near end.
2, 3 Undefined.
4 Off 00 0 Not used. Fixed to Off.
Off 00 0 Cut-sheet sensor: slip or validation paper present.
5, 6
On 60 96 Cut-sheet sensor: slip or validation paper not present.
7 Off 00 0 Not used. Fixed to Off.
Mechanism Control Commands
The TM-U375/U375P supports the following mechanism control commands:
Command Name
ESC < Return home ESC U Turn unidirectional printing mode on/off ESC q Paper release
ESC <
[Name] Return home [Format] ASCII ESC <
Hex 1B 3C Decimal 27 60
1-40 Command Descriptions Rev. A
Page 48
TM–U375/U375P Information Manual
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.
Program Example
PRINT #1, CHR$(&H1B);"<";
ESC U n
[Name] Turn unidirectional printing mode on/off [Format] ASCII ESC U n
Hex 1B 55 n Decimal 27 85 n
[Range] 0 n 255
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] ASCII ESC q
Hex 1B 71 Decimal 27 113
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:
Command Name
GS P Set horizontal and vertical motion units ESC @ Initialize printer GS E Select head control method GS I Transmit printer ID ESC p Generate pulse ESC = Select peripheral device ESC L Select page mode DLE ENQ Real-time request to printer
GS P x y
[Name] Set horizontal and vertical motion units [Format] ASCII GS P xy
Hex 1D 50 xy Decimal 29 80 xy
[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 Descriptions Rev. 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 \.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); AAAAA PRINT #1, CHR$(&H1B);"3";CHR$(30); PRINT #1, "AAAAA "; CHR$(&HA); CCCCC PRINT #1, "BBBBB "; CHR$(&HA); PRINT #1, CHR$(&H1D);"P";CHR$ (180);CHR$(90); DDDDD PRINT #1, CHR$(&H1B);"3";CHR$ (30); PRINT #1, "CCCCC "; CHR$(&HA); EEEEE PRINT #1, "DDDDD "; CHR$(&HA); PRINT #1, "EEEEE "; CHR$(&HA);
Set line spacing BBBBB
Set line s pacin g
ESC @
[Name] Initialize printer
30/180- inch line spaci ng
30/90-i nch line spacing
[Format] ASCII ESC @
Hex 1B 40 Decimal 27 64
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.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"!";CHR$ (56); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"@"; PRINT #1, "BBBBB "; CHR$(&HA);
AAAAA
BBBBB
All settin gs ar e canceled after ESC @ is executed
GS E n
[Name] Select head control method [Format] ASCII GS E n
Hex 1D 45 n Decimal 29 69 n
[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:
Bit Off/On Hex Decimal Function
Off 00 0 Head energizing time: Copy.
0
On 01 1 Head 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] ASCII GS I n
Hex 1D 49 n Decimal 29 73 n
[Range] 1 n ≤ 3
49 n 51
GS I n transmits the printer ID specified by n as follows. Each printer ID consists of 1 byte of data.
n
1, 49 Printer model ID TM-U375/U375P 0AH
2, 50 Type ID See table below.
3, 51 ROM version ID Depends on ROM version.
Printer ID Specification ID (hexadecimal)
Type ID (n=2 or 50)
Bit Off/On Hex Decimal Function
0 Off 00 0 Two-byte character code not supported.
1 On 00 0 No auto-cutter equipped.
Off 00 0 Not customer display equipped (DIP switch 2-1 is Off).
2
On 04 4 Customer display equipped (DIP switch 2-1 is On).
3 Undefined.
4 Off 00 0 Not used. Fixed to Off.
5, 6 Undefined.
7 Off 00 0 Not used. Fixed to Off.
1-44 Command Descriptions Rev. 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] ASCII ESC p mt1t2
Hex 1B 70 mt1t2 Decimal 27 112 mt1t2
[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.
P rogra m E xa mpl e
PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250);
ESC = n
[Name] Select peripheral device [Format] ASCII ESC = n
Hex 1B 3D n Decimal 27 61 n
[Range] 1 n ≤ 3
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.
n
Peripheral Device Status
1 Only printer selected.
2 Only customer display selected.
3 Both printer and customer dis play selected.
Rev. A Command Descriptions 1-45
Page 53
Display SampleProgram Example
PRINT #1, CHR$(&H1B);"=";CHR$(2); PRINT #1, "AAAAA"; PRINT #1, CHR$(&H1B);"=";CHR$(1); PRINT #1, " BBBBB"; PRINT #1, CHR$(&H1B);"=";CHR$(3); PRINT #1, " CCCCC"; CHR$(&HA);
Customer d ispla y selected
Printer se lecte d
Both printer and customer d ispla y selected
AAAAA_
Selects on ly th e printer
AAAAA_
Selects bo th th e printer and
the custom er di splay
AAAAA CCCCC_
BBBBB CCCCC
Print Sample
ESC L
[Name] Select page mode [Format] ASCII ESC L
Hex 1B 4C Decimal 27 76
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.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"L";← Select page mode AAAAA PRINT #1, CHR$(&H1B);"W";CHR$ (0);CHR$(0);CHR$(0);
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] ASCII DLE ENQ n
Hex 10 05 n Decimal 16 5 n
[Range] 1 n ≤ 3
1-46 Command Descriptions Rev. 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
1 Restarts printing from the beginning of the line where an
2 Recovers from an error after clearing the receive and print
3 Cancels 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 Descriptions Rev. 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 Descriptions Rev. 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 # $ @ ° \ é ^ ù à ò è ì
Spain Pt $ @ ¡ Ñ ¿ ^ ` ¨ ñ }
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
Procedure Commands Used Description
1. Define stamp data
2. Stamp ESC =, ESC c 0, ESC a, GS /,
3. Display a message ESC = Selects only the customer display using ESC =. Displays a
4. Print date and time ESC =, ESC d Selects 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. Stamp ESC =, ESC a, GS /, ESC J Prints 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 !, LF Selects 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.
Print Sample
YOUR RECEIPT
Thank you
MARCH 1, 1996, 10:30
TM-U375 PS-150
TOTAL
----------------------------------------­PAID CHANGE
-----------------------------------------
96.0
15.0
111.0
120.0
9.0
YOUR RECEIPT
Thank you
Stamp
Item A
Item B
Cut (man ual cut)
Stamp for the next receipt
Rev. A Application 2-1
Page 60
Display Sample
1
2
W E L C O M E
Define data
Scroll the message and display the counter
1 0 : 30 : 0 0
3
T M — U 3 7 5
Display Item A
9 6. 0
4
P S — 1 5 0
Display Item A
1 5 . 0
5
T O T A L
Display total
1 1 1. 0
6
P A I D
Display amount paid
1 2 0 . 0
7
C H A N G E
>>
>>
T h a n k Y o u
>>>>
9. 0
Display change amount
2-2 Application Rev. A
Page 61
Program Example
TM–U375/U375P Information Manual
PRINT #1, CHR$(&H1B);"=";CHR$(3); PRINT #1, CHR$(&H1B);"@";
PRINT #1, CHR$(&H1B);"t";CHR$(1); PRINT #1, CHR$(&H1B);"=";CHR$(1);
Selects p eriphe ral devices (printer and customer displa y) Initializ es the devices
Selects t he cha racter code table (p age 1) Selects peripheral device (printer)
PRINT #1, CHR$(&H1D);"*";CHR$(40);CHR$(6)
FOR I=1 TO 1920
READ a$: PRINT #1, CHR$(VAL("&H"+a$));
NEX T I
GOSUB stamp
PRINT #1, CHR$(&H1B);"=";CHR$(2); PRINT #1, CHR$(&HC);
Prints sta mp data
Selects p eriphe ral device (customer display) Clears cu stomer display screen
PRINT #1, CHR$(229);CHR$(230);CHR$(229);" WELCOME "; PRINT #1, CHR$(229);CHR$(230);CHR$(229); PRINT #1, CHR$(&H1F);"T";CHR$(10);CHR$(30);
W$=INPUT$(1) PRINT #1, CHR$(&HC); PRINT #1, CHR$(&H1B);"=";CHR$(1);
Waits for input Clears cu stomer display screen Selects p eriphe ral device (printer)
Sets and displa ys a counter (time)
PRINT #1, "MARCH 1, 1996, 10:30"; PRINT #1, CHR$(&H1B);"d";CHR$(3);
PRINT #1, CHR$(&H1B);"a";CHR$(0);
Selects p rint p osition (left justif ication)
PRINT #1, CHR$(&H1B);"!";CHR$(1); PRINT #1, CHR$(&H1B);"=";CHR$(3);
Selects p eriphe ral devices (printer and customer displa y)
PRINT #1, "TM-U375 96.0"; CHR$(&HA); CHR$(&HB); W$=INPUT$(1)
Waits for input
PRINT #1, "PS-150 15.0"; CHR$(&HA); CHR$( &HB);
W$=INPUT$(1) PRINT #1, CHR$(&H1B);"=";CHR$(1);
Waits f or input Selects peripheral device ( printe r)
PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1B);"!";CHR$(17); PRINT #1, CHR$(&H1B);"=";CHR$(3);
Selects peripheral devices (print er and customer disp lay)
PRINT #1, "TOTAL 111.0"; CHR$(&HA)
Defines us er­defined bi t image
Displays a message
Prints dat e and time
Prints and displays item A
Rev. A Application 2-3
Page 62
W$=INPUT$(1) PRINT #1, CHR$(&H1B);"=";CHR$ (1);
Waits f or input Selects peripheral device (p rinte r)
PRINT #1, CHR$(&H1B);"!";CHR$ (1); PRINT #1, "------------------ ----------------------"; CHR$(&HA); PRINT #1, CHR$(&H1B);"=";CHR$ (3);
Selects peripheral devices ( print er and customer disp lay)
PRINT #1, "PAID 120.0"; CHR$(&HA) PRINT #1, CHR$(&H1B);"=";CHR$ (1); PRINT #1, CHR$(&H1B);"p";CHR$ (0);CHR$(2);CHR$(20);
Selects peripheral device (p rinte r)
Operates a drawer
PRINT #1, "CHANG E 9.0"; CHR$(&H A); PRINT #1, CHR$(&H1B);"d";CHR$ (6);
Prints and displays Item B
PRINT #1, CHR$(&H1B);"=";CHR$ (2); PRINT #1, CHR$(&HC);
Selects p eriphe ral device (customer display)
Clears cu stomer display screen
PRINT #1, "CHANG E 9.0"; PRINT #1, CHR$(237);CHR$(237) ;" Thank You ";CHR$(236);CHR$(236);
GOSUB Stamp
Prints stamp data
END
Stamp:
PRINT #1, CHR$(&H1B);"=";CHR$ (1); PRINT #1, CHR$(&H1B);"c0";CHR $(1); PRINT #1, CHR$(&H1B);"a";CHR$ (1); PRINT #1, CHR$(&H1D);"/";CHR$ (0);
Selects pe riphe ral device (printer) Selects print sheet (receipt ) Selects pr int p osition (center) Prints dow nload ed bit-image
PRINT #1, CHR$(&H1B);"J";CHR$ (10); PRINT #1, "Thank you"; PRINT #1, CHR$(&H1B);"J"CHR$( 30);
RETURN
(Any additional data is omitted from the downloaded bit image.)
Displays ch ange and a messa ge
Executes the stamp
2-4 Application Rev. 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 Type Command Name Matrix Category
Print commands LF Print and line feed Basic single
FF 1. Print and eject cut sheet (in
standard mode)
2. Print and return to standard mode (in page mode)
3. Print and feed label to print starting position (on label)
CR Print and carriage return Mechanical extension
ESC FF Print data in page mode Software extension
ESC J Print and feed paper Mechanical extension
ESC K Print and reverse feed Mechanical extension
n
ESC d Print and feed
ESC e Print and reverse feed n lines Mechanical extension
GS FF Print and eject label Hardware extension
Line spacing commands
Character commands CAN Cancel print data in page mode Software extension O
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 2 Select default line spacing Mechanical extension
ESC 3 Set line spacing Mechanical extension
ESC C Set cut sheet eject length Mechanical extension
ESC SP Set right-side character spacing Basic single O ESC ! Select print mode(s) Basic single O
ESC % Select/cancel user-defined
character set
ESC & Define user-defined characters Software extension O ESC – Turn underline mode o n/off Software e xtension O ESC ? Cancel user-defined characters Software extension O ESC E Turn emphasized mode on/off Software extension O ESC G Turn double-strike mode on/off Software extension O
ESC R Sele ct an international
character set
ESC V Turn 90° clockwise rotation mode
on/off
ESC r Select print color Mechanical extension
ESC t Select character code table Basic single
lines Basic single
Mechanical exte nsion
Mechanical exte nsion
Mechanical extension
Software e xtension O
Basic single O
Software e xtension O
Supported Command
O
O
O
O
O
O
O O O
O
3-2 Command Reference Rev. A
Page 65
TM–U375/U375P Information Manual
Function Type Command Name Matrix Category
Character commands (conti nued)
Panel button commands
Printing paper commands
Paper sensor commands
Print position commands
Bit-image commands ESC
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 z Turn parallel printing mode on/
off for receipt and journal
ESC { Turn upside-down printing mode
on/off
GS ! Select character size Soft ware extension
GS B Turn white/black reverse printing
mode on/off
GS b Turn smoothing mode on/off Software extension
ESC c 5 Enable/disable panel buttons Hardware extension
ESC c 6 Enable/disable on-line button Hardware extensio n
ESC c 0 Sele ct paper type(s) for printing Basic multipl e
ESC c 1 Sele ct paper type(s) for
command settings
ESC f Set cut sheet wait time Mechanical extension O
ESC c 3 Sele ct paper sensor(s) to output
paper-end signals
ESC c 4 Sele ct paper sensor(s) to stop
printing
HT Horizontal tab Software e xtension O
RS Journal tab Mechanical extension
ESC $ Set absolute print position Software extension ESC D Set horizontal tab positions Software e xtension O
ESC T Select print direction in page
mode
ESC W Set printing area in page mode Software e xtension O ESC \ Set relative print position Software extension O ESC a Select justification Software extension O
GS $ Set absolute vertical print
position in page mode
GS L Set left margin Software e xtension GS W Set printing area width Software extension O
GS \ Set relative vertical print position
in page mode
Mechanical exte nsion
Basic single
Software e xtension
Mechanical extension O
Mechanical exte nsion
Mechanical exte nsion O
Software e xtension O
Software e xtension
Software e xtension
Select bit-image mode Basic single
GS Define downloaded bit image Software extension
GS / Print downloaded bit image Software e xtension
Supported Command
O
O
O
O
O
O O O
Rev. A Command Reference 3-3
Page 66
Function Type Command Name Matrix Category
Status commands DLE EOT Real-time status transmission Hardware extension
DLE EOT BS Real-time MICR status
transmission
ESC u Transmit peripheral device status Hardware extension
ESC v Transmit paper sensor status Hardware extension
GS ENQ Transmit real -time printer status Hardware extension
Hardware extension
Supported Command
O
O O
GS a Enable/disable Automatic
Status Back (ASB)
GS r Transmit status Hardware extension
Mechanism control commands
Bar code commands GS H Select printing position of HRI
Macro function commands
Kanji control commands
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
ESC < Return home Mechanical extension O
ESC F Set/cancel cut sheet reverse
eject
ESC U Turn unidirectional printing mode
on/off
ESC i Partial cut (one point left uncut) Mechanical extension
ESC m Partial cut (three points left
uncut)
ESC o Stamp Mechanical extension
ESC q Paper release Mechanical extension
GS V Select cut mode and cut paper Mechanical extension
characters
GS f Select font for HRI characters Software e xtensio n
GS h Set bar code height Software extension
GS k Print bar code Software extension
GS w Set bar code width Software extension
GS : Start/end macro definition Software extension
GS ^ Execute macro Software extension
FS ! Select print mode(s) for Kanji
characters
FS & Sele ct Kanji character mode Software extension
FS – Turn underline mode on/off fo r
Kanji characters
FS . Cancel Kanji character mode Software extension
FS 2 Define user-defined Kanji
characters
FS C Select Kanji character code
system
FS S Set Kanji character spacing Software extension
FS W Turn quadruple-size mode on/
off for Kanji characters
in the “Supported Command column.
Hardware extension
Mechanical extension
Mechanical extension
Mechanical extension
Software e xtension
Software e xtension
Software e xtension
Software e xtension
Software e xtension
Software e xtension
O
O
O
O
3-4 Command Reference Rev. A
Page 67
TM–U375/U375P Information Manual
Function Type Command Name Matrix Category
MICR commands FS a 0 Read check paper Mechanical extension
FS a 1 Load check paper to print
starting position
FS a 2 Eject check paper Mechanical extension
FS b Request retransmission of check
paper reading result
FS c MICR mechanism cleaning Mechanical extension
Miscellaneous function commands
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
DLE E NQ Real-time request to printer Software extension ESC = Sele ct peripheral device Software extension O ESC @ Initialize printer Basic single O ESC L Select page mode Software extension O
ESC S Sele ct standard mode Software e xtension
ESC p Generate pulse Hardware extension
FS L Select double-density page
mode
GS < Initialize printer mechanism Mechanical extension
GS A Adjust label print starting position Hardware extension
GS C 0 Select counter print mode Software extension
GS C 1 Select count mode (A) Software extension
GS C 2 Set counter Software extension
GS C ; Select count mode (B) Software extension
GS E Select head control method Hardware e xtensio n
GS I Transmit printer ID Hardware extension
GS P Set horizontal and vertical
motion units
GS c Print counter Software extension
GS z 0 Set on-line recovery wait time Mechanical 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 Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D A B C D
HT Ho rizontal tab Moves the printing
position to the next horizontal tab posit ion.
●●●●●●●●●●●●●● ● ●
LF Print and line
feed
Prints the data in the print buffer and feeds one line based on t he curre nt line spacing.
●●●●●●●●●●●●●● ●●●●●
FF 1. 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
CR Print 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
CAN Cancel print
data in page mode
Deletes all the print data in the current printing area in page mode.
●●
RS Journal tab Moves the print
positi on to the beginning of the journal paper.
DLE EOT Real -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 ENQ Real-time
request to printer
Responds to a request from the host computer in real time.
●●●
ESC FF Print data in
page mode
Prints the data in the print buffer in page mode.
●●
ESC SP Set ri ght-side
character spacing
Sets the right-side character spacing.
●●●●●●●●●●●●● ● ●●●●●
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 user­defined 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 2 Select default
line spacing
Sets the line spacing to 1/6 inch.
●●●●●●●●●●●●●● ●●●●
ESC 3 Set 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 user­defined characters for a specified character code .
● ●● ●●●
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 C Set cut sheet
eject length
Sets the eject length for cut sheet to a specified number of lines.
●●●● ●
ESC D Se t horizontal
tab positio ns
Sets the horizontal tab positio ns.
●●●●●●●●●●●●● ● ● ●
ESC E Turn
emphasized mode on/off
Turns emphasized mode on or off. ●●●●●●OOOO ●●●
ESC F Set/cance l
cut she et reverse eject
Sets or cancels the cut sheet reverse ejec t.
ESC G Turn double-
strike mode on/off
Turns double -strike mode on or off. ●●●●●●OOOO ●●●
ESC J Print and
feed paper
Prints the data in the print buffer and feeds the paper a specifi ed distance.
●●●●●●●●●●●●● ● ●●●●●
ESC K Print and
reverse feed
Prints the data in the print buffer and feeds the paper a specifi ed distance in the reverse direct ion.
●● ●●
ESC L Select page
mode
Switches from standard mode to page mode.
●●
●●
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 R Selec t an
international charac ter set
Selec ts a countr y’s charac ter set.
●●●●●●●●●●●●●● ●●●●●
ESC S Se lect
standard mod e
Switches fro m page mode to standard mode.
●●
ESC T Select print
direction in page mode
Selec ts the print dire ction a nd st arting position in page mode.
●●
●●
ESC U Turn
unidirectional printing mode on/off
Turns unidirectional printing mode on or off.
● ● ●●●● ●●●●
ESC V Turn 90°
clockwis e rotat ion mode on/off
Turns 90° clockwise rotation mode on or off.
●●●●●●
●●
ESC W Set 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 a Se lect
jus tification
Aligns all the data in one line to a specified position.
●●●●●●●● ● ● ●
ESC c 0 Se lec t paper
type(s) fo r printing
Selects paper type(s) for printing.
●●●●
ESC c 1 Se lec t paper
type(s) fo r command sett ings
Selects paper type(s) for use with various command settings.
●●●●
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 3 Select pape r
sensor(s) to output paper­end signals
Selec ts paper sensor(s) to output paper-end signals.
O O O O O O OOOO O O O O
ESC c 4 Select pape r
sensor(s) to stop printing
Selects the paper sensor that stops printing when the paper runs out.
●●●●●●●●●●●●● ●
ESC c 5 Enable/disable
panel buttons
Enables or disables the panel buttons.
●●●●●●●●●●●●● ● ●●●●●
ESC c 6 Enable/disable
on-line button
Enables or disables the o n-line button .
ESC d Print and
feed n lines
Prints the data in the print buffer and feeds n lines.
●●●●●●●●●●●●● ● ●●●●●
ESC e Print and
reverse feed
n
lines
Prints the data in the print buffer and feeds n lines in the reverse direct ion.
●● ●●
ESC f Set 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 i Partial cut
(one po int left uncut)
Executes a partial cut of the paper with one point left uncut.
●●● ●● ● ●
ESC m P artial cut
(three points left uncut)
Executes a partial cut of the paper with three po ints left uncut.
●● ●●
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 o Stamp Executes stamp
printing.
●●
ESC p Generate
pulse
Output s a specified pulse t o a specified connec tor pin.
●●●●●●●●●●●●● ●●●●●
ESC q Paper release Releases t he paper. ●●
ESC r Selec t print
colo r
Selec ts the print colo r.
●●●O
ESC t Selec t
charac ter code table
Selects a page from the character code table.
●●●●●●●●●●●●●●●●●●
ESC u Transmit
peripheral device status
Transmits the st atus of a specified connector pin.
OO
●●●●
OOOO O
●●●●●
ESC v Transmit
paper sensor status
Transmits the st atus of a paper sensor.
OO●●
●●
OOOO O
●●●
ESC z Turn 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.
OOOO O O
FS & Select Kanji
charac ter mode
Selects Kanji charac ter mode.
OOOO O O
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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.
OOOO O O
FS . Cancel Kanji
character mod e
Cancels Kanji character mode.
OOOO O O
FS 2 De fine user-
defined Kanji characters
Defines user-defi ned Kanji characters for specifi ed character codes .
OOOO O O
FS C Select Kanji
character code system
Selects the Kanji character code system.
OOOO O O
FS L Selec t
doubl e­density page mode
Switches from standard mode to double-density page mode.
O
FS S Set Kanji
character spacing
Sets the right- and left-side Kanji character spacing.
OOOO O O
FS W Turn
quadruple­size mode on/ off for Kanji characters
Turns quadruple-size mode on or off for Kanji characters.
OOOO O O
FS a 0 Read chec k
paper
Selec ts the MICR function and reads the check paper.
OO
FS a 1 Load check
paper to print starting positi on
Loads check paper to the print starting positi on.
OO
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 2 Eject check
paper
Ejects the check paper.
OO
FS b Request
retransmission of c heck paper reading result
Retransmits the previous check paper reading results.
OO
FS c MICR
mechanism cleaning
Cleans t he MICR mechanism. OO
GS ENQ Transmit real-
time printer status
Transmits the st atus of the printer in real time.
●●
GS FF Print 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 Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 A Adjust label
print starting positi on
Adjusts the l abel position relative to the de fault position.
●●
GS B Turn white/
black reverse printing mode on/off
Turns whit e/black reverse printing mode on or off.
●●
GS C 0 Se lect
counter print mode
Selects a print mode for the serial counter. ●●
GS C 1 Se lect count
mode (A)
Selec ts a cou nt mode for the serial counter.
●●
GS C 2 Set counter Se 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 E Select he ad
control method
Selec ts the print speed and head energizing time.
●●●●
GS H Select
printing positi on of HRI characters
Selec ts the printing position of HRI characters when printing a bar code.
●●●●●●
GS I Transmit
printer ID
Transmits a specified printer ID.
● ●● ●●● ●
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 L Set left margin Sets the left margin
using speci fied values.
●●
GS P Set horizontal
and vertical motion units
Sets the horizontal and vertical mo tion units.
●●
GS V Selec t cut
mode and cut paper
Cuts t he specified paper. ●●
GS V Selec t cut
mode and cut paper
Advances the specified paper to the cut position and performs the cut.
●●
GS W Set 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 a Enable/
disable Automatic Status Back (ASB)
Selects a status for ASB transmission.
● ●● ●●●
GS b Turn
smoothing mode on/off
Turns smoothing mode on or off. ●●
Command Name Fu nc tion
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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 c Print counter Stores a serial
counter value in the print buffer and increments or decreme nts the counter value.
●●
GS f Se lect font
for HRI characters
Selects a font for the HRI characters used when printing a bar code.
●●●●●●
GS h Set bar code
height
Sets the height of a bar code.
●●●●●●
GS k Print bar
code
Selects a bar code system and prints the bar code.
●●●●●●
GS k Print bar
code
Selects a bar code system and prints the bar code.
●●
GS r Transmit status Transmits a specified
status.
● ●● ●●● ●
GS w Set bar code
width
Sets the horizontal size of the bar code.
●●●●●●
GS z 0 Se t on-line
recove ry wait time
Sets the on-line recove ry wait time. ●●
Command Name Function
Supported Command
TM-
267II
TM-T Series TM-L Series TM-U200 TM-300/300M
TM­270
TM-U375
TM-U375M
TM-
U925
TM-U950
TM-U950M
TM-
215S
TM­295
T60 T80 T80M T85 L60 L60II B D 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...