Page 1
U590/U590P Information Manual 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 scroll bar on the right side of this screen to move...
Page 3
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 5
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
MICR characters and printing endorsements. High throughput using bidirectional, minimum distance printing. EPSON customer display series connection (DM-D). Command protocol based on the ESC/POS standard. Automatic Status Back (ASB) function that automatically transmits changes in the printer status.
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:...
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. Supported Commands Page Command...
Page 9
Page Command Name Function Type Number ESC \ Set relative print position Print position 1-22 ESC a Select justification Print position 1-23 ESC c 3 Select paper sensor(s) to output paper-end Paper sensor 1-20 signals ESC c 4 Select paper sensor(s) to stop printing Paper sensor 1-20 ESC c 5...
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.
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 ESC e Print and reverse feed n lines Print and eject cut sheet...
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 ≤...
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
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.
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
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.
Character Commands The TM-U590/U590P supports the following commands for setting character font and size: Command Name Set right-side character spacing ESC SP 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...
Page 18
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 ...
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
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.
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. The extended characters (80H (decimal 128) to FFH (decimal 255)) are different for each page.
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
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
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;...
ESC { n [Name] Turn upside-down printing mode on/off [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] 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.
TM–U590/U590P Information Manual ESC f t1 t2 sets the time from detection of the slip to the start of printing to t2 × 0.1 seconds. t1 is always set to 0 second. When t1=0, the printer continues waiting for a slip to be inserted. The defaults are t1=0, t2=5.
Page 27
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.
TM–U590/U590P Information Manual ESC c 3 n selects whether to output paper-end signals or not to a parallel interface. When the TOF sensor or the BOF sensor is enabled and a paper-end is deleted, the paper-end signal is output. The default setting is (n=0).
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 ≤ n ≤...
Page 30
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.
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.
TM–U590/U590P Information Manual The above commands are enabled only when processed at the beginning of a line. If the above commands set the printing area width to less than the width of a left margin or one character, the printing area width is extended to accommodate one character for the line. The horizontal motion units set by GS P is used.
Page 33
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.
Page 34
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
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). Command Name GS a...
Page 37
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.
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 —...
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.
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. Not used.
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. — — — Undefined.
Page 42
TM–U590/U590P Information Manual DLE EOT BS n [Name] Real-time MICR status transmission [Format] ASCII Decimal [Range] n = 1 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.
Mechanism Control Commands The TM-U590/U590P supports the following mechanism control commands: Command Name Return home ESC < ESC U Turn unidirectional printing mode on/off ESC F Set/cancel cut sheet reverse eject ESC q Paper release ESC < [Name] Return home [Format] ASCII <...
Page 44
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.
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 FS c MICR mechanism cleaning FS a 0 Read check paper FS b...
Page 46
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. Program Example PRINT #1, CHR$(&H1C);"a0";CHR$(0);...
Page 47
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";...
TM–U590/U590P Information Manual Miscellaneous Function Commands The TM-U590/U590P supports the following miscellaneous function commands: Command Name Set horizontal and vertical motion units GS P ESC @ Initialize printer GS I Transmit printer ID ESC p Generate pulse ESC = Select peripheral device DLE ENQ Real-time request to printer GS P x y...
Page 49
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";...
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. Printer ID Specification Hexadecimal : 21H...
TM–U590/U590P Information Manual With a parallel interface model, the default setting is n=1. Program Example Print Sample AAAAA CCCCC PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Printer enabled PRINT #1, "AAAAA"; PRINT #1, CHR$(&H1B);"=";CHR$(2); ← Customer Display Sample Only customer display enabled PRINT #1, "BBBBB"; PRINT #1, CHR$(&H1B);"=";CHR$(3);...
Page 53
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.
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 Command Descriptions 1-47...
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.
HT and prints item B. 4. Print item C HT, LF Sets print position and prints item C. 5 Eject cut sheet Ejects cut sheet. Print Sample RECEIPT EPSON Name Item A ROOM No. GUESTS ARRIVAL DEPARTURE 1317 DEC.
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.
Function Type Supported Function Type Command Name Matrix Category Command Print Print and line feed Basic single commands 1. Print and eject cut sheet (in standard Mechanical extension mode) 2. Print and return to standard mode (in Mechanical extension page mode) 3.
Page 62
TM–U590/U590P Information Manual Supported Function Type Command Name Matrix Category Command Character ESC z Turn parallel printing mode on/off for Mechanical extension commands receipt and journal paper (continued) 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/...
Page 63
Supported Function Type Command Name Matrix Category Command Mechanism ESC < Return home Mechanical extension control ESC F Set/cancel cut sheet reverse eject Mechanical extension commands ESC U Turn unidirectional printing mode on/off Mechanical extension ESC i Partial cut (one point left uncut) Mechanical extension ESC m Partial cut (three points left uncut)
Page 64
TM–U590/U590P Information Manual Supported Function Type Command Name Matrix Category Command Kanji control FS ! Select print mode(s) for Kanji characters Software extension commands FS & Select Kanji character mode Software extension FS – Turn underline mode on/off for Kanji Software extension characters FS .
Page 65
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 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.
Need help?
Do you have a question about the ESC/POS TM-U590 and is the answer not in the manual?
Questions and answers