Page 1
CONFIDENTIAL TM-U590/U590P Information Manual Using this online information 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.
Page 3
INFORMATION OR ANY OTHER INFORMATION IN THE DOCUMENT, INCLUDING (WITHOUT LIMITATION) ANY WARRANTY OF TITLE OR NON-INFRINGEMENT. Seiko Epson has no liability for loss or damage arising from or relating to your use of or reliance on the information on the document.
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).
Page 6
CONFIDENTIAL Features The TM-U590/U590P is a high-quality POS printer that can print on slip paper. This specification applies the following models of the TM-U590 series printer. The printer has the following features: Wide slip paper capability (maximum characters per line: 88 with 7 × 9 font).
CONFIDENTIAL Specifications Printing specifications Printing method: Serial impact dot matrix Head wire configuration: 9-pin vertical line, wire pitch 1/72 inch Head wire diameter: 0.29 mm (.01”) Printing direction: Bidirectional, minimum distance printing Printing speed: Up to 233 characters per second [Font A (9x9)] Up to 311 characters per second [Font B (7x9)] Character specifications Number of characters:...
CONFIDENTIAL TM–U590/U590P 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.
Page 9
Enable/disable Automatic Status Back (ASB) Status 1-29 GS r Transmit status Status 1-31 The following commands are supported only by the TM-U590/U590P with the optional Magnetic Ink Character Recognition (MICR) reader. (The MICR reader is a factory-installed option.) Page Command Name Function Type Number...
CONFIDENTIAL TM–U590/U590P 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.
CONFIDENTIAL Print Commands The TM-U590/U590P supports 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 12
CONFIDENTIAL TM–U590/U590P Information Manual Program Example Print Sample AAAAA PRINT #1, "AAAAA"; CHR$(&HD); ← PRINT #1, " BBBBB"; CHR$(&HA); BBBBB Auto line feed enabled ← AAAAABBBBB Auto line feed disabled ESC J n [Name] Print and feed paper [Format] ASCII Decimal 0 ≤...
CONFIDENTIAL Program Example Print Sample PRINT #1, CHR$(&H1D);"P";CHR$(150);CHR$(144); PRINT #1, "AAAAA"; CHR$(&HA); AAAAACCCCC ESC K used to print one line and BBBBB PRINT #1, "BBBBB"; CHR$(&H1B);"K";CHR$(24); then reverse feed the paper by 24/144 inch PRINT #1, " CCCCC"; CHR$(&HA); ESC d n [Name] Print and feed n lines [Format]...
Page 14
CONFIDENTIAL TM–U590/U590P Information Manual ESC e n [Name] Print and reverse feed n lines [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] ESC e n prints the data in the print buffer and feeds n × line spacing in the reverse direction. The amount of paper fed per line is based on the value set using ESC 2 or ESC 3.
CONFIDENTIAL Line Spacing Commands The TM-U590/U590P 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 set using these commands affects the results of LF, or ESC d, or FF is executed and paper feed using the FORWARD or REVERSE button.
Page 16
CONFIDENTIAL TM–U590/U590P Information Manual ESC C n [Name] Set cut sheet eject length [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] ESC C n sets the eject length for slip paper to n × line spacing. The maximum eject length is 17.72 inches.
CONFIDENTIAL Character Commands The TM-U590/U590P 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...
Page 18
CONFIDENTIAL TM–U590/U590P Information Manual ESC % n [Name] Select/cancel user-defined character set [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)] [Name] Define user-defined characters y c1 c2 [x1 d1 ...
CONFIDENTIAL ESC ? n [Name] Cancel user-defined characters [Format] ASCII Decimal 32 ≤ n ≤ 126 [Range] 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.
Page 20
CONFIDENTIAL TM–U590/U590P Information Manual 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). ASCII code Country U.S.A.
Page 21
CONFIDENTIAL ESC t n [Name] Select character code table [Format] ASCII Decimal 0 ≤ n ≤ 5 , n = 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.
CONFIDENTIAL TM–U590/U590P Information Manual ESC ! n [Name] Select print mode(s) [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] ESC ! n selects or cancels print modes collectively using n as follows. The default setting is n=0. Off/On Decimal Function Character font A (9 x 9) selected.
Page 23
CONFIDENTIAL 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. The default setting is n=0. Program Example Print Sample PRINT #1, CHR$(&H1B);"-";CHR$(1);...
Page 24
CONFIDENTIAL TM–U590/U590P Information Manual 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;...
PRINT #1, "ABCDE"; CHR$(&HA); Upside-down PRINT #1, "BCDEF"; CHR$(&HA); printing RETURN Printing Paper Command The TM-U590/U590P supports the following command for controlling printing paper. Command Name ESC f Set cut sheet wait time ESC f t1 t2 [Name] Set cut sheet wait time...
MICR reader), or cleaning sheet (only with the MICR reader) is used. DLE ENQ is used to cancel the check paper or cleaning sheet waiting state. Program Example PRINT #1, CHR$(&H1B);"f";CHR$(0);CHR$(20); Panel Button Command The TM-U590/U590P supports the following command for enabling and disabling the panel buttons. (FORWARD, REVERSE, and RELEASE). Command Name ESC c 5...
Page 27
CONFIDENTIAL ESC c 4 n [Name] Select paper sensor(s) to stop printing [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] ESC c 4 n selects whether to stop printing or not when the paper runs out. The default setting is n=0. When the TOF sensor or the BOF sensor is enabled and a paper-end is detected, the printer ejects the paper after printing as much as possible and enters the paper waiting state.
— Undefined. Program Example PRINT #1, CHR$(&H1B);"c3";CHR$(16); ← Only TOF sensor enabled Print Position Commands The TM-U590/U590P supports the following commands for setting the print position: Command Name ESC $ Set absolute print position ESC \ Set relative print position...
CONFIDENTIAL ESC $ n [Name] Set absolute print position [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] 0 ≤ n ≤ 255 ESC \ n [Name] Set relative print position [Format} ASCII Decimal 0 ≤ n ≤ 255 [Range] 0 ≤...
Page 30
CONFIDENTIAL TM–U590/U590P Information Manual ESC a n [Name] Select justification [Format] ASCII Decimal 0 ≤ n ≤ 2 [Range] 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.
Page 31
CONFIDENTIAL ESC D n1 ... nk NUL sets a horizontal tab to n × character width to have been set columns from the left margin, with k indicating the total number of horizontal tab positions to be set. A maximum of 32 tab positions can be set.
PRINT #1, CHR$(&H1D);"W";CHR$(120);CHR$(0); 0123456789 PRINT #1, "01234567890123456789"; CHR$(&HA); Left Printing area margin width Bit-Image Commands The TM-U590/U590P supports the following bit-image commands: Command Name Select bit-image mode Define downloaded bit image GS / Print downloaded bit image d1 ... dk...
CONFIDENTIAL d1 ... dk selects a bit-image mode using m for the number of dots specified by × 256). d indicates the bit image data. Set a bit to 1 to print a dot, or set a bit to 0 to not print a dot.
CONFIDENTIAL TM–U590/U590P Information Manual GS / m [Name] Print downloaded bit image [Format] ASCII Decimal [Range] m=0, 1, 48, 49 x y d1 ... d(x × y × 8) defines a downloaded bit image using x × 8 dots in the horizontal direction and y ×...
Page 35
CONFIDENTIAL Program Example Program Example (continued) DATA 80,00,03,80,02,40,00,1C,00,04,80,00,60,00,02 x=18: y=5 DATA 40,03,80,00,04,80,0C,00,00,02,40,70,00,00,04 Define PRINT #1, CHR$(&H1D);"*";CHR$(x);CHR$(y); DATA 83,80,00,00,02,4C,00,00,00,04,80,00,00,00,02 downloaded FOR i=1 TO x*y*8 bit image DATA 40,00,00,00,04,80,00,00,00,02,4A,AA,AA,AA,A4 READ a$: d=VAL("&H"+a$) DATA 85,55,55,55,42,4A,AA,AA,AA,A4,85,55,55,55,42 PRINT #1, CHR$(d); DATA 4A,AA,AA,AA,A4,85,00,05,00,02,4A,08,0A,80,04 NEXT i DATA 85,00,05,00,02,4A,80,0A,80,04,85,00,05,00,02 DATA 4A,80,0A,80,04,85,00,05,00,02,4A,80,0A,80,04 ←...
TM–U590/U590P Information Manual Status Commands The TM-U590/U590P 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. MICR status can be confirmed by the DLE EOT BS command (only with MICR reader).
Page 37
CONFIDENTIAL 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. Cover closed.
CONFIDENTIAL TM–U590/U590P Information Manual Fourth byte (paper sensor information) Off/On Decimal Status for ASB Slip paper selected. Slip paper not selected. Slip printing possible. Slip printing not possible. 2, 3 — — — Undefined. Not used. Fixed to Off. 5, 6 —...
Page 39
CONFIDENTIAL Drawer kick-out connector status (n=2, 50) Off/On Decimal Status Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. — — — Undefined. Not used. Fixed to Off. 5, 6 — — — Undefined. Not used. Fixed to Off. Slip status (n=3, 51) This command transmits the remaining printing area (times the number of dots for the internal characters in vertical (9 dots)) by using the values from 00H to 06H.
CONFIDENTIAL TM–U590/U590P Information Manual n indicates the status function as follows: Function Transmit printer status Transmit off-line status Transmit error status Transmit slip status Program Example PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(2); ← Transmits off-line status Printer status (n=1) Off/On Decimal Status Not used. Fixed to Off.
CONFIDENTIAL Error status (n=3) Off/On Decimal Status Not used. Fixed to Off. Not used. Fixed to On. No mechanical error. Mechanical error occurred. — — — Undefined. Not used. Fixed to On. No unrecoverable error. Unrecoverable error occurred. — — —...
Page 42
DLE EOT BS n transmits MICR status in real time when n=1. This command supports the TM-U590/U590P with the MICR option. This command is ignored during a process of transmitting the check paper reading result. With a serial interface model, this command is executed even when the printer is off-line, the receive buffer is full, or an error occurs.
CONFIDENTIAL Mechanism Control Commands The TM-U590/U590P supports the following mechanism control commands: Command Name ESC < Return home ESC U Turn unidirectional printing mode on/off ESC F Set/cancel cut sheet reverse eject ESC q Paper release ESC < [Name] Return home...
Page 44
CONFIDENTIAL TM–U590/U590P Information Manual ESC F n [Name] Set/cancel cut sheet reverse eject [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] ESC F n sets or cancels the slip paper reverse eject. When the LSB (least significant bit) of n is 1, the command sets the slip paper reverse eject.
CONFIDENTIAL MICR Commands The TM-U590/U590P (with the MICR reader) supports the following MICR function commands. MICR status can be confirmed by the DLE EOT BS command. Refer to the Status Commands section for details. Command Name MICR mechanism cleaning FS c...
Page 46
CONFIDENTIAL TM–U590/U590P Information Manual character strings + NULL” to the host computer. In other cases, the printer transmits “header + reading status + NULL” to the host computer. This command is enabled only when processed at the beginning of a line.
Page 47
CONFIDENTIAL FS b retransmits the previous check paper reading results. The transmitted information is the same as that previously sent by FS a 0. If FS a 0 is not executed before FS b, the printer transmits the reading status as “not normal”. Program Example PRINT #1, CHR$(&H1C);"b";...
CONFIDENTIAL TM–U590/U590P Information Manual Miscellaneous Function Commands The TM-U590/U590P supports the following miscellaneous function commands: Command Name GS P Set horizontal and vertical motion units ESC @ Initialize printer GS I Transmit printer ID ESC p Generate pulse ESC =...
Page 49
CONFIDENTIAL Program Example Print Sample PRINT #1, CHR$(&H1D);"P";CHR$(150);CHR$(144); PRINT #1, CHR$(&H1B);"3";CHR$(24); ← Set line spacing PRINT #1, "AAAAA"; CHR$(&HA); AAAAA PRINT #1, "BBBBB"; CHR$(&HA); BBBBB PRINT #1, CHR$(&H1D);"P";CHR$(150);CHR$(72); CCCCC 24/144-inch line spacing PRINT #1, CHR$(&H1B);"3";CHR$(24); ← Set line spacing PRINT #1, "CCCCC"; CHR$(&HA); DDDDD PRINT #1, "DDDDD";...
CONFIDENTIAL TM–U590/U590P Information Manual GS I n [Name] Transmit printer ID [Format] ASCII Decimal 1 ≤ n ≤ 3 [Range] 49 ≤ n ≤ 51 GS I n transmits the printer ID specified by n as follows. Each printer ID consists of 1 byte of data.
Page 51
CONFIDENTIAL ESC p m t1 t2 [Name] Generate pulse [Format] ASCII Decimal [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.
ESC =. For the TM-U590/U590P with the MICR reader, n can be set to 3 only when the printer is in the check paper or cleaning sheet insertion waiting status. The check paper or cleaning sheet insertion waiting status can be confirmed by the DLE EOT BS command.
Page 53
CONFIDENTIAL With a parallel interface model, this command is not executed in the following status because the printer is busy and unable to receive data from the host computer: Receive buffer is full when DIP switch 2-1 is set to On. Printer is off-line, an error occurs, or receive buffer is full when the DIP switch 2-1 is set to Off.
CONFIDENTIAL TM–U590/U590P Information Manual Character Code Tables SP in a table represents space. Refer to page 1-50 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) Rev. A...
CONFIDENTIAL Using the Character Code Tables The example below uses Page 0 (PC437) (see page 1-47) 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.
Page 58
CONFIDENTIAL TM–U590/U590P Information Manual Chapter 2 Application This chapter presents an example illustrating ESC/POS command functions and printing results. The example shows a receipt issuing procedure and its programs for a pre-printed form. Receipt Issuing Procedure Procedure Commands Used Description 1.
CONFIDENTIAL TM–U590/U590P 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 single The TM-U590/U590P supports the commands marked with a in the “ Supported Command” column. The TM-U590/U590P with the MICR reader also supports the commands marked with a O in the “ Supported Command” column. 3-2 Command Reference Rev. A...
Page 62
The TM-U590/U590P supports the commands marked with a in the “ Supported Command” column. The TM-U590/U590P with the MICR reader also supports the commands marked with a O in the “ Supported Command” column. Rev. A Command Reference 3-3...
Page 63
Mechanical extension The TM-U590/U590P supports the commands marked with a in the “ Supported Command” column. The TM-U590/U590P with the MICR reader also supports the commands marked with a O in the “ Supported Command” column. 3-4 Command Reference Rev. A...
Page 64
Software extension The TM-U590/U590P supports the commands marked with a in the “ Supported Command” column. The TM-U590/U590P with the MICR reader also supports the commands marked with a O in the “ Supported Command” column. Rev. A Command Reference 3-5...
Reference Table Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M 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.
Page 66
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M Journal tab Moves the print position to the beginning of the journal paper. DLE EOT Real-time status Transmits a specified transmission status in real time.
Page 67
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M ESC – Turn underline Turns underline mode mode on/off on or off. ESC 2 Select default line Sets the line spacing to spacing 1/6 inch.
Page 68
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M ESC G Turn double-strike Turns double-strike mode on/off mode on or off. ESC J Print and feed Prints the data in the paper print buffer and feeds the paper a specified...
Page 69
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M ESC \ Set relative print Sets the print starting position position based on the current position. ESC a Select justification Aligns all the data in one line to a specified position.
Page 70
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M ESC f Set cut sheet wait Sets the time that the time printer waits for cut sheet to be inserted and the time from insertion of the sheet until printing starts.
Page 71
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M ESC { Turn upside-down Turns upside-down printing mode on/ printing mode on or off. FS ! Select print Selects print mode(s) mode(s) for Kanji for Kanji characters.
Page 72
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M FS a 1 Load check Loads check paper to paper to print the print starting starting position position. FS a 2 Eject check Ejects the check paper.
Page 73
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M GS < Initialize printer Feeds a label to the mechanism print starting position. GS A Adjust label Adjusts the label position to start position relative to the printing...
Page 74
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M GS V Select cut mode Cuts the specified and cut paper paper. GS V Select cut mode Advances the specified and cut paper paper to the cut position and performs...
Page 75
Supported Command TM-300/300M TM-U200 Command Name Function T88/ U375/ H5000/ U950/ U590/ L60II U925 215S T88M U375M H5000M U950M U590M GS k Print bar code Selects a bar code system and prints the bar code. GS r Transmit status Transmits a specified status.