TM-T88/T88P (TM-T85/T85P) 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. 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 through the text.
® ® Guide to TM-T88/T88P (TM-T85/T85P) 400670500
SEIKO EPSON CORPORATION
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.
SEIKO EPSON CORPORATION SYSTEM DEVICE DIVISION 2070 Kotobuki Koaka, Matsumoto-shi, Nagano-ken 399, Japan
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-T88 and TM-T88P (TM-T85/T85P) can be used as one-station printers for ECR and POS, as ticket-issuing devices, and as output devices for weighing and measuring. The printers have the following features: ❏ Light weight and ultra-compact size. ❏ High speed printing: 16.5 lines per second. (12 lines per second for TM85/T85P). ❏ Low-noise thermal printing. ❏ Easy maintenance for tasks such as head cleaning. ❏ New paper handling enables easy paper roll setting.
Specifications ❏ Printing specifications Printing method: Printing speed: Paper feed speed: Dot density: Printing width: Thermal line printing Approximately 16.5 lines/second (1/6-inch feed) (Approximately 12 lines/second for TM-T85/T85P) Approximately 70 mm/s Approximately 50 mm/s for TM-T85/T85P) 180 dpi × 180 dpi 72 mm (2.83”), 512 dot positions ❏ Character specifications Character fonts: Characters per line: Character size: Character sets: 12 × 24/9 × 24 42/56 1.41(W) × 3.39(H) mm/.99(W) × 3.
Contents Chapter 1 Command Descriptions Using Bit Value Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Print Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Line Spacing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TM-T88/T88P (TM-T85/T85P) 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 V Turn 90 ° clockwise rotation mode on/off Character 1-16 ESC W Set printing area in page mode Print position 1-25 ESC \ Set relative print position Print position 1-22 ESC a Select justification Print position 1-22 ESC c 3 Select paper sensor(s) to output paper-end signals Paper sensor 1-20 ESC c 4 Select paper sensor(s) to stop printing Paper sensor 1-19 ESC c 5 Enable/disable panel buttons Panel button 1-19 ESC d Print and feed n
TM-T88/T88P (TM-T85/T85P) Information Manual ❏ ESC i, ESC u, and ESC v are supported only by TM-T85/T85P. These commands are not recommended. (There are other commands which support the same functions of the above commands.) For the TM-T88/T88P, GS V and GS r can be used as the above commands. ❏ The functions of GS V and ESC c 5 are different for TM-T88/T88P and TM-T85/T85P.
Note that the program examples throughout this chapter use decimal numbers, but binary, decimal, and hexadecimal numbers all have the same printing results. Print Commands The TM-T88/T88P (TM-T85/T85P) supports the following commands for printing characters and advancing paper. When executing printing with the standard mode selected, the printer executes paper feed.
TM-T88/T88P (TM-T85/T85P) Information Manual CR functions in the same way as LF when auto line feed is enabled. Auto line feed can be disabled or enabled by DIP switch 1-1. This command sets the print position to the beginning of the line. When auto line feed is disabled, this command is ignored. This command is available only with a parallel interface and is ignored with a serial interface.
ESC d n prints the data in the print buffer and feeds n lines. The amount of paper fed per line is based on the value set using the line spacing command. The maximum paper feed amount is 40 inches. The default setting of the paper feed amount is 1/6 inch.
TM-T88/T88P (TM-T85/T85P) Information Manual Line Spacing Commands The TM-T88/T88P (TM-T85/T85P) 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 affects the results of LF and ESC d and paper feeding by using the FEED button.
Character Commands The TM-T88/T88P (TM-T85/T85P) 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 Select an international character set ESC t Select character code table ESC ! Select print mode(s) ESC – Turn underline mode on/off ESC E Turn emphasized mode on/off ESC G Turn double-strike mo
TM-T88/T88P (TM-T85/T85P) Information Manual The right-side character spacing can be set independently in standard mode and in page mode.
ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)] defines user-defined characters from character code c1 to c2. y and x are the configuration of a user-defined character. y specifies the number of bytes in the vertical direction. x specifies the number of dots in the horizontal direction. Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can be defined by c1 and c2. Data (d) specifies a bit printed to 1 and not printed to 0.
TM-T88/T88P (TM-T85/T85P) Information Manual ESC R n [Name] Select an international character set [Format] ASCII ESC R n Hex 1B 52 n Decimal 27 82 n [Range] 0 ≤ n ≤ 10 ESC R n selects an international character set n as follows. The default value is U.S.A. (n=0). ASCII code n 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 0 U.S.A.
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 n = 255 ESC t n selects a page n from the character code table as follows. The default setting is page 0 (n=0). 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. n Character Code Table 0 Page 0 [PC437 (U.S.A.
TM-T88/T88P (TM-T85/T85P) Information Manual ESC ! n [Name] Select print mode(s) [Format] ASCII ESC ! n Hex 1B 21 n Decimal 27 33 n 0 ≤ n ≤ 255 [Range] ESC ! n selects print modes using n as follows. The default setting is n=0. This command is effective for all characters (except for HRI characters). When underline mode is turned on, 90° clockwiserotated characters and white/black reverse characters cannot be underlined.
ESC – n [Name] Turn underline mode on/off [Format] ASCII ESC – n Hex 1B 2D n Decimal 27 45 n [Range] 0≤n≤2 48 ≤ n ≤ 50 ESC – n turns underline mode on or off. When n=1 or 49, underline mode (one-dot width) is turned on; when n=2 or 50, underline mode (two-dot width) is turned on; and when n=0 or 48, underline mode is turned off. This command is effective for all characters (except for HRI characters).
TM-T88/T88P (TM-T85/T85P) Information Manual ESC G n [Name] Turn double-strike mode on/off [Format] ASCII ESC G n Hex 1B 47 n Decimal 27 71 n [Range] 0 ≤ n ≤ 255 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 effective for all characters (except for HRI characters).
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] n = 0, 1, 48, 49 ESC V n turns 90° clockwise rotation mode on or off. When n=1 or 49, 90° clockwise rotation mode is turned on; when n=0 or 48, this mode is turned off. The default setting is n=0. In standard mode, this command is enabled only when processed at the beginning of a line.
TM-T88/T88P (TM-T85/T85P) Information Manual Character Width Selection Character Height Selection Hex Decimal Width Hex Decimal Height 00 0 1 (normal) 00 0 1 (normal) 10 16 2 (double width) 01 1 2 (double height) 20 32 3 02 2 3 30 48 4 03 3 4 40 64 5 04 4 5 50 80 6 05 5 6 60 96 7 06 6 7 70 112 8 07 7 8 .
GS b n [Name] Turn smoothing mode on/off [Format] ASCII GS b n Hex 1D 62 n Decimal 29 98 n [Range] 0 ≤ n ≤ 255 GS b n turns smoothing mode on or off. When the LSB (least significant bit) of n is 1, smoothing mode is turned on; when it is 0, smoothing mode is turned off. The default setting is n=0. Smoothing is available for quadruple-size or larger characters.
TM-T88/T88P (TM-T85/T85P) Information Manual Panel Button Command TheTM-T88/T88P ( TM-T85/T85P) supports the following command for enabling and disabling the panel button (FEED): Command Name ESC c 5 Enable/disable panel buttons ESC c 5 n [Name] Enable/disable panel buttons [Format] ASCII ESC c 5 n Hex 1B 63 35 n Decimal 27 99 53 n [Range] 0 ≤ n ≤ 255 ESC c 5 n enables or disables the FEED button.
0 ≤ n ≤ 255 [Range] ESC c 4 n selects whether to stop printing or not when the paper near end is detected. The paper roll near-end sensor is enabled when either bit 0 or bit 1 is on. When a paper near-end is detected, printing stops after printing the current line. The printer goes off-line after printing stops. The default setting is n=0. If the paper roll near-end sensor is disabled and a paper near-end is detected, printing does not stop.
TM-T88/T88P (TM-T85/T85P) Information Manual Bit Off/On Hex Decimal Function Off 00 0 Paper roll end sensor disabled. On 04 4 Paper roll end sensor enabled. Off 00 0 Paper roll end sensor disabled. On 08 8 Paper roll end sensor enabled.
ESC \ nL nH [Name] Set relative print position [Format} ASCII ESC \ nL nH Hex 1B 5C nL nH Decimal 27 92 nL nH [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 ESC $ nL nH sets the print starting position to (nL + nH × 256) × (horizontal or vertical motion unit) from the beginning of the line. When a left margin is set in standard mode, the position of the left margin is the beginning of the line.
TM-T88/T88P (TM-T85/T85P) Information Manual 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. The default setting is left justification (n=0). In standard mode, this command is enabled only when processed at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode.
Program Example Print Sample PRINT #1, "0123456789012345678901234567890123456"; PRINT #1, CHR$(&HA); GOSUB ht 0123456789012345678901234567890123456 H H H H H H HH ↑ ↑ ↑ PRINT #1, CHR$(&H1B);"D";CHR$(10);CHR$(20); Tab position 10 PRINT #1, CHR$(30);CHR$(0); GOSUB ht Default → END 8 Tab position 20 16 Tab position 30 24 32 ht: FOR i=1 TO 4 PRINT #1, CHR$(&H9); "H"; NEXT i PRINT #1, CHR$(&HA); RETURN GS L nL nH [Name] Set left margin [Format] ASCII GS L nL nH Hex 1D 4C nL nH Decimal 2
TM-T88/T88P (TM-T85/T85P) Information Manual If the above commands set the printing area width to less than the width of one character, the printing area width is extended to accommodate one character for the line. The horizontal motion unit uses the horizontal value set by the GS P command. The default setting of the horizontal motion unit is 1/180 inch.
Program Example PRINT #1, CHR$(&H1B);"L";← Select Print Sample page mode PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(180); CHR$(0);CHR$(132);CHR$(3); PRINT #1, CHR$(&H1B);"T";CHR$(0);← Select print direction PRINT #1, "AAAAA"; CHR$(&HA);← Store characters for printing PRINT #1, "BBBBB"; CHR$(&HA);← Store characters for printing PRINT #1, CHR$(&H1B);"T";CHR$(2);← Select AAAAA BBBBB ← Printing area set by ESC W print direction PRINT #1, "CCCCC"; CHR$(&HA);← Store characters fo
TM-T88/T88P (TM-T85/T85P) Information Manual If the starting position is the lower left or upper right of the printing area (n = 1, 3, 49, or 51): ❏ These commands use horizontal motion units: ESC 3, ESC J, GS $, GS \ ❏ These commands use vertical motion units: ESC SP, ESC $, ESC \ Program Example page mode PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0); CHR$(240);CHR$(0);CHR$(224);CHR$(1); PRINT #1, "AAAAA"; CHR$(&HA);← Store characters for printing PRINT #1, "BBBBB"; CHR$(&HA);← Store ch
The horizontal and vertical motion units set by GS P is used for the print direction set by ESC T. If the excessive printing area is selected, it is ignored.
TM-T88/T88P (TM-T85/T85P) Information Manual ESC ✻ m nL nH d1 ... dk selects a bit-image mode using m for the number of dots specified by (nL + nH × 256). Set a bit to 1 to print a dot, or set a bit to 0 to not print a dot. d indicates the bit image data.
GS / m [Name] Print downloaded bit image [Format] ASCII GS / m Hex 1D 2F m Decimal 29 47 m 0≤m≤3 [Range] 48 ≤ m ≤ 51 GS ✻ x y d1 ... d(x × y × 8) defines a downloaded bit image using x × 8 dots in the horizontal direction and y × 8 dots in the vertical direction. Once a downloaded bit image has been defined, it is available until another definition is made; ESC & or ESC @ is executed; the printer is reset; or the power is turned off.
TM-T88/T88P (TM-T85/T85P) Information Manual Program Example Program Example (continued) DATA FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,FF x=16: y=5 DATA FF,FF,F3,CF,FF,FF,FF,F3,CF,FF,FF,FF,F3,CF,C0,0F PRINT #1, CHR$(&H1D);"*";CHR$(x);CHR$(y); FOR i=1 TO x*y*8 READ a$: d=VAL("&H"+a$) Define downloaded bit image DATA C0,03,CF,C0,0F,C0,03,CF,C0,0F,C0,03,CF,C0,0F,C0 DATA 03,CF,C0,0F,C0,03,CF,E0,1F,C0,03,CF,FF,FF,C0,03 DATA CF,FF,FF,CO,03,C7,FF,FF,80,03,C7,FF,FF,80,03,C1 PRINT #1, CHR$(d); DATA FF,
Status Commands The TM-T88/T88P (TM-T85/T85P) 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. ESC u and ESC v are supported only by TM-T85/T85P.
TM-T88/T88P (TM-T85/T85P) Information Manual First byte (printer information) Bit Off/On Hex Decimal Status for ASB 0 Off 00 0 Not used. Fixed to Off. 1 Off 00 0 Not used. Fixed to Off. 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. 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.
Third byte (paper sensor information) Bit Off/On Hex Decimal Status for ASB Off 00 0 Paper roll near-end sensor: paper adequate. On 03 3 Paper roll near-end sensor: paper near end. Off 00 0 Paper roll end sensor: paper present. On 0C 12 Paper roll end sensor: paper not present. 4 Off 00 0 Not used. Fixed to Off. 5, 6 — — — Undefined. 7 Off 00 0 Not used. Fixed to Off. 0, 1 *2, 3 * For TM-T88/T88P, when the cover is open, paper detection may be incorrect.
TM-T88/T88P (TM-T85/T85P) Information Manual Bit Off/On Hex Decimal Status Off 00 0 Paper roll end sensor: paper present. On (0C) (12) Paper roll end sensor: paper not present. 4 Off 00 0 Not used. Fixed to Off. 5, 6 — — — Undefined. 7 Off 00 0 Not used. Fixed to Off. *2, 3 * For TM-T88/T88P, when the cover is open, paper detection may be incorrect. 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.
n indicates the status function as follows: n Function 1 Transmit printer status 2 Transmit off-line status 3 Transmit error status 4 Transmit paper roll sensor 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.
TM-T88/T88P (TM-T85/T85P) Information Manual Bit Off/On Hex Decimal Status Off 00 0 No error. On 40 64 Error occurred. Off 00 0 Not used. Fixed to Off. 6 7 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. 2 — — — Undefined. Off 00 0 No auto-cutter error. On 08 8 Auto-cutter error occurred. On 10 16 Not used. Fixed to On. Off 00 0 No unrecoverable error.
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 when n=0 or 48. This command allows the host to determine the status of a peripheral device. GS r is preferred for checking the status because ESC u is not a recommended command. This command is supported only by TM-T85/T85P.
TM-T88/T88P (TM-T85/T85P) Information Manual 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. On 03 3 Paper roll near-end sensor: paper near end. Off 00 0 Paper roll end sensor: paper present. On (0C) (12) Paper roll end sensor: paper not present. 4 Off 00 0 Not used. Fixed to Off. 5, 6 — — — Undefined. 7 Off 00 0 Not used. Fixed to Off.
Program Example PRINT #1, CHR$(&H1D);"h";CHR$(50);← Set Print Sample ← Height: 50 dots height to 50 PRINT #1, CHR$(&H1D);"k";CHR$(2);← Print bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"h";CHR$(100);← Set ← Height: 100 dots height to 100 PRINT #1, CHR$(&H1D);"k";CHR$(2);← Print bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); GS w n [Name] Set bar code width [Format] ASCII GS w n Hex 1D 77 n Decimal 29 119 n [Range] 2≤n≤6
TM-T88/T88P (TM-T85/T85P) Information Manual Program Example PRINT #1, CHR$(&H1D);"w";CHR$(3);← Set Print Sample width size to 3 PRINT #1, CHR$(&H1D);"k";CHR$(2);← Print bar code PRINT #1, "496595707379";CHR$(0); ← Width size 3 PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"w";CHR$(4);← Set width size to 4 PRINT #1, CHR$(&H1D);"k";CHR$(2);← Print ← Width size 4 bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"w";CHR$(5);← Set width size to 5 PRINT #1, CHR$(&H
➀ GS k m d1 ... dk NUL ➁ GS k m n d1 ... dn [Name] Print bar code [Format] ➀ ASCII GS k m d1 ... dk NUL Hex 1D 6B m d1 ... dk 00 Decimal 29 107 m d1 ... dk 0 ➁ ASCII GS k m n d1 ... dn Hex 1D 6B m n d1 ... dn Decimal 29 107 m n d1 ... dn ➀ 0 ≤ m ≤ 6 (k and d depend on the bar code system used) [Range] ➁ 65 ≤ m ≤ 73 (n and d depend on the bar code system used) ➀ GS k m d1 ... dk NUL and ➁ GS k m n d1 ... dn select a bar code system and print the bar code.
TM-T88/T88P (TM-T85/T85P) Information Manual Program Example Print Sample PRINT #1, CHR$(&H1D);"k";CHR$(2);← Print bar code PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"k";CHR$(67);CHR$(12); PRINT #1, "496595707379";← Print bar code GS H n [Name] Select printing position of HRI characters [Format] ASCII GS H n Hex 1D 48 n Decimal 29 72 n [Range] 0≤n≤3 48 ≤ n ≤ 51 GS f n [Name] Select font for HRI characters [Format] ASCII GS f n Hex 1D 66 n
GS f n selects a font for the HRI characters used when printing a bar code. When n=0 or 48, the font A (12 × 24) is selected. When n=1 or 49, the font B (9 × 24) is selected. The default setting is n=0. HRI characters are printed at the position specified by GS H.
TM-T88/T88P (TM-T85/T85P) Information Manual GS : starts or ends macro definition. Macro definition starts when this command is received during normal operation and ends when it is received during macro definition. If the printer receives this command again immediately after previously receiving it, the printer remains in the macro undefined state. The macro definition can contain up to 2048 bytes. If the macro definition exceeds this value, the excess data is not stored.
Mechanism Control Commands TheTM-T88/T88P (TM-T85/T85P) supports the following mechanism control commands. Cutting is diffferent for TM-T88/T88P and TM-T85/T85P. A full cut of GS V and ESC i are supported only by TM-T85/T85P.
TM-T88/T88P (TM-T85/T85P) Information Manual When m=66 in GS V m n, the printer feeds the paper to (cutting position + n × vertical motion unit) and executes a partial cut (one point left uncut). For TM-T85/T85P, when m=65, the printer feeds the paper to (cutting position + n × vertical motion unit) and executes a full cut. The vertical motion unit is specified by GS P. The default setting of the vertical motion unit is 1/360 inch.
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 [Range] 0 ≤ x ≤ 255 0 ≤ y ≤ 255 GS P x y sets the horizontal and vertical motion units to 1/x and 1/y inches, respectively. The horizontal and vertical motion units indicate the minimum pitch used for calculating the values of related commands (shown below). The default values are x=180 and y=360. These values equal a normal dot pitch in horizontal and half dot pitch in vertical.
TM-T88/T88P (TM-T85/T85P) Information Manual ESC @ initializes the printer. All settings, including character font and line spacing settings, are canceled. The data in the print buffer is cleared and the printer mode is reset to the mode that was in effect when the power was turned on. The DIP switch settings are not checked again, the data in the receive buffer is not cleared, and any macro definitions are not cleared.
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 m = 0, 1, 48, 49 [Range] 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. When m=0 or 48, the pulse is sent to drawer kick-out connector pin 2; when m=1 or 49, the pulse is sent to drawer kick-out connector pin 5.
TM-T88/T88P (TM-T85/T85P) Information Manual When the printer is disabled, it ignores all received data with the exception of DLE ENQ 1 and DLE ENQ 2. The default setting is n=1. If ASB is enabled when the printer is disabled by ESC =, the printer transmits a 4-byte status message whenever the status changes.
Program Example PRINT #1, CHR$(&H1B);"L";← Select Print Sample AAAAA page mode PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0); CHR$(0);CHR$(60);CHR$(0);CHR$(180);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$(0);← Select BBBBB CCCCC print direction PRINT #1, "AAAAA"; CHR$(&HA);← Store characters for printing PRINT #1, "BBBBB"; CHR$(&HA);← Store characters for printing PRINT #1, "CCCCC"; PRINT #1, CHR$(&H1B);CHR$(&HC)← Batch PRINT #1, CHR$(&H1B);"S";← Select print standard mode DLE ENQ n [Name] Rea
TM-T88/T88P (TM-T85/T85P) Information Manual 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. n Request 1 Restarts printing from the beginning of the line where an error occurred, after recovering from the error.
Character Code Tables SP in a table represents space. Refer to page 1-58 for information on how to read these tables. Page 0 (PC437: U.S.A., Standard Europe) (International character set: U.S.A) 1-54 Command Descriptions Rev.
TM-T88/T88P (TM-T85/T85P) Information Manual Page 1 (Katakana) Page 2 (PC850: Multilingual) Rev.
Page 3 (PC860: Portuguese) Page 4 (PC863: Canadian-French) 1-56 Command Descriptions Rev.
TM-T88/T88P (TM–T85/T85P) Information Manual Page 5 (PC865: Nordic) Rev.
Using the Character Code Tables The example below uses Page 0 (PC437) (see page 1-54) 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. Hexadecimal......4 Binary .................0100 These numbers are the most significant bits of the ASCII code. Follow its row to the left to find the digits. Hexadecimal......1 Binary .................
TM-T88/T88P (TM–T85/T85P) Information Manual Chapter 2 Application This chapter presents an example illustrating ESC/POS command functions and printing results. The example shows how to issue a coupon containing bar codes with the TM-T88. Coupon Issuing Procedure Commands Used Description 1. Print message A ESC a, LF, GS !, ESC !, GS b, ESC J Sets the print position to the center with ESC a. Changes the font size with GS ! and ESC ! and prints message A.
Program Example PRINT #1, CHR$(&H1B);"@";← Initializes the printer PRINT #1, CHR$(&H1B);"a";CHR$(1);← Selects center print position PRINT #1, "LUCKY NOW OFFERS CHECKOUT COUPONS!";CHR$(&HA); PRINT #1, " ";CHR$(&HA); PRINT #1, "GOOD FRI SEPT.
TM–T88/T88P (TM–T85/T85P) 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 Command Function Type Print commands Line spacing commands Character commands Command Name Matrix Category T88 T88M T85 ● ● ● ● ● ● LF Print and line feed Basic single FF 1. Print and eject cut sheet (in standard mode) Mechanical extension 2. Print and return to standard mode (in page mode) Mechanical extension 3.
TM–T88/T88P (TM–T85/T85P) Information Manual Supported Command Function Type Character commands (continued) Paper sensor commands Panel button commands Printing paper commands Print position commands Command Name Matrix Category T88 T88M T85 ESC z Turn parallel printing mode on/off for receipt and journal paper 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
Supported Command Function Type Command Name Matrix Category T88 Mechanism control commands Status commands Bit-image commands Bar code commands Macro function commands MICR commands T88M T85 ESC < Return home Mechanical extension ESC F Set/cancel cut sheet reverse eject Mechanical extension 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) Mechanical extension
TM–T88/T88P (TM–T85/T85P) Information Manual Supported Command Function Type Command Name Matrix Category T88 Kanji control commands Miscellaneous function commands T88M T85 FS ! Select print mode(s) for Kanji characters Software extension ● FS & Select Kanji character mode Software extension ● FS – Turn underline mode on/off for Kanji characters Software extension ● FS .
3-6 Reference Table Supported Command Command Name HT LF FF Horizontal tab Function 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.
Supported Command Command Name RS DLE EOT Journal tab Real-time status transmission Function TMT85 TMT88/ T88M TML60II TM-300/300M A B C TM-U200 D B D TMU375/ U375M ESC FF TMU925 Moves the print position to the beginning of the journal paper. Transmits a specified status in real time. Real-time request Responds to a request to printer from the host computer in real time.
3-8 Supported Command Command Name Function TMT88/ T88M TML60II A B C D B ● ● ● O O O O TM-300/300M TM-U200 D TMU375/ U375M TMH5000/ H5000M TMU925 TMU950/ U950M ● ● ● ● ● ● TM295 TM215S ESC – Turn underline mode on/off ESC 2 Select default line Sets the line spacing to spacing 1/6 inch. ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ESC 3 Set line spacing Sets the line spacing to a specified value.
Supported Command Command Name Function TMT85 TMT88/ T88M TML60II A B C D B TM-300/300M TM-U200 D TMU375/ U375M TMH5000/ H5000M TMU925 TMU950/ U950M TM295 TM215S ● ESC G Turn double-strike mode on/off Turns double-strike mode on or off. ● ● ● O O O O ● ● ● ● ● ● ESC J Print and feed paper Prints the data in the print buffer and feeds the paper a specified distance.
3-10 Supported Command TMT85 TMT88/ T88M TML60II Sets the print starting position based on the current position. ● ● ● Select justification Aligns all the data in one line to a specified position. ● ● ● Command Name ESC \ ESC a Set relative print position Function ESC c 0 Select paper Selects paper type(s) for type(s) for printing printing.
Supported Command Command Name ESC f ESC i Function TML60II TM-300/300M A B Partial cut (three points left uncut) Executes a partial cut of the paper with three points left uncut. ESC o Stamp Executes stamp printing. ESC p Generate pulse Outputs a specified pulse to a specified connector pin. ESC q 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.
3-12 Supported Command Command Name ESC { FS ! Function Turn upside-down Turns upside-down printing mode on/ printing mode on or off. off TMT85 TMT88/ T88M TML60II A B C D B ● ● ● ● ● ● ● ● O O O O TM-300/300M TM-U200 D TMU375/ U375M TMH5000/ H5000M TMU925 TMU950/ U950M TM295 TM215S ● ● ● ● ● ● ● O O O O Select print mode(s) for Kanji characters Selects print mode(s) for Kanji characters. FS & Select Kanji character mode Selects Kanji character mode.
Supported Command Command Name FS a 1 Function Load check paper to print starting position Loads check paper to the print starting position. 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.
3-14 Supported Command Command Name Function TMT85 TMT88/ T88M TML60II GS < Initialize printer mechanism Feeds a label to the print starting position. ● GS A Adjust label position to start printing Adjusts the label position relative to the default position. ● Turn white/black reverse printing mode on/off Turns white/black reverse printing mode on or off. GS C 0 Select counter print mode Selects a print mode for the serial counter.
Supported Command Command Name Function TMT85 TMT88/ T88M TML60II TM-300/300M A B C TM-U200 D B D TMU375/ U375M TMH5000/ H5000M GS V Select cut mode and cut paper Cuts the specified paper. ● ● ● GS V Select cut mode and cut paper Advances the specified paper to the cut position and performs the cut. ● ● ● GS W Set printing area width Sets the printing area width to a defined area.
3-16 Supported Command Command Name GS k Print bar code TMT85 TMT88/ T88M TML60II Selects a bar code system and prints the bar code. ● ● ● Function GS r Transmit status Transmits a specified status. ● ● ● GS w Set bar code width Sets the horizontal size of the bar code. ● ● ● GS z 0 Set on-line recovery wait time Sets the on-line recovery wait time.