Page 1
TM U200/U200P Using this online technical guide The words on the left side of this screen are bookmarks for all the topics in this guide. Use the scroll bar next to the bookmarks to find any topic you want. Click a bookmark to instantly jump to its topic. (If you wish, you can increase the size of the bookmark area by dragging the dividing bar to the right.) Use the zoom tools to magnify or reduce the page display.
Page 4
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...
Page 7
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).
Features The TM-U200/U200P series of high-quality POS printers print on roll paper. The printers have the following features: Compact and lightweight. High throughput using bidirectional, minimum distance printing. Semi-automatic paper loading capability. ASB (Automatic Status Back) function that automatically transmits changes in printer status.
Specifications Printing specifications Printing method: 9-pin, serial impact dot matrix Printing speed: Approximately 3.5 LPS (when printing 40 columns using the the 7 × 9 font with 3-half dot spacing) Number of printable columns: 33/40 (when using 3-half dot spacing) 35/42 (when using 2-half dot spacing) Character specifications 9 ×...
TM–U200/U200P Information Manual Chapter 1 Command Descriptions Following this table are all the commands organized by function and described with program examples and print samples. Supported Commands Page Command Name Function type number Horizontal tab Print position 1-20 Print and line feed Print Print and carriage return Print...
Page 12
Page Command Name Function type number ESC e Print and reverse feed n lines Print ESC p Generate pulse Miscellaneous function 1-33 ESC t Select character code table Character 1-13 ESC { Turn upside-down printing mode on/off Character 1-16 GS I Transmit printer ID Miscellaneous function 1-32...
TM–U200/U200P 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-U200/U200P printers support the following commands for printing characters and advancing paper: Command Name Print and line feed Print and carriage return ESC J Print and feed paper ESC K Print and reverse feed ESC d Print and feed n lines...
Page 15
TM–U200/U200P Information Manual When auto line feed is enabled, CR functions in the same way as LF. When auto line feed is disabled, CR prints the data in the print buffer and does not feed the paper. The DIP switch setting enables or disables auto line feed.
Page 16
ESC K n prints the data in the print buffer and feeds the paper [n × (1/144)] inches in the reverse direction. This means that the printer can feed paper in half-dot units in the reverse direction. The command is used to temporarily feed a specific length without changing the line spacing set by other commands.
CCCCC"; CHR$(&HA); Line Spacing Commands The TM-U200/U200P printers support the following commands for setting line spacing. These commands only set the line spacing; they do not actually advance the paper. The line spacing set using these commands affects the results of the LF, ESC d, and ESC e commands, or when the paper is advanced using the PAPER FEED button.
32/144-inch (16-dot) line spacing PRINT #1, "CCCCC"; CHR$(&HA); CC CC C 1/6-inch (12-dot) line spacing Character Commands The TM-U200/U200P printers support 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 &...
Page 19
TM–U200/U200P Information Manual ESC SP n sets the right-side character spacing in [n × (1/160)] inches. It is used to change the spacing between characters. The default right-side character spacing is set to 0 (n=0). This command can set the right-side character spacing in half-dot units. Program Example Print Sample ←...
Page 20
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 &...
Page 21
TM–U200/U200P 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. These commands are effective only when the 40 bytes receive buffer size is selected. Program Example Print Sample ←...
ESC R n [Name] Select an international character set [Format] ASCII Decimal 0 ≤ n ≤ 10 [Range] ESC R n selects an international character set n as follows. The default value is U.S.A. (n=0). Country U.S.A. France Germany U.K. Denmark I Sweden Italy...
Page 23
TM–U200/U200P Information Manual ESC t n [Name] Select character code table [Format] ASCII Decimal 0 ≤ n ≤ 5, n = 254, 255 [Range] 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.
Page 24
ESC ! n [Name] Select print mode(s) [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] ESC ! n selects print modes using n as follows. The default character font is 7 × 9. The defaults for other print modes are set to n=1. Off/On Decimal Function...
Page 25
TM–U200/U200P Information Manual ESC – n [Name] Turn underline mode on/off [Format] ASCII – Decimal [Range] n = 0, 1, 48, 49 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.
Page 26
ESC G n [Name] Turn double-strike mode on/off [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] 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.
TM–U200/U200P Information Manual Panel Button Command The TM-U200/U200P printers support the following command for enabling and disabling the panel button (PAPER FEED). Command Name ESC c 5 Enable/disable panel button ESC c 5 n [Name] Enable/disable panel button [Format] ASCII Decimal 0 ≤...
Page 28
The paper roll near-end sensor is an option; therefore, if the sensor is not installed, the settings of this command are not effective. The TM-U200/U200P printers are equipped with the paper roll sensor as standard. The paper roll sensor is always enabled, and when a paper-end is detected, the printer stops printing.
Undefined. Program Example ← PRINT #1, CHR$(&H1B);"c3";CHR$(4); Only paper roll end sensor enabled. Print Position Commands The TM-U200/U200P printers support the following commands for setting the print position. Command Name Horizontal tab ESC D Set horizontal tab positions ESC a Select justification Rev.
[Name] Horizontal tab [Format] ASCII Decimal HT moves the print position to the next horizontal tab position. This command is used to align the character columns. The command is ignored unless the next horizontal tab position has been set. ESC D n1...nk NUL [Name] Set horizontal tab positions [Format]...
PRINT #1, "ABCD"; CHR$(&HA); ESC a 1 ABCDE PRINT #1, "ABCDE"; CHR$(&HA); ABCD ESC a 2 NEXT n ABCDE Bit-Image Command The TM-U200/U200P printers support the following bit-image command. Command Name Select bit-image mode [d]k [Name] Select bit-image mode [Format] ASCII d1...dk...
NEXT I PRINT #1, CHR$(&HA); RETURN Status Commands The TM-U200/U200P printers support 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...
Page 33
TM–U200/U200P Information Manual 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 enabled or disabled. When n=0, ASB is disabled. The default depends on the DIP switch settings (n=0 or n=2).
Page 34
First byte (printer information) Off/On Decimal Status for ASB Not used. Fixed to Off. Not used. Fixed to Off. Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. On-line. Off-line. Not used. Fixed to On. —...
Page 35
TM–U200/U200P Information Manual Third byte (paper sensor information) Off/On Decimal Status for ASB Paper near-end sensor: paper adequate. (03) Paper near-end sensor: paper near end. Paper end sensor: paper present. Paper end sensor: paper not present. Not used. Fixed to Off. —...
GS r n [Name] Transmit status [Format] ASCII Decimal 1 ≤ n ≤ 2 [Range] 49 ≤ n ≤ 50 GS r n transmits the status specified by n as follows: paper sensor status as 1 byte of data when n=1 or 49, and drawer kick-out connector status when n=2 or 50.
Page 37
TM–U200/U200P Information Manual DLE EOT n [Name] Transmit real-time status [Format] ASCII Decimal 1 ≤ n ≤ 4 [Range] DLE EOT n transmits the specified status in real time. This command is executed if the printer is off- line, the print buffer is full, or an error occurs. If the printer goes off-line due to a paper-end condition, bit 5 of the printer status (waiting for on-line recovery) is on from the time the paper roll is inserted to the time the printer goes on-line.
Printer status (n=1) Off/On Decimal Status Not used. Fixed to Off. Not used. Fixed to On. Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. On-line. Off-line. Not used. Fixed to On. Not waiting for on-line recovery. Waiting for on-line recovery.
Not used. Fixed to On. Paper end sensor: paper adequate. Paper end sensor: paper not present. Not used. Fixed to Off. Mechanism Control Commands The TM-U200/U200P printers support the following mechanism control commands. Command Name ESC < Return home ESC U...
Page 40
ESC < [Name] Return home [Format] ASCII < Decimal ESC < moves the print head to the home position. Program Example PRINT #1, CHR$(&H1B);"<"; ESC U n [Name] Turn unidirectional printing mode on/off [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] ESC U n turns unidirectional printing mode on or off.
PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(0);← Feed paper and cut Paper fed to the cutting position and partial cut (one point left uncut) performed Miscellaneous Function Commands The TM-U200/U200P printers support the following miscellaneous function commands. Command Name Initialize printer ESC @ GS I...
GS I n transmits the printer ID specified by n below. Each printer ID consists of 1 byte of data. The TM-U200 series of printers have the same ID, regardless of the different models. The TM-U200B and TM-U200D can be differentiated by ID type. Type ID = 2 for the TM-U200B. Type ID = 0 for the TM-U200D.
Page 43
TM–U200/U200P Information Manual Type ID (n=2 or n=50) Off/On Decimal Function No two-byte character code. No auto-cutter equipped. Auto cutter equipped. — — — Undefined. Not used. Fixed to Off. 5, 6 — — — Undefined. Not used. Fixed to Off. ESC p m t1 t2 [Name] Generate pulse...
ESC = n selects the device to which the host computer sends data, based on the value of n as follows: Off/On Decimal Function Printer disabled. Printer enabled. Customer display disabled. Customer display enabled. – – – Undefined. The printer is enabled when n = 1 or n = 3. The printer is disabled when n = 2. The default setting is n = 1 (the printer is enabled).
Page 45
TM–U200/U200P Information Manual The on-line recovery wait time is confirmed by the printer status of ASB or the DLE EOT command. n = 2 is effective only when a recoverable error occurs. The printer can recover from an error without turning off the power.
Page 46
The recovery confirmation time is within t2 × 0.5 seconds of the end of the paper wait time. During this time, the PAPER OUT LED blinks and paper cannot be fed by pressing the PAPER FEED button. However, the printer can be on-line by pressing the PAPER FEED button. The printer will be on-line when the recovery confirmation time ends or by using the DLE ENQ command.
TM–U200/U200P Information Manual Print Status Status : → Normal operation → Not printing due to a paper-end The printer stops printing and goes off-line when the paper roll sensor detects a paper-end, or if the paper near-end sensor (option) is enabled by ESC c 4 and it detects a near-end. Printer status : →...
Character Code Tables SP in a table represents space. Page 0 (PC437: U.S.A., Standard Europe) (International character set: U.S.A.) Page 1 (Katakana) 1-38 Command Descriptions Rev. A...
Page 49
TM–U200/U200P Information Manual Page 2 (PC850: Multilingual) Page 3 (PC860: Portuguese) Rev. A Command Descriptions 1-39...
Page 51
TM–U200/U200P Information Manual International character set: ASCII code (hexadecimal) Country U.S.A. ¦ France à ° ç § é ù è ¨ Germany § Ä Ö Ü ä ö ü ß U.K. £ ¦ Denmark I Æ Ø Å æ ø å...
TM–U200/200P Information Manual Chapter 2 Application Receipt Issuing This section presents examples illustrating the functioning of the ESC/POS commands and an actual print sample. Procedure for Receipt Issuing Using the TM-U200B Procedure Commands used Description 1. Stamp printing ESC 3, ESC a, ESC t, ESC !, Specifies a print position to the center by using the ESC a command.
Print Sample Print Sample E P S O N Stamp Thank you ← Date and Time September 10, 1995 15:00 TM-U200B $22.00 $21.00 Item A TM-U200D $15.00 PS-150 $58.00 TOTAL Item B $60.00 PAID $2.00 CHANGE ← 2-2 Application Rev. A...
TM–U200/200P Information Manual Programming Example PRINT #1, CHR$(&H1B);"@"; ← Initializes the printer GOSUB stamp ← Prints stamp PRINT #1, CHR$(&H1B);"a";CHR$(1); ← Specifies a centered printing position PRINT #1, CHR$(&H1B);"!";CHR$(0); ← Specifies 9 x 9 font Prints date and time PRINT #1, “September 10, 1995 15:00”;...
Page 55
Programming Example (continued) ← PRINT #1, CHR$ (&H1B);”!”;CHR$ (32); Selects double-height mode FOR I =1 TO 14 READ d$: PRINT #1, CHR$ (VAL (“&H”+d$)); NEXT I ← PRINT #1, CHR$ (&H1B);”!”;CHR$ (48); Selects double-height and double-width modes FOR I =1 TO 14 Prints stamp READ d$: PRINT #1, CHR$ (VAL (“&H”+d$));...
Need help?
Do you have a question about the TM-U200 and is the answer not in the manual?
Questions and answers