TM-U375/TM-U375P 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 zoom tools to magnify or reduce the page display. Click the Find button if you want to search for a particular term.
EPSON® Guide to TM-U375/U375P SEIKO EPSON CORPORATION 400609200
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.
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.
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.
Specifications ❏ Printing specifications Printing method: Printing speed: 9-pin, serial impact dot matrix Approximately 3.5 LPS (40 columns, 16 CPI, continuous printing) Approximately 5.4 LPS (20 columns, 16 CPI, continuous printing) Number of printable columns: 40/33 ❏ Character specifications Character fonts: Character pitch: Character size: Character sets: 7 × 9/5 × 9 16/13.3 CPI 1.24(W) × 3.1(H) mm/1.56(W) × 3.
Contents Chapter 1 Command Descriptions Using Bit Value Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 Print Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 Line Spacing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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.
Command Name Function Type Page Number ESC T Select 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 rotation mode 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 Select paper type(s) for printing Printing paper 1-21 ESC c 1 Select paper type(
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.
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 1 Print and eject cut sheet (in standard mode) 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.
TM–U375/U375P Information Manual FF [Name] [Format] 1 Print and eject cut sheet (in standard mode) 2 Print and return to standard mode (in page mode) 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.
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.
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.
ESC C n [Name] Set cut sheet eject length [Format] ASCII ESC C n Hex 1B 43 n Decimal 27 67 n 0 ≤ n ≤ 255 [Range] 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.
TM–U375/U375P Information Manual ESC SP n [Name] Set right-side character spacing [Format] ASCII ESC SP n Hex 1B 20 n Decimal 27 32 n [Range] 0 ≤ n ≤ 255 ESC SP n sets the right-side character spacing to [n × (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.
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 ...
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.
ESC R n selects an international character set n as follows. The default value is U.S.A. (n=0). n Country 0 U.S.A. 1 France 2 Germany 3 U.K.
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 Character Code Table 0 Page 0 [PC437 (U.S.A.
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. On 01 1 Character font 7 x 9 selected. — — — Undefined.
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.
ESC G n turns double-strike mode on or off. When the LSB (least significant bit) of n is 1, doublestrike 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.
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.
CAN deletes all the print data for the current print job in page mode. This command is enabled only in page mode.
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 0 ≤ n ≤ 255 [Range] ESC c 4 n selects the paper sensor that
Bit Off/On Hex Decimal Function 6 - - - Undefined. Off 00 0 Validation ejection sensor disabled. On 80 128 Validation ejection sensor enabled. 7 Program Example PRINT #1, CHR$(&H1B);"c4";CHR$(1); ← Paper roll near-end sensor enabled ESC c 3 n [Name] Select paper sensor(s) to output paper-end signals [Format] ASCII ESC c 3 n Hex 1B 63 33 n Decimal 27 99 51 n 0 ≤ n ≤ 255 [Range] ESC c 3 n selects paper sensor(s) to output paper-end signals to a parallel interface.
TM–U375/U375P Information Manual Bit Off/On Hex Decimal Function Off 00 0 Cut-sheet (slip or validation) sensor disabled. On 40 64 Cut-sheet (slip or validation) sensor enabled. Off 00 0 Cut-sheet (slip or validation) sensor disabled. On 80 128 Cut-sheet (slip or validation) sensor enabled.
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. On 01 1 Paper roll enabled. Off 00 0 Paper roll disabled. On 02 2 Paper roll enabled. Off 00 0 Slip paper disabled. On 04 4 Slip paper enabled. Off 00 0 Validation paper disabled. On 08 8 Validation paper enabled. — — — Undefined.
TM–U375/U375P Information Manual Bit Off/On Hex Decimal Function Off 00 0 Validation paper disabled. On 08 8 Validation paper enabled. — — — Undefined.
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 $ n L n H [Name] Set absolute print position [Format] ASCII ESC $ nL nH Hex 1B 24
TM–U375/U375P Information Manual ESC $ n L n H sets the print starting position to [(nL + nH × 256) × (horizontal or vertical motion unit)] inches from the left margin. ESC \ nL n H moves the print starting position to [(n L + n H × 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 = (n L + n H × 256). When standard mode is selected, the horizontal motion unit set by GS P is used.
GS L nL nH [Name] Set left margin [Format] ASCII GS L nL nH Hex 1D 4C nL nH Decimal 29 76 nL nH 0 ≤ nL ≤ 255 [Range] 0 ≤ nH ≤ 255 GS W n L n H [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 0 ≤ nH ≤ 255 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 n L=0, nH =0.
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 ...
ESC W xL xH yL y H 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 (except for dxL = dxH = 0 or dyL= dyH = 0) ESC W xL xH y L yH dxL dxH dy L dyH sets the size and position of the printing area in page mode as follows: Horizontal starting position = [(xL + xH × 256) × (horizontal motion unit)] inches Vert
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.
Bit-Image Commands The TM-U375/U375P supports the following bit-image commands: Command Name ESC ✻ Select bit-image mode GS ✻ Define downloaded bit image GS / Print downloaded bit image ESC ✻ m nL nH d1 ... dk [Name] Select bit-image mode [Format] ASCII ESC ✻ m nL nH d1 ... dk Hex 1B 2A m nL nH d1 ... dk Decimal 27 42 m nL nH d1 ... dk [Range] m = 0, 1 0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤ d ≤ 255 ESC ✻ m nL nH d1 ...
TM–U375/U375P Information Manual GS ✻ x y d1 ... d(x × y × 8) [Name] Define downloaded bit image [Format] ASCII GS ✻ x y d1 ... d(x × y × 8) Hex 1D 2A x y d1 ... d(x × y × 8) Decimal 29 42 x y d1 ... d(x × y × 8) [Range] 1 ≤ x ≤ 255 1 ≤ y ≤ 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 GS ✻ x y d1 ...
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 DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA Define downloaded bit image ← Print downloaded bit image FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,C0,00,00,00,03,C0 00,00,00,03,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF FF,FF,F3
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 0 ≤ n ≤ 255 [Range] 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.
Bit Off/On Hex Decimal Status for ASB Off 00 0 On-line. On 08 8 Off-line. On 10 16 Not used. Fixed to On. Off 00 0 Cover closed. On 20 32 Cover open. Off 00 0 Paper is not being fed by the paper feed button. On 40 64 Paper is being fed by the paper feed button. Off 00 0 Not used. Fixed to Off. 3 4 5 6 7 Second byte (printer information) Bit Off/On Hex Decimal Status for ASB 0, 1 — — — Undefined. Off 00 0 No mechanical error.
TM–U375/U375P Information Manual Fourth byte (paper sensor information) Bit Off/On Hex Decimal Status for ASB Off 00 0 Slip paper selected. On 01 1 Slip paper not selected. Off 00 0 Slip paper status: possible to print. On 02 2 Slip paper status: not possible to print. Off 00 0 Validation paper selected. On 04 4 Validation paper not selected. Off 00 0 Validation paper status: possible to print. On 08 8 Validation paper status: not possible to print. Off 00 0 Not used.
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. 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.
TM–U375/U375P Information Manual n Function 5 Transmit slip paper status 6 Transmit validation paper status Program Example PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(2); ← Transmits off-line status Printer status (n=1) Bit Off/On Hex Decimal Status 0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On. Off 00 0 Drawer kick-out connector pin 3 is LOW. On 04 4 Drawer kick-out connector pin 3 is HIGH. Off 00 0 On-line. On 08 8 Off-line. 4 On 10 16 Not used.
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. On 04 4 Mechanical error occurred. 3 — — — Undefined. 4 On 10 16 Not used. Fixed to On. Off 00 0 No unrecoverable error. On 20 32 Unrecoverable error occurred. Off 00 0 No automatically recoverable error. On 40 64 Automatically recoverable error occurred. Off 00 0 Not used. Fixed to Off.
TM–U375/U375P Information Manual 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. On 04 4 Validation paper not selected. Off 00 0 Does not wait for validation paper insertion. On 08 8 Waits for validation paper insertion. On 10 16 Not used. Fixed to On. Off 00 0 Cut-sheet sensor: slip or validation paper present.
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 Example PRINT #1, CHR$(&H1B);"v"; Paper sensor status Bit Off/On Hex Decimal Status Off 00 0 Paper roll near-end sensor: paper adequate.
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.
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 x y Hex 1D 50 x y Decimal 29 80 x y [Ran
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 \.
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.
TM–U375/U375P Information Manual Program Example PRINT #1, CHR$(&H1D);"I";CHR$(1);← Transmits printer ID ESC p m t1 t2 [Name] Generate pulse [Format] ASCII ESC p m t1 t2 Hex 1B 70 m t1 t2 Decimal 27 112 m t1 t2 [Range] m = 0, 1, 48, 49 0 ≤ t1 ≤ 255 0 ≤ t2 ≤ 255 ESC p m t1 t2 sends a pulse (on time= t1 × 2 msec / off time= t2 × 2 msec) to the specified connector pin.
Program Example Display Sample AAAAA_ PRINT PRINT PRINT PRINT PRINT PRINT #1, #1, #1, #1, #1, #1, CHR$(&H1B);"=";CHR$(2);← "AAAAA"; CHR$(&H1B);"=";CHR$(1);← " BBBBB"; CHR$(&H1B);"=";CHR$(3);← " CCCCC"; CHR$(&HA); Customer display selected ↓ Printer selected Selects only the printer AAAAA_ Both printer and customer display selected ↓ Selects both the printer and the customer display AAAAA CCCCC_ Print Sample BBBBB CCCCC ESC L [Name] Select page mode [Format] ASCII ESC L Hex 1B 4C Deci
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).
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.
TM–U375/U375P Information Manual Page 2 (PC850: Multilingual) Page 3 (PC860: Portuguese) Rev.
Page 4 (PC863: Canadian-French) Page 5 (PC865: Nordic) 1-50 Command Descriptions Rev.
TM–U375/U375P Information Manual International character set ASCII code Country Hex 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E Dec 35 36 64 91 92 93 94 96 123 124 125 126 U.S.A. # $ @ [ \ ] ^ ` { ¦ } ~ France # $ à ° ç § ^ ` é ù è ¨ Germany # $ § Ä Ö Ü ^ ` ä ö ü ß U.K.
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 GS ✻ Defines a downloaded bit image to be used as a stamp. 2.
Display Sample Define data 1 Scroll the message and display the counter WELCOME 2 1 0 : 30 : 0 0 3 Display Item A TM—U375 9 6. 0 4 PS—150 Display Item A 15.0 5 Display total TOTAL 1 1 1. 0 6 Display amount paid PAID 120.0 CHANGE >> >> T h a n k Y o u 2-2 Application 9. 0 Display change amount >> >> 7 Rev.
TM–U375/U375P Information Manual Program Example PRINT #1, CHR$(&H1B);"=";CHR$(3); ← Selects peripheral devices (printer and customer PRINT #1, CHR$(&H1B);"@"; ← Initializes the devices PRINT #1, CHR$(&H1B);"t";CHR$(1); ← Selects the character code table (page 1) PRINT #1, CHR$(&H1B);"=";CHR$(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$)); NEXT I GOSUB stamp PRINT PRINT PRINT PRINT PRINT #1, #1, #1, #1, #1, ← displ
W$=INPUT$(1) ← Waits for input PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Selects peripheral device (printer) PRINT #1, CHR$(&H1B);"!";CHR$(1); PRINT #1, "----------------------------------------"; CHR$(&HA); PRINT #1, CHR$(&H1B);"=";CHR$(3); ← Selects peripheral devices (printer PRINT #1, "PAID 120.0"; CHR$(&HA) PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Selects PRINT #1, CHR$(&H1B);"=";CHR$(2); Operates a drawer 9.
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.
Function Classification Supported Command Function Type Command Name Matrix Category Print commands LF Print and line feed Basic single O FF 1. Print and eject cut sheet (in standard mode) Mechanical extension O 2. Print and return to standard mode (in page mode) Mechanical extension O 3.
TM–U375/U375P Information Manual Supported Command Function Type Command Name Matrix Category Character commands (continued) ESC z Turn parallel printing mode on/ off for receipt and journal Mechanical extension ESC { Turn upside-down printing mode on/off Basic single GS ! Select character size Software extension GS B Turn white/black reverse printing mode on/off Software extension GS b Turn smoothing mode on/off Software extension Panel button commands ESC c 5 Enable/disable panel bu
Supported Command Function Type Command Name Matrix Category Status commands DLE EOT Real-time status transmission Hardware extension DLE EOT BS Real-time MICR status transmission Hardware extension ESC u Transmit peripheral device status Hardware extension O ESC v Transmit paper sensor status Hardware extension O GS ENQ Transmit real-time printer status Hardware extension GS a Enable/disable Automatic Status Back (ASB) Hardware extension O GS r Transmit status Hardware extensio
TM–U375/U375P Information Manual Supported Command 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 Mechanical extension FS a 2 Eject check paper Mechanical extension FS b Request retransmission of check paper reading result Mechanical extension FS c MICR mechanism cleaning Mechanical extension DLE ENQ Real-time request to printer Software extension O ESC = Select peripheral devi
3-6 Reference Table Supported Command Command HT LF FF Name Function Horizontal tab Moves the printing position to the next horizontal tab position. Print and line feed Prints the data in the print buffer and feeds one line based on the current line spacing. 1. Print and eject cut sheet (in standard mode) Prints the data in the print buffer and ejects the cut sheet. 2. Print and return to standard mode (in page mode) Prints the data in the print buffer and returns to standard mode. 3.
Supported Command Command CR CAN RS DLE EOT DLE ENQ ESC FF ESC SP Print and carriage return Function TM267II When auto line feed is enabled, 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 paper. Cancel print data in page mode Deletes all the print data in the current printing area in page mode. Journal tab Moves the print position to the beginning of the journal paper.
3-8 Supported Command Command Name Function ESC ! Select print mode(s) Selects a print mode(s). ESC $ Set absolute print position Sets the print starting position from the beginning of the line.
Supported Command Command ESC @ ESC C Name Initialize printer Function 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. Sets the eject length for cut sheet to a specified number of lines. ESC D Set horizontal tab positions Sets the horizontal tab positions. ESC E Turn emphasized mode on/off Turns emphasized mode on or off. Set/cancel cut sheet reverse eject Sets or cancels the cut sheet reverse eject.
3-10 Supported Command Command ESC R ESC S ESC T ESC U ESC V ESC W ESC \ ESC a ESC c 0 ESC c 1 Name Function Select an Selects a country’s international character set. character set TM267II TM-T Series TM-L Series TM-U200 T60 T80 T80M T85 L60 L60II B D TM-300/300M TM- TM-U375 TM- TM-U950 TMA B C D 270 TM-U375M U925 TM-U950M 215S ● ● ● ● ● ● ● ● ● ● ● ● ● ● Select standard mode Switches from page mode to standard mode.
Supported Command Command ESC c 3 ESC c 4 Name Function TM267II Selects the paper sensor that stops printing when the paper runs out. T80 O O ● ● ● ● ● ● ● ● ● Enable/disable Enables or disables panel buttons the panel buttons. ● ESC c 6 Enable/disable Enables or disables on-line button the on-line button. ● ESC d Print and feed n lines Prints the data in the print buffer and feeds n lines.
3-12 Supported Command Command Name Function ESC o Stamp Executes stamp printing. ESC p Generate pulse Outputs a specified pulse to a specified connector pin. TM267II Paper release Releases the paper. ESC r Select print color Selects the print color. ● ESC t Select character code table Selects a page from the character code table. ● Transmit peripheral device status Transmits the status of a specified connector pin. Transmit paper sensor status Transmits the status of a paper sensor.
Supported Command Command FS – FS . FS 2 FS C FS L FS S FS a 0 FS a 1 Function TM267II TM-T Series T60 T80 T80M TM-L Series TM-U200 T85 L60 L60II B D TM-300/300M TM- TM-U375 TM- TM-U950 TMA B C D 270 TM-U375M U925 TM-U950M 215S Turn underline Turns underline mode mode on/off on or off for Kanji for Kanji characters. characters ● O O O O O O Cancel Kanji character mode Cancels Kanji character mode.
3-14 Supported Command Command Name Function FS a 2 Eject check paper Ejects the check paper. FS b Request retransmission of check paper reading result Retransmits the previous check paper reading results. MICR mechanism cleaning Cleans the MICR mechanism. Transmit realtime printer status Transmits the status of the printer in real time. Print and eject label Prints the data in the print buffer and ejects the label.
Supported Command Command GS < GS A GS B GS C 0 Name Function TM267II TM-T Series T60 T80 T80M TM-L Series TM-U200 T85 L60 L60II Initialize printer mechanism Feeds a label to the print starting position. ● ● Adjust label print starting position Adjusts the label position relative to the default position. ● ● Turn white/ Turns white/black black reverse reverse printing printing mode on or off. mode on/off ● ● ● Select count mode (A) Selects a count mode for the serial counter.
3-16 Supported Command Command GS L GS P GS V Name Function TM267II TM-T Series T60 T80 T80M TM-L Series TM-U200 T85 L60 L60II B Set left margin Sets the left margin using specified values. ● ● ● Set horizontal and vertical motion units ● ● ● Sets the horizontal and vertical motion units. Select cut Cuts the specified mode and cut paper. paper ● ● Select cut Advances the mode and cut specified paper to paper the cut position and performs the cut.
Supported Command Command GS c GS f Name Print counter Function TM267II TM-T Series T60 T80 T80M TM-L Series TM-U200 T85 Stores a serial counter value in the print buffer and increments or decrements the counter value. L60 L60II ● ● Select 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.
SEIKO EPSON CORPORATION PERIPHERAL EQUIPMENT OPERATIONS DIV.