Page 2 - EPSON; Guide to; SEIKO EPSON CORPORATION
EPSON Guide to TM-U375/U375P SEIKO EPSON CORPORATION ® 400609200
Page 3 - NOTICE; : The contents of this manual are subject to change without notice.; ESC /PO STM Information Manual
The programming examples in this manual are provided for the sole purpose of illustrating the functions of the products. Seiko Epson Corporation makes no warranty, either expressed or implied, as to their reliability and appropriateness for other uses. All rights reserved. No part of this publicatio...
Page 4 - Introduction; About This Manual; Chapter 1; which commands are supported by various EPSON printers.
Rev. A i 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...
Page 5 - ii; Features; Options and Accessories
ii Rev. A 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....
Page 6 - iii; Specifications
Rev. A iii Specifications ❏ Printing specifications Printing method: 9-pin, serial impact dot matrix Printing speed: 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 specificat...
Page 7 - iv; Contents; Chap ter 1; Command Descripti ons; Chap ter 2; Application; Chap ter 3; Command Reference
iv Rev. A Contents Chap ter 1 Command Descripti ons Usin g Bit Value Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3Pri nt Commands . . . . . . . . . . . . . . . . . . . . . ....
Page 8 - Command Descriptions 1-1; Command Descriptions; Supported Commands
Rev. A Command Descriptions 1-1 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...
Page 10 - Command Descriptions 1-3; Using Bit Value Tables; ASCII; Bit
Rev. A Command Descriptions 1-3 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 ...
Page 11 - Print Commands; Pr og ram E xample
1-4 Command Descriptions Rev. A 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) Print and return to standard mode (in page mo...
Page 12 - Command Descriptions 1-5; FF
Rev. A Command Descriptions 1-5 TM–U375/U375P Information Manual FF [Name] Print and eject cut sheet (in standard mode) 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 vali...
Page 13 - ESC J; n prints the data in the print buffer and feeds the paper [n; ESC d
1-6 Command Descriptions Rev. A 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 spe...
Page 14 - Command Descriptions 1-7; Line Spacing Commands; PAPER FEE D; Command; n sets the line spacing to [n; Pr ogram Exam ple
Rev. A Command Descriptions 1-7 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 m...
Page 15 - Character Commands; P ro gram Examp le
1-8 Command Descriptions Rev. A 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...
Page 16 - Command Descriptions 1-9; ESC SP; n sets the right-side character spacing to [n
Rev. A Command Descriptions 1-9 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...
Page 17 - Hex
1-10 Command Descriptions Rev. A 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...
Page 18 - Command Descriptions 1-11; ESC R; Prin t Sam ple
Rev. A Command Descriptions 1-11 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 [Name] Select an international character set [Format] ASCII E...
Page 19 - Select character code table; n Country
1-12 Command Descriptions Rev. A ESC R n selects an international character set n as follows. The default value is U.S.A. (n=0). 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 n Country 0 U. S.A. 1 France 2 Germany 3 U. ...
Page 20 - Command Descriptions 1-13; ESC t; Char acter Co de Table
Rev. A Command Descriptions 1-13 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 dif...
Page 21 - ESC –
1-14 Command Descriptions Rev. 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 act...
Page 22 - Command Descriptions 1-15
Rev. A Command Descriptions 1-15 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 setti...
Page 23 - ESC G
1-16 Command Descriptions Rev. A 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 comma...
Page 24 - Command Descriptions 1-17
Rev. A Command Descriptions 1-17 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 mod...
Page 25 - Panel Button Command; n enables or disables the; P rogra m Exa mp le
1-18 Command Descriptions Rev. A CAN deletes all the print data for the current print job in page mode. This command is enabled only in page mode . Panel Button Command The TM-U375/U375P supports the following command for enabling and disabling the panel buttons ( PAPER FEED and RELEASE ): Command N...
Page 26 - Command Descriptions 1-19; Paper Sensor Commands
Rev. A Command Descriptions 1-19 TM–U375/U375P Information Manual Paper Sensor Commands The TM-U375/U375P supports the following commands for controlling the paper senso r(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 ...
Page 27 - ESC c 3
1-20 Command Descriptions Rev. A 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 th...
Page 28 - Command Descriptions 1-21; Printing Paper Commands; Prog ra m Exa mp le
Rev. A Command Descriptions 1-21 TM–U375/U375P Information Manual 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 wai...
Page 29 - ESC c 1
1-22 Command Descriptions Rev. A The paper type(s) are selected for printing by using n as follows: 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 se...
Page 30 - Command Descriptions 1-23; Set cut sheet wait time; ESC f; Program Example
Rev. A Command Descriptions 1-23 TM–U375/U375P Information Manual 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...
Page 31 - Print Position Commands
1-24 Command Descriptions Rev. A 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 ...
Page 32 - Command Descriptions 1-25; ESC a; P ro gram Examp le
Rev. A Command Descriptions 1-25 TM–U375/U375P Information Manual ESC $ n L n H sets the print starting position to [( n L + n H × 256) × (horizontal or vertical motion unit)] inches from the left margin. ESC \ n L n H moves the print starting position to [( n L + n H × 256) × (horizontal or vertica...
Page 33 - GS L
1-26 Command Descriptions Rev. A GS L n L n H [Name] Set left margin [Format] ASCII GS L n L n H Hex 1D 4C n L n H Decimal 29 76 n L n H [Range] 0 ≤ n L ≤ 255 0 ≤ n H ≤ 255 GS W n L n H [Name] Set printing area width [Format] ASCII GS W n L n H Hex 1D 57 n L n H Decimal 29 87 n L n H [Range] 0 ≤ n L...
Page 34 - Command Descriptions 1-27; NUL; HT; Progr am Ex am ple
Rev. A Command Descriptions 1-27 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 ...
Page 35 - ESC W; dx; Prog ram E xample; by ES C W
1-28 Command Descriptions Rev. A ESC W x L x H y L y H dx L dx H dy L dy H [Name] Set printing area in page mode [Format] ASCII ESC W x L x H y L y H dx L dx H dy L dy H Hex 1B 57 x L x H y L y H dx L dx H dy L dy H Decimal 27 87 x L x H y L y H dx L dx H dy L dy H [Range] 0 ≤ x L , x H , y L , y H ...
Page 36 - Command Descriptions 1-29; ESC T n; Pr int Dire ction; b y ESC W
Rev. A Command Descriptions 1-29 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. ...
Page 37 - m n; Progr am Ex am ple
1-30 Command Descriptions Rev. A 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 n L n H d1 ... dk [Name] Select bit-image mode [Format] ASCII ESC ✻ m n L...
Page 38 - Command Descriptions 1-31; GS; ) defines a downloaded bit image using x; Mo de
Rev. A Command Descriptions 1-31 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 ≤ 25...
Page 39 - Status Commands; Transmit status; P ri nt Sa mp le
1-32 Command Descriptions Rev. A 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...
Page 40 - Command Descriptions 1-33; GS a
Rev. A Command Descriptions 1-33 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 au...
Page 42 - Command Descriptions 1-35; GS r
Rev. A Command Descriptions 1-35 TM–U375/U375P Information Manual Fourth byte (paper sensor information) GS r n [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 statu...
Page 43 - DLE EOT
1-36 Command Descriptions Rev. A Drawer kick-out connector status (n=2, 50) Cut-sheet (slip or validation paper) status (n=3, 51) Transmits the values 00H - 0FH, indicating the remaining printable area as follows: DLE EOT n [Name] Real-time status transmission [Format] ASCII DLE EOT n Hex 10 04 n De...
Page 44 - Command Descriptions 1-37
Rev. A Command Descriptions 1-37 TM–U375/U375P Information Manual Printer status (n=1) Off-line status (n=2) 5 Transmit sli p paper st atus 6 Transmit validati on paper stat us Progr am Ex am ple PRIN T #1, CHR$ (&H10 );CHR $(&H4 ); CHR$( 2); ← T ransm its o ff-li ne st atus Bit Off/ On Hex ...
Page 46 - Command Descriptions 1-39; ESC u
Rev. A Command Descriptions 1-39 TM–U375/U375P Information Manual Validation paper status (n=6) ESC u n [Name] Transmit peripheral device status [Format] ASCII ESC u n Hex 1B 75 n Decimal 27 117 n [Range] n = 0, 48 ESC u n transmits the status of drawer kick-out connector pin 3 as 1 byte of data whe...
Page 47 - Mechanism Control Commands
1-40 Command Descriptions Rev. A 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 ...
Page 48 - Command Descriptions 1-41; ESC U
Rev. A Command Descriptions 1-41 TM–U375/U375P Information Manual ESC < moves the print head to the home position. The print head first moves to the left-most positi on, then to the right-most position, and then to approximately the center of the line. To prevent paper jams, do not use this comma...
Page 49 - Miscellaneous Function Commands; x y
1-42 Command Descriptions Rev. A 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...
Page 50 - Command Descriptions 1-43; GS E; P ro gr am Ex ample
Rev. A Command Descriptions 1-43 TM–U375/U375P Information Manual Commands used with the horizontal and vertical motion units (1/x and 1/y) in page mode (either x or y can be used, depending on the print direction set with ESC T): ESC SP, ESC $, ESC 3, ESC J, ESC W , and ESC \. ESC @ [Name] Initiali...
Page 51 - Transmit printer ID; GS I
1-44 Command Descriptions Rev. A 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 us...
Page 52 - Command Descriptions 1-45; ESC p
Rev. A Command Descriptions 1-45 TM–U375/U375P Information Manual 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...
Page 53 - ESC L; Di splay Samp le
1-46 Command Descriptions Rev. A 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...
Page 54 - Command Descriptions 1-47; DLE ENQ; Request
Rev. A Command Descriptions 1-47 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 ...
Page 55 - Command Descriptions; Character Code Tables; SP
1-48 Command Descriptions Rev. A 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)
Page 58 - Using the Character Code Tables; Follow its column straight up to find the digits.; Country
Rev. A Command Descriptions 1-51 TM–U375/U375P Information Manual International character set 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 dec...
Page 59 - Chapter 2; System Processing and Procedures; YOUR RECEIPT
Rev. A Application 2-1 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 Proce...
Page 60 - Display Sample; W E L C O M E
2-2 Application Rev. A Display Sample 1 2 3 4 5 6 7 Defi ne data Sc roll the message and displ aythe c ounter Dis pl ay Item A Dis pl ay Item A Display to tal Display amo unt paid Dis pl ay change amount W E L C O M E 1 0 : 30 : 0 0 T M — U 3 7 5 9 6. 0 P S — 1 5 0 1 5 . 0 T O T A L 1 1 1. 0 P A I D...
Page 63 - Chapter 3; Command Classification
Rev. A Command Reference 3-1 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...
Page 64 - Function Classification
3-2 Command Reference Rev. A Function Classification Func tion Type Command Name Matr ix Catego ry Sup po rted Command Print commands L F Print and line fee d Basic single O FF 1. Print and ej ect c ut shee t (in standard mo de) Mechanical exte nsi on O 2. Print and ret urn t o standard mode (in pag...
Page 68 - Reference Table
3- 6 Reference Table Command Name Func tion Sup po rte d Comm and TM- 267I I TM-T S eries TM-L Series TM -U 200 TM-300/300M TM- 270 TM-U375 TM-U375M TM- U925 TM-U950 TM-U950M TM- 215S TM-295 T60 T80 T80M T85 L60 L60I I B D A B C D HT Ho rizontal tab Mo ves the print ing po sit ion to the next ho riz...