ESC POS Guide2
ESC POS Guide2
ESC/POS EPSON ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS
CONFID ENTIAL
TM-T88II
Features Specifications Self test Hex dump Supported commands
ESC/POS EPSON ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS
CONFID ENTIAL
TM-L60II
Features Specifications Self test Hex dump Supported commands
ESC/POS EPSON ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS
CONFID ENTIAL
TM-U200B/D
Features Specifications Self test Hex dump Supported commands
ESC/POS EPSON ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS
CONFID ENTIAL
TM-U300A/B
Features Specifications Self test Supported commands
CONFIDENTIAL
USABLE APPLICATION PROGRAMS AND TIPS
System Processing
sss sss
more
This example illustrates ESC/POS command functions and printing results. It shows a receipt issue processing and its procedure using the TM-U200B.
Print Sample
EPSON
Thank you
Stamp
15:00
TOTAL
PAID CHANGE
$58.00
Item B $60.00 $2.00
Cutting Position
CONFIDENTIAL
System Processing Procedure
Procedure 1. Stamp printing Commands used Description
sss sss
more
ESC 3, ESC a, ESC !, Specifies a print position to the center by using the ESC a ESC U, ESC 2, LF, CR command. Prints stamp data in the center of the paper roll in the unidirectional mode. Adjusts line spacing for line data being continuous. Specifies a print position to the left by using the ESC a command after printing the date and time in the center of the paper roll. Selects the 7 x 9 font by using the ESC ! command and prints Item A. Specifies double-height by using the ESC ! command, and prints TOTAL in the unidirectional mode. Cancels doubleheight and prints in the bidirectional mode for other lines. Feeds the paper to the cutting position and executes cutting.
5. Cut paper
GS V
CONFIDENTIAL
Programming Example
PRINT #1, CHR$(&H1B);"@"; GOSUB stamp PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1,
sss sss
more
Initializes
the printer
Prints
stamp Specifies a centered printing position Specifies 9 x 9 font Adjusts line spacing Prints date and time
CHR$(&H1B);"!";CHR$(1); Selects 7 x 9 font "TM-U200B $20.00";CHR$(&HA); "TM-U200D $21.00";CHR$(&HA); "PS-170 $17.00";CHR$(&HA); CHR$(&HA); CHR$(&H1B);!;CHR$(17); Selects double-height mode CHR$(&H1B);U;CHR$(1); Selects uni-directional printing "TOTAL $58.00";CHR$(&HA); CHR$(&H1B);"U";CHR$(0); Cancels uni-directional printing CHR$(&H1B);!;CHR$(0); Cancels double-height mode "------------------------------";CHR$(&HA); $60.00";CHR$(&HA); $ 2.00";CHR$(&HA);
Item A
Item B
Feeds
CONFIDENTIAL
Programming Example (continued)
Stamp: PRINT #1, CHR$(&H1B);"3";CHR$(18); Sets line spacing PRINT #1, CHR$(&H1B);"U";CHR$(1); Selects uni-directional printing PRINT #1, CHR$(&H1B);"a";CHR$(1); Selects center print position PRINT #1, CHR$(&H1B);"!";CHR$(48); Selects double-height and double-width modes For I = 1 T0 14*2 READ d$: PRINT #1, CHR$(VAL (&H+d$)); NEXT I PRINT #1, CHR$(&H1B);!;CHR$(0); Cancels double-height and double-width modes PRINT #1, Thank you;CHR$(&HD); Printing with CR
sss sss
more
Prints stamp
CONFIDENTIAL
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 READ d$: PRINT #1, CHR$(VAL(&H+d$)); NEXT I PRINT #1,CHR$(&H1B);U;CHR$(0); Cancels uni-directional printing PRINT #1,CHR$(&HB);2; RETURN
sss sss
more
Prints stamp
0A 0A 0A 0A
Stamp data
CONFIDENTIAL
sss sss
more
Print Sample
Print using CR
CONFIDENTIAL
sss sss
more
<ESC d: Print and feed n lines> The command is used to feed paper continuously. The printing result is the same as when transmitting LF n times continuously. Using ESC d enables you to feed paper smoothly and to shorten paper feed time, since LF is used for repeating one line paper feed n times. However, ESC d is used to feed paper for n lines. <ESC J: Print and feed paper> This command is used to adjust line spacing. ESC J n has the same printing result as when transmitting LF after setting line spacing with ESC 3. If you use [ESC 3 + LF], you need to reset line spacing when printing the next line. If you use ESC J, the current line spacing is not changed and it is possible to print the next line without resetting the line spacing. <Other print commands> Special print commands are shown below: Some printers support the commands. s ESC K or ESC e is used to feed paper in the reverse direction. s FF or ESC FF is used to print page mode data. s FF or GS FF is used to print a label.
CONFIDENTIAL
System Processing
sss sss
more
This example illustrates ESC/POS command functions and printing results. It shows a receipt issue processing with a bar code and its procedure using the TM-T88II. Set DIP switch 2-1 of the TM-T88II to On (customer display connected), insert the plug of the DM-D102 firmly into the customer display connector (DM-D) which is on the bottom of the printer, and then turn on the printer power. Refer to GS k for a bar code printing in detail.
Print Sample
YOUR RECEIPT
Thank you December 10, 1997 15:00
Stamp
TM-T88 PS-170
$88.00 $17.00
TOTAL
PAID CHANGE
$105.00
$110.00 $5.00
Item
Bar code
T 0 0 0 2 1T
Paper cutting
CONFIDENTIAL
System Processing Procedure
Procedure 1. Set a default 2. Define stamp data 3. Stamp Commands used Description
sss sss
more
ESC @, ESC D, GS P Set a horizontal tab position and horizontal and vertical motion units. GS T ESC a, GS /, ESC J, LF, ESC d Define a downloaded bit image for a stamp. After selecting the center justification for the printing position with ESC a , print the stamp (downloaded bit image), date, and time.
ESC a, HT, LF, GS !, After selecting the left justification for the printing position ESC d with ESC a, print an item. Align the character columns with HT. ESC a, ESC J, GS h, GS H, GS f, GS k GS V Print a message Bonus point and a bar code. The example uses CODE39 bar code. Execute cutting.
CONFIDENTIAL
Programming Example
PRINT #1, CHR$(&H1B);"@"; Initialize the printer PRINT #1, CHR$(&H1B);"D";CHR$(34);CHR$(0) Set horizontal tab position PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180) Set horizontal and vertical motion units PRINT #1, CHR$(&H1D);"*";CHR$(30);CHR$(5); FOR i=1 TO 1200 READ a$ PRINT #1, CHR$(VAL(&H+a$)); NEXT i PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, CHR$(&H1B);"a";CHR$(1); Justification (center) CHR$(&H1D);"/";CHR$(2); Print the downloaded bit image CHR$(&H1B);"J";CHR$(8); Paper feed Thank you; CHR$(&HA); December 10, 1997 15:00; CHR$(&H1B);"d";CHR$(3); Print and 3-line paper feed CHR$(&H1B);"a";CHR$(0); Justification (left) TM-T88;CHR$(&H9);" $88.00";CHR$(&HA); PS-170;CHR$(&H9);" $17.00";CHR$(&HA);CHR$(&HA); CHR$(&H1D);"!";CHR$(1); Select font size (double-height) TOTAL;CHR$(&H9);"$105.00";CHR$(&HA); CHR$(&H1D);"!";CHR$(0); Select font size (standard) ---------- - - - - - - - - - - - - - - - - - - - - - - - - - -";CHR$(&HA); PAID;CHR$(&H9);"$110.00";CHR$(&HA); CHANGE;CHR$(&H9);" $5.00"; CHR$(&H1B);"d";CHR$(3); Print and 3-line paper feed CHR$(&H1B);"a";CHR$(1); Justification (center) <<Bonus points : 21>>"; CHR$(&H1B);J;CHR$(35); Print and paper feed CHR$(&H1D);"h";CHR$(50); Set bar code height CHR$(&H1D);"H";CHR$(2); Select printing position of HRI characters CHR$(&H1D);"f";CHR$(1); Select font for HRI characters CHR$(&H1D);"k";CHR$(4);"*00021*";CHR$(0); Print bar code
Set a default
sss sss
more
Stamp
Print an item
Paper
cut
CONFIDENTIAL
Programming Example (continued)
DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA 15,55,55,55,50,2A,AA,AA,AA,A8,55,55,55,55,54,A0,00,00,00,0A,40,00,00,00,04 80,00,00,00,02,40,00,00,00,04,80,00,00,00,02,48,00,00,00,04,85,00,00,00,02 4A,A0,00,00,04,85,54,00,00,02,4A,AA,80,00,04,85,55,50,00,02,40,AA,A8,00,04 80,15,54,00,02,40,02,AA,AA,A4,80,00,55,55,42,40,00,0A,AA,A4,80,00,55,55,42 40,02,AA,AA,A4,80,15,54,00,02,40,AA,A8,00,04,85,55,50,00,02,4A,AA,80,00,04 85,54,00,00,02,4A,A0,00,00,04,85,00,00,00,02,48,00,00,00,04,80,00,00,00,02 40,2A,AA,A8,04,80,55,55,54,02,40,AA,AA,AA,04,81,55,55,55,02,42,AA,AA,AA,84 85,40,00,05,42,4A,80,00,02,A4,85,00,00,01,42,4A,80,00,02,A4,85,00,00,01,42 4A,80,00,02,A4,85,00,00,01,42,4A,80,00,02,A4,85,00,00,01,42,4A,80,00,02,A4 85,40,00,05,42,42,AA,AA,AA,84,81,55,55,55,02,40,AA,AA,AA,04,80,55,55,54,02 40,2A,AA,A8,04,80,00,00,00,02,40,00,00,00,04,80,00,00,00,02,4A,AA,AA,A8,04 85,55,55,54,02,4A,AA,AA,AA,04,85,55,55,55,02,4A,AA,AA,AA,84,80,00,00,05,42 40,00,00,02,A4,80,00,00,01,42,40,00,00,02,A4,80,00,00,01,42,40,00,00,02,A4 80,00,00,01,42,40,00,00,02,A4,80,00,00,01,42,40,00,00,02,A4,80,00,00,05,42 4A,AA,AA,AA,84,85,55,55,55,02,4A,AA,AA,AA,04,85,55,55,54,02,4A,AA,AA,A8,04 80,00,00,00,02,40,00,00,00,04,80,00,00,00,02,4A,AA,AA,AA,A4,85,55,55,55,42 4A,AA,AA,AA,A4,85,55,55,55,42,4A,AA,AA,AA,A4,85,00,14,00,02,4A,80,2A,00,04 85,00,14,00,02,4A,80,2A,00,04,85,00,15,00,02,4A,80,2A,80,04,85,00,15,40,02 4A,80,2A,AA,A4,85,55,55,55,42,42,AA,A8,AA,A4,81,55,50,55,42,40,AA,A0,2A,A4 80,55,40,00,02,40,00,00,00,04,80,00,00,00,02,40,00,00,00,04,80,00,00,00,02 40,00,00,00,04,80,00,00,00,02,40,00,00,00,04,80,00,00,00,02,4A,AA,AA,AA,A4 85,55,55,55,42,4A,AA,AA,AA,A4,85,55,55,55,42,4A,AA,AA,AA,A4,85,00,14,00,02 4A,80,2A,00,04,85,00,14,00,02,4A,80,2A,00,04,85,00,15,00,02,4A,80,2A,80,04 85,00,15,40,02,4A,80,2A,AA,A4,85,55,55,55,42,42,AA,A8,AA,A4,81,55,50,55,42 40,AA,A0,2A,A4,80,55,40,00,02,40,00,00,00,04,80,00,00,00,02,40,00,00,00,04 8A,AA,AA,AA,A2,45,55,55,55,44,8A,AA,AA,AA,A2,45,55,55,55,44,8A,AA,AA,AA,A2 45,00,50,01,44,8A,80,A8,02,A2,45,00,50,01,44,8A,80,A8,02,A2,45,00,50,01,44 8A,80,A8,02,A2,45,00,50,01,44,8A,80,A8,02,A2,45,00,00,01,44,8A,80,00,02,A2 40,00,00,00,04,80,00,00,00,02,40,00,00,00,04,80,15,55,50,02,40,2A,AA,A8,04 80,55,55,54,02,40,AA,AA,AA,04,81,55,55,55,02,42,A0,00,0A,84,85,40,00,05,42 4A,80,00,02,A4,85,00,00,01,42,4A,80,00,02,A4,85,00,00,01,42,4A,80,00,02,A4 85,00,00,01,42,4A,80,00,02,A4,85,00,00,01,42,4A,80,00,02,A4,80,00,00,00,02 40,00,00,00,04,80,00,00,00,02,4A,AA,AA,AA,A4,85,55,55,55,42,4A,AA,AA,AA,A4
sss sss
more
CONFIDENTIAL
Programming Example (continued)
DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA 85,55,55,55,42,4A,AA,AA,AA,A4,85,00,50,01,42,4A,80,A8,02,A4,85,00,50,01,42 4A,80,A8,02,A4,85,00,50,01,42,4A,80,A8,02,A4,85,00,50,01,42,4A,80,A8,02,A4 85,00,00,01,42,4A,80,00,02,A4,80,00,00,00,02,40,00,00,00,04,80,00,00,00,02 40,00,00,00,04,8A,AA,AA,AA,A2,45,55,55,55,44,8A,AA,AA,AA,A2,45,55,55,55,44 8A,AA,AA,AA,A2,40,00,00,00,04,80,00,00,00,02,40,00,00,00,04,80,00,00,00,02 4A,AA,AA,AA,A4,85,55,55,55,42,4A,AA,AA,AA,A4,85,55,55,55,42,4A,AA,AA,AA,A4 85,00,14,00,02,4A,80,2A,00,04,85,00,14,00,02,4A,80,2A,00,04,85,00,14,00,02 4A,80,2A,00,04,85,00,14,00,02,4A,80,2A,00,04,85,55,54,00,02,42,AA,A8,00,04 81,55,50,00,02,40,AA,A0,00,04,80,55,40,00,02,40,00,00,00,04,80,00,00,00,02 4A,80,00,00,04,85,00,00,00,02,4A,80,00,00,04,85,00,00,00,02,4A,80,00,00,04 85,00,00,00,02,4A,80,00,00,04,85,00,00,00,02,4A,AA,AA,AA,A4,85,55,55,55,42 4A,AA,AA,AA,A4,85,55,55,55,42,4A,AA,AA,AA,A4,85,00,00,00,02,4A,80,00,00,04 85,00,00,00,02,4A,80,00,00,04,85,00,00,00,02,4A,80,00,00,04,85,00,00,00,02 4A,80,00,00,04,80,00,00,00,02,40,00,00,00,04,80,00,00,00,02,40,00,00,00,04 A0,00,00,00,0A,55,55,55,55,54,2A,AA,AA,AA,A8,15,55,55,55,50,00,00,00,00,00
sss sss
more
CONFIDENTIAL
Tips (bar code printing)
sss sss
more
Some printers such as the TM-T88II and TM-L60II support bar code printing. ESC/POS supports UPC-A, UPC-E, JAN13(EAN13), JAN8(EAN8), CODE39, ITF (interleaved 2 of 5), CODABAR(NW7), CODE93, and CODE128. When the standard mode is selected, a bar code and a character cannot be printed on the same printing line and a ladder bar code cannot be printed. Page mode, which has a flexible layout for printing a character, a bit image, and a bar code, should be selected when printing a bar code and a character on the same line or printing a ladder code. When page mode is selected, a character and a bar code can be overlapped but the bar code cannot be read. Be sure to check data layout so that a bar code can be scanned. Basic processing for bar code printing (example): Procedures: 1. Select a bar code height with GS h. The height of a HRI character cannot be selected by GS h. 2. Select a bar code width with GS w. 3. Select the printing position for HRI characters with GS H. 4. Select a font for HRI characters with GS f. The setting affects only the HRI characters. 5. Print a bar code with GS k. Procedures 1 to 4 can be omitted. If there is no specified value, a default value is used. The settings from 1 to 4 are effective until the printer is initialized (ESC @), reset, or is turned off. GS k in procedure 5 supports both functions storing a bar code data in the print buffer and printing. Therefore, no print command is needed.
CONFIDENTIAL
sss sss
more
Causes for a bar code not printing: 1. The bar code width set by GS w is so large that not all data will fit in the current printing area. 2. There are so many bar code data set by GS k that not all data will fit in the current printing area. 3. There is character data which cannot be printed with a bar code set by GS k. 4. The number of bar code data is few when selecting UPC-A, UPC-E, JAN13(EAN13), or JAN8(EAN8) with GS k. 5. When selecting ITF bar code with GS k, bar code data is an odd number. 6. When selecting CODE128 with GS k, the first data is none of CODE A, CODE B, and CODE C. There might be character data which is not included in the specified code set. 7. When processing GS k in standard mode, there is already print data in the print buffer. 8. When processing GS k in page mode, the printing position is already outside of the printing area.
CONFIDENTIAL
Page Mode Printing
sss sss
more
This example illustrates ESC/POS command functions and printing results. The example shows a coupon issue processing and its procedure using page mode function with the TM-T88II. You can use the page mode to rotate data so that you can print characters, bar codes, and bit images that would not fit in the printable area in the standard mode.
Print Sample
CONFIDENTIAL
System Processing Procedure
Procedure 1. Select page mode Commands used ESC L, GS P Description
sss sss
more
Select page mode. Change horizontal and vertical motion units to set normal dot units.
2. Transmit edge data ESC W, ESC T, ESC T Select the printing area for edge data with ESC W and the printing direction with ESC T. Transmit the edge data as bit image. 3. Transmit a message ESC W, ESC T, GS !, LF, ESC J 4. Transmit data for symbols A and B 5. Transmit bar code data ESC W, ESC T, ESC 3, ESC T ESC W, ESC T, GS H GS f, GS h, GS w, GS $, GS k ESC FF, GS V Select the printing area for message data with ESC W and the printing direction with ESC T. Select a character size with GS ! and transmit message data. Select the printing area for symbol data with ESC W and the printing direction with ESC T. Transmit data for symbols A and B as bit image. Select the printing area for a bar code with ESC W and the printing direction with ESC T. After setting bit images with GS H and GS f , etc., transmit data for CODE 39 bar code to the printing position set by GS $. Print all data collectively in page mode and cut paper. Return to standard mode. All data in page mode are cleared.
When printing multiple coupons, transmits ESC FF and GS V times you want to print in procedure 6.
CONFIDENTIAL
Program Example
PRINT #1, CHR$(&H1B);"@"; PRINT #1, CHR$(&H1B);"L";
sss sss
more
Initialize the printer Select page mode Set horizontal and vertical motion units
PRINT #1, CHR$(&H1B);"W";CHR$(6);CHR$(0);CHR$(0);CHR$(0);CHR$(244);CHR$(1);CHR$(238);CHR$(2); PRINT #1, CHR$($H1B);"T";CHR$(0); n=10: GOSUB Edge PRINT #1, CHR$(&H1B);"T";CHR$(1); n=15: GOSUB Edge PRINT #1, CHR$(&H1B);"T";CHR$(2); n=10: GOSUB Edge PRINT #1, CHR$(&H1B);"T";CHR$(3); n=15: GOSUB Edge PRINT #1, CHR$(&H1B);"W";CHR$(140);CHR$(0);CHR$(118);CHR$(0);CHR$(104);CHR$(1);CHR$(16);CHR$(2); PRINT #1, CHR$(&H1B);"T";CHR$(1); PRINT #1, CHR$(&H1D);"!";CHR$(17); PRINT #1, CHR$(&HA);" Merry Christmas !!";CHR$(&HA);CHR$(&HA); PRINT #1, CHR$(&H1D);"!";CHR$(16); PRINT #1, " 10% OFF COUPON";CHR$(&H1B);"J":CHR$(200); PRINT #1, "EPSON DEPARTMENT STORE";
Transmit a message
Select printing direction (bottom to up) Select printing direction (right to left) Select printing direction (up to bottom) Select printing direction (bottom to up)
Transmit edge data
PRINT #1, CHR$(&H1B);"3";CHR$(24); PRINT #1, CHR$(&H1B);"*";CHR$(0);CHR$(34);CHR$(0) FOR c=1 to 34 READ a$: PRINT #1, CHR$(VAL("&H"+a$));:NEXT c PRINT #1, CHR$(&H1B);"*";CHR$(0);CHR$(34);CHR$(0) FOR c=1 to 34 READ a$: PRINT #1, CHR$(VAL("&H"+a$));:NEXT c PRINT #1, CHR$(&H1B);"*";CHR$(0);CHR$(34);CHR$(0) FOR c=1 to 34 READ a$: PRINT #1, CHR$(VAL("&H"+a$));:NEXT c
Transmit data for symbol A
CONFIDENTIAL
Program Example (continued)
PRINT #1, CHR$(&H1B);"W";CHR$(58);CHR $(1);CHR$(102);CHR$(0);CHR$(72);CHR$(0);CHR$(96);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$(1);
sss sss
more
PRINT #1, CHR$(&H1B);"*";CHR$(0);CHR$(48);CHR$(0) FOR c=1 to 48 READ a$: PRINT #1, CHR$(VAL("&H"+a$));:NEXT c PRINT #1, CHR$(&H1B);"*";CHR$(0);CHR$(48);CHR$(0) FOR c=1 to 48 READ a$: PRINT #1, CHR$(VAL("&H"+a$));:NEXT c PRINT #1, CHR$(&H1B);"*";CHR$(0);CHR$(48);CHR$(0) FOR c=1 to 48 READ a$: PRINT #1, CHR$(VAL("&H"+a$));:NEXT c PRINT #1, CHR$(&H1B);"W";CHR$(20);CHR $(1);CHR$(226);CHR$(0);CHR$(70);CHR$(0);CHR$(56);CHR$(1); PRINT #1, CHR$(&H1B);"T";CHR$(1); PRINT #1, CHR$(&H1D);"H";CHR$(2); PRINT #1, PRINT #1, PRINT #1, PRINT #1,
Transmit data for symbol B
Select printing direction (bottom to up) Select printing position of HRI characters (bottom) CHR$(&H1D);"f";CHR$(1); Select font for HRI characters (font B) CHR$(&H1D);"h";CHR$(40); Set bar code height CHR$(&H1D);"w";CHR$(2); Set bar code width CHR$(&H1D);"$";CHR$(40);CHR$(0); Set absolute vertical print position Return to standard mode Print data collectively Cut paper
PRINT #1, CHR$(&H1D);"k";CHR$(4);"*10% OFF*";CHR$(0); PRINT #1, CHR$(&H1B);CHR$(&HC); PRINT #1, CHR$(&H1B);"S"; END Edge FOR i=1 To n PRINT #1, CHR$(&H1B);"*";CHR$(0);CHR$(25);CHR$(0); PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(80);
PRINT #1, CHR$(128);CHR$(128);CHR$(128);CHR$(96);CHR$(128); PRINT #1, CHR$(128);CHR$(128);CHR$(166);CHR$(165);CHR$(81); PRINT #1, CHR$(78);CHR$(32);CHR$(26);CHR$(32);CHR$(78); PRINT #1, CHR$(81);CHR$(165);CHR$(166);CHR$(128);CHR$(128); PRINT #1, CHR$(128);CHR$(96);CHR$(128);CHR$(128);CHR$(128); NEXT i RETURN
CONFIDENTIAL
Program Example (continued)
DATA 00,00,00,00,00,00,01,01,03,03,05,05,28,28,38,38 DATA F0,F0,38,38,28,28,05,05,03,03,01,01,00,00,00,00,00,00 DATA 00,00,08,08,19,19,2A,2A,4C,4C,82,82,47,47,E2,E2 DATA 40,40,11,11,3B,3B,91,91,4C,4C,2A,2A,19,19,08,08,00,00 DATA 40,40,C0,C0,40,40,5C,5C,57,57,55,55,55,55,75,75 DATA 55,55,75,75,D5,D5,55,55,57,57,5C,5C,40,40,C0,C0,40,40 DATA 00,00,00,00,00,00,00,00,07,07,09,09,7D,7D,10,10,16,16,78,F8,FC,7C,3E,3E DATA 3E,3E,7C,FC,F8,78,16,16,10,10,7D,7D,09,09,07,07,00,00,00,00,00,00,00,00 DATA 1F,1F,24,24,41,41,42,42,F1,F1,29,29,49,49,AC,AC,94,94,AC,AC,C4,C4,AC,AC DATA 94,94,AC,AC,C4,C4,AC,AC,94,94,69,69,49,49,F1,F1,42,42,41,41,24,24,1F,1F DATA F0,F0,48,48,24,24,64,64,12,12,52,52,52,52,89,89,A9,A9,89,89,99,99,C9,C9 DATA 89,89,99,99,C9,C9,A9,A9,89,89,12,12,52,52,12,12,24,24,A4,A4,C8,C8,F0,F0
Data for symbol B Data for symbol A
sss sss
more
CONFIDENTIAL
Tips (standard mode/page mode)
sss sss
more
Some of the TM printers, such as the TM-T88II and the TM-L60II, support two different print modes: standard mode and page mode. The standard mode is supported by all printers and in this mode, the printers print data in the print buffer by executing the print commands (such as LF, CR, and ESC J) or when the buffer is full. The standard mode is the print mode which prints data one line at a time. The page mode executes batch printing with FF or ESC FF for all data in the print buffer stored after the page mode is selected with ESC L. In this mode, the print commands other than FF or ESC FF, such as LF, CR, or ESC J, only move the printing position and do not execute actual printing. Executing ESC S or FF returns to standard mode. The page mode is the print mode which prints data one page at a time.
ESC L Standard mode ESC S, FF Page mode
Basic processing procedure for the page mode: 1. 2. 3. 4. 5. 6. Select the page mode with ESC L (standard mode is changed to page mode). Set the position and size for the printing area with ESC W. Select the starting position and the direction for data development with ESC T. Store print data (such as characters or bit images) in the print buffer. Print all data in the print buffer collectively with ESC FF. Return to standard mode with ESC S.
(You can skip procedure 6 if you use FF instead of ESC FF in procedure 5.)
CONFIDENTIAL
sss sss
more
s The flexible layout enables you to execute printing which you cannot accomplish in the standard mode. Downloaded bit images or bar codes can be printed on the same line with characters at the same time.
Ladder bar code printing is possible. Characters and bit images can be rotated (90 clockwise, 180 clockwise (upside down), or 90 counterclockwise).
s Data can be processed only in normal dot units. Data cannot be processed in half dot units in the page mode. s Copy printing is possible. Because printing with ESC FF enables storing of data in the print buffer, executing ESC FF repeatedly results in the same printing. It is also possible to print repeated data with changes in some parts.
CONFIDENTIAL
System Processing
sss sss
more
This example illustrates ESC/POS command functions and printing results. The example shows how to issue a label containing bar codes.
Print Sample
CONFIDENTIAL
Bar Codes Label Issuing
Procedure 1. Print label title 2. Print bar code Commands used ESC a, ESC !, LF, GS !, ESC E GS H, GS f, GS h, GS k, ESC J ESC -, ESC J Description
sss sss
more
Sets the print position to the center with ESC a and prints a label title with LF. Prints bar code after selecting the height of the bar code with GS h, the printing position of the HRI characters with GS H and the font with GS f. Prints NAME using ESC J. Adds an underline to NAME.
ESC a, ESC ! , GS FF Sets the print position to the right using ESC a, selects font B (9 x 17) with ESC !, and prints the date with GS FF. *The paper LED blinks when the label is fed forward to the position where the label can be peeled off. Press the PAPER FEED button and peel off the label. The next label feeds to the starting position.
Programming Example
PRINT #1, CHR$(&H1B);"@"; NO$="00001" : GOSUB start NO$="00002" : GOSUB start END start: PRINT #1, CHR$(&H1B);"a";CHR$(1); Selects center print position PRINT #1, CHR$(&H1B);"!";CHR$(40); Selects character print mode
(emphasized + double-height + double-width) Prints a label title
CONFIDENTIAL
sss sss
more
PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT
#1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1,
"EPSON"; CHR$(&H1B);"!";CHR$(8); Cancels double-width "Rental Video"; CHR$(&HA); CHR$(&H1B);"!";CHR$(0); Cancels emphasized CHR$(&H1D);"H";CHR$(2); Selects printing position for HRI characters CHR$(&H1D);"f";CHR$(1); Selects HRI characters CHR$(&H1D);"h";CHR$(35); Sets bar code height CHR$(&H1D);"k";CHR$(4);"*";NO$;"*";CHR$(0); CHR$(&H1B);"J";CHR$(5); CHR$(&H1B);"-";CHR$(2); Sets underline width to 2 dots "NAME "; CHR$(&H1B);"J";CHR$(70); CHR$(&H1B);"-";CHR$(0); Cancels previous character print mode CHR$(&H1B);"a";CHR$(2); Selects right print position CHR$(&H1B);"!";CHR$(1); Selects font B (9 x 24) "Jan. 10, 1998"; CHR$(&H1D);CHR$(HC); Prints and feeds the label to the print starting
position
Prints NAME
Prints the date and feeds the label to the print starting position
W$=INPUT$(1) RETURN
CONFIDENTIAL
Tips (label printer)
sss sss
more
Some TM printers, such as the TM-L60II, can print on labels. ESC/POS has label commands for the mechanism control function type, such as ejecting a label or feeding paper to the print starting position and has commands such as a serial number counter that apply to the label printers. Printing on one label If you want to repeat the flow of the operation of printing on a label, peeling it off, and pasting it, use GS FF for the last print command line in your program. The printer executes the following: 1. 2. 3. 4. 5. Executes printing the last line on the label. Ejects the label to the position where it can be peeled off. Blinks the paper LED. Waits for the paper feed button to be pressed. After the paper feed button is pressed, it feeds the label to the print starting position using reverse paper feed.
Be sure to press the paper feed button after peeling the label off as shown in procedure 4. If you use GS FF, you will not waste labels. Continuous printing on labels When printing on labels continuously, FF is used for the last print command line for one label, which enables the printer to feed the next label to the print starting position. When printing on the last label, GS FF is used for not wasting a label.
CONFIDENTIAL
Serial number counter Features for the serial number counter function: 1. Operation is possible in the range of the counter values from 1 to 65535. 2. There are two counter modes, count-up and count-down. 3. Printing styles such as the number of print columns and print position of the counter value can be set by a command. 4. Incrementing or decrementing of the counter value, such as step amount or the number of repetition, can be set by the command. 5. Various settings for the serial counter number can be set by using a number or a character string. s GS C 1 and GS C 2 are used for setting using a number. s GS C ; is used for setting using a character string. 6. Character data, bit image data, and serial counter can be printed on the same printing line. Example for using the serial counter (when making labels with a different number for each) Procedures: 1. GS C 0 sets print columns, print position, and print style for the serial counter. 2. GS C 1 sets the minimum value, maximum value, and the number of the step amount for increment and decrement, and the repetition number of the same counter. 3. GS C 2 sets the counter value. 4. GS c sets the serial counter value in the print buffer and increments or decrements the counter value. 5. GS FF prints the data, ejects a label, and feeds the next label to the print starting position. GS c in procedure 4 is the only command which cannot print the counter value. A print command is needed as described in procedure 5 for printing the counter value. In procedure 4, transmitting character data enables you to make a label combining character data and serial counter.
CONFIDENTIAL
CHARACTER CODE TABLES
sss sss
more
SP in a table represents space. Refer to Using the Character Code Tables for information on how to read these tables. Page 0 (PC437: U.S.A., Standard Europe) (International character set: U.S.A)
FS
CONFIDENTIAL
Page 1 (Katakana)
sss sss
more
CONFIDENTIAL
Page 2 (PC850: Multilingual)
sss sss
more
CONFIDENTIAL
Page 3 (PC860: Portuguese)
sss sss
more
CONFIDENTIAL
sss sss
more
CONFIDENTIAL
Page 5 (PC865: Nordic)
CONFIDENTIAL
USING THE CHARACTER CODE TABLES
The example below uses Page 0 (PC437) 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 . . . . . . . . . . . . . . 0001 These numbers are the least significant bits of the ASCII code. The combination of the numbers above is the ASCII code for character "A". Decimal . . . . . . . . . . . . . 65 Hexadecimal . . . . . . . . . 41 Binary . . . . . . . . . . . . . . 01000001
CONFIDENTIAL
FEATURES
The TM-T88II and TM-T88IIP are high-quality POS printers that can print on a paper roll. The printers have the following features: High speed printing: approximately 28.4 lines/second (1/6 inch feed). Low-noise thermal printing. High reliability due to a stable mechanism. Command protocol based on the ESC/POS standard. Various layouts are possible by using page mode. Characters can be scaled up to 64 times as large as the standard size. Smoothing is also possible. Bar code printing is possible by using a bar code command. Bar codes can be printed both in the vertical direction (fence bar code) and in the horizontal direction (ladder bar code). s Repeated operation and copy printing are possible by using macro definitions. s Character font size (12 24 font or 9 17 font) can be selected using a command. s Easy paper roll setting. s Equipped with an autocutter. s The printer allows easy maintenance for tasks such as head cleaning. s Selectable receive buffer size (4K bytes or 45 bytes). s Four different print densities can be selected by DIP switches. s The built-in interface provides control capability for two drawers. s Non-volatile 256 KB bit image buffer size available. s User NV (non-volatile) memory size 1 KB available. s s s s s s s
CONFIDENTIAL
SPECIFICATIONS
sss sss
more
s Printing specifications Printing method: Thermal line printing Printing speed: High speed mode: 28.4 lines/second maximum (1/6 inch feed) (at 24V, 20C, Density level 2) 120 mm/second maximum (4.72 inches/second maximum) Speeds are switched automatically depending on the applied voltage to the printer and head temperature conditions. Lower power consumption mode: Approximately 16.5 lines/second (1/6 inch feed) Approximately 70 mm/second (approximately 2.76 inches/second) When a ladder bar code is printed: Approximately 42 mm/second (approximately 1.7 inches/second) Dot density: 180 dpi (W) 180 dpi (H) (the number of dots per 25.4 mm) Printing width: 72 mm (512 dot positions) s Character specifications Character fonts: Font A (12 24) / Font B (9 17) Characters per line: 42 / 56 Character size: 1.41 mm (W) 3.39 mm (H) / 0.99 mm (W) 3.39 mm (H) Character sets: ASCII: 95 characters International: 32 characters Extended graphics: 128 characters 6 pages s Paper specifications Paper type: Paper size: s Panel button: Specified thermal roll paper, NTP080-80 79 to 80 mm (W) 83 mm diameter FEED: Feed paper roll (this button also can be used for the self test, hexadecimal dump printing, and macro printing).
CONFIDENTIAL
s Panel LEDs:
sss sss
more
s Interface:
s Receive buffer:
POWER (green): Off when the printer is off. On when the printer is on. ERROR (red): Off when the printer is in normal operation. On when the printer is off-line (except during paper feed using the FEED button, self test printing, and the error state). Blinks when an error occurs. PAPER OUT (red): Off when the paper roll is adequate. On when paper roll is near-end. Blinks when the printer is waiting for the button to be pressed. RS-232 (TM-T88II: serial interface) IEEE 1284 (TM-T88IIP: parallel interface) RS-485 (dealer option) 4K or 45 bytes (selectable by DIP switch) NV (non-volatile) bit image buffer: 256 KB User NV (non-volatile) memory: 1K byte User-defined buffer (both for user-defined characters and user-defined bit images): 12K bytes Macro buffer: 2K bytes
CONFIDENTIAL
DIP SWITCH FUNCTIONS
Serial Interface (TM-T88II)
DIP switch 1
SW 1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 Function ON OFF Convert data to ? 4K bytes DTR/DSR 8 bits Disabled Odd
sss sss
more
Data receive error Ignored Receive buffer capacity Handshaking Data word length Parity check Parity selection Transmission speed 45 bytes XON/XOFF 7 bits Enabled Even
Transmission speed
Transmission speed bits per second (BPS) 2400 4800 9600 19200 SW 1-7 ON OFF ON OFF SW 1-8 ON ON OFF OFF
CONFIDENTIAL
DIP switch 2
SW 2-1 2-2 2-3 2-4 2-5 2-6 2-7 2-8 Function BUSY condition Reserved (Do not change settings) ON Receive buffer full Fixed to Off OFF
sss sss
more
Selects print density/Low power consumption mode Reserved (Do not change settings) Reserved (Do not change settings) I/F pin 6 reset signal I/F pin 25 reset signal Fixed to Off Fixed to Off Enabled Enabled Disabled Disabled
Print density
Print density 1 2 3 Print density (Dark) Print density (Normal) SW 2-3 OFF ON OFF SW 2-4 ON OFF OFF ON Low power consumption mode ON
CONFIDENTIAL
Parallel Interface (TM-T88IIP) DIP switch 1
SW 1-1 1-2 1-3 ~1-8 Function Auto line feed Receive buffer capacity Undefined ON Always enabled 45 bytes OFF
sss sss
more
DIP switch 2
SW 2-1 2-2 2-3 2-4 2-5 ~ 2-7 2-8 Function BUSY condition Reserved (Do not change settings) ON Receive buffer full or reading data Fixed to Off OFF Off line, receive buffer full, or reading data
Selects print density/Low power consumption mode Reserved (Do not change settings) I/F pin 31 reset signal (Do not change settings) Fixed to Off Fixed to On
CONFIDENTIAL
Print density
Print density 1 2 3 Print density (Dark) Print density (Normal) SW 2-3 OFF ON OFF SW 2-4 ON OFF OFF ON Low power consumption mode ON
sss sss
more
CONFIDENTIAL
ERRORS
sss sss
more
s Automatically recoverable errors: Print head high temperature error Cover open error during printing s Recoverable errors: Auto cutter error s Unrecoverable errors: R/W error in memory or gate array High voltage error Low voltage error CPU execution error Internal circuit connection error s Data receive errors: If the following errors occur with a serial interface, the printer processes data depending on the setting of DIP switch 1-1. Parity error Framing error Overrun error
CONFIDENTIAL
OPTIONS
s EPSON power supply unit, PS-170. s Affixing tapes (model: DF-10). s RS-485 interface board is a dealer option.
CONFIDENTIAL
SELF TEST FOR THE TM-T88II
The self test lets you know if your printer is operating properly. It checks the control circuits, printer mechanisms, print quality, ROM version, and DIP switch setting. This test is independent of any other equipment or software. Running the self test with a paper roll 1. Make sure the printer is turned off and the printer covers are closed properly. 2. While holding down the FEED button, turn on the printer using the power switch to begin the self test. The self test prints the printer settings and then prints the following, cuts the paper, and pauses. (The PAPER OUT light blinks.) Self test printing. Please press the Paper feed button. 3. Press the FEED button to continue printing. The printer prints a pattern using the resident characters. 4. The self test automatically ends and cuts the paper after printing the following: ***completed*** The printer is ready to receive data as soon as it completes the self test.
CONFIDENTIAL
HEXADECIMAL DUMP FOR THE TM-T88II
This feature allows experienced users to see exactly what data has been received. This can be useful in finding software problems. When you turn on the hexadecimal dump function, the printer prints all commands and other data in hexadecimal format on paper roll to help you find specific commands. To use the hexadecimal dump feature, follow these steps: 1. 2. 3. 4. After you make sure that the printer is off, open the cover. Hold down the FEED button while you turn on the printer. Close the cover. Run any software program that sends data to the printer. The printer prints Hexadecimal Dump and then all the codes it receives in a two-column format. The first column contains the hexadecimal codes and the second column gives the ASCII characters that correspond to the codes. Hexadecimal Dump 1B 1B 41 21 25 42 00 01 43 1B 1B 44 26 63 45 02 34 46 40 00 47 40 1B 48 . . A ! . % . B C . & . c D E . 4 F @ . G @ . H
s A period (.) is printed for each code that has no ASCII equivalent. s During the hexadecimal dump all commands except DLE EOT and DLE ENQ do not function. 5. Press the FEED button so that the printer will print the last line. 6. Turn off the printer or reset it to turn off the hexadecimal dump mode.
CONFIDENTIAL
TM-T88II SUPPORTED COMMANDS
Classification Command Name HT LF FF CR CAN DLE EOT DLE ENQ DLE DC 4 ESC FF ESC SP ESC ! Horizontal tab Print and line feed Print and return to standard mode (in page mode) Function Type Print position Print Print Executing Setting Cmds Cmds Range O O O O O O O O O O O 1n4 1n2 n=1 m=0,1 1t8 0 n 255 0 n 255
sss sss
more
Print and carriage return Print Cancel print data in page Character mode Real-time status transmission Real-time request to printer Generate pulse at realtime Set right-side character spacing Select print mode(s) Status Miscellaneous function Miscellaneous function
CONFIDENTIAL
Classification Command Name ESC $ ESC % Set absolute print position Select/cancel userdefined character set Define user-defined characters Function Type Print position Character Executing Setting Cmds Cmds Range O O 0 nL 255, 0 nH 255 0 n 255
sss sss
more
Default n=0
ESC &
Character
ESC T
Bit image
Turn underline mode on/ Character off Select default line spacing Set line spacing Select peripheral device Cancel user-defined characters Line spacing Line spacing Miscellaneous function Character
O O O O O
CONFIDENTIAL
Classification Command Name ESC @ Initialize printer Set horizontal tab positions Turn emphasized mode on/off Function Type Miscellaneous function Print position Executing Setting Cmds Cmds Range O O 1 n 255 0 k 32 0 n 255 0 n 255 0 n 255 O O O O n=0,1,48,49 0 n 10 0 n 3, 48 n 51
sss sss
more
Default n=8, 16, 24... (every eight characters for font A) n=0 n=0
ESC D
Character
O O O O
Turn double-strike mode Character on/off Print and feed paper Select page mode Select character Select an international character set Select standard mode Select print direction in page mode Print Miscellaneous function Character Character Miscellaneous function Print position
n=0 n=0
CONFIDENTIAL
Classification Command Name ESC V Turn 90 clockwise rotation mode on/off Function Type Character Executing Setting Cmds Cmds Range O 0 n 1, 48 n 49 0 xL 255, 0 xH 255 0 yL 255, 0 yH 255 0 dxL 255, 0 dxH 255 0 dyL 255, 0 dyH 255 (except dxL=dxH=0 or dyL=dyH=0 ) 0 nL 255, 0 nH 255 O O O O 0 n 2, 48 n 50 0 n 255 0 n 255 0 n 255
sss sss
more
Default n=0
ESC W
Select paper sensor(s) to Paper sensor output paper-end signals Select paper sensor(s) to stop printing Enable/disable panel buttons Paper sensor Panel button
CONFIDENTIAL
Classification Command Name ESC d ESC p Print and feed n lines Generate pulse Select character code table Turn upside-down printing mode on/off Function Type Print Miscellaneous function Character Character Executing Setting Cmds Cmds Range O O 0 n 255 0 m 1, 48 m 49 0 t1 255, 0 t2 255 O O 0 n 5, n=255 0 n 255 m=0 0 (a1 + (a2 256) + (a3 x 65536) + (a4 16777216)) 1023 1 (nL + (nH 256) 1024
sss sss
more
Default
ESC t ESC {
n=0 n=0
FS g 1
Write to user NV
Miscellaneous function
CONFIDENTIAL
Classification Command Name Function Type Executing Setting Cmds Cmds Range m=0 0 (a1 + (a2 256) + (a3 x 65536) + (a4 16777216)) 1023 1 (nL + (nH 256) 80 1 n 255 0 m 3,48 m 51
sss sss
more
Default
FS g 2
Miscellaneous function
FS p
Bit-image
CONFIDENTIAL
Classification Command Name Function Type Executing Setting Cmds Cmds Range
sss sss
more
Default
FS q
Bit-image
1 n 255 0 xL 255 0 xH 3 (when 1 xL + xH 256) 1023 0 yL 1 (when 1 yL + yH 256) 288 1 d 255 k = (xL + xH 256) (yL + yH 256) 8 Total defined area = 2M bits (256 KB) 0 n 255 0 nL 255 0 nH 255 n=0
GS ! GS $
Select character size Set absolute vertical print position in page mode Define downloaded bit image
GS T
Bit image
CONFIDENTIAL
Classification Command Name Function Type Executing Setting Cmds Cmds Range
sss sss
more
Default
GS ( A
Miscellaneous
(pL + (pH x 256)) = 2 (when pL = 2, pH = 0) 0 n 2,48 n 50 1 m 3,49 m 51 0 m 3, 48 m 51 O O O 0 n 255 0 n 3, 48 n 51 1 n 3, 49 n 51 O O 0 nL 255, 0 nH 255 0 x 255 0 y 255 n=0 n=0 nL=0, nH=0 x=180, y=360
GS / GS : GS B GS H GS I GS L GS P
O O
Turn white/black reverse Character printing mode on/off Select printing position of HRI characters Transmit printer ID Set left margin Set horizontal and vertical motion units Bar code Miscellaneous function Print position Miscellaneous function O
CONFIDENTIAL
Classification Command Name GS V GS W GS \ GS ^ Select cut mode and cut paper Set printing area width Function Type Mechanism control Print position O O Executing Setting Cmds Cmds Range O O
sss sss
more
Default
m=1, 49 m=66, 0 n 255 0 nL 255 0 nH 255 0 nL 255 0 nH 255 0 r 255, 0 t 255 0m1 O O O O 0 n 255 0 n 255 n=0, 1, 48, 49 1 n 255 nL=0, nH=2
Set relative vertical print Print position position in page mode Execute macro Enable/disable Automatic Status Back (ASB) Turn smoothing mode on/off Select font for HRI characters Set bar code height Macro function Status Character Bar code Bar code
GS a GS b GS f GS h
CONFIDENTIAL
Classification Command Name Function Type Executing Setting Cmds Cmds Range 0m6 k and d depend on a bar code 65 m 73 n and d depend on a bar code 1 n 2, 49 n 50 0 m 3, 48 m 51 0 xL 255 0 xH 255 0 yL 255 0 d 255 k = (xL + xH 256) (yL yH 256) (k0) O 2n6 Default
GS k
Bar code
GS r
Transmit status
Status
GS v 0
Bit image
GS w
Bar code
n=3
CONFIDENTIAL
FEATURES
sss sss
more
The TM-L60II and TM-L60IIP are line thermal printers that can print on roll paper and thermal labels. The printers have the following features: s s s s s s s s s s s s s s s s s s Light weight and ultra-compact size. High-speed printing: 12 lines per second. Low-noise thermal printing. High reliability due to a stable mechanism. Easy maintenance for tasks such as head cleaning. Easy paper insertion with semi-auto loading for both roll paper and labels. Label ejection commands prevent extraneous label feeding. Serial numbers can be printed on labels. Command protocol based on the ESC/POS standard. Various layouts possible using page mode. Font selection (font A (12 24) or font B (9 17)) possible using a command. Character extension (up to 64 times the standard size) and character smoothing. Four different print densities selectable via DIP switch settings. Four-way routing of the interface, drawer control, and power cables: on either side, underneath, or from the back of the case. Water-resistant operation panel. Bar code printing possible both in the vertical direction (fence bar code) and horizontal direction (ladder bar code in page mode) using a command. Repeated operation and copy printing possible using macro definitions. Control capability for two drawers via the built-in interface.
CONFIDENTIAL
s The power switch is on the front panel of the printer, allowing easy operation. s Bidirectional parallel interface based on the IEEE 1284 Nibble/Byte Modes standard. s Thermal paper or thermal label can be selected via DIP switch settings.
CONFIDENTIAL
SPECIFICATIONS
s Printing specifications Printing method: Printing speed: Dot density: Printing width: Thermal line printing Approximately 12 LPS (1/6-inch feed) 180 dpi 180 dpi Thermal paper: 54.19 mm (2.13), 384 dot positions Thermal label: 51.93 mm (2.04), 368 dot positions
sss sss
more
s Character specifications Character fonts: Font A (12 24) / Font B (9 17) Characters per line: Thermal paper: 32 / 42 Thermal label: 30/40 Character size: 1.41 mm (W) 3.39 mm (H) / .99 mm (W) 3.39 mm (H) Character sets: ASCII: 95 characters International: 32 characters Extended graphics: 128 characters 6 pages s Paper specifications Paper type: Paper roll: Specified thermal paper: Nakagawa Seisakujo, NTP080-80 Thermal label: Specified thermal paper (1-inch long (25.4 mm) label): Nakagawa Seisakujo, NTL 060-80) Paper roll: 59.0 to 60.0 mm (W) 83.0 mm diameter Thermal label: 59.5 to 60.2 mm (W) 83.0 mm diameter
Paper size:
CONFIDENTIAL
s Panel button s Panel LEDs:
sss sss
more
PAPER FEED: Feed paper (this button also can be used for the self test, hexadecimal dump printing, macro printing, and GS FF execution standby mode). POWER (green): Off when the printer is turned off. On when the printer is turned on. PAPER (red): Off when the paper roll is adequate. On when the paper roll is near-end or at end. Blinks when the printer is waiting for the PAPER FEED button to be pressed in the following: Self test standby state GS ^ execution standby state GS FF execution standby state ERROR (red): Off when the printer is in normal operation. On when the printer is off-line (except during paper feed using the PAPER FEED button and during the self test). Blinks when an error occurs. RS-232 (TM-L60II: serial interface) IEEE-1284 (TM-L60IIP: parallel interface) 4K or 45 bytes (selectable by DIP switch)
CONFIDENTIAL
DIP SWITCH FUNCTIONS
Serial Interface (TM-L60II)
DIP switch 1
SW 1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 Function Data receive error Receive buffer capacity Handshaking Data word length Parity check Parity selection Transmission speed ON Ignored 45 bytes XON/XOFF 7 bits Enabled Even OFF Convert data to ? 4K bytes DTR/DSR 8 bits Disabled Odd
sss sss
more
Transmission speed
Transmission speed bits per second (BPS) 2400 4800 9600 19200 SW 1-7 SW 1-8 ON OFF ON OFF ON ON OFF OFF
CONFIDENTIAL
DIP switch 2
SW 2-1 2-2 2-3 2-4 2-5 2-6 2-7 2-8 Function Handshaking operation Selects print density Reserved (Setting must not be changed) Paper selection I/F pin 6 reset signal I/F pin 25 reset signal Fixed to Off Fixed to On Thermal label Enabled Enabled ON Receive buffer full OFF
sss sss
more
Print density
Print density 1 (Light) 2 3 4 (Dark) SW 2-2 SW 2-3 ON OFF ON OFF ON OFF OFF ON
CONFIDENTIAL
Parallel Interface (TM-L60IIP)
DIP switch 1
SW 1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 Function Auto line feed Receive buffer capacity Handshaking (BUSY condition) Select print density Reserved (Setting must not be changed) Paper selection Undefined Fixed to On Thermal label ON Always enabled 45 bytes Receive buffer full or reading data OFF
sss sss
more
Always disabled 4K bytes Off line, receive buffer full, or reading data
Thermal paper
Print density
Print density 1 (Light) 2 3 4 (Dark) SW 1-2 SW 1-3 ON OFF ON OFF ON OFF OFF ON
CONFIDENTIAL
ERRORS
sss sss
more
s Automatically recoverable errors: Print head high temperature error s Recoverable errors: Label detection error s Unrecoverable errors: R/W error in memory or gate array High voltage error Low voltage error CPU execution error Thermistor error s Data receive errors: If the following errors occur with a serial interface, the printer processes data depending on the setting of DIP switch 1-1. Parity error Framing error Overrun error
CONFIDENTIAL
OPTIONS
s EPSON power supply unit, PS-150.
CONFIDENTIAL
SELF TEST FOR THE TM-L60II
The self test lets you know if your printer is operating properly. It checks the control circuits, printer mechanisms, print quality, ROM version, and DIP switch setting. This test is independent of any other equipment or software. Running the self test with a paper roll 1. Make sure the printer is turned off and the printer covers are closed properly. 2. While holding down the PAPER FEED button, turn on the printer using the power switch to begin the self test. The self test prints the printer settings and then prints the following and pauses. (The PAPER light blinks.) Self test printing. Please press the Paper feed button. 3. Press the PAPER FEED button to continue printing. The printer prints a pattern using the resident characters. 4. The self test automatically ends and feeds the paper to a manual cutting position after printing the following: ***completed*** The printer is ready to receive data as soon as it completes the self test.
CONFIDENTIAL
HEXADECIMAL DUMP FOR THE TM-L60II
This feature allows experienced users to see exactly what data has been received. This can be useful in finding software problems. When you turn on the hexadecimal dump function, the printer prints all commands and other data in hexadecimal format on paper roll to help you find specific commands. To use the hexadecimal dump feature, follow these steps: 1. 2. 3. 4. After you make sure that the printer is off, open the cover. Hold down the PAPER FEED button while you turn on the printer. Close the cover. Run any software program that sends data to the printer. The printer prints Hexadecimal Dump and then all the codes it receives in a two-column format. The first column contains the hexadecimal codes and the second column gives the ASCII characters that correspond to the codes. Hexadecimal Dump 1B 1B 41 21 25 42 00 01 43 1B 1B 44 26 63 45 02 34 46 40 00 47 40 1B 48 . . A ! . % . B C . & . c D E . 4 F @ . G @ . H
s A period (.) is printed for each code that has no ASCII equivalent. s During the hexadecimal dump all commands except DLE EOT do not function. 5. Press the PAPER FEED button so that the printer will print the last line. 6. Turn off the printer or reset it to turn off the hexadecimal dump mode.
CONFIDENTIAL
TM-L60II SUPPORTED COMMANDS
Classification Command Name HT LF Horizontal tab Print and line feed
1
sss sss
more
Default
FF
Print and return to standard mode (in page mode) Print Print and feed label to print starting position (on label)
Print and carriage return Print Cancel print data in page Character mode Real-time status transmission Set right-side character spacing Select print mode(s) Set absolute print position Status
O O O O O O O
n=0 n=0
CONFIDENTIAL
Classification Command Name ESC % Select/cancel userdefined character set Function Type Character Executing Setting Cmds Cmds Range O 0 n 255
sss sss
more
Default n=0
ESC &
Character
y=3 32 c1 c2 126 0 x 12 (12 24 font) 0 x 9 (9 24 font) 0 d 255 k=c2c1+1 m=0, 1, 32, 33 0 nL 255 0 nH 3 0 d 255
ESC T
Select bit-image mode Turn underline mode on/off Select default line spacing Set line spacing Select peripheral device
Bit image
O O O O
CONFIDENTIAL
Classification Command Name ESC ? ESC @ Cancel user-defined characters Initialize printer Set horizontal tab positions Turn emphasized mode on/off Turn double-strike mode on/off Print and feed paper Select page mode Select an international character set Select standard mode Select print direction in page mode Function Type Character Miscellaneous function Print position O Executing Setting Cmds Cmds Range O O 32 n 126 1 n 255 0 k 32 0 n 255 0 n 255 0 n 255 O O O 0 n 10 0 n 3, 48 n 51
sss sss
more
Default n=8, 16, 24, 32...(every eight characters for 1224 font) n=0 n=0 n=0 n=0
ESC D
Character Character Print Miscellaneous function Character Miscellaneous function Print position O O
O O
CONFIDENTIAL
Classification Command Name ESC V Turn 90 clockwise rotation mode on/off Function Type Character Executing Setting Cmds Cmds Range O 0 n 1, 48 n 49
sss sss
more
Default n=0
ESC W
0 xL 255 0 xH 255 0 yL 255 0 yH 255 0 dxL 255 0 dxH 255 0 dyL 255 0 dyH 255 (except dxL=dxH = 0 or dyL=dyH = 0) 0 nL 255 0 nH 255
O O O O
0 n 2, 48 n 50 0 n 255 0 n 255
Select paper sensor(s) to Paper sensor output paper-end signals Select paper sensor(s) to Paper sensor stop printing
CONFIDENTIAL
Classification Command Name ESC c 5 ESC d ESC p ESC t ESC u ESC v ESC { GS FF GS ! GS $ Enable/disable panel buttons Print and feed n lines Generate pulse Select character code table Transmit peripheral device status Transmit paper sensor status Turn upside-down printing mode on/off Print and eject label Set character size Set absolute vertical print position in page mode Function Type Panel button Print Miscellaneous function Character Status Status Character Print Character Print position O O O O O O O O O Executing Setting Cmds Cmds Range O 0 n 255 0 n 255 m=0, 1, 48, 49 0 t1 255 0 t2 255 n=255 0n5 n=0,48 0 n 255 0 n 255 0 nL 255 0 nH 255
sss sss
more
CONFIDENTIAL
Classification Command Name GS T Define downloaded bit image Print downloaded bit image Start/end macro definition Initialize printer mechanism Adjust label print starting position Function Type Bit image Executing Setting Cmds Cmds Range O 1 x 255 1 y 48 x y 1536 0 d 255
sss sss
more
Default
GS / GS : GS < GS A GS B GS C 0
O O O O O O O O
Turn white/black reverse Character printing mode on/off Select counter print mode Miscellaneous function
CONFIDENTIAL
Classification Command Name Function Type Executing Setting Cmds Cmds Range 0 aL 255, 0 aH 255, 0 bL 255 0 bH 255, 0 n 255, 0 r 255 0 nL 255, 0 nH 255
sss sss
more
Default aL=1, aH=0 bL=255, bH=255, n=1, r=1 nL=1, nH=0 sa=1, sb=65535, sn=1, sr=1, sc=1 n=0 nL=0 nH=0 x=180 y=360
GS C 1
Miscellaneous function
GS C 2
Set counter
Miscellaneous
GS C ;
Miscellaneous function
GS H GS I GS L GS P
Select printing position of HRI characters Transmit printer ID Set left margin Set horizontal and vertical motion units
O O
CONFIDENTIAL
Classification Command Name Function Type Executing Setting Cmds Cmds Range
sss sss
more
GS W
Print position
0 nL 255 0 nH 255
GS \ GS ^
Set relative vertical print Print position position in page mode Execute macro Enable/disable Automatic Status Back (ASB) Turn smoothing mode on/off Print counter Set font for HRI characters Select bar code height Macro function Status Character Miscellaneous function Bar code Bar code
O O
GS a GS b GS c GS f GS h
CONFIDENTIAL
Classification Command Name Function Type Executing Setting Cmds Cmds Range Default
GS k
Bar code
0 m 6 (k and d depend on the bar code system used) 65 m 73 (n and d depend on the bar code system used) 1 n 2, 49 n 50 O 2n6 n=3
GS r GS w
CONFIDENTIAL
FEATURES
The TM-U200B, TM-U200PB, TM-U200D, and TM-U200PD are high-quality POS printers that can print on a paper roll. The printer has the following features: s Compact and lightweight. s High-speed printing through logical seeking control. s Excellent reliability and long life due to adoption of stepping motor, both for moving the carriage and for paper feeding. s Flexible paper feed pitch setting permits printing in accordance with any user-defined format. s Command protocol based on the ESC/POS standard. s Built-in drawer-kick interface provides capability to drive two drawers. s Selectable character fonts (79, 99). s Semi-automatic paper loading capability. s AC adapter provides compact power supply. s Automatic status back (ASB) function that automatically transmits changes in printer status. s Two-color printing (black and red) (two-color version only). s Auto cutter is equipped (TM-U200B only).
CONFIDENTIAL
SPECIFICATIONS
s Printing specifications Printing method: 9-pin, serial impact dot matrix Printing speed: Approximately 3.5 LPS (40 columns, 16 cpi) Approximately 6.4 LPS (16 columns, 16 cpi) s Character specifications Character fonts: 7 9 font / 9 9 font Characters per line: 40 / 33 (with 3 half dots), 42 / 35 (with 2 half dots) Character pitch: 16 / 13.3 (with 3 half dots) CPI, 17.8 / 14.5 (with 2 half dots) CPI Character size: ANK: 1.2 mm (W) 3.1 mm (H) / 1.6 mm (W) 3.1 mm (H) Graphics: 1.7 mm (W) 3.1 mm (H) / 2.0 mm (W) 3.1 mm (H) (with 3 half dots spacing) 1.6 mm (W) 3.1 mm (H) / 1.9 mm (W) 3.1 mm (H) (with 0 dots spacing) Character sets: ASCII: 95 characters International: 32 characters Extended graphics: 128 characters 6 pages s Paper specifications Paper type:
sss sss
more
Paper roll: Normal paper Pressure-sensitive paper: Number of copies:Original 1 sheet + one copy sheet (U200B) Original 1 sheet + up to two copy sheets (U200D) Paper roll: 75.5 76.5 mm (W) 83.0 mm diameter Normal paper: 0.06 mm 0.085 mm Pressure-sensitive paper: 0.05 mm 0.08 mm (for one sheet) Total thickness must be 0.2 mm or less.
CONFIDENTIAL
s Panel buttons: s Panel LEDs:
sss sss
more
s Interface:
s Receive buffer:
FEED: Feed paper roll (this button also can be used for the self test and the hexadecimal dump printing). POWER (green): Off when the printer is turned off. On when the printer is turned on. PAPER OUT (red): Off when the paper roll is adequate. On when the paper roll is near-end or at end. Blinks when the printer is in the self test printing standby state or in the on-line recovery wait time state after automatic paper feed. ERROR (red): Off when the printer is in normal operation. On when the printer is off-line (except during paper feed using the FEED button and during the self test). Blinks when an error occurs. RS-232 (TM-U200B/TM-U200D: serial interface) IEEE 1284 (TM-U200PB/TM-U200PD: parallel interface) RS-485 (dealer option) 1K bytes or 40 bytes
CONFIDENTIAL
DIP SWITCH FUNCTIONS
Serial Interface
DIP switch 1
SW 1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 Function Data receive error Receive buffer capacity Handshaking Data word length Parity check Parity selection Baud rate selection BUSY condition ON Ignored 40 bytes XON/XOFF 7 bits Enabled Even 4800 bps OFF
sss sss
more
When the receive buffer is When the receive buffer is full full at an off-line state
CONFIDENTIAL
DIP switch 2
SW 2-1 2-2 2-3 2-4 Function Selects number of characters per line (CPL) 7 9 font/9 9 font Print head unit Pin 6 reset signal Pin 25 reset signal ON 42 CPL/35 CPL Ab type Used Used OFF
sss sss
more
CONFIDENTIAL
ERRORS
sss sss
more
s Automatically recoverable errors: Print head high temperature error s Recoverable errors: Home position detection error Auto cutter error s Unrecoverable errors: High voltage error Low voltage error CPU execution error Print head temperature detection circuit error s Data receive errors: If the following errors occur with a serial interface, the printer processes data depending on the setting of DIP switch 1-1. Parity error Framing error Overrun error
CONFIDENTIAL
OPTIONS
s EPSON power supply unit, PS-170. s Paper roll near-end detector (a dealer option). s Printer fastening tape (Model No. DF-10)
CONFIDENTIAL
SELF TEST FOR THE TM-U200B/D
The self test lets you know if your printer is operating properly. It checks the control circuits, printer mechanisms, print quality, ROM version, and DIP switch setting. This test is independent of any other equipment or software. Running the self test with a paper roll 1. Make sure the printer is turned off and the printer covers are closed properly. 2. While holding down the FEED button, turn on the printer using the power switch to begin the self test. The self test prints the printer settings and then pauses. (The PAPER OUT light blinks.) Self test printing. Please press the Paper feed button. 3. Press the FEED button to continue printing. The printer prints a pattern using the resident characters. 4. The self test automatically ends after printing the following: ***completed*** The printer is ready to receive data as soon as it completes the self test.
CONFIDENTIAL
HEXADECIMAL DUMP FOR THE TM-U200B/D
This feature allows experienced users to see exactly what data has been received. This can be useful in finding software problems. When you turn on the hexadecimal dump function, the printer prints all commands and other data in hexadecimal format on paper roll to help you find specific commands. To use the hexadecimal dump feature, follow these steps: 1. 2. 3. 4. After you make sure that the printer is off, open the cover. Hold down the FEED button while you turn on the printer. Close the cover. Run any software program that sends data to the printer. The printer prints Hexadecimal Dump and then all the codes it receives in a two-column format. The first column contains the hexadecimal codes and the second column gives the ASCII characters that correspond to the codes. Hexadecimal Dump 1B 1B 41 21 25 42 00 01 43 1B 1B 44 26 63 45 02 34 46 40 00 47 40 1B 48 . . A ! . % . B C . & . c D E . 4 F @ . G @ . H
s A period (.) is printed for each code that has no ASCII equivalent. s During the hexadecimal dump all commands except DLE EOT and DLE ENQ do not function. 5. Press the FEED button so that the printer will print the last line. 6. Turn off the printer or reset it to turn off the hexadecimal dump mode.
CONFIDENTIAL
TM-U200B/D SUPPORTED COMMANDS
Classification Command Name HT LF CR DLE EOT DLE ENQ ESC SP ESC ! ESC % Horizontal tab Print and line feed Real-time status transmission Real-time request to printer Set right-side character spacing Select print mode(s) Select/cancel userdefined character set Function Type Print position Print Executing Setting Cmds Cmds Range O O O O O O O O 1n4 n = 0, 2 0 n 255 0 n 255 0 n 255
sss sss
more
Print and carriage return Print Status Miscellaneous function Character Character Character
ESC &
Character
CONFIDENTIAL
Classification Command Name ESC T Select bit-image mode Function Type Bit image Executing Setting Cmds Cmds Range O m=0, 1 0 nL 255 0 nH 3 0 d 255 O O O O O O O O n=0, 1, 48, 49 0 n 255 1n3 32 n 126 1 n 255 0 k 32
sss sss
more
Default
Turn underline mode on/ Character off Select default line spacing Set line spacing Return home Select peripheral device Cancel user-defined characters Initialize printer Set horizontal tab positions Line spacing Line spacing Mechanism control Miscellaneous function Character Miscellaneous function Print position
n=0 n=24 n=1 n=8, 16, 24, 32...(every eight characters for 79 font)
ESC D
CONFIDENTIAL
Classification Command Name ESC E ESC G ESC J ESC K ESC R ESC U ESC a ESC c 3 ESC c 4 ESC c 5 ESC d ESC e Turn emphasized mode on/off Turn double-strike mode on/off Print and feed paper Print and reverse feed Select an international character set Turn unidirectional printing mode on/off Select justification Function Type Character Character Print Print Character Mechanism control Print position O O O O O O O O O O Executing Setting Cmds Cmds Range O O 0 n 255 0 n 255 0 n 255 0 n 48 0 n 10 0 n 255 0 n 2, 48 n 50 0 n 255 0 n 255 0 n 255 0 n 255 0n2
sss sss
more
Select paper sensor(s) to Paper sensor output paper-end signals Select paper sensor(s) to Paper sensor stop printing Enable/disable panel buttons Print and feed n lines Print and reverse feed n lines Panel button Print Print
CONFIDENTIAL
Classification Command Name ESC p ESC r ESC t ESC { GS I GS V GS a GS r GS z 0 Generate pulse Select print color Select character code table Turn upside-down printing mode on/off Transmit printer ID Select cut mode and cut paper Enable/disable Automatic Status Back (ASB) Transmit status Set on-line recovery wait time Function Type Miscellaneous function Print Character Character Miscellaneous function Mechanism control Status Status Status O O O O O O Executing Setting Cmds Cmds Range O O O O m=0, 1, 48, 49 0 t1 255 0 t2 255 m=0, 1, 48, 49 0 n 5, n=254, 255 0 n 255 1 n 3, 49 n 51 Default n=0 n=0 n=0
m=1, 49 m=66, 0 n 255 0 n 255 1 n 2, 49 n 50 0 t1 255, 0 t2 255 n=0 or n=2 t1=6, t2=0
CONFIDENTIAL
FEATURES
The TM-U300A, TM-U300B, TM-U300PA, and TM-U300PB are high-quality POS printers that can print on a paper roll. The printers have the following features: s s s s s s s s s s s s s High speed printing using logic seeking. High reliability and long life due to the use of stepping motors for both carriage return and paper feed. Selectable paper feed pitch for various formats. Command protocol based on the ESC/POS standard. The built-in interface provides control capability for two drawers. Selectable character font (79 or 99). Compact and light-weight. Semi-automatic paper loading. Compact AC adapter power supply. With an autocutter, executes a full-cut or partial-cut of the paper by selecting a command. Full cut and partial cut are selectable by a command for an autocutter equipped model. Selectable black or red printing (for a two color print model). Roll paper take-up device.
CONFIDENTIAL
SPECIFICATIONS
s Printing specifications Printing method: Serial impact dot matrix Printing speed: Approximately 3.5 lines/second (40 columns, 16 CPI) Approximately 5.8 lines/second (20 columns, 16 CPI) s Character specifications Character fonts: Font A (7 9) / Font B (9 9) Characters per line: 40 / 33 Character size: ANK:1.24 mm (W) 3.1 mm (H) / 1.56 mm (W) 3.1 mm (H) (with 3 half dots spacing ) Graphics:1.59 mm (W) 3.1 mm (H) / 1.91 mm (W) 3.1 mm (H) Character sets: ASCII: 95 characters International: 32 characters Extended graphics: 128 characters 6 pages s Paper specifications Paper type: Paper roll: Normal paper Pressure-sensitive paper: Number of copies: maximum 1 original + 2copies 75.5 to 76.5 mm (W) 83 mm diameter
sss sss
more
FEED:Feed paper roll (this button also can be used for the self test printing).
CONFIDENTIAL
s Panel LEDs:
sss sss
more
POWER (green): Off when the printer is off. On when the printer is on. PAPER (red): Off when the paper roll is adequate. On when paper roll is near-end. Blinks when the printer detects an error; the printer is in the self test standby state; or printing stops because of exceeding the allowable print duty cycle. RS-232 (TM-U300A and TM-U300B: serial interface) Centronics compatible (TM-U300PA and TM-U300PB: parallel interface) With a serial interface: 1K or 40 bytes (selectable by DIP switch) With a parallel interface: 1K or 0 bytes (selectable by DIP switch)
CONFIDENTIAL
DIP SWITCH FUNCTIONS
Serial Interface (TM-U300A and TM-U300B)
DIP switch 1
SW 1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 1-9 1-10 Function ON OFF Convert data to ? 1K bytes DTR/DSR 8 bits Disabled Odd
sss sss
more
Data receive error Ignored Receive buffer capacity Handshaking Data word length Parity check Parity selection Transmission speed Internal use 40 bytes XON/XOFF 7 bits Enabled Even
CONFIDENTIAL
Transmission speed
Transmission speed bits per second (BPS) 1200 2400 4800 9600 SW 1-7 ON OFF ON OFF SW 1-8 ON ON OFF OFF
sss sss
more
CONFIDENTIAL
ERRORS
sss sss
more
s Home position detection error Auto cutter position detection error s Data receive errors: If the following errors occur with a serial interface, the printer processes data depending on the setting of DIP switch 1-1. Parity error Framing error Overrun error
CONFIDENTIAL
OPTIONS
s No options.
CONFIDENTIAL
SELF TEST FOR THE TM-U300A/B
The self test lets you know if your printer is operating properly. It checks the control circuits, printer mechanisms, print quality, ROM version, and DIP switch setting. This test is independent of any other equipment or software. Running the self test with a paper roll 1. Make sure the printer is turned off and the printer covers are closed properly. 2. While holding down the FEED button, turn on the printer using the power switch to begin the self test. The self test prints the printer settings and then prints the following and pauses. (The PAPER light blinks.) Self test printing. Please press the Paper feed button. 3. Press the FEED button to continue printing. The printer prints a pattern using the resident characters. 4. The self test automatically ends after printing the following: ***completed*** The printer is ready to receive data as soon as it completes the self test.
CONFIDENTIAL
TM-U300A/B SUPPORTED COMMANDS
Classification Command Name HT LF CR ESC SP ESC ! ESC % Horizontal tab Print and line feed Set right-side character spacing Select print mode(s) Select/cancel userdefined character set Define user-defined characters Function Type Print position Print Executing Setting Cmds Cmds Range O O O O O O 0 n 32 0 n 255 0 n 255
sss sss
more
ESC &
Character
ESC T
Bit image
ESC
Character
0n1
n=0
CONFIDENTIAL
Classification Command Name ESC 2 ESC 3 ESC < ESC @ Select default line spacing Set line spacing Return home Initialize printer Set horizontal tab positions Turn emphasized mode on/off Turn double-strike mode on/off Print and feed paper Print and reverse feed Select an international character set Turn unidirectional printing mode on/off Function Type Line spacing Line spacing Mechanism control Miscellaneous function Print position O O O Executing Setting Cmds Cmds Range O O 0 n 255 1 n 255 0 k 32 0 n 255 0 n 255 0 n 255 0 n 48 O O 0 n 10 0 n 255
sss sss
more
Default n=24(1/6 inch) n=8, 16, 24... (every eight characters for font A) n=0 n=0 n=0 n=0
ESC D
O O
CONFIDENTIAL
Classification Command Name ESC c 3 ESC c 4 ESC c 5 ESC d ESC e ESC i ESC m ESC p ESC r Function Type Executing Setting Cmds Cmds Range O O O O O O O O O 0 n 255 0 n 255 0 n 255 0 n 255 0n2 0m1 0 < t1 t2 255 n=0, 1
sss sss
more
Select paper sensor(s) to Paper sensor output paper-end signals Select paper sensor(s) to Paper sensor stop printing Enable/disable panel buttons Print and feed n lines Print and reverse feed n lines partial cut (one point left uncut) Panel button Print Print Mechanism control
Partical cut (three points Mechanism left uncut) Generate pulse Select print color Miscellaneous function Character
CONFIDENTIAL
Classification Command Name ESC t ESC u ESC v ESC { GS E Select character code table Transmit peripheral device status Transmit paper sensor status Turn upside-down printing mode on/off Select head control method Function Type Character Status Status Character Miscellaneous function O O O O Executing Setting Cmds Cmds Range O 0 n 5, n=255 n=0 0 n 255 0 n 255 Default n=0 n=0 n=1
CONFIDENTIAL
COMMAND LIST
s s
CONFIDENTIAL
COMMANDS ARRANGED BY FUNCTION
The print samples are images of the printing results of the program examples; they do not represent actual printing. In this table, click any item to see the command description with program examples and print samples. You can also use the bookmarks on the left side of the screen. Print Line spacing Character Panel button Paper sensor Print position Bit-image Status Bar code Macro function Mechanism control Miscellaneous function
CONFIDENTIAL
COMMANDS FOR PAPER ROLL PRINTERS
sss sss
more
This table gives (in alphanumeric order) all of the commands for paper roll printers. In this table, click any name to see the command description 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 HT LF FF CR CAN DLE EOT DLE ENQ DLE DC4 ESC FF ESC SP ESC ! ESC $ ESC % Name Horizontal tab Print and line feed Print and return to standard mode (in page mode) Print and feed label to print starting position (on label) Print and carriage return Cancel print data in page mode Real-time status transmission Real-time request to printer
Generate pulse at real time
Function Type Print position Print Print Print Character Status Miscellaneous function Miscellaneous function Print Character Character Print position Character
Print data in page mode Set right-side character spacing Select print mode(s) Set absolute print position Select/cancel user-defined character set
CONFIDENTIAL
Command ESC & ESC T ESC ESC 2 ESC 3 ESC < ESC = ESC ? ESC @ ESC D ESC E ESC G ESC J ESC K ESC L ESC M ESC R ESC S ESC T Name Define user-defined characters Select bit-image mode Turn underline mode on/off Select default line spacing Set line spacing Return home Select peripheral device Cancel user-defined characters Initialize printer Set horizontal tab positions Turn emphasized mode on/off Turn double-strike mode on/off Print and feed paper Print and reverse feed Select page mode Select character Select an international character set Select standard mode Select print direction in page mode Character Bit image Character
sss sss
more
Function Type
Line spacing Line spacing Mechanism control Miscellaneous function Character Miscellaneous function Print position Character Character Print Print Miscellaneous function Character Character Miscellaneous function Print position
CONFIDENTIAL
Command ESC U ESC V ESC W ESC \ ESC a ESC c 3 ESC c 4 ESC c 5 ESC d ESC e ESC i ESC m ESC p ESC r ESC t ESC u ESC v ESC { FS g 1 Name Turn unidirectional printing mode on/off Turn 90 clockwise rotation mode on/off Set printing area in page mode Set relative print position Select justification Select paper sensor(s) to output paper-end signals Select paper sensor(s) to stop printing Enable/disable panel buttons Print and feed n lines Print and reverse feed n lines Partial cut (one point left uncut) Partial cut (three points left uncut) Generate pulse Select print color Select character code table Transmit peripheral device status Transmit paper sensor status Turn upside-down printing mode on/off Write to user NV memory Character
sss sss
more
Function Type Mechanism control Print position Print position Print position Paper sensor Paper sensor Panel button Print Print Mechanism control Mechanism control Miscellaneous function Character Character Status Status Character Miscellaneous function
CONFIDENTIAL
Command FS g 2 FS p FS q GS FF GS ! GS $ GS T GS ( A GS / GS : GS < GS A GS B GS C 0 GS C 1 GS C 2 GS C ; GS E GS H Name Read from user NV memory Print non-volatile bit image Define non-volatile bit image Print and eject label Select character size Set absolute vertical print position in page mode Define downloaded bit image Execute test print Print downloaded bit image Start/end macro definition Initial printer mechanism Adjust label print starting position Turn white/black reverse printing mode on/off Select counter print mode Select count mode (A) Set counter Select count mode (B) Select head control method Select printing position of HRI characters Bit image Bit image Print Character
sss sss
more
Print position Bit image Miscellaneous function Bit image Macro function Miscellaneous function Miscellaneous function Character Miscellaneous function Miscellaneous function Miscellaneous function Miscellaneous function Miscellaneous function Bar code
CONFIDENTIAL
Command GS I GS L GS P GS V GS W GS \ GS ^ GS a GS b GS c GS f GS h GS k GS r GS v 0 GS w GS z 0 Name Transmit printer ID Set left margin Set horizontal and vertical motion units Select cut mode and cut paper Set printing area width Set relative vertical print position in page mode Execute macro Enable/disable Automatic Status Back (ASB) Turn smoothing mode on/off Print counter Select font for HRI characters Set bar code height Print bar code Transmit status Print raster bit image Set bar code width Set on-line recovery wait time Function Type Miscellaneous function Print position Miscellaneous function Mechanism control Print position Print position Macro function Status Character Miscellaneous function Bar code Bar code Bar code Status Bit image Bar code Status
CONFIDENTIAL
PRINT COMMANDS
Command LF CR ESC J n ESC K n ESC d n ESC e n FF ESC FF GS FF Name Print and line feed Print and carriage return Print and feed paper Print and reverse feed Print and feed n lines Print and reverse feed n lines (1) Print and return to standard mode (in page mode) (2) Print and feed label to print starting position (on label) Print data in page mode Print and eject label
CONFIDENTIAL
LF
Print and line feed ASCII LF Hex 0A Decimal 10 [Range] None [Default] None [Printers not featuring this command] None [Description] Prints the data in the print buffer and feeds one line. [Notes] s The amount of paper fed per line is based on the value set using the line spacing command (ESC 2 or ESC 3). s After printing, the printing position moves the beginning of the line. s When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing. [Model-dependent variations]
Program Example for all printers
PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); AAAAA BBBBB
[Name] [Format]
None
Print Sample
CONFIDENTIAL
sss sss
more
CR
[Name] [Format] Print and carriage return ASCII CR Hex 0D Decimal 13 [Range] None [Default] None [Printers not featuring this command] None [Description] Print head Line thermal Serial dot head When auto line feed is enabled Executes printing and one line feed as LF Executes printing and one line feed as LF When auto line feed is disabled This command is ignored Prints data in print buffer and does not feed the paper
CONFIDENTIAL
[Notes] s With a serial interface, auto line feed is disabled. s With a parallel interface, whether enabling or disabling the auto line feed can be selected by the DIP switch (Auto line feed). s After printing, the printing position moves to the beginning of the line. s When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing.
CONFIDENTIAL
TM-T88II Auto line feed for a parallel interface is selected by DIP switch 1-1. This printer has only a line thermal head.
CONFIDENTIAL
TM-L60II Auto line feed for a parallel interface is selected by DIP switch 1-1. This printer has only a line thermal head.
CONFIDENTIAL
TM-U200B/D Auto line feed for a parallel interface is selected by DIP switch 1-1. This printer has only a serial dot head.
CONFIDENTIAL
TM-U300A/B Auto line feed for a parallel interface is selected by DIP switch 1-1. This printer has only a serial dot head.
CONFIDENTIAL
ESC J n
Print and feed paper ASCII ESC J n Hex 1B 4A n Decimal 27 74 n [Range] 0 n 255 [Default] None [Printers not featuring this command] None [Description] Prints the data in the print buffer and feeds the paper n (vertical or horizontal motion unit). [Notes] s The maximum paper feed amount is 40 inches. If the specified amount exceeds 40 inches, the paper feed amount is automatically set to 40 inches. s When standard mode is selected, the vertical motion unit is used. s When page mode is selected, the vertical or horizontal motion unit is used for the print direction set by ESC T. When the starting position is set to the upper left or lower right of the printing area using ESC T, the vertical motion unit is used. When the starting position is set to the upper right or lower left of the printing area using ESC T, the horizontal motion unit is used. s After printing, the printing position moves to the beginning of the line. [Name] [Format]
sss sss
more
CONFIDENTIAL
s When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing. s This command is used to temporarily feed a specific length without changing the line spacing set by other commands. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D TM-U300A/B
Program Example for all printers
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"J";CHR$(100); PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA); CCCCC DDDDD AAAAA BBBBB ESC J used to print one line and advance the paper by 100/180 inch
Print Sample
CONFIDENTIAL
CONFIDENTIAL
TM-L60II The vertical or horizontal motion unit is specified by GS P. When a label is selected in standard mode and a paper feed amount that exceeds the length of one label is set, the printer feeds the label to the next print starting position.
CONFIDENTIAL
TM-U200B/D The vertical motion unit is 1/144 inches (the minimum movement amount). This value equals a half dot pitch. This command does not use the horizontal motion unit because the printer does not support Page mode.
CONFIDENTIAL
TM-U300A/B The vertical motion unit is 1/144 inches (the minimum movement amount). This value equals a half dot pitch. This command does not use the horizontal motion unit because the printer does not support Page mode.
CONFIDENTIAL
sss sss
more
ESC K n
Print and reverse feed ASCII ESC K n Hex 1B 4B n Decimal 27 75 n [Range] TM-U200B/D : 0 n 48 [Default] None [Printers not featuring this command] TM-T88II, TM-L60II, TM-U300A/B [Description] Prints the data in the print buffer and feeds the paper n (vertical motion unit) in the reverse direction. [Notes] s The maximum paper feed amount depends on the printer model. s After printing, the printing position moves to the beginning of the line. s This command is used to temporarily feed a specific length without changing the line spacing set by other commands. [Model-dependent variations] TM-U200B/D [Name] [Format]
CONFIDENTIAL
Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"K";CHR$(30); PRINT #1, " CCCCC"; CHR$(&HA);
ESC K used to print one line and then reverse feed the paper by 30/180 inch
CONFIDENTIAL
TM-U200B/D This command must not be executed continuously more than two times. The vertical motion unit is 1/144 inches (the minimum movement amount). This value equals a half dot pitch. In the reverse direction, the maximum paper feed amount is 48/144 inches. If the specified amount exceeds 48/144 inches, the printer only prints the data and does not feed the paper.
CONFIDENTIAL
ESC d n
[Name] [Format] Print and feed n lines ASCII ESC d n Hex 1B 64 n Decimal 27 100 n [Range] 0 n 255 [Default] None [Printers not featuring this command] None [Description] Prints the data in the print buffer and feeds n lines. [Notes] s The amount of paper fed per line is based on the value set using the line spacing command (ESC 2 or ESC 3). s The maximum paper feed amount is 40 inches. If the specified amount exceeds 40 inches, the paper feed amount is automatically set to 40 inches. s After printing, the printing position moves to the beginning of the line. s When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing. s This command is used to temporarily feed a specific line without changing the line spacing set by other commands. [Model-dependent variations] TM-L60II
sss sss
more
CONFIDENTIAL
Print Sample
ESC d used to print one line and advance the paper by six lines
CCCCC
CONFIDENTIAL
TM-L60II The vertical or horizontal motion unit is specified by GS P. When a label is selected in standard mode and a paper feed amount that exceeds the length of one label is set, the printer feeds the label to the next print starting position.
CONFIDENTIAL
sss sss
more
ESC e n
Print and reverse feed n lines ASCII ESC e n Hex 1B 65 n Decimal 27 101 n [Range] TM-U200B/D :0n2 [Default] None [Printers not featuring this command] TM-T88II, TM-L60II, TM-U300A/B [Description] Prints the data in the print buffer and feeds n lines in the reverse direction. [Notes] s The amount of paper fed per line is based on the value set using the line spacing command (ESC 2 or ESC 3). s The maximum paper feed amount depends on the printer model. s After printing, the printing position moves to the beginning of the line. s This command is used to temporarily feed a specific line without changing the line spacing set by other commands. [Model-dependent variations] TM-U200B/D [Name] [Format]
CONFIDENTIAL
Program Example for all printers
AAAAACCCCC BBBBB
Print Sample
PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"e";CHR$(1); PRINT #1, " CCCCC"; CHR$(&HA);
CONFIDENTIAL
TM-U200B/D This command must not be executed continuously more than two times. In the reverse direction, the maximum paper feed amount is 48/144 inches. If the specified amount exceeds 48/144 inches, the printer only prints the data and does not feed the paper.
CONFIDENTIAL
FF
(1) Print and return to standard mode (in page mode) ASCII FF Hex 0C Decimal 12 [Default] None [Range] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In page mode, prints the data in the print buffer collectively and returns to standard mode. [Notes] s This command is enabled only in page mode. s The data is deleted in the printing area after being printed. s This command returns the values set by ESC W to the default values. s The value set by ESC T is maintained. s After printing, the printing position moves to the beginning of the line. [Model-dependent variations] None [Name] [Format]
sss sss
more
CONFIDENTIAL
Print Sample
AAAAA BBBBB CCCCC
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0); CHR$(0);CHR$(60);CHR$(0);CHR$(90);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$(0); PRINT #1, "AAAAA"; CHR$(&HA); Store PRINT #1, "BBBBB"; CHR$(&HA); Store PRINT #1, "CCCCC"; CHR$(&HC); Batch
characters for printing characters for printing print
CONFIDENTIAL
FF
[Name] (2) Print and feed label to print starting position (on label) [Format] ASCII FF Hex 0C Decimal 12 [Default] None [Range] None [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Prints the data in the print buffer and feeds the next label to the print starting position. s This command is enabled only when a label is selected [Notes] in standard mode. Printer operation differs when page mode is selected. s The data is deleted in the printing area after being printed. s This command returns the values set by ESC W to the default values. s The value set by ESC T is maintained. s After printing, the printing position moves to the beginning of the line. TM-L60II
sss sss
more
[Model-dependent variations]
CONFIDENTIAL
Print Sample
CONFIDENTIAL
TM-L60II A thermal label is selected when DIP switch 2-6 is ON with a serial interface. A thermal label is selected when DIP switch 1-7 is ON with a parallel interface.
CONFIDENTIAL
sss sss
more
ESC FF
Print data in page mode ASCII ESC FF Hex 1B 0C Decimal 27 12 [Range] None [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In page mode, prints all buffered data in the printable area collectively. s This command is enabled only in page mode. [Notes] s After printing, the printer does not clear the buffered data, the printing position, or values set by other commands. s The printer returns to standard mode with FF, ESC S, and ESC @. When it returns to standard mode by ESC @, all settings are canceled. s This command is used when the data in page mode is printed repeatedly. [Model-dependent variations] None [Name] [Format]
CONFIDENTIAL
Print Sample
AAAAA BBBBB CCCCC
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0); CHR$(0);CHR$(120);CHR$(0);CHR$(170);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$(0); Select PRINT #1, "AAAAA"; CHR$(&HA); Store PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&HC);
print direction characters for printing
CONFIDENTIAL
sss sss
more
GS FF
[Name] [Format] Print and eject label ASCII GS FF Hex 1D 0C Decimal 29 12 [Default] None [Range] None [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Prints the data in the print buffer and ejects the label. s This command is enabled only when a label is selected. [Notes] s This command is enabled only when standard mode is selected. s When the label is advanced, the following processes are performed: After printing, the label is advanced so that it can be peeled off. The paper LED blinks waiting for the paper feed button to be pressed (press the button after peeling the label off). When the paper feed button is pressed, the next label is fed in reverse direction to the print starting position. When a left margin is set, the printing position is set to the left margin.
CONFIDENTIAL
s When panel buttons are disabled by ESC c 5, the paper feed button is enabled temporarily when the paper LED blinks to indicate that the printer is waiting for the paper feed button to be pressed (but a label cannot be fed). s LEDs and buttons differ depending on the printer models. [Model-dependent variations] TM-L60II
Program Example for all printers
PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1D);CHR$(&HC); PRINT #1, "CCCCC"; CHR$(&HA); AAAAA BBBBB
Print Sample
CCCCC
CONFIDENTIAL
TM-L60II Paper LED blinks waiting for a label being peeled off. Paper feed button is used for feeding a label. A thermal label is selected when DIP switch 2-6 is ON with a serial interface. A thermal label is selected when DIP switch 1-7 is ON with a parallel interface.
CONFIDENTIAL
LINE SPACING COMMANDS
Command ESC 2 ESC 3 n Name Select default line spacing Set line spacing
CONFIDENTIAL
ESC 2
Select default line spacing ASCII ESC 2 Hex 1B 32 Decimal 27 50 [Range] None [Default] None [Printers not featuring this command] None [Description] Sets the line spacing to 1/6 inch. [Notes] s The line spacing can be set independently in standard mode and in page mode. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D TM-U300A/B See program example for ESC 2 and ESC 3 n. [Name] [Format]
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
ESC 3 n
[Name] [Format]
sss sss
more
Set line spacing ASCII ESC 3 n Hex 1B 33 n Decimal 27 51 n [Range] 0 n 255 [Default] 1/6 inch or equivalent TM-T88II, TM-L60II: n=60 TM-U200B/D, TM-U300A/B: n = 24 [Printers not featuring this command] None [Description] Sets the line spacing to n (vertical or horizontal motion unit). [Notes] s The maximum line spacing is 40 inches. If the specified amount exceeds 40 inches, the line spacing is automatically set to 40 inches. s When standard mode is selected, the vertical motion unit is used. s When page mode is selected, the vertical or horizontal motion unit is used for the print direction set by ESC T. When the starting position is set to the upper left or lower right of the printing area using ESC T, the vertical motion unit is used. When the starting position is set to the upper right or lower left of the printing area using ESC T, the horizontal motion unit is used. s The line spacing can be set independently in standard mode and in page mode. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D TM-U300A/B See program example for ESC 2 and ESC 3 n.
CONFIDENTIAL
Print Sample
AAAAA AAAAA AAAAA AAAAA AAAAA AAAAA BBBBB CCCCC
25/180-inch line spacing 30/180-inch line spacing 35/180-inch line spacing 40/180-inch line spacing 45/180-inch line spacing 50/180-inch line spacing 1/6-inch line spacing
CONFIDENTIAL
CONFIDENTIAL
TM-L60II The vertical or horizontal motion unit is specified by GS P.
CONFIDENTIAL
TM-U200B/D The vertical motion unit is 1/144 inches (the minimum movement amount). This value equals a half dot pitch. This command does not use the horizontal motion unit because this printer does not support Page mode.
CONFIDENTIAL
TM-U300A/B The vertical motion unit is 1/144 inches (the minimum movement amount). This value equals a half dot pitch. This command does not use the horizontal motion unit because this printer does not support Page mode.
CONFIDENTIAL
CHARACTER COMMANDS
Command ESC SP n ESC % n Name Set right-side character spacing Select/cancel user-defined character set Define user-defined characters ESC ? n ESC R n ESC t n ESC ! n ESC n ESC E n ESC M n GS ! n GS b n ESC G n ESC { n ESC V n GS B n CAN ESC r n Cancel user-defined characters Select an international character set Select character code table Select print mode(s) Turn underline mode on/off Turn emphasized mode on/off Select character font Select character size Turn smoothing mode on/off Turn double-strike mode on/off Turn upside-down printing mode on/off Turn 90 clockwise rotation mode on/off Turn white/black reverse printing mode on/off Cancel print data in page mode Select print color
ESC & y c1 c2 [x1 d1 ... d(y x1)] ... [xk d1 ... d(y xk)]
CONFIDENTIAL
sss sss
more
ESC SP n
Set right-side character spacing ASCII ESC SP n Hex 1B 20 n Decimal 27 32 n [Range] TM-T88II, TM-L60II, TM-U200B/D: 0 n 255 TM-U300A/B: 0 n 32 [Default] n=0 [Printers not featuring this command] None [Description] Sets the right-side character spacing to n (horizontal or vertical motion unit). [Notes] s The right-side character spacing set by this command is effective for all characters (except for HRI characters). s When characters are enlarged, the right-side character spacing is n times normal value. The right-side character spacing for double-width mode is twice the normal value. s When standard mode is selected, the horizontal motion unit is used. [Name] [Format]
CONFIDENTIAL
s When page mode is selected, the vertical or horizontal motion unit is used for the print direction set by ESC T. When the starting position is set to the upper left or lower right of the printing area using ESC T, the horizontal motion unit is used. When the starting position is set to the upper right or lower left of the printing area using ESC T, the vertical motion unit is used. s The right-side character spacing can be set independently in standard mode and in page mode. s It is used to change the spacing between characters. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D TM-U300A/B
Print Sample
AAAAA
B B BB B
CCCCC
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
TM-U200B/D The horizontal motion unit is 1/160 inches (the minimum movement amount). This value equals a half dot pitch. This command does not use the vertical motion unit because the printer does not support Page mode.
CONFIDENTIAL
TM-U300A/B The horizontal motion unit is 1/160 inches (the minimum movement amount). This value equals a half dot pitch. This command does not use the vertical motion unit because the printer does not support Page mode.
CONFIDENTIAL
ESC % n
[Name] [Format] Select/cancel user-defined character set ASCII ESC % n Hex 1B 25 n Decimal 27 37 n [Range] 0 n 255 [Default] n=0 [Printers not featuring this command] None [Description] Selects or cancels the user-defined character set. When the LSB of n is 0, the user-defined character set is canceled. When the LSB of n is 1, the user-defined character set is selected. [Note] s When the user-defined character set is canceled, the resident character set is automatically selected. [Model-dependent variations] TM-U200B/D See program example for ESC %, ESC & and ESC ?.
CONFIDENTIAL
TM-U200B/D This command is effective only when the receive buffer capacity is 40 bytes (when DIP switch 1-2 is ON).
CONFIDENTIAL
ESC & y c1 c2 [x1 d1 ... d(y x1)] ... [xk d1 ... d(y xk)]
[Name] [Format]
sss sss
more
[Range]
Define user-defined characters ASCII ESC & y c1 c2 [x1 d1 ... d(y x1)] ... [xk d1 ... d(y xk)] Hex 1B 26 y c1 c2 [x1 d1 ... d(y x1)] ... [xk d1 ... d(y xk)] Decimal 27 38 y c1 c2 [x1 d1 ... d(y x1)] ... [xk d1 ... d(y xk)] TM-T88II: y = 3 32 1 c2 126 0 x 12 (Font A (12 24)) 0 x 9 (Font B (9 24)) 0 d 255 k = c2c1+1 TM-L60II: y = 3 32 c1 c2 126 0 x 12 (Font A (12 24)) 0 x 9 (Font B (9 24)) 0 d 255 k = c2c1+1 TM-U200B/D:y = 2 32 c1 c2 126 0 x 12 (Font A (9 9)) 0 x 10 (Font B (7 9)) 0 d1 ... d (y x) 255 k = c2 - c1 + 1
CONFIDENTIAL
TM-U300A/B:y = 2 32 c1 c2 126 0 x 12 (Font A (9 9)) 0 x 10 (Font B (7 9)) 0 d 255 k = c2 - c1 + 1 [Default] None [Printers not featuring this command] None [Description] Defines user-defined characters from character code check c1 to c2. y specifies the number of bytes in the vertical direction. x specifies the number of dots in the horizontal direction. d is the dot data for the user-defined characters. [Notes] s Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can be defined. s Data (d) specifies a bit printed to 1 and not printed to 0. The dot pattern is in the horizontal direction from the left side. Any remaining dots on the right side are blank. s The data to define a user-defined character is (y x) bytes. s This command can define user-defined characters for each font independently. To select a font, use ESC ! or ESC M.
sss sss
more
CONFIDENTIAL
s A user-defined character and downloaded bit image cannot be defined simultaneously. When this command is executed, the downloaded bit image is cleared. s Once the user-defined characters have been defined, they are available until ESC ?, GS T, or ESC @, is executed; the user-defined characters are redefined; the power is turned off; or the printer is reset. s The user-defined characters are not defined at the default and the resident characters are printed. [Model-dependent variations] TM-U200B/D TM-U300A/B
CONFIDENTIAL
TM-U200B/D The dots adjoining each other horizontally cannot be printed. Only the MSB can be printed in the second byte for vertical direction. This command is effective only when the receive buffer capacity is 40 bytes (when DIP switch 1-2 is ON). The maximum number of user-defined characters is 19.
CONFIDENTIAL
TM-U300A/B The dots adjoining each other horizontally cannot be printed. Only the MSB can be printed in the second byte for vertical direction. The maximum number of user-defined characters differs depending on the receive buffer capacity as described below. When the maximum number of user-defined characters is defined, it is possible to redefine user-defined characters for the defined ASCII code, but not for the new ASCII code. Receive buffer capacity 1k bytes 40 bytes 0 bytes Maximum number of userdefined characters 9 44 44
CONFIDENTIAL
ESC ? n
Cancel user-defined characters ASCII ESC ? n Hex 1B 3F n Decimal 27 63 n [Range] 32 n 126 [Default] None [Printers not featuring this command] TM-U300A/B [Description] Cancels the user-defined characters defined for the character code n. [Notes] s After the user-defined characters are canceled, the resident character set is printed. s This command can cancel user-defined characters for each font independently. To select a font, use ESC ! or ESC M. [Model-dependent variations] TM-U200B/D See program example for ESC %, ESC & and ESC ?. [Name] [Format]
CONFIDENTIAL
Print Sample
A B C D E o D E A D E
Characters from resident character set Characters from user-defined character set Characters from user-defined character set (cancel one character)
CONFIDENTIAL
TM-U200B/D This command is effective only when the receive buffer capacity is 40 bytes (when DIP switch 1-2 is ON).
CONFIDENTIAL
sss sss
more
ESC R n
[Name] [Format] Select an international character set ASCII ESC R n Hex 1B 52 n Decimal 27 82 n [Range] 0 n 10 [Default] n=0 [Printers not featuring this command] None
CONFIDENTIAL
sss sss
more
0 1 2 3 4 5 6 7 8 9
U.S.A. France Germany U.K. Denmark I Sweden Italy Spain Japan Norway
# # # # # #
Pt
$ $ $ $ $ $ $ $ $
@ @ @ @ @ @
[ [ [
\ \ \
] ] ]
^ ^ ^ ^ ^ ^ ^ ^
` ` ` ` ` ` `
{ { {
} } } }
~ ~ ~ ~ ~
# # #
10 Denmark II
[Model-dependent variations]
None
CONFIDENTIAL
Print Sample
$ $ $ $ $ $ $ $ $ @ @ @ @ @ @ [ [ [ \ \ \ ] ] ] ^ ^ ^ ^ ^ ^ ^ ^ ` ` ` ` ` ` ` { { { } } } } ~ ~ ~ ~ ~ n=0 (Default setting) n=1 n=2 n=3 n=4 n=5 n=6 n=7 n=8 n=9 n=10
# # #
CONFIDENTIAL
sss sss
more
ESC t n
[Name] [Format] Select character code table ASCII ESC t n Hex 1B 74 n Decimal 27 116 n [Range] TM-T88II, TM-L60II, TM-U300A/B: 0 n 5, n = 255 TM-U200B/D: 0 n 5, n = 254, 255 [Default] n=0 [Printers not featuring this command] None [Description] Selects a page n from the character code table as follows: n 0 1 2 3 4 5 254 255 Character Code Table Page 0 [PC437 (U.S.A. , Standard Europe)] Page 1 [Katakana] Page 2 [PC850 (Multilingual)] Page 3 [PC860 (Portuguese)] Page 4 [PC863 (Canadian-French)] Page 5 [PC865 (Nordic)] Page 254 [Space page] Page 255 [Spave page]
CONFIDENTIAL
s 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. [Model-dependent variations] None [Note]
Program Example for all printers
PRINT GOSUB PRINT GOSUB END #1, CHR$(&H1B);"t";CHR$(0); Select page 0 printing #1, CHR$(&H1B);"t";CHR$(1); Select page 1 printing
Print Sample
Page 0
printing: FOR i=&H20 TO &H7F PRINT #1, CHR$(i); NEXT i PRINT #1, CHR$(&HA); FOR i=&H80 TO &HFF PRINT #1, CHR$(i); NEXT i PRINT #1, CHR$(&HA); RETURN
Page 1
CONFIDENTIAL
sss sss
more
ESC ! n
Select print mode(s) ASCII ESC ! n Hex 1B 21 n Decimal 27 33 n [Range] 0 n 255 [Default] TM-T88II, TM-L60II: n = 0 TM-U200B/D, TM-U300A/B: n = 1 [Printers not featuring this command] None [Description] Selects or cancels print modes collectively using n as follows: [Name] [Format]
CONFIDENTIAL
Bit Off/On Hex Off 0 On 1, 2 Off 3 On Off 4 On Off 5 On 6 Off 7 On 80 128 20 00 32 0 10 00 16 0 08 00 8 0 01 00 1 0 00 Decimal Function 0 Character font A selected. Character font B selected. Undefined. Emphasized mode not selected. Emphasized mode selected. Double-height mode not selected. Double-height mode selected. Double-width mode not selected. Double-width mode selected. Undefined. Underline mode not selected. Underline mode selected.
s s s
sss sss
more
CONFIDENTIAL
sss sss
more
[Notes]
s Functions for each bit can also be executed by the following commands: Bit 0 (character font): ESC M Bit 3 (Emphasized mode): ESC E Bit 4, 5 (character size): GS ! Bit 7 (underline mode): ESC s Configurations of Font A and Font B are different, depending on the printer model. s The print modes set by this command are effective for all characters (except for HRI characters). s When some characters in a line are double-height, all characters on the line are aligned at the baseline. s When double-width mode is turned on, the characters are enlarged to the right, based on the left side of the character. s When both double-height and double-width modes are turned on, quadruple size characters are printed. s In standard mode, the character is enlarged in the paper feed direction when double-height mode is selected, and it is enlarged perpendicular to the paper feed direction when double-width mode is selected. However, when character orientation changes in 90 clockwise-rotated mode, the relationship between double-height and double-width is reversed.
CONFIDENTIAL
s In page mode, double-height and double-width are on the character orientation. s The underline thickness is that specified by ESC , regardless of the character size. s When underline mode is turned on, 90 clockwiserotated characters and white/black reverse characters cannot be underlined. s The printer cannot underline the space set by HT, ESC $, and ESC \. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D TM-U300A/B
Program Example for all printers
PRINT #1, CHR$(&H1B);"!";CHR$(0); "AA"; PRINT #1, CHR$(&H1B);"!";CHR$(8); "BB"; PRINT #1, CHR$(&H1B);"!";CHR$(16); "CC"; PRINT #1, CHR$(&H1B);"!";CHR$(24); "DD"; PRINT #1, CHR$(&H1B);"!";CHR$(32); "EE"; PRINT #1, CHR$(&H1B);"!";CHR$(40); "FF"; PRINT #1, CHR$(&H1B);"!";CHR$(48); "GG"; PRINT #1, CHR$(&H1B);"!";CHR$(56); "HH"; CHR$(&HA); PRINT #1, CHR$(&H1B);"!";CHR$(129); "AA"; PRINT #1, CHR$(&H1B);"!";CHR$(137); "BB"; PRINT #1, CHR$(&H1B);"!";CHR$(145); "CC"; PRINT #1, CHR$(&H1B);"!";CHR$(153); "DD"; PRINT #1, CHR$(&H1B);"!";CHR$(161); "EE"; PRINT #1, CHR$(&H1B);"!";CHR$(169); "FF"; PRINT #1, CHR$(&H1B);"!";CHR$(177); "GG"; PRINT #1, CHR$(&H1B);"!";CHR$(185); "HH"; CHR$(&HA); AA: Normal BB: Emphasized CC: Double-height DD: Emphasized + Double-height EE: Double-width FF: Emphasized + Double-width GG: Double-height + Double-width HH: Emphasized + Double-height + Double-width
Print Sample
Font
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
TM-U300A/B Character configurations Bit 0: Font A: 9 9 Font B: 7 9 Bit 3 is undefined. This printer does not support the emphasized mode.
CONFIDENTIAL
sss sss
more
ESC n
Turn underline mode on/off ASCII ESC n Hex 1B 2D n Decimal 27 45 n [Range] TM-T88II, TM-L60II : 0 n 2, 48 n 50 TM-U200B/D: n = 0, 1, 48, 49 [Default] n=0 [Printers not featuring this command] TM-U300A/B [Description] Turns underline mode on or off using n as follows: n 0, 48 1, 49 2, 50 Function Turned off underline mode Turned on underline mode (1-dot thick) Turned on underline mode (2-dots thick) [Name] [Format]
CONFIDENTIAL
s The underline mode is effective for all characters (except for HRI characters). s When underline mode is turned on, 90 clockwise rotated characters and white/black reverse characters cannot be underlined. s The printer cannot underline the space set by HT, ESC $, and ESC \. s Changing the character size does not affect the current underline thickness. s When underline mode is turned off, the following data cannot be underlined, but the thickness is maintained. s This command and bit 7 of ESC ! turn on and off underline mode in the same way. s Some of the printer models support the 2-dot thick underline (n = 2 or 5). [Model-dependent variations] None [Notes]
Program Example for all printers
PRINT #1, CHR$(&H1B);"-";CHR$(1); Select PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"-";CHR$(0); Cancel PRINT #1, "BBBBB"; CHR$(&HA); AAAAA BBBBB
Print Sample
Underline (1-dot thick) turned on Underline turned off
CONFIDENTIAL
ESC E n
Turn emphasized mode on/off ASCII ESC E n Hex 1B 45 n Decimal 27 69 n [Range] 0 n 255 [Default] n=0 [Printers not featuring this command] TM-U300A/B [Description] Turns emphasized mode on or off. When the LSB of n is 0, emphasized mode is turned off. When the LSB of n is 1, emphasized mode is turned on. [Notes] s The emphasized mode is effective for all characters (except for HRI characters). s This command and bit 3 of ESC ! turn on and off emphasized mode in the same way. [Model-dependent variations] None
Program Example for all printers
PRINT #1, CHR$(&H1B);"E";CHR$(1); Select PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"E";CHR$(0); Cancel PRINT #1, "BBBBB"; CHR$(&HA); AAAAA Emphasized BBBBB Normal
[Name] [Format]
Print Sample
CONFIDENTIAL
sss sss
more
ESC M n
[Name] [Format] Select character font ASCII ESC M n Hex 1B 4D n Decimal 27 77 n [Range] n = 0, 1, 48, 49 [Default] n=0 [Printers not featuring this command]TM-L60II, TM-U200B/D, TM-U300A/B [Description] Selects a character font, using n as follows: n 0, 48 1, 49 [Notes] Font Font A Font B
s The character font set by this command is effective for all characters (except for HRI characters). s Configurations of font A and font B depend on the printer model. s This command and bit 0 of ESC ! select character font A or B in the same way. [Model-dependent variations] TM-T88II
CONFIDENTIAL
Print Sample
Font
B
CONFIDENTIAL
CONFIDENTIAL
sss sss
more
GS ! n
Select character size ASCII GS ! n Hex 1D 21 n Decimal 29 33 n [Range] TM-T88II, TM-L60II: 0 n 7, 16 n 23, 32 n 39, 48 n 55, 64 n 71, 80 n 87, 96 n 103, 112 n 119 (1 height 8, 1 width 8) [Default] n=0 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Selects the character height (vertical number of times normal font size) using bits 0 to 2 and selects the character width (horizontal number of times normal font size) using bits 4 to 6, as follows: [Name] [Format]
CONFIDENTIAL
sss sss
more
Character Width Selection Bit6 Bit5 Bit4 Hex Decimal Off Off Off Off On On On On Off Off On On Off Off On On Off On Off On Off On Off On 00 10 20 30 40 50 60 70 0 16 32 48 64 80 96 112 Width 1 (normal) 2 (doublewidth) 3 4 5 6 7 8
Character Height Selection Bit2 Bit1 Bit0 Hex Decimal Off Off Off Off On On On On Off Off On On Off Off On On Off On Off On Off On Off On 00 01 02 03 04 05 06 07 0 1 2 3 4 5 6 7 Height 1 (normal) 2 (doubleheight) 3 4 5 6 7 8
[Notes]
s The character size set by this command is effective for all characters (except for HRI characters). s When the characters are enlarged with different height on one line, all the characters on the line are aligned at the baseline. s When the characters are enlarged with width, the characters are enlarged to the right, based on the left side of the character. s ESC ! can also turn double-width and double-height modes on or off.
CONFIDENTIAL
s In standard mode, the character is enlarged in the paper feed direction when double-height mode is selected, and it is enlarged perpendicular to the paper feed direction when double-width mode is selected. However, when character orientation changes in 90 clockwise-rotated mode, the relationship between double-height and double-width is reversed. s In page mode, double-height and double-width are on the character orientation. [Model-dependent variations] None
Program Example for all printers
PRINT #1, CHR$(&H1D);"!";CHR$(17); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1D);"!";CHR$(0); PRINT #1, "BBBBB"; CHR$(&HA);
Print Sample
AAAAA
BBBBB
CONFIDENTIAL
GS b n
[Name] [Format] Turn smoothing mode on/off ASCII GS b n Hex 1D 62 n Decima 29 98 n [Range] 0 n 255 [Default] n=0 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Turns smoothing mode on or off. When the LSB of n is 0, smoothing mode is turned off. When the LSB of n is 1, smoothing mode is turned on. [Note] s The smoothing mode is effective for all quadruple-size or larger characters (except for HRI characters). [Model-dependent variations] None
Program Example for all printers
AAAAA
PRINT #1, CHR$(&H1D);"!";CHR$(68); Select font size PRINT #1, CHR$(&H1D);"b";CHR$(1); Select smoothing PRINT #1, "AAAAA"; CHR$(&HA);
Print Sample
CONFIDENTIAL
ESC G n
Turn double-strike mode on/off ASCII ESC G n Hex 1B 47 n Decimal 27 71 n [Range] 0 n 255 [Default] n=0 [Printers not featuring this command] TM-U300A/B [Description] Turns double-strike mode on or off. When the LSB of n is 0, double-strike mode is turned off. When the LSB of n is 1, double-strike mode is turned on. [Note] s The double-strike mode is effective for all characters (except for HRI characters). [Model-dependent variations] None
Program Example for all printers
PRINT #1, CHR$(&H1B);"G";CHR$(1); Select PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"G";CHR$(0); Cancel PRINT #1, "BBBBB"; CHR$(&HA); AAAAA Double-strike BBBBB Normal
[Name] [Format]
Print Sample
CONFIDENTIAL
sss sss
more
ESC { n
[Name] [Format] Turn upside-down printing mode on/off ASCII ESC { n Hex 1B 7B n Decimal 27 123 n [Range] 0 n 255 [Default] n=0 [Printers not featuring this command] None [Description] In standard mode, turns upside-down printing mode on or off. When the LSB of n is 0, upside-down printing mode is turned off. When the LSB of n is 1, upside-down printing mode is turned on.
CONFIDENTIAL
s When standard mode is selected, this command is enabled only when processed at the beginning of the line. s The upside-down printing mode is effective for all data in standard mode. s The upside-down printing mode has no effect in page mode. If this command is processed in page mode, an internal flag is activated and this flag is enabled when the printer returns to standard mode. s When upside-down printing mode is turned on, the printer prints 180-rotated characters from right to left. The line printing order is not reversed; therefore, be careful of the order of the data transmitted. [Model-dependent variations] None [Notes]
Program Example for all printers
PRINT #1, CHR$(&H1B);"{";CHR$(0); Cancel PRINT #1, "ABCDE"; CHR$(&HA); PRINT #1, "BCDEF"; CHR$(&HA); PRINT #1, CHR$(&H1B);"{";CHR$(1); Select PRINT #1, "ABCDE"; CHR$(&HA); PRINT #1, "BCDEF"; CHR$(&HA);
Print Sample
Normal printing
CONFIDENTIAL
sss sss
more
ESC V n
[Name] [Format] Turn 90 clockwise rotation mode on/off ASCII ESC V n Hex 1B 56 n Decimal 27 86 n [Range] TM-T88II, TM-L60II : n = 0, 1, 48, 49 [Default] n=0 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In standard mode, turns 90 clockwise rotation mode on or off, using n as follows: n 0, 48 1, 48 2, 50 Function Turns off 90 clockwise rotation mode. Turns on 90 clockwise rotation mode (1-dot character spacing). Turns on 90 clockwise rotation mode (1.5-dot character spacing).
CONFIDENTIAL
sss sss
more
[Notes]
s The 90 clockwise rotation mode is effective for all characters (except for HRI characters) in standard mode. s When underline mode is turned on, the printer does not underline 90 clockwise-rotated characters. s When character orientation changes in 90 clockwise rotation mode, the relationship between vertical and horizontal directions is reversed. s The 90 clockwise rotation mode has no effect in page mode. If this command is processed in page mode, an internal flag is activated and this flag is enabled when the printer returns to standard mode. s Some printer models support 90 clockwise rotation mode when n = 2 or 50. s Some printer models have a font for which 90 clockwise rotation mode is not effective. [Model-dependent variations] None
CONFIDENTIAL
Print Sample
ABC
ABC ABC
ABC ABC
ABC
ESC V 1
ESC V 0
PRINT #1, CHR$(&H1B);"V";CHR$(0); Cancel PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, "CCCCC"; CHR$(&HA);
Character spacing
CONFIDENTIAL
sss sss
more
GS B n
[Name] [Format] Turn white/black reverse printing mode on/off ASCII GS B n Hex 1D 42 n Decimal 29 66 n [Range] 0 n 255 [Default] n=0 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Turns white/black reverse printing mode on or off. When the LSB of n is 0, white/black reverse printing mode is turned off. When the LSB of n is 1, white/black reverse printing mode is turned on. [Notes] s The white/black reverse printing mode is effective for all characters (except for HRI characters). s When white/black reverse printing mode is turned on, it also affects the right-side character spacing set by ESC SP.
CONFIDENTIAL
s When white/black reverse printing mode is turned on, it does not affect the space between lines. s When underline mode is turned on, the printer does not underline white/black reverse characters. s In white/black reverse printing mode, characters are printed in white on a black background. [Model-dependent variations] None
Program Example for all printers
PRINT #1, CHR$(&H1D);"B";CHR$(1); Select PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1D);"B";CHR$(0); Cancel PRINT #1, "BBBBB"; CHR$(&HA);
Print Sample
AAAAA White/black reverse BBBBB Normal printing
printing
CONFIDENTIAL
CAN
[Name] [Format] Cancel print data in page mode ASCII CAN Hex 18 Decimal 24 [Range] None [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In page mode, deletes all the print data for the current printing area. [Notes] s This command is enabled only in page mode s If data set in the previously specified printing area is set in the currently specified printing area, it is deleted. [Model-dependent variations] None
Program Example for all printers
PRINT #1, CHR$(&H1B);"L"; Select page mode PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0); CHR$(0);CHR$(240);CHR$(0);CHR$(44);CHR$(1); PRINT #1, CHR$(&H1B);"T";CHR$(0); Select print direction FOR i=1 TO 200 : PRINT #1, "A"; : NEXT i PRINT #1, CHR$(&H1B);"W";CHR$(60);CHR$(0);CHR$(90); CHR$(0);CHR$(60);CHR$(0);CHR$(120);CHR$(0); PRINT #1, CHR$(&H18); Cancel print data PRINT #1, CHR$(&HC); Batch print and return to standard mode AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAA AAAAAAAAAA AAAAA AAAAAAAAAA AAAAA AAAAAAAAAA AAAAA AAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA
Print Sample
CONFIDENTIAL
ESC r n
Select print color ASCII ESC r n Hex 1B 72 n Decimal 27 114 n [Range] TM-U200B/D: n = 0, 1, 48, 49 TM-U300A/B: n = 0, 1 [Default] n=0 [Printers not featuring this command] TM-T88II, TM-L60II [Description] Selects a print color, using n as follows: n 0, 48 1, 49 [Notes] Print color Black Red [Name] [Format]
sss sss
more
s When standard mode is selected, this command is enabled only when processed at the beginning of the line. s When page mode is selected, the color setting is the same for all data collectively printed by FF or ESC FF. [Model-dependent variations] TM-U200B/D
CONFIDENTIAL
Print Sample
CONFIDENTIAL
CONFIDENTIAL
PANEL BUTTON COMMAND
Command ESC c 5 n Name Enable/disable panel buttons
CONFIDENTIAL
sss sss
more
ESC c 5 n
Enable/disable panel buttons ASCII ESC c 5 n Hex 1B 63 35 n Decimal 27 99 53 n [Range] 0 n 255 [Default] n=0 [Printers not featuring this command] None [Description] Enables or disables the panel buttons. When the LSB of n is 0, all buttons are enabled. When the LSB of n is 1, all buttons are disabled. [Notes] s When the printer cover is open, there are buttons that are always enabled or disabled regardless of this command. The buttons are different, depending on the printer model. s When the LED blinks to indicate that the printer is waiting for the paper feed button to be pressed in the following status (but paper cannot be fed): When GS ^ is executed When GS FF is executed During the recovery confirmation time set by GS z 0 [Name] [Format]
CONFIDENTIAL
s During the paper loading wait time set by GS z 0, paper can be fed by the paper feed button. s To prevent problems caused by accidentally pressing the buttons, use this command to disable the buttons. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D TM-U300A/B
CONFIDENTIAL
TM-T88II The panel button is FEED. When the cover is open and the paper roll end sensor detects a paper end, the FEED button is disabled regardless of the setting of this command.
CONFIDENTIAL
TM-L60II The panel button is PAPER FEED. When the cover is open, the PAPER FEED is enabled regardless of the settings of this command. When the paper roll end sensor detects a paper end, the PAPER FEED is disabled regardless of the settings of this command.
CONFIDENTIAL
CONFIDENTIAL
TM-U300A/B The panel button is FEED. When the cover is open, this button is enabled regardless of the settings of this command.
CONFIDENTIAL
PAPER SENSOR COMMANDS
Command ESC c 4 n ESC c 3 n Name Select paper sensor(s) to stop printing Select paper sensor(s) to output paper-end signals
CONFIDENTIAL
sss sss
more
ESC c 4 n
Select paper sensor(s) to stop printing ASCII ESC c 4 n Hex 1B 63 34 n Decimal 27 99 52 n [Range] 0 n 255 [Default] TM-T88II, TM-L60II, TM-U200B/D, TM-U300A/B: n = 0 [Printers not featuring this command] None [Name] [Format]
CONFIDENTIAL
[Description] Selects whether to stop printing or not when the paper runs out using n as follows: Bit Off/On Hex Off 0 On Off 1 On Off 2 On Off 3 On 4-7 [Notes] 08 8 02 00 4 0 02 00 2 0 01 00 1 0 00 Decimal Function 0 Paper roll near-end sensor disabled. Paper roll near-end sensor enabled. Paper roll near-end sensor disabled. Paper roll near-end sensor enabled. Paper roll end sensor disabled. Paper roll end sensor enabled. Paper roll end sensor disabled. Paper roll end sensor enabled. Undefined.
s s s
sss sss
more
s It is possible to select multiple sensors to stop printing. When any sensor detects a paper-end, printing stops. s Some sensors are not present, depending on the printer model.
CONFIDENTIAL
s The names of some sensors differ depending on the printer model. s The paper roll near-end sensor is enabled when either bit 0 or bit 1 is on or both are on. s The paper roll end sensor is enabled when either bit 2 or bit 3 is on or both are on. s When a paper near-end is detected, printing stops after printing the current line and feeding the paper. The printer goes off-line and Paper LED comes on after printing stops. To resume printing, cancel the "paper roll near-end" status by replacing the paper roll. s If the paper roll near-end sensor is disabled and a paper near-end is detected, printing does not stop and the printer does not go off-line, but the Paper LED comes on. s When a paper roll end is detected, the printer performs the same operations as when a paper roll near-end is detected. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D TM-U300A/B
Program Example for all printers
PRINT #1, CHR$(&H1B);"c4";CHR$(1);
Paper roll near-end sensor enabled
CONFIDENTIAL
TM-T88II Bits 2 and 3 are undefined. The paper roll end sensor is always enabled and when it detects a paper-end, the printer stops printing. When a paper roll near-end or a paper roll end are detected, the PAPER OUT LED comes on.
CONFIDENTIAL
TM-L60II Bits 2 and 3 are undefined. The paper roll end sensor is always enabled and when it detects a paper-end, the printer stops printing. When a paper roll near-end or a paper roll end are detected, the PAPER LED comes on.
CONFIDENTIAL
TM-U200B/D Bits 2 and 3 are undefined. When a paper roll near-end or a paper roll end is detected, the PAPER OUT LED comes on. The paper roll end sensor is always enabled and when it detects a paper-end, the printer stops printing. The paper roll near-end sensor is an option. When the paper roll near-end sensor is not equipped, this command is ignored.
CONFIDENTIAL
TM-U300A/B Bits 1 and 3 are undefined. When a paper roll near-end or a paper roll end is detected, the PAPER OUT LED comes on.
CONFIDENTIAL
ESC c 3 n
Select paper sensor(s) to output paper-end signals ASCII ESC c 3 n Hex 1B 63 33 n Decimal 27 99 51 n [Range] 0 n 255 [Default] TM-T88II, TM-U200B/D: n = 15 TM-L60II, TM-U300A/B: n = 3 [Printers not featuring this command] None [Description] Selects whether to output paper-end signals to a parallel interface or not when a paper-end is detected by the sensor selected, using n as follows: Bit Off/On Hex Decimal Function Off 0 On Off 1 On 02 2 01 00 1 0 00 0 Paper roll near-end sensor disabled. Paper roll near-end sensor enabled. Paper roll near-end sensor disabled. Paper roll near-end sensor enabled. [Name] [Format]
sss sss
more
s s s
CONFIDENTIAL
sss sss
more
Bit
Off/On Hex Decimal Function Off 00 02 00 08 0 4 0 8 Paper roll end sensor disabled. Paper roll end sensor enabled. Paper roll end sensor disabled. Paper roll end sensor enabled. Undefined.
s This command is enabled only with a parallel interface and is ignored with a serial interface. s The paper roll near-end sensor is enabled when either bit 0 or bit 1 is on or both are on. s The paper roll end sensor is enabled when either bit 2 or bit 3 is on or both are on. s It is possible to select multiple sensors to output signals. When any of the sensors detects a paper-end, the paper-end signal is output. s When all sensors are disabled, the paper-end signal is always paper present.
CONFIDENTIAL
s Some sensors are not present, depending on the printer model. s The names of some sensors differ depending on the printer model. [Model-dependent variations] TM-U200B/D TM-U300A/B
Program Example for all printers
PRINT #1, CHR$(&H1B);"c3";CHR$(4);
Paper roll end sensor enabled
CONFIDENTIAL
TM-U200B/D The paper roll near-end sensor is an option. If the paper roll near-end sensor is not equipped, this printer does not detect a paper roll near-end.
CONFIDENTIAL
CONFIDENTIAL
PRINT POSITION COMMANDS
Command HT GS L nL nH GS W nL nH ESC a n ESC $ nL nH ESC \ nL nH Name Horizontal tab Set left margin Set printing area width Select justification Set absolute print position Set relative print position Set printing area in page mode ESC T n GS $ nL nH GS \ nL nH Select print direction in page mode Set absolute vertical print position in page mode Set relative vertical print position in page mode
CONFIDENTIAL
HT
[Name] [Format] Horizontal tab ASCII HT Hex 09 Decimal 9 [Range] None [Default] None [Printers not featuring this command] None [Description] Moves the printing position to the next horizontal tab. [Notes] s This command is ignored unless the next horizontal tab position has been set. s Horizontal tab positions are set by ESC D. s If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [Printing area width + 1]. s If this command is processed when the printing position is at [Printing area width + 1], the printer executes print buffer-full printing of the current line and horizontal tab processing from the beginning of the next line. In this case, in page mode, the printer does not execute printing but the printing position is moved. [Model-dependent variations] TM-U200B/D See program example for HT and ESC D.
CONFIDENTIAL
TM-U200B/D This command is effective only when the receive buffer capacity is 40 bytes (when DIP switch 1-2 is ON).
CONFIDENTIAL
sss sss
more
CONFIDENTIAL
s This command cancels any previous horizontal tab settings. s Transmit [n]k in ascending order and place a NUL code at the end. ESC D NUL cancels all horizontal tab positions. s When [n] is less than or equal to the preceding value [n]k-1, horizontal tab setting is finished and the following data is processed as normal data. s k is not transmission data to the printer. [Model-dependent variations] TM-U200B/D See program example for HT and ESC D.
CONFIDENTIAL
TM-U200B/D This command is effective only when the receive buffer capacity is 40 bytes (when DIP switch 1-2 is ON).
CONFIDENTIAL
Print Sample
0123456789012345678901234567890123456 H H H H H H HH
16
24
32
CONFIDENTIAL
sss sss
more
GS L nL nH
[Name] [Format] Set left margin ASCII GS L nL nH Hex 1D 4C nL nH Decimal 29 76 nL nH [Range] 0 nL 255 0 nH 255 [Default] nL = 0, nH = 0 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In standard mode, sets the left margin to (nL + nH 256) (horizontal motion unit) from the left edge of the printable area. s When standard mode is selected, this command is [Notes] enabled only when processed at the beginning of the line. s If the setting exceeds the printable area, the left margin is automatically set to the maximum value of the printable area.
CONFIDENTIAL
s If this command and GS W 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. [Model-dependent variations] TM-T88II TM-L60II See program example for GS L and GS W.
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
sss sss
more
GS W nL nH
Set printing area width ASCII GS W nL nH Hex 1D 57 nL nH Decimal 29 87 nL nH [Range] 0 nL 255 0 nH 255 [Default] Entire printable area TM-T88II: nL = 0, nH = 2 TM-L60II: nL = 128, nH = 1 (when thermal paper is selected) nL = 112, nH = 1 (when thermal label is selected) [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In standard mode, sets the printing area width to (nL + nH 256) (horizontal motion unit). [Notes] s When standard mode is selected, this command is enabled only when processed at the beginning of the line. s The printing area width has no effect in page mode. If this command is processed in page mode, the printing area width is set and it is enabled when the printer returns to standard mode. [Name] [Format]
CONFIDENTIAL
s If the [left margin + printing area width] exceeds the printable area, the printing area width is automatically set to [printable area - left margin]. s If this command and GS L 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. [Model-dependent variations] TM-T88II TM-L60II See program example for GS L and GS W.
CONFIDENTIAL
CONFIDENTIAL
TM-L60II The horizontal motion unit is specified by GS P. When DIP switch 2-6 is off with a serial interface or DIP switch 1-7 is off with a parallel interface, a thermal paper is selected. When DIP switch 2-6 is on with a serial interface or DIP switch 1-7 is on with a parallel interface, a thermal label is selected.
CONFIDENTIAL
Print Sample
01234567890123456789 0123456789 0123456789
CONFIDENTIAL
ESC a n
[Name] [Format] Select justification ASCII ESC a n Hex 1B 61 n Decimal 27 97 n [Range] 0 n 2, 48 n 50 [Default] n=0 [Printers not featuring this command] TM-U300A/B [Description] In standard mode, aligns all the data in one line to a specified position, using n as follows: n 0, 48 1, 49 2, 50 Justification Left justification Centered Right justification
sss sss
more
CONFIDENTIAL
[Notes] s When standard mode is selected, this command is enabled only when processed at the beginning of the line in standard mode. s The justification has no effect in page mode. If this command is processed in page mode, an internal flag is activated and this flag is enabled when the printer returns to standard mode. s This command executes justification in the printing area set by GS L and GS W. s This command justifies printing data (such as characters, bit images, and bar codes) and space area set by HT, ESC $, and ESC \. [Model-dependent variations] None
Print Sample
ABC ABCD ABCDE
ESC a 0
ESC a 1
ESC a 2
CONFIDENTIAL
sss sss
more
ESC $ nL nH
[Name] [Format] Set absolute print position ASCII ESC $ nL nH Hex 1B 24 nL nH Decimal 27 36 nL nH [Range] 0 nL 255 0 nH 255 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Sets the print starting position to (nL + nH 256) (horizontal or vertical motion unit) from the beginning of the line.
CONFIDENTIAL
[Notes]
s The printer ignores any setting that exceeds the printing area. s When standard mode is selected, the horizontal motion unit is used. s When page mode is selected, the horizontal or vertical motion unit is used for the print direction set by ESC T. When the starting position is set to the upper left or lower right of the printing area using ESC T, the horizontal motion unit is used. When the starting position is set to the upper right or lower left of the printing area using ESC T, the vertical motion unit is used. TM-T88II TM-L60II
[Model-dependent variations]
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
sss sss
more
ESC \ nL nH
[Name] [Format} Set relative print position ASCII ESC \ nL nH Hex 1B 5C nL nH Decimal 27 92 nL nH [Range] 0 nL 255 0 nH 255 [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Moves the print starting position to (nL + nH 256) (horizontal or vertical motion unit) from the current position. [Notes] s The printer ignores any setting that exceeds the printing area. s A positive number specifies movement to the right, and a negative number specifies movement to the left. N pitch movement to the right: (nL + nH 256) = N. Use the complement of N for setting N pitch movement to the left: (nL + nH 256) = 65536 N. s When standard mode is selected, the horizontal motion unit is used.
CONFIDENTIAL
s When page mode is selected, the horizontal or vertical motion unit is used for the print direction set by ESC T. When the starting position is set to the upper left or lower right of the printing area using ESC T, the horizontal motion unit is used. When the starting position is set to the upper right or lower left of the printing area using ESC T, the vertical motion unit is used. [Model-dependent variations] TM-T88II TM-L60II See program example for ESC $ and ESC \.
CONFIDENTIAL
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, "ABCD"; PRINT #1, CHR$(&H1B);"$";CHR$(90);CHR$(0); Set PRINT #1, "EFGH"; CHR$(&HA); PRINT #1, "ABCD"; PRINT #1, CHR$(&H1B);"\";CHR$(90);CHR$(0); Set PRINT #1, "EFGH"; CHR$(&HA);
relative position 90/180 inch absolute position
ABCD ABCD
EFGH EFGH
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
sss sss
more
CONFIDENTIAL
[Description] In page mode, sets the size and the logical origin of the printing area as follows: Horizontal logical origin = (xL + xH 256) (horizontal motion unit) from absolute origin. Vertical logical origin = (yL + yH 256) (vertical motion unit) from absolute origin. Printing area width = (dxL + dxH 256) (horizontal motion unit) Printing area height = (dyL + dyH 256) (vertical motion unit) s Both printing area width and height cannot be set to 0. [Notes] s The absolute origin is the upper left of the printable area. s If the horizontal or vertical logical origin is set outside the printable area, this command is canceled. s If [horizontal logical origin + printing area width] exceeds the printable area, the printing area width is automatically set to [horizontal printable area horizontal logical origin]. s If [vertical logical origin + printing area height] exceeds the printable area, the printing area height is automatically set to [vertical printable area vertical logical origin]. s The printing area and the logical origin set by this command is effective only in page mode.
sss sss
more
CONFIDENTIAL
s This command setting has no effect in standard mode.
[Model-dependent variations]
Program Example for all printers
PRINT #1, CHR$(&H1B);"L"; Select
page mode
TM-T88II
TM-L60II
Print Sample
AAAAA BBBBB
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(180); CHR$(0);CHR$(44);CHR$(1); Set printing area PRINT #1, CHR$(&H1B);"T";CHR$(0); Select PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1B);"T";CHR$(2); Select PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HC); Batch
print and return to standard mode print direction print direction
CCCCC DDDDD
CONFIDENTIAL
TM-T88II The vertical or horizontal motion unit is specified by GS P. The printable area width is 512/180 inches and the printable area height is 1662/360 inches.
CONFIDENTIAL
TM-L60II The vertical or horizontal motion unit is specified by GS P. The printable area height is 2216/360 inches and the printable area width is as follows: When a thermal paper is selected, it is 384/180 inches. When a thermal label is selected, it is 368/180 inches.
CONFIDENTIAL
sss sss
more
ESC T n
Select print direction in page mode ASCII ESC T n Hex 1B 54 n Decimal 27 84 n [Range] 0 n 3, 48 n 51 [Default] n=0 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In page mode, selects the print direction and starting position using n as follows: n Print Direction
D
[Name] [Format]
Starting Position Upper left (A in the figure) Lower left (B in the figure) Lower right (C in the figure) Upper right (D in the figure)
Printing area
CONFIDENTIAL
sss sss
more
[Notes]
s The print direction set by this command is effective only in page mode. s This command setting has no effect in standard mode.
s The parameters for the horizontal or vertical motion unit differ depending on the starting position of the printing area as follows: If the starting position is the upper left or lower right of the printing area: These commands use horizontal motion units: ESC SP, ESC $, ESC \ These commands use vertical motion units: ESC 3, ESC J, GS $, GS \ If the starting position is the upper right or lower left of the printing area: These commands use horizontal motion units: ESC 3, ESC J, GS $, GS \ These commands use vertical motion units: ESC SP, ESC $, ESC \ [Model-dependent variations] None
CONFIDENTIAL
Print Sample
AAAAA BBBBB Printing area set by ESC W EEEEE
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0); CHR$(240);CHR$(0);CHR$(200);CHR$(0); Set printing area PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1B);"T";CHR$(1); Select PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA); PRINT #1, CHR$(&H1B);"T";CHR$(2); Select PRINT #1, "EEEEE"; CHR$(&HC); Batch
print direction print and return to standard mode print direction
CCCCC DDDDD
print direction
CONFIDENTIAL
GS $ nL nH
Set absolute vertical print position in page mode ASCII GS $ nL nH Hex 1D 24 nL nH Decimal 29 36 nL nH [Range] 0 nL 255, 0 nH 255 [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In page mode, sets the vertical printing position to (nL + nH 256) (vertical or horizontal motion unit) from the starting position set by ESC T. [Notes] s This command is enabled only in page mode. If this command is processed in standard mode, it is ignored. s The printer ignores any setting that exceeds the printing area set by ESC W. s The horizontal or vertical motion unit is used for the print direction set by ESC T. When the starting position is set to the upper left or lower right of the printing area using ESC T, the vertical motion unit is used. When the starting position is set to the upper right or lower left of the printing area using ESC T, the horizontal motion unit is used. [Model-dependent variations] TM-T88II TM-L60II See program example for GS $ and GS \. [Name] [Format]
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
sss sss
more
GS \ nL nH
[Name] [Format] Set relative vertical print position in page mode ASCII GS \ nL nH Hex 1D 5C nL nH Decimal 29 92 nL nH [Range] 0 nL 255 0 nH 255 [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] In page mode, moves the vertical printing position to (nL + nH 256) (vertical or horizontal motion unit) from the current position. [Notes] s This command is enabled only in page mode. If this command is processed in standard mode, it is ignored. s The printer ignores any setting that exceeds the printing area set by ESC W. s A positive number specifies movement to the downward, and a negative number specifies movement to the upward. N pitch movement to the downward: (nL + nH 256) = N. Use the complement of N for setting N pitch movement to the upward: (nL + nH 256) = 65536 N.
CONFIDENTIAL
s The horizontal or vertical motion unit is used for the print direction set by ESC T. When the starting position is set to the upper left or lower right of the printing area using ESC T, the vertical motion unit is used. When the starting position is set to the upper right or lower left of the printing area using ESC T, the horizontal motion unit is used. [Model-dependent variations] TM-T88II TM-L60II See program example for GS $ and GS \.
CONFIDENTIAL
Print Sample
AAAAA BBBBB
90/180 inch
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0); CHR$(180);CHR$(0);CHR$(144);CHR$(1); Set printing area PRINT #1, CHR$(&H1B);"T";CHR$(0); Select PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; PRINT #1, CHR$(&H1D);"$";CHR$(90);CHR$(0); Set PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA); PRINT #1, "EEEEE"; PRINT #1, CHR$(&H1D);"\";CHR$(90);CHR$(0); Set PRINT #1, "FFFFF"; CHR$(&HC); Batch
relative position print and return to standard mode absolute position print direction
FFFFF
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
BIT-IMAGE COMMANDS
Command ESC T m nL nH d1 ... dk FS p FS q GS T x y d1 ... d(x y 8) GS / m GS v 0 m xL xH yL yH d1 ... dk Name Select bit-image mode Print NV bit image Define NV bit image Define downloaded bit image Print downloaded bit image Print raster bit image
CONFIDENTIAL
sss sss
more
ESC T m nL nH d1 ... dk
Select bit-image mode ASCII ESC m nL nH T Hex 1B 2A m nL nH Decimal 27 42 m nL nH [Range] TM-T88II: m = 0, 1, 32, 33 0 nL 255 0 nH 3 0 d 255 TM-L60II: m = 0, 1, 32, 33 0 nL 255 0 nH 3 0 d 255 TM-U200B/D:m = 0, 1 0 nL 255 0 nH 3 0 d 255 TM-U300A/B:m = 0, 1 0 nL 255 0 nH 3 0 d 255 [Default] None [Printers not featuring this command] None [Name] [Format] d1 ... dk d1 ... dk d1 ... dk
CONFIDENTIAL
[Description] Selects a bit-image mode using m for the number of dots specified by (nL + nH 256), as follows: m 0 1 32 33 Mode 8-dot singledensity 8-dot doubledensity 24-dot singledensity
sss sss
more
Number of Bits Dot Density in for Vertical data Horizontal Amount of Data (k) 8 8 24 Single-density nL + nH 256
d indicates the bit image data. [Notes] s Data (d) specifies a bit printed to 1 and not printed to 0. s If the bit image data exceeds the number of dots to be printed on a line, the excess data is ignored. s The bit-image is not affected by print mode (emphasized, double-strike, underline, character size, white/black reverse printing, or 90 clockwise-rotated), except for upside-down printing mode.
CONFIDENTIAL
s After printing a bit image, the printer processes normal data. s When printing multiple line bit images, selecting unidirectional printing mode with ESC U enables printing patterns in which the top and bottom parts are aligned vertically. s This command is used to print a picture or logo. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D TM-U300A/B
Program Example for all printers
m=0: m=1: END
m=1
Print Sample
m=0
bitimage8: PRINT #1, CHR$(&H1B);"T";CHR$(m);CHR$(70);CHR$(0); FOR i=1 TO 5 PRINT #1, CHR$(1);CHR$(2);CHR$(4);CHR$(8); PRINT #1, CHR$(16);CHR$(32);CHR$(64);CHR$(128); PRINT #1, CHR$(64);CHR$(32);CHR$(16);CHR$(8); PRINT #1, CHR$(4);CHR$(2); NEXT i PRINT #1, CHR$(&HA); RETURN
CONFIDENTIAL
CONFIDENTIAL
CONFIDENTIAL
m 0 1
Mode
72 DPI 72 DPI
Permitted Prohibited
200 400
CONFIDENTIAL
m 0 1
Mode
72 DPI 72 DPI
Permitted Prohibited
200 400
CONFIDENTIAL
GS T x y d1 ... d(x y 8)
Define downloaded bit image ASCII GS T 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] TM-T88II: 1 x 255 1 y 48 x y 1536 0 d 255 TM-L60II: 1 x 255 1 y 48 x y 1536 0 d 255 [Default] None [Printers not featuring this command] TM-U200B/D TM-U300A/B [Description] Defines a downloaded bit image using (x 8) dots in the horizontal direction and (y 8) dots in the vertical direction. d indicates the bit image data. [Notes] s Data (d) specifies a bit printed to 1 and not printed to 0. [Name] [Format]
sss sss
more
CONFIDENTIAL
s If the value of x, y, or (x y) is out of the range, this command is canceled, and the following data is processed as normal data. s The downloaded bit image is not defined at the default. s 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. s Downloaded bit image and a user-defined character cannot be defined simultaneously. When this command is executed, the user-defined character is cleared. s The downloaded bit image is printed by GS /. [Model-dependent variations] None See program example for GS T and GS /.
CONFIDENTIAL
sss sss
more
GS / m
Print downloaded bit image ASCII GS / m Hex D 2F m Decimal 29 47 m [Range] 0 m 3, 48 m 51 [Default] None [Printers not featuring this command] TM-U200B/D TM-U300A/B [Description] Prints a downloaded bit image using the mode specified by m, as follows: m 0, 48 1, 49 2, 50 3, 51 Mode Normal Double-width Double-height Quadruple [Name] [Format]
CONFIDENTIAL
[Notes] s This command is ignored if a downloaded bit image has not been defined. s When standard mode is selected, this command is enabled only when there is no data in the print buffer. s After printing, the printing position moves to the beginning of the line. s When page mode is selected, this command develops the downloaded bit image data in the print buffer but the printer does not print the downloaded bit image data. s If a downloaded bit image exceeds one line, the excess data is not printed. s This command feeds as much paper as is required to print the downloaded bit image, regardless of the line spacing specified by ESC 2 or ESC 3. s The downloaded bit image is not affected by print mode (emphasized, double-strike, underline, character size, white/black reverse printing, or 90 clockwiserotated), except for upside-down printing mode. s When printing a downloaded bit image, selecting unidirectional printing mode with ESC U enables printing patterns in which the top and bottom parts are aligned vertically. s The downloaded bit image is defined by GS T. [Model-dependent variations] TM-T88II TM-L60II See program example for GS T and GS /.
CONFIDENTIAL
0, 48 1, 49 2, 50 3, 51
CONFIDENTIAL
TM-L60II The modes selectable m are as follows:
m Mode Vertical Dot Density Horizontal Dot Density
0, 48 1, 49 2, 50 3, 51
CONFIDENTIAL
PRINT #1, CHR$(&H1D);"*";CHR$(18);CHR$(5); FOR i=1 TO 18*5*8 READ a$: d=VAL("&H"+a$) PRINT #1, CHR$(d); NEXT i PRINT #1, CHR$(&H1B);"U";CHR$(1); PRINT #1, CHR$(&H1D);"/";CHR$(0);CHR$(&HA); PRINT #1, CHR$(&H1D);"/";CHR$(1);CHR$(&HA);
Normal Double width
DATA 85,55,55,55,42,4A,AA,AA,AA,A4,85,55,55,55,42 DATA 4A,AA,AA,AA,A4,85,00,05,00,02,4A,08,0A,80,04 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 DATA 85,55,55,00,02,42,AA,AA,00,04,81,55,54,00,02 DATA 40,AA,A8,00,04,80,55,50,00,02,40,00,00,00,04 DATA 80,00,00,00,02,40,00,00,00,04,80,2A,AA,A8,02 DATA 40,55,55,54,04,80,AA,AA,AA,02,41,55,55,55,04 DATA 82,AA,AA,AA,82,45,40,00,05,44,8A,80,00,02,A2 DATA 45,00,00,01,44,8A,80,00,02,A2,45,00,00,01,44 DATA 8A,80,00,02,A2,45,00,00,01,44,8A,80,00,02,A2 DATA 45,00,00,01,44,8A,80,00,02,A2,45,40,00,05,44 DATA 82,AA,AA,AA,82,41,55,55,55,04,80,AA,AA,AA,02 DATA 40,55,55,54,04,80,2A,AA,A8,02,40,00,00,00,04 DATA 80,00,00,00,02,40,00,00,00,04,80,AA,00,02,A2 DATA 41,55,00,01,44,82,AA,80,02,A2,45,55,40,01,44 DATA 8A,AA,A0,02,A2,45,45,50,01,44,8A,82,A8,02,A2 DATA 45,01,54,01,44,8A,80,AA,02,A2,45,00,55,01,44 DATA 8A,80,2A,82,A2,45,00,15,55,44,8A,80,0A,AA,A2 DATA 45,00,05,55,44,8A,80,02,AA,82,40,00,01,55,04 DATA 80,00,00,00,02,40,00,00,00,04,80,00,00,00,02 DATA 40,00,00,00,04,AA,AA,AA,AA,AA,55,55,55,55,54
DATA AA,AA,AA,AA,AA,55,55,55,55,54,80,00,00,00,02 DATA 40,00,00,00,04,80,00,00,00,02,40,00,00,00,04 DATA 8A,AA,AA,AA,A2,45,55,55,55,44,8A,AA,AA,AA,A2 DATA 45,55,55,55,44,8A,AA,AA,AA,A2,45,00,50,01,44 DATA 8A,80,A8,02,A2,45,00,50,01,44,8A,80,A8,02,A2 DATA 45,00,50,01,44,8A,80,A8,02,A2,45,00,50,01,44 DATA 8A,80,A8,02,A2,45,00,00,01,44,8A,80,00,02,A2 DATA 40,00,00,00,04,80,00,00,00,02,40,00,00,00,04 DATA 80,AA,00,02,A2,41,55,00,01,44,82,AA,80,02,A2 DATA 45,55,40,01,44,8A,AA,A0,02,A2,45,45,50,01,44 DATA 8A,82,A8,02,A2,45,01,54,01,44,8A,80,AA,02,A2 DATA 45,00,55,01,44,8A,80,2A,82,A2,45,00,15,55,44 DATA 8A,80,0A,AA,A2,45,00,05,55,44,8A,80,02,AA,82 DATA 40,00,01,55,04,80,00,00,00,02,40,00,00,00,04 DATA 80,00,00,00,02,40,15,55,50,04,80,2A,AA,A8,02 DATA 40,55,55,54,04,80,AA,AA,AA,02,41,55,55,55,04 DATA 82,A8,00,2A,82,45,50,00,15,44,8A,A0,00,0A,A2 DATA 45,40,00,05,44,8A,80,00,02,A2,45,00,00,01,44 DATA 8A,80,00,02,A2,45,00,00,01,44,8A,80,00,02,A2 DATA 45,00,00,01,44,8A,80,00,02,A2,40,00,00,00,04 DATA 80,00,00,00,02,40,00,00,00,04,80,00,00,00,62 DATA 40,00,00,03,84,80,00,00,1C,02,40,00,00,60,04 DATA 80,00,03,80,02,40,00,1C,00,04,80,00,60,00,02 DATA 40,03,80,00,04,80,0C,00,00,02,40,70,00,00,04
Print Sample
GS / 0
GS / 1
GS / 1
CONFIDENTIAL
GS v 0 m xL xH yL yH d1 ... dk
Print raster bit image ASCII GS v 0 m xL xH yL yH d1...dk Hex 1D 76 30 m xL xH yL yH d1...dk Decimal 29 118 48 m xL xH yL yH d1...dk [Range] TM-T88II: 0 m 3, 48 m 51 0 xL 255 0 xH 255 0 yL 255 0 yH 8 0 d 255 k = (xL + xH 256) (yL + yH 256) (except for k = 0) [Default] None [Printers not featuring this command] TM-L60II TM-U200B/D TM-U300A/B [Description] Prints a raster bit image using the mode specified by m, as follows: m 0, 48 1, 49 2, 50 3, 51 Mode Normal Double-width Double-height Quadruple [Name] [Format]
sss sss
more
CONFIDENTIAL
sss sss
more
[Notes]
Prints a raster bit image using (xL + xH 256) bytes in the horizontal direction. Prints a raster bit image using (yL + yH 256) dots in the vertical direction. d indicates the bit image data. s When standard mode is selected, this command is enabled only when there is no data in the print buffer. s After printing, the printing position moves to the beginning of the line. s When page mode is selected, this command is enabled. s Data (d) specifies a bit printed to 1 and not printed to 0. s If a raster bit image exceeds one line, the excess data is not printed. s The raster bit image is not affected by print modes (emphasized, double-strike, underline, character size, white/black reverse printing, upside-down printing, or 90 clockwise-rotated). s This command feeds as much paper as is required to print the raster bit image, regardless of the line spacing specified by ESC 2 or ESC 3. s If this command is processed while a macro is being defined, the printer cancels macro definition, clears the definition, and prints a raster bit image. s After printing a raster bit image, the printer processes normal data.
[Model-dependent variations]
TM-T88II
CONFIDENTIAL
Program Example
PRINT #1, CHR$(&H1D);"v0";CHR$(0); PRINT #1, CHR$(16);CHR$(0);CHR$(40);CHR$(0); FOR i=1 TO 16*40 READ a$: d=VAL("&H"+a$) PRINT #1, CHR$(d); NEXT i DATA FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF DATA FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF DATA C0,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03 DATA C0,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03 DATA CF,FF,E0,FF,E0,3F,F8,00,5F,FF,80,1F,FC,00,FF,E3 DATA CF,FF,E3,FF,E0,FF,F8,00,5F,FF,E0,7F,FF,03,FF,E3 DATA CF,FF,E7,FF,E1,FF,F8,00,DF,FF,E0,FF,FF,87,FF,E3 DATA CF,FF,E7,FF,E1,FF,F8,00,9F,FF,F0,FF,FF,87,FF,E3 DATA CF,FF,EF,FF,E3,FF,F8,00,9F,FF,F1,FF,FF,CF,FF,E3 DATA CF,FF,EF,FF,E3,FF,F8,01,9F,FF,F1,FF,FF,CF,FF,E3 DATA CF,80,0F,E0,07,F0,00,01,1F,83,F9,F8,0F,CF,E0,03 DATA CF,80,0F,C0,07,F0,00,01,1F,81,F9,F8,0F,CF,C0,03 DATA CF,80,0F,C0,07,E0,00,03,1F,81,FB,F0,07,EF,C0,03 DATA CF,80,0F,C0,07,E0,00,02,1F,81,FB,F0,07,EF,C0,03 DATA CF,80,0F,E0,07,E0,00,06,1F,81,FB,F0,07,EF,E0,03 DATA CF,80,0F,F0,07,E0,00,04,1F,81,FB,F0,07,EF,F0,03 DATA CF,FF,C7,F8,07,E0,00,04,1F,81,FB,F0,07,E7,F8,03 DATA CF,FF,C7,FC,07,E0,00,0C,1F,81,FB,F0,07,E7,FC,03 DATA CF,FF,C3,FE,07,E0,00,08,1F,81,FB,F0,07,E3,FE,03 DATA CF,FF,C1,FF,07,E0,00,18,1F,83,FB,F0,07,E1,FF,03 DATA CF,FF,C0,FF,87,E0,00,18,1F,FF,F3,F0,07,E0,FF,83 DATA CF,FF,C0,7F,C7,E0,00,10,1F,FF,F3,F0,07,E0,7F,C3 Normal mode
Print Sample
CONFIDENTIAL
0, 48 1, 49 2, 50 3, 51
CONFIDENTIAL
STATUS COMMANDS
Command GS a n GS r n DLE EOT n ESC u n ESC v Name Enable/disable Automatic Status Back (ASB) Transmit status Real-time status transmission Transmit peripheral device status Transmit paper sensor status
CONFIDENTIAL
sss sss
more
GS a n
[Name] [Format] Enable/disable Automatic Status Back (ASB) ASCII GS a n Hex 1D 61 n Decimal 29 97 n [Range] 0 n 255 [Default] When DIP switch (BUSY condition) is Off : n = 0 When DIP switch (BUSY condition) is On : n = 2 [Printers not featuring this command] TM-U300A/B
CONFIDENTIAL
sss sss
more
[Description] Enable or disable ASB and specifies the status items to include, using n as follows: Bit Off/On Hex Decimal Function Off 0 On 1 2 3 4-7 Off On Off On Off On 01 00 02 00 04 00 08 1 0 2 0 4 0 8 00 0 Drawer kick-out connector pin 3 status disabled. Drawer kick-out connector pin 3 status enabled. On-line/off-line status disabled. On-line/off-line status enabled. Error status disabled. Error status enabled. Paper roll sensor status disabled. Paper roll sensor status enabled. Undefined.
s s s
CONFIDENTIAL
sss sss
more
[Notes]
s ASB is enabled if any status item is selected. The printer transmits a 4-byte status when this command is executed. The printer automatically transmits a 4-byte status message whenever the status changes. The disabled status items may change, because each status transmission represents the current status. s Multiple status items can be selected. s When n=0, ASB is disabled. s The 4-byte status are transmitted without confirming whether the host computer is ready to receive data. The 4-byte status must be consecutive, except for the XOFF code. s If ASB is enabled when the printer is disabled by ESC =, the printer transmits the 4-byte status message whenever the status changes. s The ASB statuses, corresponding to each bit for n are as follows:
CONFIDENTIAL
n Bit Function 0 Drawer kick-out connector pin 3 status. ASB status Bit Bit 2 of the first byte Bit 3 of the first byte Bit 5 of the first byte 1 On-line/off-line status. Bit 6 of the first byte Bit 0 of the second byte Bit 2 of the second byte Bit 3 of the second byte Bit 5 of the second byte Bit 6 of the second byte Paper roll sensor status. Bits 0 and 1 of the third byte Bits 2 and 3 of the third byte Status Drawer kick-out connector pin 3 status. On-line/ off-line status. Cover status. Paper is being fed by paper feed button status. Waiting for on-line recovery status. Mechanical error status. Autocutter error status. Unrecoverable error status. Automatically recoverable error status. Paper roll near-end sensor status. Paper roll end sensor status.
sss sss
more
s s s
Error status.
CONFIDENTIAL
s The status to be transmitted are as follows: First byte (printer information) Off/ Bit On 0 1 Off Off Off 2 On 3 4 5 Off On On Off On Off 6 On 7 Off 40 00 64 0 04 00 08 10 00 20 00 4 0 8 16 0 32 0 Hex Decimal Status for ASB 00 00 00 0 0 0 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 is closed. Cover is open. Paper is not being fed by the paper feed button. Paper is being fed by the paper feed button. Not used. Fixed to Off.
sss sss
more
s s s
CONFIDENTIAL
Second byte (printer information) Off/ Bit On 0 1 2 3 4 5 Off On Off On Off On Off Off On Off 6 On 7 Off 40 00 64 0 Hex Decimal Status for ASB 00 01 00 04 00 08 00 00 20 00 0 1 0 4 0 8 0 0 32 0 Not waiting for on-line recovery. Waiting for on-line recovery. Undefined No mechanical error. Mechanical error occurred. No autocutter error. Autocutter error occurred. Not used. Fixed to Off. No unrecoverable error. Unrecoverable error occurred. No automatically recoverable error. Automatically recoverable error occurred. Not used. Fixed to Off.
sss sss
more
s s s
CONFIDENTIAL
If mechanical error (bit 2) or autocutter error (bit 3) occurs due to paper jams or the like, it is possible to recover by correcting a cause of the error and executing DLE ENQ. But if an error due to a circuit failure (e.g. wire break) occurs, it is impossible to recover. Printing is stopped while automatically recoverable error (bit 6) occurs. If an unrecoverable error (bit 5) occurs, turn off the power as soon as possible.
sss sss
more
CONFIDENTIAL
Third byte (paper sensor information) Bit Off/ On Off 0, 1 On Off 2, 3 On 4 5,6 7 Off Off 0C 00 00 12 0 0 03 00 3 0 Hex Decimal Status for ASB 00 0 Paper roll near-end sensor: paper adequate. Paper roll near-end sensor: paper near end. Paper roll end sensor: paper present. Paper roll end sensor: paper not present. Not used. Fixed to Off. Undefined Not used. Fixed to Off.
sss sss
more
s s s
Some paper sensors are not present, depending on the printer model. The names of some paper sensors are different, depending on the printer model.
CONFIDENTIAL
Fourth byte (paper sensor information) Off/ Bit On 0-3 4 7 Off Off 5,6 Hex 00 00 Decimal 0 0 Status for ASB Undefined Not used. Fixed to Off. Undefined Not used. Fixed to Off.
s s s
CONFIDENTIAL
TM-T88II The default value is set by DIP switch 2-1. s Second byte (printer information) Bits 0 and 2 of the second byte are undefined. Automatically recoverable error indicates the high head temperature error or the paper roll cover open error during printing. s Third byte (paper sensor information) When the paper roll cover is open, paper detection (detected by the paper roll end sensor) may be incorrect.
CONFIDENTIAL
TM-L60II With a serial interface, the default value is set by DIP switch 2-1. With a parallel interface, the default value is set by DIP switch 1-3. s Second byte (printer information) Bits 0 and 3 of the second byte are undefined. Mechanical error indicates the label detection error. Automatically recoverable error indicates the high head temperature error.
CONFIDENTIAL
TM-U200B/D The default value is set by DIP switch 1-8. s First byte (printer information) Bit 5 of the first byte is undefined. s Second byte (printer information) Mechanical error indicates the home position detection error. Automatically recoverable error indicates the high head temperature error. s Third byte (paper sensor information) The paper roll near-end sensor is an option. If the printer is not equipped with the paper near-end sensor, bits 0 and 1 of the third byte are always ON, Paper adequate.
CONFIDENTIAL
sss sss
more
GS r n
[Name] [Format] Transmit status ASCII GS r n Hex 1D 72 n Decimal 29 114 n [Range] n = 1, 2, 49, 50 [Default] None [Printers not featuring this command] TM-U300A/B [Description] Transmits 1 byte of status data using n as follows:
n
Function Transmits paper sensor status Transmits drawer kick-out connector status
1, 49 2, 50 [Notes]
s When DTR/DSR control is selected by DIP switch (Handshaking) with a serial interface, the printer transmits the status after confirming that the host is ready to receive data. If the host computer is not ready to receive data, the printer waits until the host becomes ready. s When XON/XOFF control is selected by DIP switch (Handshaking) with a serial interface, the printer transmits the status without confirming whether the host computer can receive data.
CONFIDENTIAL
s The status to be transmitted is as follows: Paper sensor status (n=1, 49) Bit Off/ On Off 0, 1 On Off 2, 3 On 4 5,6 7 Off Off 0C 00 00 12 0 0 03 00 3 0 Hex 00 Decimal Status 0 Paper roll near-end sensor: paper adequate. Paper roll near-end sensor: paper near end. Paper roll end sensor: paper present. Paper roll end sensor: paper not present. Not used. Fixed to Off. Undefined. Not used. Fixed to Off.
sss sss
more
sss
Some paper sensors are not present, depending on the printer model. The names of some paper sensors are different, depending on the printer model.
CONFIDENTIAL
Drawer kick-out connector status (n=2, 50) Bit Off/On Hex Off 0 On 1-3 4 7 Off Off 01 00 00 1 0 0 TM-T88II 00 Decimal Status 0 Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. Undefined. Not used. Fixed to Off. Undefined. Not used. Fixed to Off. TM-L60II TM-U200B/D
s s s
5, 6
[Model-dependent variations]
CONFIDENTIAL
TM-T88II Handshaking for a serial interface is selected by DIP switch 1-3. s Paper sensor status (n = 1, 49) When the paper roll end sensor detects a paper-end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 of the paper sensor status do not transmit a paperend status. When the paper roll cover is open, paper detection (detected by the paper roll end sensor) may be incorrect.
CONFIDENTIAL
TM-L60II Handshaking for a serial interface is selected by DIP switch 1-3. s Paper sensor status (n = 1, 49) When the paper roll end sensor detects a paper-end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 of the paper sensor status do not transmit a paperend status.
CONFIDENTIAL
TM-U200B/D Handshaking for a serial interface is selected by DIP switch 1-3. s Paper sensor status (n = 1, 49) The paper roll near-end sensor is an option. If the printer is not equipped with the paper near-end sensor, bits 0 and 1 of the third byte are always ON, Paper adequate. When the paper roll end sensor detects a paper-end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 of the paper sensor status do not transmit a paperend status.
CONFIDENTIAL
sss sss
more
DLE EOT n
[Name] [Format] Real-time status transmission ASCII DLE EOT n Hex 10 04 n Decimal 16 4 n [Range] 1n4 [Default] None [Printers not featuring this command] TM-U300A/B [Description] Transmits 1 byte of status data specified in real time, using n as follows:
n
Function Transmit printer status Transmit off-line status Transmit error status Transmit paper roll sensor status
1 2 3 4
CONFIDENTIAL
sss sss
more
[Notes]
s The printer executes this command upon receiving it. s The printer transmits the status without confirming whether the host computer can receive data. s 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. s With a parallel interface model, this command is not executed in the following conditions, because the printer is busy and unable to receive data from the host computer. The DIP switch (BUSY condition) is different, depending on the printer model. Receive buffer is full when DIP switch is set to On. Printer is off-line, an error occurs, or receive buffer is full when DIP switch is set to Off.
CONFIDENTIAL
s The real-time status to be transmitted is as follows: Printer status (n=1) Bit 0 1 Off/ On Off On Off 2 On 3 4 5 6 7 Off On On Off On Off 04 00 08 10 00 20 00 4 0 8 16 0 32 0 Hex 00 02 00 Decimal Status 0 2 0 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. Undefined. Not used. Fixed to Off.
sss sss
more
s s s
CONFIDENTIAL
Off-line status (n=2) Bit Off/On Hex 0 1 2 Off On Off On Off 3 On 4 5 On Off On Off On Off 08 10 00 20 00 40 00 8 16 0 32 0 64 0 00 02 00 04 00 Decimal Status 0 2 0 4 0 Not used. Fixed to Off. Not used. Fixed to On. Cover is closed. Cover is open. Paper is not being fed by the paper feed button. Paper is being fed by the paper feed button. Not used. Fixed to On. No paper-end stop. Printing stops due to a paper-end. No error. Error occurred. Not used. Fixed to Off.
sss sss
more
s s s
6 7
Bit 5 becomes on when the paper roll sensor (near-end sensor or end sensor) detects a paper-end and printing stops.
CONFIDENTIAL
Error status (n=3) Bit 0 1 2 3 4 5 Off/On Hex Decimal Off On Off On Off On On Off On Off 6 7 On Off 00 02 00 04 00 08 10 00 20 00 40 00 0 2 0 4 0 8 16 0 32 0 64 0 Status Not used. Fixed to Off. Not used. Fixed to On. No mechanical error. Mechanical error occurred. No autocutter error. Autocutter error occurred. Not used. Fixed to On. No unrecoverable error. Unrecoverable error occurred. No auto-recoverable error. Auto-recoverable error occurred. Not used. Fixed to Off.
sss sss
more
s s s
If mechanical error (bit 2) or autocutter error (bit 3) occurs due to paper jams or the like, it is possible to recover by correcting a cause of the error and executing DLE ENQ. But if an error due to a circuit failure (e.g. wire break) occurs, it is impossible to recover.
CONFIDENTIAL
When printing is stopped during automatically recoverable error (bit 6) occurs. If an unrecoverable error (bit 5) occurs, turn off the power as soon as possible. Paper roll sensor status (n=4) Bit 0 1 Off/ On Off On Off 2, 3 On 4 On Off 5, 6 On 7 Off 60 00 96 0 0C 10 00 12 16 0 Hex 00 02 00 Decimal Status 0 2 0 Not used. Fixed to Off. Not used. Fixed to On. Paper roll near-end sensor: paper adequate. Paper roll near-end sensor: paper near end. Not used. Fixed to On. Paper roll end sensor: paper present. Paper roll end sensor: paper not present. Not used. Fixed to Off.
sss sss
more
s s s
Some paper sensors are not present, depending on the printer model. The names of some paper sensors are different, depending on the printer model.
CONFIDENTIAL
[Model-dependent variations]
CONFIDENTIAL
TM-T88II BUSY condition for a parallel interface is selected by DIP switch 2-1. s Printer status (n = 1) Bit 5 of the printer status is undefined. s Error status (n = 3) Bit 2 of the error status is undefined. Automatically recoverable error indicates the high head temperature error or paper roll cover open error during printing. s Paper roll sensor status (n = 4) When the paper roll cover is open, paper detection (detected by the paper roll end sensor) may be incorrect.
CONFIDENTIAL
TM-L60II BUSY condition for a parallel interface is selected by DIP switch 1-3. s Printer status (n = 1) Bit 5 of the printer status is undefined. s Error status (n = 3) Bit 3 of the error status is undefined. Mechanical error indicates the label detection error. Automatically recoverable error indicates the high head temperature error.
CONFIDENTIAL
TM-U200B/D BUSY condition for a parallel interface is selected by DIP switch 1-8. s Off-line status (n = 2) Bit 2 of the off-line status is undefined. s Error status (n = 3) Mechanical error indicates the home position detection error. Automatically recoverable error indicates the high head temperature error. s Paper roll sensor status (n = 4) The paper roll near-end sensor is an option. If the printer is not equipped with the paper near-end sensor, bits 0 and 1 of the third byte are always ON, Paper adequate.
CONFIDENTIAL
sss sss
more
ESC u n
[Name] [Format] Transmit peripheral device status ASCII ESC u n Hex 1B 75 n Decimal 27 117 n [Range] TM-U300A/B: n = 0; TM-L60II: n = 0, 48 [Default] None [Printers not featuring this command] TM-T88II, TM-U200B/D [Description] Transmits the status of drawer kick-out connector pin 3 as 1 byte of data when n=0 or 48. s GS r 2 can also be used to check the status. GS r is [Notes] recommended for transmitting the peripheral device status. ESC u is not a recommended command. s When DTR/DSR control set by DIP switch (Handshaking) is selected with a serial interface, the printer transmits the status after confirming that the host is ready to receive data. If the host computer is not ready to receive data, the printer waits until the host becomes ready. s When XON/XOFF control is selected by DIP switch (Handshaking) with a serial interface, the printer transmits the status without confirming whether the host computer can receive data.
CONFIDENTIAL
s The peripheral device status to be transmitted is as follows: Bit Off/ On Off 0 On 1-3 4 5, 6 7 Off Off 01 00 00 1 0 0 Hex Decimal 00 0 Status Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. Undefined. Not used. Fixed to Off. Undefined. Not used. Fixed to Off. TM-L60II
s s s
[Model-dependent variations]
TM-U300A/B
CONFIDENTIAL
TM-U300A/B Handshaking for a serial interface is selected by DIP switch 1-3. With the TM-U300PA/PB, this command is ignored.
CONFIDENTIAL
TM-L60II Handshaking for a serial interface is selected by DIP switch 1-3.
CONFIDENTIAL
ESC v
[Name] [Format] Transmit paper sensor status ASCII ESC v Hex 1B 76 Decimal 27 118 [Range] None [Default] None [Printers not featuring this command] TM-T88II, TM-U200B/D [Description] Transmits the status of paper sensor(s) as 1 byte of data. s GS r 1 can also be used to check the status. GS r is [Notes] recommended for transmitting the paper sensor status. ESC v is not a recommended command. s When DTR/DSR control is selected by DIP switch (Handshaking) with a serial interface, the printer transmits the status after confirming that the host is ready to receive data. If the host computer is not ready to receive data, the printer waits until the host becomes ready. s When XON/XOFF control is selected by DIP switch (Handshaking) with a serial interface, the printer transmits the status without confirming whether the host computer can receive data. s Some paper sensors are not present, depending on the printer model.
sss sss
more
CONFIDENTIAL
s The names of some paper sensors are different, depending on the printer model. s The peripheral device status to be transmitted is as follows: Off/ Bit On Off 0, 1 On Off 2, 3 On 4 7 Off Off 0C 00 00 12 0 0 03 00 3 0 Hex Decimal Status 00 0 Paper roll near-end sensor: paper adequate. Paper roll near-end sensor: paper near end. Paper roll end sensor: paper present. Paper roll end sensor: paper not present. Not used. Fixed to Off. Undefined. Not used. Fixed to Off. TM-L60II
s s s
5, 6
[Model-dependent variations]
TM-U300A/B
CONFIDENTIAL
TM-U300A/B Handshaking for a serial interface is selected by DIP switch 1-3. The paper sensor status information of this command for this printer is different from the standard ESC/POS paper sensor status information as follows: s Bits 1 and 3 of the status are undefined. With the TM-U300PA/PB, this command is ignored.
CONFIDENTIAL
TM-L60II Handshaking for a serial interface is selected by DIP switch 1-3.
CONFIDENTIAL
BAR CODE COMMANDS
Command Name
GS k m d1 ... dk NUL GS k m n d1 ... dn Print bar code GS h n GS w n GS H n GS f n Set bar code height Set bar code width Select printing position of HRI characters Select font for HRI characters
CONFIDENTIAL
sss sss
more
CONFIDENTIAL
m specifies a bar code system as follows:
m
sss sss
more
Number of Number of Data Characters Characters Fixed Fixed Fixed 11 k 12 11 k 12 12 k 13 7 k 8 0~9 0~9 0~9 0~9 0~9, A~Z SP, $, %, +, -, ., / * (start/stop character) 0~9 0~9, A~Z $, +, -, ., /,:
Remarks 48 d 57 48 d 57 48 d 57 48 d 57 48 d 57, 65 d 90, d = 32, 36, 37, 43, 45, 46, 47 d = 42 (start/stop character) 48 d 57 48 d 57, 65 d 68, d = 36, 43, 45, 46, 47, 58
CODE39
1 k
5 6
1 k (even number) 1 k
CONFIDENTIAL
m
sss sss
more
Number of Number of Data Characters Characters Fixed Fixed Fixed 11 n 12 11 n 12 12 n 13 7 n 8 0~9 0~9 0~9 0~9 0~9, A~Z SP, $, %, +, -, ., / * (start/stop character) 0~9 0~9, A~Z $, +, -, ., /, : NUL~SP(7FH) NUL~SP(7FH)
Remarks 48 d 57 48 d 57 48 d 57 48 d 57 48 d 57, 65 d 90, d = 32, 36, 37, 43, 45, 46, 47 d = 42 (start/stop character) 48 d 57 48 d 57, 65 d 68, d = 36, 43, 45, 46, 47, 58 0 d 127 0 d 127
69 CODE39
1 n 255
ITF Can be 70 (Interleaved changed 2 of 5) 71 CODABAR (NW7) Can be changed Can be changed Can be changed
72 CODE93 73 CODE128
CONFIDENTIAL
sss sss
more
[Notes for and ] s When standard mode is selected, this command is enabled only when no data exists in the print buffer. s After printing, the printing position moves to the beginning of the line. s If d is out of the specified range, this command is canceled and the printer processes the following data as normal data. In this case, when standard mode is selected, the printer only feeds paper and when page mode is selected, the printing position does not change. This applies to all bar code systems. s When standard mode is selected, if the bar code width exceeds the printing area, the printer only feeds paper. s When page mode is selected, if the bar code width exceeds the printing area, the printer does not print the bar code but moves the printing position to [printing area + 1]. s This command feeds as much paper as is required to print the bar code, regardless of the line spacing specified by ESC 2 or ESC 3. s When page mode is selected, this command develops the bar code data in the print buffer but the printer does not print the bar code data.
CONFIDENTIAL
sss sss
more
s The bar code is not affected by print mode (emphasized, double-strike, underline, character size, white/black reverse printing, or 90 clockwise-rotated), except for upside-down printing mode. s The values of m from 0 to 6 and from 65 to 71 select the same bar code system, respectively. The printing results are the same. [Notes for ] s This command ends with a NUL code. s k is not transmission data to the printer. s When the bar code system used is UPC-A, UPC-E, JAN13 (EAN13), or JAN8 (EAN8) bar code system (m = 0, 1, 2, 3), if the number of the bar code data is less than k, this command is ignored. s When the bar code system used is UPC-A, UPC-E, JAN13 (EAN13), or JAN8 (EAN8) bar code system (m = 0, 1, 2, 3), if the number of characters is more than k, the printer prints the bar code data after receiving k-byte data and the excess data is processed as normal data. s For the bar code (CODE39 (m=4), the printer processes * <ASCII code=42> as follows: When the first bar code (d1) is *, the printer processes the data as a start character. If the first bar code (d1) is not *, the printer adds a start character (*) automatically.
CONFIDENTIAL
When data (dk) just before NUL code is *, the printer processes * as a stop character. If data just before NUL is not *, the printer adds a stop character (*) automatically. When * is processed during bar code data processing, the printer processes * as a stop character. The printer prints data preceding * and finishes command processing. Therefore, data following * are processed as normal data. The number of data for ITF bar code system (m = 5) must be even numbers. When an odd number of data is processed, the printer ignores the last received data. The printer processes n bytes from the next data as bar code data. If n is out of the specified range or if n is an odd number when ITF bar code system (m = 70) is selected, this command is canceled and the following data is processed as normal data. For the bar code (CODE39 (m=69), the printer processes * <ASCII code=42> as follows: When the first bar code (d1) is *, the printer processes the data as a start character. If the first bar code (d1) is not *, the printer adds a start character (*) automatically.
sss sss
more
[Notes for ] s s
CONFIDENTIAL
sss sss
more
When the last data (dn) is *, the printer processes * as a stop character. If the last data is not *, the printer adds a stop character (*) automatically. When * is processed during bar code data processing, the printer processes * as a stop character. The printer prints data preceding * and finishes command processing. Therefore, data following * are processed as normal data. s When CODE93 bar code (m = 72) is used: The printer prints an HRI character " " as start and stop character. The printer prints HRI characters "s + an alphabetic character" as a control character (00H to 1FH and 7FH). s When CODE128 bar code (m = 73) is used: The printer does not print HRI characters that correspond to the shift character (SHIFT) or code set selection characters (CODE A, CODE B, and CODE C). HRI characters for the function characters (FNC1, FNC2, FNC3, and FNC4) are spaces. HRI characters for the control characters (00H to 1FH and 7FH) are spaces. The top of the bar code data string must be code set selection character (any of CODE A, CODE B, or CODE C) which selects the first code set.
CONFIDENTIAL
Special characters are defined by combining two characters "{ + an alphanumeric character". The ASCII character "{" is defined by transmitting "{" twice consecutively. Transmit data Specific character SHIFT CODE A CODE B CODE C FNC1 FNC2 FNC3 FNC4 { [Model-dependent variations] None
sss sss
more
ASCII {S {A {B {C {1 {2 {3 {4 {{
Hex 7B, 53 7B, 41 7B, 42 7B, 43 7B, 31 7B, 32 7B, 33 7B, 34 7B, 7B
Decimal 123, 83 123, 65 123, 66 123, 67 123, 49 123, 50 123, 51 123, 52 123, 123
CONFIDENTIAL
Program Example for all printers
PRINT #1, CHR$(&H1D);"h";CHR$(80); Set PRINT #1, CHR$(&H1D);"k";CHR$(2); Print PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"k";CHR$(67);CHR$(12); PRINT #1, "496595707379"; Print
bar code height bar code
Print Sample
CONFIDENTIAL
GS h n
[Name] [Format] Set bar code height ASCI GS h n Hex 1D 68 n Decimal 29 104 n [Range] 1 n 255 [Default] TM-T88II, TM-L60II: n = 162 [Printers not featuring this command]TM-U200B/D, TM-U300A/B [Description] Sets the height of a bar code. n specifies number of dots in the vertical direction of a bar code. [Model-dependent variations] TM-T88II, TM-L60II
Print Sample
Height: 50
Height: 100
CONFIDENTIAL
TM-T88II One dot corresponds to 1/180 inch.
CONFIDENTIAL
TM-L60II One dot corresponds to 1/180 inch.
CONFIDENTIAL
GS w n
[Name] [Format] Set bar code width ASCII GS w n Hex 1D 77 n Decimal 29 119 n [Range] TM-T88II, TM-L60II: 2 n 6 [Default] TM-T88II, TM-L60II: n = 3 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Sets the horizontal size of a bar code. n specifies the bar code width. [Note] s The units for n depend on the printer model. [Model-dependent variations] TM-T88II, TM-L60II
Print Sample
to 3
Width size 3
Width size 4
Width size 5
CONFIDENTIAL
TM-T88II n specifies the bar code width as follows:
Module Width (mm) for Multilevel Bar Code Binary Level Bar Code Thin Element Width (mm) Thick Element Width (mm)
2 3 4 5 6
The multilevel bar codes are UPC-A, UPC-E, JAN13 (EAN13), JAN8 (EAN8), CODE93, and CODE128. The binary level bar codes are CODE39, ITF, and CODABAR.
CONFIDENTIAL
TM-L60II n specifies the bar code width as follows:
Module Width (mm) for Multilevel Bar Code Binary Level Bar Code Thin Element Width (mm) Thick Element Width (mm)
2 3 4 5 6
The multilevel bar codes are UPC-A, UPC-E, JAN13 (EAN13), JAN8 (EAN8), CODE93, and CODE128. The binary level bar codes are CODE39, ITF, and CODABAR.
CONFIDENTIAL
GS H n
[Name] [Format] Select printing position of HRI characters ASCII GS H n Hex 1D 48 n Decimal 29 72 n [Range] 0n3 48 n 51 [Default] n=0 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Selects the printing position for Human Readable Interpretation (HRI) characters when printing a bar code, using n as follows:
n
sss sss
more
Printing Position Not printed Above the bar code Below the bar code Both above and below the bar code
0, 48 1, 49 2, 50 3, 51 [Note]
s HRI characters are printed using the font specified by GS f. [Model-dependent variations] None
CONFIDENTIAL
Program Example for all printers
PRINT #1, CHR$(&H1D);"h";CHR$(80); Set FOR n=0 to 3 PRINT #1, CHR$(&H1D);"H";CHR$(n); Select PRINT #1, CHR$(&H1D);"k";CHR$(2); Print PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); NEXT n GS H 2
print position bar code height
Print Sample
GS H 0
GS H 1
GS H 3
CONFIDENTIAL
GS f n
[Name] [Format] Select font for HRI characters ASCII GS f n Hex 1D 66 n Decimal 29 102 n [Range] n = 0, 1, 48, 49 [Default] n=0 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Selects a font for the Human Readable Interpretation (HRI) characters when printing a bar code, using n as follows:
n
sss sss
more
0, 48 1, 49 [Notes]
s The font set by this command is effective only for HRI character. s Configurations of font A and font B are different, depending on the printer model. s HRI characters are printed at the position specified by GS H. [Model-dependent variations] TM-T88II, TM-L60II
CONFIDENTIAL
Program Example for all printers
PRINT #1, CHR$(&H1D);"h";CHR$(80); Set
height print position font bar code
Print Sample
Font A
PRINT #1, CHR$(&H1D);"H";CHR$(2); Select PRINT #1, CHR$(&H1D);"f";CHR$(0); Select PRINT #1, CHR$(&H1D);"k";CHR$(2); Print PRINT #1, "496595707379";CHR$(0); PRINT #1, CHR$(&HA); PRINT #1, CHR$(&H1D);"f";CHR$(1); Select PRINT #1, CHR$(&H1D);"k";CHR$(2); Print PRINT #1, "496595707379";CHR$(0);
GS H 3
Font B
CONFIDENTIAL
TM-T88II Character configurations: Font A: 12 24 Font B: 9 17
CONFIDENTIAL
TM-L60II Character configurations: Font A: 12 24 Font B: 9 17
CONFIDENTIAL
MACRO FUNCTION COMMANDS
Command GS : GS ^ r t m Name Start/end macro definition Execute macro
CONFIDENTIAL
GS :
[Name] [Format] Start/end macro definition ASCII GS : Hex 1D 3A Decimal 29 58 [Range] None [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Starts or ends macro definition. [Notes] s Macro definition starts when this command is processed during normal operation and ends when it is processed during macro definition. s While the macro is defined, the printing is also executed. s The maximum number of data to be defined as a macro is different, depending on the printer model. If the macro definition exceeds the maximum number of data, the excess data is not stored. s If the printer processes this command again immediately after previously processing it, the printer clears the definition. s If GS ^ is processed during macro definition, this command is canceled and clears the definition.
sss sss
more
CONFIDENTIAL
s Macro is not defined when the power is turned on. s The defined contents of the macro are not cleared by ESC @. s The macro is executed by GS ^. [Model-dependent variations] TM-T88II, TM-L60II See program example for GS : and GS ^.
CONFIDENTIAL
TM-T88II The maximum number of data to be defined is 2048 bytes.
CONFIDENTIAL
TM-L60II The maximum number of data to be defined is 2048 bytes.
CONFIDENTIAL
GS ^ r t m
[Name] [Format] Execute macro ASCII GS ^ r t m Hex 1D 5E r t m Decimal 29 94 r t m [Range] 0 r 255 0 t 255 m = 0, 1 [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Executes a macro r times while waiting t 100 msec for each macro execution, using the mode specified by m as follows: When m=0, the macro executes r times continuously at the interval specified by t. When m=1, the printer waits for the period specified by t, blinks the LED, and then waits for the Paper feed button to be pressed. After this button is pressed, the printer executes the macro once. The printer repeats this operation r times.
sss sss
more
CONFIDENTIAL
[Notes] s If a macro is not defined or if r is 0, this command is ignored. s If this command is processed while a macro is being defined, the printer cancels macro definition and clears the definition. s When m = 1, paper cannot be fed with the Paper feed button. s The LED and the Paper feed button are different, depending on the printer model. s The macro is defined by GS :. Macro function is useful to print the same data repeatedly. To define a macro definition, send GS : just before and after the data desired to be repeated. And then execute macro by using GS ^ to print the same data repeatedly. Macro function eliminates the need for sending all the print data every time. [Model-dependent variations] TM-T88II, TM-L60II See program example for GS : and GS ^.
CONFIDENTIAL
Program example for GS : and GS ^
Program Example Print Sample
PRINT #1, CHR$(&H1D);":"; PRINT #1, CHR$(&H1B);"a";CHR$(1); PRINT #1, "*** Hello"; PRINT #1, CHR$(&H1D);"!";CHR$(17); PRINT #1, "EPSON"; PRINT #1, CHR$(&H1D);"!";CHR$(0); PRINT #1, "World! ***"; PRINT #1, CHR$(&HA); CHR$(&HA); PRINT #1, CHR$(&H1B);"a";CHR$(0); PRINT #1, CHR$(&H1B);"-";CHR$(1); PRINT #1, "No. PRINT #1, "Name PRINT #1, "Address PRINT #1, CHR$(&H1B);"d";CHR$(5); PRINT #1, CHR$(&H1B);"-";CHR$(0); PRINT #1, CHR$(&H1D);":"; PRINT #1, CHR$(&H1D);"^";CHR$(2);CHR$(0);CHR$(0); "; CHR$(&HA); "; CHR$(&HA); "; CHR$(&HA);
Defines a macro
*** Hello
No. Name Address
*** Hello
No. Name Address
CONFIDENTIAL
TM-T88II When m = 1, the PAPER OUT LED indicator blinks during a macro waiting state. When m = 1, the FEED can be Paper feed button.
CONFIDENTIAL
TM-L60II When m = 1, the PAPER LED indicator blinks during a macro waiting state. When m = 1, the PAPER FEED can be Paper feed button.
CONFIDENTIAL
MECHANISM CONTROL COMMANDS
Command ESC U n ESC < Name Turn unidirectional printing mode on/off Return home Select cut mode and cut paper ESC i ESC m Partial cut (one point left uncut) Partial cut (three points left uncut)
GS V m GS V m n
CONFIDENTIAL
ESC U n
Turn unidirectional printing mode on/off ASCII ESC U n Hex 1B 55 n Decimal 27 85 n [Range] 0 n 255 [Default] TM-U200B/D: n = 0 TM-U300A/B: n = 0 [Printers not featuring this command] TM-T88II, TM-L60II [Description] Turns unidirectional printing mode on or off. When the LSB of n is 0, unidirectional printing mode is turned off. When the LSB of n is 1, unidirectional printing mode is turned on. [Notes] s This mode can be set independently in standard mode and in page mode. s When unidirectional printing mode is turned off, bidirectional printing mode is automatically turned on. s When page mode is selected, the printer performs unidirectional printing for all data that is to be collectively printed using FF or ESC FF. [Name] [Format]
sss sss
more
CONFIDENTIAL
s Unidirectional printing mode can be turned on when printing double-height characters or downloaded bit image to ensure that the top and bottom of the printing patterns are aligned. [Model-dependent variations] None
Program Example for all printers
PRINT #1, CHR$(&H1B);"U";CHR$(1);
Unidirectional printing mode turned on
CONFIDENTIAL
ESC <
Return home ASCII ESC < Hex 1B 3C Decimal 27 60 [Range] None [Default] None [Printers not featuring this command] TM-T88II, TM-L60II [Description] Moves the print head to the standby position. [Note] s The standby position is different, depending on the printer model. [Model-dependent variations] TM-U200B/D TM-U300A/B
Program Example for all printers
PRINT #1, CHR$(&H1B);"<";
[Name] [Format]
CONFIDENTIAL
TM-U200B/D The standby position is in the left.
CONFIDENTIAL
TM-U300A/B The standby position is in the left.
CONFIDENTIAL
GS V m GS V m n
[Name] [Format] Select cut mode and cut paper GS V m ASCII Hex 1D 56 m Decimal 29 86 m GS V m n ASCII Hex 1D 56 m n Decimal 29 86 m n [Range] TM-T88II, TM-U200B/D: m = 1, 49 TM-T88II, TM-U200B/D: m = 66, 0 n 255 [Default] None [Printers not featuring this command] TM-L60II, TM-U300A/B [Description] Select a paper cutting mode using m and then cut the paper, as follows:
m
sss sss
more
Function 0, 48 1, 49 65 Executes a full cut (cuts the paper completely). Executes a partial cut (one point left uncut). Feeds paper to (cutting position + n vertical motion unit) and executes a full cut (cuts the paper completely). Feeds paper to (cutting position + n vertical motion unit) and executes a partial cut (one point left uncut).
66
CONFIDENTIAL
[Notes for and ] s When standard mode is selected, these commands are enabled only when processed at the beginning of the line. s Some printer models support a full cut (m = 0, 48 or 65). s When using these commands, there is a gap between the autocutter position and the printing position. [Note for ] s If an autocutter is not provided, this command is ignored. [Notes for ] s When n = 0, the printer feeds the paper to the cutting position and cut it. s If an autocutter is not provided, the printer only feeds the paper to manual-cutter position. [Model-dependent variations] TM-T88II TM-U200B/D
Program Example for all printers
PRINT #1, " AAAAA"; CHR$(&HA);
paper and cut
Print Sample
AAAAA
Paper fed to the cutting position and partial cut (one point left uncut) performed
CONFIDENTIAL
TM-T88II The vertical motion unit is specified by GS P.
CONFIDENTIAL
TM-U200B/D The vertical motion unit is 1/144 inches (the minimum movement amount). This value equals a half dot pitch. TM-U200D does not have the auto cutter; therefore, the cutting position is the manual cutter position.
CONFIDENTIAL
ESC i
Partial cut (one point left uncut) ASCII ESC i Hex 1B 69 Decimal 27 105 [Range] None [Default] None [Printers not featuring this command] TM-T88II, TM-L60II, TM-U200B/D [Description] Executes a partial cut of the paper roll with one point left uncut. [Notes] s GS V can also be used to cut paper. GS V is recommended for cutting paper. ESC i is not a recomemded command. s When standard mode is selected, this command is enabled only when processed at the beginning of the line. s If an autocutter is not provided, this command is ignored. s When using this command, there is a gap between the autocutter and printing position. [Model-dependent variations] None See program example for ESC i and ESC m. [Name] [Format]
CONFIDENTIAL
ESC m
Partial cut (three points left uncut) ASCII ESC m Hex 1B 6D Decimal 27 109 [Range] None [Default] None [Printers not featuring this command] TM-T88II, TM-L60II, TM-U200B/D [Description] Executes a partial cut of the paper roll with three points left uncut. [Notes] s GS V can also be used to cut paper. GS V is recommended for cutting paper. ESC m is not a recommended command. s When standard mode is selected, this command is enabled only when processed at the beginning of the line. s If an autocutter is not provided, this command is ignored. s When using this command, there is a gap between the autocutter and printing position. [Model-dependent variations] None See program example for ESC i and ESC m. [Name] [Format]
CONFIDENTIAL
Program example for ESC i and ESC m
Program Example
PRINT #1," AAAAA"; AAAAA
ESC m leaves paper joined in three places. paper
Print Sample
CONFIDENTIAL
MISCELLANEOUS COMMANDS
Command DLE ENQ n DLE DC 4 ESC = n ESC @ ESC L ESC S ESC p m t1 t2 FS g 1 FS g 2 GS E n GS I n GS P x y GS ( A GS < GS A m n GS C 0 n m GS C 1 aL aH bL bH n r GS C 2 nL nH GS C ; sa ; sb ; sn ; sr ; sc ; GS c GS z 0 t1 t2 Name Real-time request to printer Generate pulse at real-time Select peripheral device Initialize printer Select page mode Select standard mode Generate pulse Write to user NV Read from user NV memory Select head control method Transmit printer ID Set horizontal and vertical motion units Execute test print Initialize printer mechanism Adjust label print starting position Select counter print mode Select count mode (A) Set counter Select count mode (B) Print counter Set on-line recovery wait time
CONFIDENTIAL
ESC @
[Name] [Format] Initialize printer ASCII ESC @ Hex 1B 40 Decimal 27 64 [Range] None [Default] None [Printers not featuring this command] None [Description] The data in the print buffer is cleared and the printer mode(s) is reset to the mode that was in effect when the power was turned on. s The DIP switch settings are not checked again. [Notes] s The data in the receive buffer is not cleared. s Any macro definitions are not cleared. s GS A settings are not cleared. s When this command is processed in page mode, the printer deletes the data in the printing areas, initializes all settings, and selects standard mode.
sss sss
more
CONFIDENTIAL
s This command can cancel all the settings such as print mode and line feed at the same time. [Model-dependent variations] None
Program Example for all printers
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"3";CHR$(60); PRINT #1, CHR$(&H1B);"U";CHR$(1); PRINT #1, CHR$(&H1B);"E";CHR$(1); PRINT #1, CHR$(&H1B);"-";CHR$(1); PRINT #1, CHR$(&H1D);"!";CHR$(17); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);"@";
Initialize printer
Print Sample
AAAAA
BBBBB All
settings are canceled after ESC @ is executed
CONFIDENTIAL
GS I n
Transmit printer ID ASCII GS I n Hex 1D 49 n Decimal 29 73 n [Range] 1n3 49 n 51 [Default] None [Printers not featuring this command] TM-U300A/B [Description] Transmits 1 byte of printer ID using n as follows: n Printer ID Specification Printer model Printer type Firmware version 1, 49 Printer model ID 2, 50 Type ID 3, 51 Version ID [Name] [Format]
sss sss
more
sss sss
CONFIDENTIAL
[Notes] s Printer model ID depends on the printer model. s Type ID to be transmitted is as follows: Bit 0 1 2 3 4 5, 6 7 Off/On Hex Decimal Function Off Off On Off Off Off Off 00 00 02 00 00 00 00 0 0 2 0 0 0 0 Two-byte character code not supported. Not autocutter equipped. Autocutter equipped. DIP switch (Connection of customer display) is Off. Without MICR reader. Not used. Fixed to Off. Undefined. Not used. Fixed to Off.
s s s
more
s When DTR/DSR control is selected by DIP switch (Handshaking) with a serial interface, the printer transmits the ID data after confirming that the host is ready to receive data. If the host computer is not ready to receive data, the printer waits until the host becomes ready.
CONFIDENTIAL
s When XON/XOFF control is selected by DIP switch (Handshaking) with a serial interface, the printer transmits the ID data without confirming whether the host computer can receive data. [Model-dependent variations] TM-T88II TM-L60II TM-U200B/D
Program Example for all printers
PRINT #1, CHR$(&H1D);"I";CHR$(1);
Transmits printer ID
CONFIDENTIAL
TM-T88II Handshaking for a serial interface is selected by DIP switch 1-3. Printer model ID (n = 1, 49)
CONFIDENTIAL
TM-L60II Handshaking for a serial interface is selected by DIP switch 1-3. Printer model ID (n = 1, 49) Hex: 0BH / Decimal: 11 Type ID (n = 2, 50)
Bit 1 is fixed to Off (not autocutter equipped). Bit 2 of the Type ID is different from the standard ESC/POS as follows: Bit Off/On Hex Decimal Function Off 2 On 04 4 00 0 Select thermal paper (DIP switch (Paper selection) is Off.) Select thermal label (DIP switch (Paper selection) is On.)
Paper selection for a serial interface is selected by DIP switch 2-6. Paper selection for a parallel interface is selected by DIP switch 1-7.
CONFIDENTIAL
TM-U200B/D Handshaking for a serial interface is selected by DIP switch 1-3. Printer model ID (n = 1, 49): Hex: 0D / Decimal: 13 Type ID (n = 2, 50)
TM-U200B: Bit 1 is fixed to On (autocutter equipped). TM-U200D: Bit 1 is fixed to Off (not autocutter equipped).
CONFIDENTIAL
GS P x y
[Name] [Format] Set horizontal and vertical motion units ASCII GS P x y Hex 1D 50 x y Decima 29 80 x y [Range] 0 x 255 0 y 255 [Default] TM-T88II: x = 180, y = 360 TM-L60II: x = 180, y = 360 [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Sets the horizontal and vertical motion units to 1/x and 1/y inches, respectively. When x = 0, the default setting of horizontal value is used. When y = 0, the default setting of vertical value is used. s The horizontal direction is perpendicular to the paper [Notes] feed direction and the vertical direction is the paper feed direction. s The horizontal and vertical motion units indicate the minimum pitch used for calculating the values of related commands (shown on the next screen).
sss sss
more
CONFIDENTIAL
s In standard mode, the following commands use x or y. Commands using x: ESC SP, ESC $, ESC \, GS L, and GS W Commands using y: ESC 3, ESC J, ESC K, GS A and GS V s In page mode, the following commands use x or y, when the starting position is set to the upper left or lower right of the printing area using ESC T. Commands using x: ESC SP, ESC $, ESC W, and ESC \ Commands using y: ESC 3, ESC J, ESC W, GS $, GS A, GS V, and GS \ s In page mode, the following commands use x or y, when the starting position is set to the upper right or lower left of the printing area using ESC T. Commands using x: ESC 3, ESC J, ESC W, GS $, and GS \ Commands using y: ESC SP, ESC $, ESC W, ESC \, GS A and GS V s The calculated result from combining this command with others is truncated to the minimum value of the mechanical pitch. s This command does not affect the current setting values.
sss sss
more
CONFIDENTIAL
[Model-dependent variations]
Program Example for all printers
TM-T88II
TM-L60II
Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"3";CHR$(30); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(90); PRINT #1, CHR$(&H1B);"3";CHR$(30); PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA); PRINT #1, "EEEEE"; CHR$(&HA);
Set line spacing
AAAAA BBBBB CCCCC DDDDD 30/90-inch line spacing EEEEE 30/180-inch line spacing
Set
line spacing
CONFIDENTIAL
TM-T88II The default values equal a normal dot pitch in horizontal and 1/2 dot pitch in vertical.
CONFIDENTIAL
TM-L60II The default values equal a half dot pitch in horizontal and 1/2 dot pitch in vertical.
CONFIDENTIAL
ESC p m t1 t2
[Name] [Format] Generate pulse 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 [Default] None [Printers not featuring this command] None [Description] Outputs the pulse specified by t1 and t2 to the specified connector pin m as follows: m Connector pin 0, 48 Drawer kick-out connector pin 2 1, 49 Drawer kick-out connector pin 5 The pulse for ON time is (t1 2msec) and for OFF time is (t2 2msec). s If m is out of range, this command is canceled and the following data is processed as normal data. s If t2 < t1, the OFF time is equal to the ON time.
sss sss
more
[Notes]
CONFIDENTIAL
[Model-dependent variations] TM-U200B/D
Program Example for all printers
PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250);
CONFIDENTIAL
TM-U200B/D If t2 < 50, t2 is supposed to be 50.
CONFIDENTIAL
ESC = n
[Name] [Format] Select peripheral device ASCII ESC = n Hex 1B 3D n Decimal 27 61 n [Range] TM-T88II: 0 n 255 TM-L60II:0 n 255 TM-U200B/D:1 n 3 [Default] n = 1. [Printers not featuring this command] TM-U300A/B [Description] Selects the device to which the host computer sends data, using n as follows: When the LSB of n is 0, the printer is disabled. When the LSB of n is 1, the printer is enabled. s When the printer is disabled, it ignores all received [Notes] data with the exception of DLE ENQ 1 and DLE ENQ 2. s If ASB is enabled when the printer is disabled by this command, the printer transmits 4-byte status message whenever the status changes.
sss sss
more
CONFIDENTIAL
[Model-dependent variations] None
Program Example for all printers
AAAAA CCCCC PRINT #1, CHR$(&H1B);"=";CHR$(1); PRINT #1, "AAAAA"; PRINT #1, CHR$(&H1B);"=";CHR$(2); PRINT #1, "BBBBB"; PRINT #1, CHR$(&H1B);"=";CHR$(3); PRINT #1, " CCCCC"; CHR$(&HA);
Pinter enabled Printer disabled Printer enabled
Print Sample
CONFIDENTIAL
ESC L
Select page mode ASCII ESC L Hex 1B 4C Decimal 27 76 [Range] None [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Switches from standard mode to page mode. s This command is enabled only when processed at the [Notes] beginning of the line in standard mode. In other cases, this command is ignored. s The printing position is the starting position specified by ESC T within the printing area defined by ESC W. s The following commands switch the settings for page mode. Because, these commands can be set independently in standard mode and in page mode: ESC SP, ESC 2, ESC 3, and ESC U [Name] [Format]
sss sss
more
CONFIDENTIAL
s The following commands are not effective in page mode. If these commands are processed in page mode, an internal flag is activated and this flag is enabled when the printer returns to standard mode. ESC V, ESC a, ESC {, GS L, and GS W s The printer returns to standard mode with ESC S, FF, and ESC @. When it returns to standard mode by ESC @, all settings are canceled. s Standard mode is selected as the default. s In page mode, the printer prints the data in the print buffer for the printing area specified by ESC W collectively by FF or ESC FF. When executing the print and paper feed commands, such as LF, CR, ESC J, and ESC d, only the printing position moves and the printer does not perform actual printing. [Model-dependent variations] None See program example for ESC L and ESC S.
sss sss
more
CONFIDENTIAL
ESC S
[Name] [Format] Select standard mode ASCII ES S Hex 1B 53 Decimal 27 83 [Range] None [Default] None [Printers not featuring this command] TM-U200B/D, TM-U300A/B [Description] Switches from page mode to standard mode. s This command is enabled only in page mode. If this [Notes] command is processed in standard mode, it is ignored. s When this command is executed, data in all the printing areas are cleared, the printing area set by ESC W returns to the default value, but the value set by ESC T is maintained. s The following commands switch the settings for standard mode. Because, these commands can be set independently in standard mode and in page mode: ESC SP, ESC 2, ESC 3, and ESC U s In standard mode, CAN, ESC FF, GS $, and GS \ are ignored.
CONFIDENTIAL
s The settings of ESC T and ESC W are not effective in standard mode. If these commands are processed in standard mode, an internal flag is activated and this flag is enabled when the printer selects page mode. s The printer selects page mode with ESC L. s Standard mode is selected as the default. [Model-dependent variations] None
Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0); CHR$(0);CHR$(240);CHR$(0);CHR$(200);CHR$(0); PRINT #1, CHR$(&H1B);"T";CHR$(0); Select PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, "CCCCC"; PRINT #1, CHR$(&H1B);CHR$(&HC); Batch PRINT #1, CHR$(&H1B);"S"; Select
print standard mode print direction
CONFIDENTIAL
GS E n
[Name] [Format] Select head control method ASCII GS E n Hex 1D 45 n Decimal 29 69 n [Range] 0 n 255 [Default] TM-U300A/B: n = 1 [Printers not featuring this command] TM-T88II, TM-L60II, TM-U200B/D [Description] Selects the print speed and head energizing time, using n as follows: Bit Off/On Hex Decimal Function Off 0 On 1-3 4 Off On 01 00 10 1 0 16 00 0 Head energizing time: Copy. Head energizing time: Normal. Undefined. Printing speed: HIGH. Printing speed: LOW. Undefined.
s s s
sss sss
more
5-7
CONFIDENTIAL
[Notes] s When standard mode is selected, this command is enabled only when processed at the beginning of the line. s In page mode, the setting for this command is effective for all data to be printed collectively by FF or ESC FF. [Model-dependent variations] TM-U300A/B
Program Example for all printers
PRINT #1,CHR$(&H1D);"E";CHR$(16);
Select printing speed to Low
CONFIDENTIAL
TM-U300A/B Bit 4 is undefined. When multi-ply roll paper is used, Head energizing time : Copy should be selected for a long enegizing time.
CONFIDENTIAL
GS < n
Initialize printer mechanism ASCII GS < Hex 1D 3C Decimal 29 60 [Range] None [Default] None [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Feeds label paper to the print starting position. This command is effective only when a thermal label is selected with the paper selection DIP switch. This command does not initialize the values set by other commands. [Model-dependent variations] TM-L60II
Program Example
PRINT #1, CHR$(&H1D);"<";
[Name] [Format]
CONFIDENTIAL
TM-L60II With a serial interface, the paper selection DIP switch is SW 2-6. With a parallel interface, the paper selection DIP switch is SW 1-7.
CONFIDENTIAL
GS A m n
Adjust label print starting position ASCII GS A m n Hex 1D 41 m n Decimal 29 65 m n [Range] TM-L60II: 0 m 255, 0 n 255 m = 0, n = 0 [Default] [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Adjust the label print starting position in a selected direction, and by a specified amount from the default position. m specifies the adjustment direction as follows: When the LSB of m is 0, the label position is adjusted in the normal direction. When the LSB of m is 1, the label position is adjusted in the reverse direction. n specifies the adjustment amount. The adjustment amount formula is (n vertical motion unit). [Name] [Format]
sss sss
more
CONFIDENTIAL
s This command is ignored unless it is received just after feeding a label to the print starting position by pressing the paper feed button, using the FF, GS FF, GS <, or GS A command, resetting the printer, turning on the power. s This command is effective only when thermal label is selected with the paper selection DIP switch. s When calculating the adjustment amount, the vertical motion unit (y) is used. s When executing this command, the paper is fed to adjust the print starting position of the current label. s The default and adjustment amounts for the print starting position differ, depending on the printer model. A setting exceeding the maximum adjustment amount is set to the maximum adjustment amount. [Model-dependent variations] TM-L60II [Notes]
Program Example
PRINT #1, CHR$(&H1D);"A";CHR$(0);CHR$(18);
CONFIDENTIAL
TM-L60II With a serial interface, the paper selection DIP switch is SW 2-6. With a parallel interface, the paper selection DIP switch is SW 1-7. The vertical motion unit is set by GS P. The default print starting position is approximately 1.5 mm below the top edge of the label. The maximum adjustment amount in the paper feed direction is (label length - 1.5 mm (top edge) - 1.5 mm (bottom edge) 18 mm (255/360 inches) and in the reverse direction is 0.5 mm.
CONFIDENTIAL
GS c
[Name] [Format] Print counter ASCII GS c Hex 1D 63 Decimal 29 99 [Range] None [Default] None [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Sets the serial counter value in the print buffer and increments or decrements the counter value. s After setting the current counter value in the print [Notes] buffer as print data (a character string), the printer counts up or down based on the count mode set. s The counter value in the print buffer is printed when the printer receives a print command or is in the buffer-full state. s In count-up mode, if the counter value is the maximum of the specified counter value, it is forced to convert to the minimum value by this command. s In count-down mode, if the counter value is the minimum of the specified counter value, it is forced to convert to the maximum value by this command.
sss sss
more
CONFIDENTIAL
s The counter print mode is set by GS C 0. s The counter mode is set by GS C 1 or GS C ;. s The counter value is set by GS C 2 or GS C ;. [Model-dependent variations] None
Program Example
PRINT #1, "AAAAA";CHR$(&H1D);"c";CHR$(&HA); PRINT #1, "BBBBB";CHR$(&H1D);"c";CHR$(&HA);
AAAAA BBBBB 1 2
Print Sample
CONFIDENTIAL
GS C 0 n m
Select counter print mode ASCII GS C 0 n m Hex 1D 43 30 n m Decimal 29 67 48 n m [Range] 0 n5 0 m 2, 48 m 50 n = 0, m = 0 [Default] [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Selects a print mode for the serial number counter (the number of printed digits and the print position within the entire range of printed digits). n specifies the number of digits to be printed. When n = 0, the printer prints the actual digits indicated by the number value. When n 0, the printer prints the last n digits of the serial number. [Name] [Format]
sss sss
more
CONFIDENTIAL
m specifies the printing position within the entire range of printed digits, as follows: m 0, 48 1, 49 2, 50 [Notes] Print position Align right Align right Align left Processing of Digits Less Than Those Specified Adds spaces to the left Adds 0 to the left Adds spaces to the right
s When n = 0, m is discarded. s The serial number counter is stored in the print buffer by GS c. [Model-dependent variations] TM-L60II
Program Example
PRINT #1, CHR$(&H1D);"C0";CHR$(3);CHR$(0); PRINT #1, "AAAAA";CHR$(&H1D);"c";CHR$(&HA); PRINT #1, CHR$(&H1D);"C0";CHR$(4);CHR$(1); PRINT #1, "BBBBB";CHR$(&H1D);"c";CHR$(&HA);
AAAAA 1 3 digits + right alignment + adding spaces to the left BBBBB0002 4 digits + right alignment + adding
Print Sample
"0"
to the left
CONFIDENTIAL
TM-L60II With a serial interface, the paper selection DIP switch is SW 2-6. With a parallel interface, the paper selection DIP switch is SW 1-7.
CONFIDENTIAL
GS C 1 aL aH bL bH n r
Select count mode (A) aL aH bL bH n ASCII GS C 1 aL aH bL bH n Hex 1D 43 31 aL aH bL bH n Decimal 29 67 49 [Range] 0 aL 255, 0 aH 255 0 bL 255, 0 bH 255 0 n 255, 0 r 255 aL = 1, aH = 0, bL = 255, bH = 255, n = 1, r = 1 [Default] [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Selects a count mode for the serial number counter. Count mode Count-up Count-down Count-stop Conditions Minimum value Maximum value [Name] [Format] r r r
sss sss
more
aL + aH 256 < bL + bH aL + aH 256 bL + bH 256 256 and n 0 and r 0 aL + aH 256 > bL + bH bL + bH 256 aL + aH 256 256 and n 0 and r 0 aL + aH 256 = bL + bH 256 or n = 0 or r = 0
CONFIDENTIAL
aL, aH and bL, bH specify the counter ranges (maximum or
minimum value).
n specifies the stepping amount when counting up or down. r specifies the repetition number of printing for the same
counter value.
[Notes]
s In a count-up setting, when the GS c is executed, the maximum value of the counter is (bL + bH 256) and the minimum value of the counter is (aL + aH 256). s In a count-down setting, when GS c is executed, the minimum value of the counter is (bL + bH 256) and the maximum value of the counter is (aL + aH 256). s In a count-stop setting, when executing GS c, the counter value is not changed. s When this command is executed, the internal counter which counts the repetition number of printing is 0. s This command does not change the counter value. The counter value is set by GS C 2. s The settings for a range of a counter set by GS C ;, stepping amount of incrementing or decrementing of a counter value, the repetition number of printing are disabled by processing this command.
CONFIDENTIAL
GS C 2 nL nH
Select counter print mode nL nH ASCII GS C 2 nL nH Hex 1D 43 32 nL nH Decimal 29 67 50 [Range] 0 nL 255 0 nH 255 nL = 1, nH = 0 [Default] [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Sets the serial number counter value. Specifies the counter value as (nL+nH 256). s In count-up mode, if the counter value specified by this [Notes] command goes out of the counter operation range , it is forced to convert to the minimum value by GS c. s In count-down mode, if the counter value specified by this command goes out of the counter operation range, it is forced to convert to the maximum value by GS c. s The setting of the counter value set by GS C ; is disabled by processing this command. [Name] [Format]
sss sss
more
CONFIDENTIAL
s The range of the counter value is set by GS C 1 or GS C ;.
Program Example
PRINT #1, CHR$(&H1D);"C1";CHR$(1);CHR$(0); PRINT #1, CHR$(44);CHR$(1);CHR$(1);CHR$(1); PRINT #1, CHR$(&H1D);"C2";CHR$(10);CHR$(0); PRINT #1, CHR$(&H1D);"C0";CHR$(3);CHR$(1); PRINT #1, "Line";CHR$(&H1D);"c";CHR$(&HA); PRINT #1, "Line";CHR$(&H1D);"c";CHR$(&HA);
Line 010 Line 011
Print Sample
CONFIDENTIAL
GS C ; sa ; sb ; sn ; sr ; sc ;
[Name] [Format] Select counter mode (B) sa ; sb ; sn ; sr ; sc ; ASCII GS C ; Hex 1D 43 3B sa 3B sb 3B sn 3B sr 3B sc 3B Decimal 29 67 59 sa 59 sb 59 sn 59 sr 59 sc 59 [Range] 0 sa 65535 0 sb 65535 0 sn 255 0 sr 255 0 sc 65535 sa = 1, sb = 65535, sn = 1, sr = 1, sc = 1 [Default] [Printers not featuring this command] TM-T88II, TM-U200B/D, TM-U300A/B [Description] Selects a count mode for the serial number counter by using character strings. Count mode Count-up Count-stop Conditions Minimum Maximum value value sb sa
sss sss
more
CONFIDENTIAL
sa and sb specify the counter ranges (maximum and minimum values) for the serial number counter. sn specifies the stepping amount for counting up or down. sr specify the repetition number of printing for the counter value. sc specifies the serial number counter value. s In count-up mode, sa is the minimum counter value and sb is the maximum counter value. s In count-down mode, sb is the minimum counter value and sa is the maximum counter value. s In count-stop mode, the counter value is not changed by GS c. s sa, sb, sn, sr, and sc specify a value using a decimal character string, respectively. s sa, sb, sn, sr, and sc can be omitted (; which separates an argument, cannot be omitted). Setting value for the omitted argument is not changed. Example: When changing only a stepping amount for a count-up or count-down and a counter value, the setting value is [GS C ; ; ; 5 ; ; 100 ;].
sss sss
more
[Notes]
CONFIDENTIAL
s The internal counter value which counts the repetition number of printing by processing this command is 0. s The settings for GS C 1 and GS C 2 are disabled by processing this command.
Program Example
PRINT #1, CHR$(&H1D);"C;";"300;1;1;2;100;"; PRINT #1, CHR$(&H1D);"C0";CHR$(4);CHR$(1); PRINT #1, "No.";CHR$(&H1D);"c";CHR$(&HA); PRINT #1, "No.";CHR$(&H1D);"c";CHR$(&HA); PRINT #1, "No.";CHR$(&H1D);"c";CHR$(&HA); PRINT #1, "No.";CHR$(&H1D);"c";CHR$(&HA); PRINT #1, "No.";CHR$(&H1D);"c";CHR$(&HA);
No. 0100 No. 0100 No. 0099 No. 0099 No. 0098
Print Sample
CONFIDENTIAL
GS z 0 t1 t2
[Name] [Format] Set on-line recovery wait time t1 t2 ASCII GS z 0 t1 t2 Hex 1D 7A 30 t1 t2 Decimal 29 122 48 [Range] 0 t1 255 0 t2 255 t1 = 6, t2 = 0 [Default] [Printers not featuring this command] TM-T88II, TM-L60II, TM-U300A/B [Description] Sets the on-line recovery wait time from the time a new paper roll is installed to when the printer goes on-line. This command sets the paper wait time to (t1 500msec). When t1 = 0, the paper wait time is set to 0. This command sets the recovery confirmation time to (t2 500msec). When t2 = 0, the recovery confirmation time is canceled. s The printer is in the paper wait time status after [Notes] loading the paper. During this time, the printer performs the followings: The paper out LED is off.
sss sss
more
CONFIDENTIAL
Paper can be fed by pressing the paper feed button. The time for feeding the paper is not included in the paper wait time. The printer is in the recovery confirmation time after the paper wait time (t1 500msec) is elapsed. In the paper wait time, the printer can be set on-line by DLE ENQ 0. When the paper wait time is set to 0 (t1 = 0), the printer is in the recovery confirmation status immediately after the paper loading. In the recovery confirmation status, the printer performs the followings: The paper out LED blinks. The printer recovers on-line by pressing the paper feed button. Paper can not be fed by pressing the paper feed button. The printer recovers on-line after the recovery confirmation time (t2 500msec) is elapsed. In the recovery confirmation time, the printer can be set on-line by DLE ENQ 0. In the recovery confirmation time, the paper cannot be fed by pressing the paper feed button.
sss sss
more
s s
s s
CONFIDENTIAL
s When the recovery confirmation time is cancelled (t2=0), the printer recovers on-line by executing DLE ENQ 0 or pressing the paper feed button. s During the paper wait time and recovery confirmation time, if a paper-end is detected, the printer restarts processing from loading a paper roll. s When the panel buttons are disabled by ESC c 5, the paper feed button can be used temporarily in the paper wait time and recovery confirmation time. s The paper out LED is off when the printer recovers online. s On-line recovery wait time status is checked by DLE EOT. s The paper out LED and paper feed button are different depending on the printer model.
sss sss
more
CONFIDENTIAL
s The procedures for on-line recovery by pressing the paper feed button are as follows: Print Status:
Printing stops due to a paper
end. The paper out LED is on.
sss sss
more
User Operation:
Open the printer cover and
insert a new paper roll.
CONFIDENTIAL
Print status: Not printing due to a paper-end Status : Normal operation The printer stops printing and goes off-line when the paper roll sensor detects a paper-end. The paper out LED is on. Printer status :Not printing due to a paper-end When the sensor detects that a paper roll is inserted, the printer starts loading. Printer status :Waiting for a paper roll to be inserted (waiting for online recovery) The printer is in the paper wait status after loading and the paper out LED is off. Printer status :Recovery confirmation status (on-line recovery wait status) After waiting for a paper roll to be inserted, the paper out LED blinks, and the printer is in the recovery confirmation status. Printer status : Normal operation When the on-line recovery wait time (the printer status + ) is elapsed, when the paper feed button is pressed during the recovery confirmation time, or when DLE ENQ 0 is executed, the paper out LED is off, the printer recovers on-line, and it executes normal processing.
sss sss
more
CONFIDENTIAL
User Operation Operation : When the printer stops printing due to a paper-end, open the printer cover, remove old paper roll, and insert a new paper roll. Operation : When paper position adjustment is needed, close the printer cover after the adjustment. If the paper out LED is off, the paper can be fed by the paper feed button. After completing paper insertion, be sure to close the printer cover. Operation : Make sure that the paper out LED is blinking. If the paper out LED is off, wait until it blinks. After confirming that the paper out LED is blinking, press the paper feed button.
CONFIDENTIAL
DLE ENQ n
Real-time request to printer ASCII DLE ENQ n Hex 10 05 n Decimal 16 5 n [Range] TM-T88II: n = 1, 2 TM-U200B/D: n = 0, 2 [Default] None [Printers not featuring this command] TM-L60II, TM-U300A/B [Description] Responds to a request in real time from the host computer, using n as follows:
n
sss sss
more
[Name] [Format]
Request Recovers to on-line state. Restarts printing from the beginning of the line where an error occurred, after recovering from the error. Recovers from an error after clearing the receive and print buffers.
0 1 2
CONFIDENTIAL
[Notes] s The printer executes this command upon receiving it. s With a serial interface model, this command is executed even when the printer is off-line, or the receive buffer is full. s With a parallel interface model, this command is not executed in the following statuses, because the printer is busy and unable to receive data from the host computer. The DIP switch (BUSY condition) is different, depending on the printer model. Receive buffer is full when DIP switch is set to On. Printer is off-line or receive buffer is full when DIP switch is set to Off. s When a recoverable error occurs, after removing a cause of the error, the printer can recover from the error by transmitting DLE ENQ 1 or DLE ENQ 2 without turning off the power. s DLE ENQ 1 or DLE ENQ 2 is enabled only when a recoverable error occurs with the exception of an automatically recovered error, and is ignored in other cases. Errors recoverable by DLE ENQ 1 or DLE ENQ 2 depend on the printer model. s DLE ENQ 1 or DLE ENQ 2 is also executed to recover from a recoverable error when the printer is disabled by ESC =.
sss sss
more
CONFIDENTIAL
s In page mode, if the printer recovers from a recoverable error by using DLE ENQ 2, the printer returns to standard mode after clearing the data in receive and print buffers and changing the values set by ESC W to the default values. s DLE ENQ 0 is enabled only when the printer stops printing due to a paper-end and waits for on-line recovery (from the time when a paper roll is inserted to the time when the printer goes on-line). s The on-line recovery waiting status can be confirmed by DLE EOT. [Model-dependent variations] TM-T88II TM-U200B/D .
Program Example for all printers
PRINT #1, CHR$(&H10);CHR$(&H5);CHR$(2);
CONFIDENTIAL
TM-T88II BUSY condition for a parallel interface is selected by DIP switch 2-1. Recoverable error indicates the autocutter error.
CONFIDENTIAL
TM-U200B/D BUSY condition for the parallel interface is selected by DIP switch 1-8. Recoverable error indicates a home position detection error or the autocutter error.
CONFIDENTIAL
DLE DC4 n m t
sss sss
more
Generate pulse at real-time ASC II DLE DC4 n m t Hex 10 14 n m t Decimal 16 20 n m t [Printers not featuring this command]TM-L60II, TM-U200B/D, TM-U300A/B [Range] n=1 m = 0, 1 1t8 [Description] Outputs the pulse specified by t to connector pin m as follows: m Connector pin 0 1 Drawer kick-out connector pin 2 Drawer kick-out connector pin 5
[Name] [Format]
[Notes]
The pulse ON time is [t x 100 ms] and the OFF time is [t x 100 ms] s The printer executes this command when receiving it. s This command is ignored in the following statuses: In error status When the pulse is being output to the connector pin (during processing of ESC p and DLE DC4) During transmission of block data (Header~NUL)
CONFIDENTIAL
s With a serial interface, the printer executes this command when it is in off-line, receive buffer-full, or error status. s With a parallel interface, if the printer is in BUSY condition, this command cannot be used in the following statuses. When DIP switch (BUSY condition) is on: receive buffer-full When DIP switch (BUSY condition) is off: off-line, receive buffer-full, or error status s This command is effective when the printer is disabled by ESC = (select peripheral device). [Model-dependent variations] None
Program Example
CONFIDENTIAL
FS g 1 m a1 a2 a3 a4 nL nH d1...dk
[Name] [Format] Write to user NV memory ASC II FS g 1 m a1 a2 a3 a4 nL nH d1...dk Hex 1C 67 31 m a1 a2 a3 a4 nL nH d1...dk Decimal 28 103 49 m a1 a2 a3 a4 nL nH d1...dk [Printers not featuring this command]TM-L60II, TM-U200B/D, TM-U300A/B [Range] m=0 0 (a1 + a2 x 256) + a3 x 65536) + (a4 x 16777216) 1023) 1 (nL + nH x 256) 1024) 32 d 255 k = (nL + nH x 256) [Description] Writes data to user NV memory a1, a2, a3, and a4 specify the stored data starting address to (a1 + a2 x 256 + a3 x 65536 + a4 x 16777216). nL and nH select the number of stored data bytes (nL + nH x 256). d specifies the stored data. k indicates the number of stored data. k is an explanation parameter; therefore, it is not necessary to be transmitted.
sss sss
more
CONFIDENTIAL
[Notes] s User NV memory means the memory area which is used for storing character font data in non-volatile memory. The data stored is effective until it is redefined by this command. s In standard mode, this command is effective only when processed at the beginning of a line. s If this command is processed while a macro is being defined, the printer cancels macro definition and starts processing this command. At that time, the macro becomes undefined. s All the previously stored data in the specified area is replaced with new data. s The user NV memory data can be read by FS g 2. s The user NV memory can be used for memorizing definitions of NV bit images and maintenance information (ink ribbon replacement date, telephone numbers of repair companies, and so on) [Model-dependent variations] TM-T88II
Program Example PRINT #1, CHR$(&H1C);g1;CHR$(0); PRINT #1, CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(14);CHR$(0); PRINT #1, NVimage1=Stamp;
CONFIDENTIAL
TM-T88II Frequent use of this command may damage the non-volatile memory (more than 10 times a day). The printer will become BUSY during writing data to the nonvolatile memory. In this case, the printer does not receive and transmit data; therefore, be sure not to transmit data from the host.
CONFIDENTIAL
FS g 2 m a1 a2 a3 a4 nL nH
sss sss
more
Read from user NV memory ASC II FS g 2 m a1 a2 a3 a4 nL nH Hex 1C 67 32 m a1 a2 a3 a4 nL nH Decimal 28 103 50 m a1 a2 a3 a4 nL nH [Printers not featuring this command]TM-L60II, TM-U200B/D, TM-U300A/B [Range] TM-T88II: m = 0 (0 (a1 + (a2 x 256) + (a3 x 65536) + (a4 x 16777216)) 1023) 1 (nL + (nH x 256)) 80 [Description] Transmit data in user NV memory a1, a2, a3, and a4 specify starting address of transmission data to (a1 + a2 x 256 + a3 x 65536 + a4 x 16777216). nL and nH specify the number of transmission data to (nL + nH x 256) bytes. [Notes] s User NV memory means the memory area which is used for storing character font data in non-volatile memory. s Transmission data consists of [Header + data + NUL] as follows: Header: Hexadecimal = 5FH/Decimal = 95 Data: User NV memory data NUL: Hexadecimal = 00H/Decimal = 0
[Name] [Format]
CONFIDENTIAL
s The printer becomes BUSY immediately before transmitting a header and recovers to READY after transmitting a NUL (except for other causes of the printer being BUSY). s With a serial interface, when DTR/DSR control is selected by DIP switch (handshaking), the printer transmits [Header~NUL] to the host after confirming that the host is ready to receive data. s With a serial interface, when XON/XOFF control is selected by DIP switch (handshaking), the printer transmits [Header~NUL] to the host without confirming that the host is ready to receive data. s With a parallel interface, a [Header ~ NUL] is stored at first in the transmission buffer with the other transmission data (except for ASB status). When the host becomes Reverse Mode, the data is transmitted in order from the beginning. Data which exceeds the transmission buffer size (99 bytes) is ignored. When using the command, the host should be Reverse Mode immediately and execute receive processing of status. s When using this command, space for the receive buffer of the host should be more than ((nL + nH x 256) + 3) bytes. s When transmitting data, ASB status and real-time commands cannot be used.
sss sss
more
CONFIDENTIAL
s Writing data to the user NV memory is enabled by FS g 1. s The user NV memory can be used for memorizing definitions of NV bit images and maintenance information (ink ribbon replacement date, telephone numbers of repair companies, and so on) s A header of block data and other transmission data can be differentiated as follows: Transmission data 1st byte of ASB status Real-time status (DLE EOT) Normal status (GS r) Printer ID (GS I) Head of block data XON code XOFF code Bits 0**1 **00 0**1 **10 0**0 **** 0**0 **** 0101 1111 0001 0001 0001 0011
sss sss
more
CONFIDENTIAL
Program Example PRINT #1, CHR$(&H1C);g2;CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(14);CHR$(0)
CONFIDENTIAL
GS ( A pL pH n m
Execute test print ASC II GS ( A pL pH n m Hex 1D 28 41 pL pH n m Decimal 29 40 65 pL pH n m [Printers not featuring this command] TM-L60II, TM-U300A/B [Range] (pL + (pH x 256)) = 2 (pL = 2, pH = 0) 0 n 2, 48 n 50, 1 m 3, 49 m 51 [Description] Execute a specified test print pL and pH specify the number of parameters following n to (pL + pH x 256) bytes. n specifies paper used for the test print as follows: n 0, 48 1, 49 2, 50 Paper Basic sheet (paper roll) Paper roll [Name] [Format]
sss sss
more
CONFIDENTIAL
m specifies a type of the test print as follows: m 1, 49 2, 50 3, 51 [Notes] Type Hexadecimal dump Printer status printing Rolling pattern
sss sss
more
s This command is effective only when processed at the beginning of the line in standard mode. s If this command is processed while a macro is being defined, the printer cancels macro definition and starts processing this command. At that time, the macro becomes undefined. s After processing this command, the printer performs software resetting. The printer is in the status when the power is turned on by executing this command. s When processing the printer status printing (m = 2, 50) and the rolling pattern printing (m = 3, 51), the printer does not process data reception and transmission between the host. ASB status and real-time commands cannot be used. [Model-dependent variations] None
CONFIDENTIAL
Program Example
CONFIDENTIAL
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
sss sss
more
Define NV bit image ASC II FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n Hex 1C 71 n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n Decimal 28 113 n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n [Printers not featuring this command] TM-L60II, TM-U200B/D, TM-U300A/B [Range] TM-T88II: 1 n 255 0 xL 255 0 xH 3 (when 1 (xL + xH x 256) 1023) 0 yH 1 (when 1 (yL + yH x 256) 288) 0 d 255 k = (xL + xH x 256) x (yL + yH x 256) x 8 Total defined data area is 2M bits (256K bytes) [Description] Define NV bit image specified. n specifies the number of defined NV bit images. xL, xH specifies (xL + xH x 256) bytes in the horizontal direction for the NV bit image you defined. yL, yH specifies (yL + yH x 256) bytes in the vertical direction for the NV bit image you defined. d specifies the definition data for the NV bit image.
[Name] [Format]
CONFIDENTIAL
k indicates the number of the definition data. k is a parameter for an explanation; therefore, it is not necessary to be transmitted. NV bit image means a bit image which is defined in a non-volatile memory. The NV bit image defined is effective until the next NV bit image is defined. In standard mode, this command is effective only when processed at the beginning of the line. In page mode, this command is not effective. If this command is processed while a macro is being defined, the printer cancels macro definition and starts processing this command. At this time, the macro becomes undefined. k bytes data of d1...dk is processed as a defined data of a NV bit image. The defined data (d) specifies a bit printed to 1 and not printed to 0. All NV bit images previously defined are cancelled. After processing this command, the printer executes a software reset. Therefore, processing this command enables the printer to be in the status when the power is turned on.
sss sss
more
[Notes]
s s s
s s
CONFIDENTIAL
s There are the limitations during processing of this command as follows: Paper cannot be fed by using PAPER FEED button. The real-time commands are ignored. Even if the ASB function is effective, the ASB status cannot be transmitted. The NV bit image is printed by FS p. s Bit image data and print result are as follows: d1 d2 . . dY dY+1 dY+2 . . dY2 ... ... ... ... . . dk-2 dk-1 dk
Y = yL + yH 256
[Model-dependent variations] TM-T88II See program example and print sample for FS q and FS p.
CONFIDENTIAL
TM-T88II Frequent use of this command may damge the non-volatile memory (more than 10 times a day). The printer is in BUSY when writing the data to the non-volatile memory. In this case, do not transmit data from the host because the printer does not receive data.
CONFIDENTIAL
FS p n m
[Name] [Format] Print NV bit image ASC II FS p n m Hex 1C 70 n m Decimal 28 112 n m [Printers not featuring this command] TM-L60II, TM-U200B/D, TM-U300A/B [Range] 1 n 255 0 m 3, 48 m 51 [Description] Prints a NV bit image n using the mode specified by m. m 0, 48 1, 49 2, 50 3, 51 [Notes] Mode Normal Double-width Double-height Quadruple
sss sss
more
s This command is not effective when the NV bit image specified by n has not been defined. s In standard mode, this command is effective only when there is no data in the print buffer. s In page mode, the NV bit image is only stored in the print buffer and is not printed.
CONFIDENTIAL
s If the NV bit image which exceeds one line of printing area, the printer does not print it. s This command is not affected by print modes (emphasized, underline, character size, or 90 rotated characters, etc.) except upside-down printing mode. s This command executes paper feed for amount needed for printing the NV bit image regardless of paper feed amount set by a paper feed setting command. s After printing the bit image, this command sets the print position to the beginning of the line. s When printing the NV bit image, selecting unidirectional printing mode with ESC U enables printing patterns in which the top and bottom parts are aligned vertically. s The NV bit image is defined by FS q. [Model-dependent variations] TM-T88II See program example and print sample for FS q and FS p.
CONFIDENTIAL
TM-T88II In standard mode the modes specified are as follows: m Mode Dot density in vertical 180 DPI Dot density in horizontal 180 DPI 90 DPI 180 DPI 90 DPI
0, 48 Normal
CONFIDENTIAL
PRINT #1, CHR$(&H1C);"q";CHR$(1);CHR$(18);CHR$(0);CHR$(5);CHR$(0); FOR i=1 TO 18*5*8 READ a$: d=VAL("&H"+a$) PRINT #1, CHR$(d); NEXT i PRINT #1, CHR$(&H1B);"U";CHR$(1);
Select direction Normal Double width
DATA 85,55,55,55,42,4A,AA,AA,AA,A4,85,55,55,55,42 DATA 4A,AA,AA,AA,A4,85,00,05,00,02,4A,08,0A,80,04 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 DATA 85,55,55,00,02,42,AA,AA,00,04,81,55,54,00,02 DATA 40,AA,A8,00,04,80,55,50,00,02,40,00,00,00,04 DATA 80,00,00,00,02,40,00,00,00,04,80,2A,AA,A8,02 DATA 40,55,55,54,04,80,AA,AA,AA,02,41,55,55,55,04 DATA 82,AA,AA,AA,82,45,40,00,05,44,8A,80,00,02,A2 DATA 45,00,00,01,44,8A,80,00,02,A2,45,00,00,01,44 DATA 8A,80,00,02,A2,45,00,00,01,44,8A,80,00,02,A2 DATA 45,00,00,01,44,8A,80,00,02,A2,45,40,00,05,44 DATA 82,AA,AA,AA,82,41,55,55,55,04,80,AA,AA,AA,02 DATA 40,55,55,54,04,80,2A,AA,A8,02,40,00,00,00,04 DATA 80,00,00,00,02,40,00,00,00,04,80,AA,00,02,A2 DATA 41,55,00,01,44,82,AA,80,02,A2,45,55,40,01,44 DATA 8A,AA,A0,02,A2,45,45,50,01,44,8A,82,A8,02,A2 DATA 45,01,54,01,44,8A,80,AA,02,A2,45,00,55,01,44 DATA 8A,80,2A,82,A2,45,00,15,55,44,8A,80,0A,AA,A2 DATA 45,00,05,55,44,8A,80,02,AA,82,40,00,01,55,04 DATA 80,00,00,00,02,40,00,00,00,04,80,00,00,00,02 DATA 40,00,00,00,04,AA,AA,AA,AA,AA,55,55,55,55,54
DATA AA,AA,AA,AA,AA,55,55,55,55,54,80,00,00,00,02 DATA 40,00,00,00,04,80,00,00,00,02,40,00,00,00,04 DATA 8A,AA,AA,AA,A2,45,55,55,55,44,8A,AA,AA,AA,A2 DATA 45,55,55,55,44,8A,AA,AA,AA,A2,45,00,50,01,44 DATA 8A,80,A8,02,A2,45,00,50,01,44,8A,80,A8,02,A2 DATA 45,00,50,01,44,8A,80,A8,02,A2,45,00,50,01,44 DATA 8A,80,A8,02,A2,45,00,00,01,44,8A,80,00,02,A2 DATA 40,00,00,00,04,80,00,00,00,02,40,00,00,00,04 DATA 80,AA,00,02,A2,41,55,00,01,44,82,AA,80,02,A2 DATA 45,55,40,01,44,8A,AA,A0,02,A2,45,45,50,01,44 DATA 8A,82,A8,02,A2,45,01,54,01,44,8A,80,AA,02,A2 DATA 45,00,55,01,44,8A,80,2A,82,A2,45,00,15,55,44 DATA 8A,80,0A,AA,A2,45,00,05,55,44,8A,80,02,AA,82 DATA 40,00,01,55,04,80,00,00,00,02,40,00,00,00,04 DATA 80,00,00,00,02,40,15,55,50,04,80,2A,AA,A8,02 DATA 40,55,55,54,04,80,AA,AA,AA,02,41,55,55,55,04 DATA 82,A8,00,2A,82,45,50,00,15,44,8A,A0,00,0A,A2 DATA 45,40,00,05,44,8A,80,00,02,A2,45,00,00,01,44 DATA 8A,80,00,02,A2,45,00,00,01,44,8A,80,00,02,A2 DATA 45,00,00,01,44,8A,80,00,02,A2,40,00,00,00,04 DATA 80,00,00,00,02,40,00,00,00,04,80,00,00,00,62 DATA 40,00,00,03,84,80,00,00,1C,02,40,00,00,60,04 DATA 80,00,03,80,02,40,00,1C,00,04,80,00,60,00,02 DATA 40,03,80,00,04,80,0C,00,00,02,40,70,00,00,04
Print Sample
Normal mode
GS / 1
Double-width mode