epson programming guide

529
ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS ESC/POS TM-U925 TM-H5000II TM-U375 Features & Technical Information Commands listed by function Commands listed in alphanumeric order Character code tables Usable application programs and tips Definitions Paper roll/cut sheet printers TM-H6000 TM-J8000 TM-U675 TM-U325D EPSON TM-U300C/D EPSON EPSON CONFID CONFID CONFIDENTIAL

Upload: augusto-recordon

Post on 29-Nov-2014

1.937 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-U925

TM-H5000II

TM-U375

Features& TechnicalInformation

Commands listed by function

Commands listed in alphanumeric order

Character code tables

Usable application programs and tips

Definitions

Paper roll/cut sheetprinters

TM-H6000

TM-J8000

TM-U675 TM-U325D

RECEIPT

OUT

VALIDATION

POWER

ERROR

FEED

FEED

RELEASE

RELEASE

EPSON

TM-U300C/D

EPSONEPSONCONFIDCONFIDCONFIDENTIAL

Page 2: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-H5000IIEPSONEPSONCONFIDCONFIDCONFIDENTIAL

To see the list of supported commands,click here

Page 3: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-H6000EPSONEPSONCONFIDCONFIDCONFIDENTIAL

To see the list of supported commands,click here

Page 4: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-J8000EPSONEPSONCONFIDCONFIDCONFIDENTIAL

To see the list of supported commands,click here

Page 5: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-U300C/DEPSONEPSONCONFIDCONFIDCONFIDENTIAL

To see the list of supported commands,click here

Page 6: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-U325DEPSONEPSONCONFIDCONFIDCONFIDENTIAL

To see the list of supported commands,click here

Page 7: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-U375EPSONEPSONCONFIDCONFIDCONFIDENTIAL

To see the list of supported commands,click here

Page 8: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-U675EPSONEPSONCONFIDCONFIDCONFIDENTIAL

To see the list of supported commands,click here

Page 9: Epson Programming Guide

ESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POSESC/POS

TM-U925EPSONEPSONCONFIDCONFIDCONFIDENTIAL

To see the list of supported commands,click here

Page 10: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 10

■ ■ ■ more■ ■ ■ moreUsable application programs and tips

System ProcessingThis example illustrates ESC/POS command functions and printing results. It shows issue processing for a receipt and the commands and procedures used by a TM-U375 (RS-232 serial interface model), DM-D102, and drawer.

Set DIP switch 2-1 of the TM-U375 to On (customer display connected), insert the plug of the DM-D102 firmly into the customer display connector (DM-D) on the bottom of the printer, and then turn on the printer power.

Print Sample

USABLE APPLICATION PROGRAMS AND TIPS

YOUR RECEIPT

Thank youAPRIL 5, 1997, 10:30

TM-U375PS-150

TOTAL-----------------------------------------PAIDCHANGE

37.5015.00

52.50

55.002.50

Stamp

Item A

Item B

Manual cutting

Page 11: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 11

■ ■ ■ more■ ■ ■ moreSystem Processing Procedures

Procedure Commands Used Description

1. Define stamp data ESC =, GS ✻ Select the printer with ESC = and define a downloaded bit image as a stamp.

2. Display a message ESC = Select the customer display with ESC = and display a message and time.

3. Stamp ESC =, ESC a, ESC U, GS /, ESC J, ESC d

After selecting the printer with ESC = and the center justification for the printing position with ESC a, print the stamp (downloaded bit image), date, and time.

4. Print item ADisplay item A

ESC a, ESC !, ESC =, LF, ESC U

Select font B with ESC ! to set 40 characters for a print column.Select both the printer and customer display with ESC = and print and display item A.

5. Print item BDisplay item B

ESC =, LF, ESC p, ESC d

Select the printer with ESC = and paper is fed to the manual cutting position after printing item B and executing a drawer operation.Display only amount paid on the display.

6. Display change ESC =, GS !, LF Select the printer with ESC = and print and display change and a message.

7. Manual cut Use the manual cutter.

Page 12: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 12

■ ■ ■ more■ ■ ■ moreDM-D102 Display Result

2

Define data

Scroll the message and displaythe counter

Display Item A

Display Item A

Display total

Display amount paid

Display change amount

W E L C O M E

1 0 : 30 : 0 0

T M — U 3 7 5

37. 50

P S — 1 5 0

1 5 . 00

T O T A L

52. 50

P A I D

55 . 00

C H A N G E 2. 50

T h a n k Y o u>>

>> >>

>>

1

2

3

4

5

6

7

Page 13: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 13

■ ■ ■ more■ ■ ■ moreProgram Example

PRINT #1, CHR$(&H1B);"=";CHR$(3); ← Select devices (printer and customer display)

PRINT #1, CHR$(&H1B);"@"; ← Initialize the devices

PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Select the printer

PRINT #1, CHR$(&H1D);"∗";CHR$(40);CHR$(4);FOR I=1 to 1280

READ a$: PRINT #1, CHR$(VAL("&H"+a$));

NEXT I

PRINT #1, CHR$(&H1B);"=";CHR$(2); ← Select the device (customer display)PRINT #1, CHR$(&H1B);"t";CHR$(1);

PRINT #1, CHR$(&H1F);"T";CHR$(10);CHR$(30);

PRINT #1, CHR$(229);CHR$(230);CHR$(229);" WELCOME ";CHR$(229);CHR$(230);CHR$(229);

PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Select the printer

PRINT #1, CHR$(&H1B);"a";CHR$(1); ← Justification (center)

PRINT #1, CHR$(&H1B);"U";CHR$(1); ← Select unidirectional printing

PRINT #1, CHR$(&H1D);"/";CHR$(0); ← Print downloaded bit image (normal mode)

PRINT #1, CHR$(&H1B);"U";CHR$(0); ← Cancel unidirectional printing

PRINT #1, CHR$(&H1B);"J";CHR$(10);

PRINT #1, "Thank You";CHR$(&H1B);"J";CHR$(30);← Print a message

PRINT #1, "APRIL 5, 1997, 10:30";CHR$(&H1B);"d";CHR$(3); ← Print date and time

PRINT #1, CHR$(&H1B);"a";CHR$(0); ← Justification (left)

PRINT #1, CHR$(&H1B);"!";CHR$(1); ← Select font B

W$=INPUT(1); ← Waiting for input

PRINT #1, CHR$(&H1B);"=";CHR$(2);CHR$(&HC); ← Clear the display

PRINT #1, CHR$(&H1B);"=";CHR$(3); ← Select the printer and customer display

PRINT #1, "TM-U375 37.50";CHR$(&HA);CHR$(&HB);

W$=INPUT$(1) ← Waiting for input

PRINT #1, "PS-150 15.00";CHR$(&HA);CHR$(&HB);

W$=INPUT$(1) ← Waiting for input

PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Select the printer

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1B);"U";CHR$(1); ← Select unidirectional printing

PRINT #1, CHR$(&H1B);"!";CHR$(17); ← Select character size (double in vertical)

PRINT #1, CHR$(&H1B);"=";CHR$(3); ← Select the printer and customer display

PRINT #1, "TOTAL 52.50";CHR$(&HA);CHR$(&HB);

(Continued on next page)

Print anddisplayitem A

Execute a stamp

Definestamp data(downloadedbit image)

Page 14: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 14

■ ■ ■ more■ ■ ■ moreProgram Example (continued)

PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Select the printer

PRINT #1, CHR$(&H1B);"U";CHR$(0); ← Cancel unidirectional printing

PRINT #1, CHR$(&H1B);"!";CHR$(1); ← Select a character size (normal)

PRINT #1, "-----------------------------------------";CHR$(&HA);

W$=INPUT(1); ← Waiting for input

PRINT #1, CHR$(&H1B);"=";CHR$(3); ← Select the printer and customer display

PRINT #1, "PAID 55.00";CHR$(&HA);

PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Select the printer

PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(10);CHR$(100);← Output a pulse (drawer operation)

PRINT #1, "CHANGE 2.50";CHR$(&HA);

PRINT #1, CHR$(&H1B);"d";CHR$(11); ← Feed paper to the manual cutting position

PRINT #1, CHR$(&H1B);"=";CHR$(2); ← Select the customer display

PRINT #1, CHR$(&HC);

PRINT #1, "CHANGE 2.50";

PRINT #1,CHR$(237);CHR$(237); " Thank You ";CHR$(236);CHR$(236);

END

(Continued on next page)

Displaychangeandmessage

Print anddisplayitem B

Print anddisplayitem A

Page 15: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 15

■ ■ ■ more■ ■ ■ moreProgram Example (continued)

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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

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

DATA 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

DATA 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

(Continued on next page)

Page 16: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 16

■ ■ ■ more■ ■ ■ moreProgram Example (continued)

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

DATA 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

Page 17: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 17

■ ■ ■ more■ ■ ■ morePage Mode Printing

This example illustrates ESC/POS command functions and printing results. The example shows issue processing for a coupon and the procedures and commands used in page mode with the TM-H5000II. You can use 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

Pap

er f

eed

dir

ecti

on

Page 18: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 18

■ ■ ■ more■ ■ ■ moreSystem Processing Procedures

When printing multiple coupons, transmit ESC FF and GS V as many times as you want to print.

Procedure Commands Used Description

1. Select page mode ESC L, GS P Select page mode.Change horizontal and vertical motion units to set normal dot units.

2. Transmit data for border ESC W, ESC T, ESC ✻ Select the printing area for the border with ESC W and the printing direction with ESC T.Transmit the border data as a bit image.

3. Transmit a message ESC W, ESC T, GS !, LF, ESC J

Select the printing area for the message data with ESC W and the printing direction with ESC T.

4. Transmit data for symbols A and B (the tree and cake)

ESC W, ESC T, ESC 3, ESC ✻

Select the printing area for the data for the symbols with ESC W and the printing direction with ESC T.Transmit data for symbols A and B as bit images.

5. Transmit bar code data ESC W, ESC T, GS HGS f, GS h, GS w, GS $GS k

Select the printing area for the bar code with ESC W and the printing direction with ESC T. After setting HRI characters with GS H and GS f, etc., transmit data for CODE 39 bar code to the printing position set by GS $.

6. Print all data ESC FF, GS V Print all data collectively in page mode and cut paper.

7. Return to standard mode ESC S Return to standard mode. All data in page mode is cleared.

Page 19: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 19

■ ■ ■ more■ ■ ■ moreProgram ExamplePRINT #1, CHR$(&H1B);"@"; ← Initialize the printer

PRINT #1, CHR$(&H1B);"L";← Select page mode

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR&(180);← 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);← Select printing direction (left to right)

n=10: GOSUB Edge

PRINT #1, CHR$(&H1B);"T";CHR$(1); ← Select printing direction (bottom to up)

n=15: GOSUB Edge

PRINT #1, CHR$(&H1B);"T";CHR$(2); ← Select printing direction (right to left)

n=10: GOSUB Edge

PRINT #1, CHR$(&H1B);"T";CHR$(3); ← Select printing direction (up to bottom)

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); ← Select printing direction (bottom to up)

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";

PRINT #1, CHR$(&H1B);"W";CHR$(50);CHR $(0);CHR$(76);CHR$(2);CHR$(72);CHR$(0);CHR$(68);CHR$(0);

PRINT #1, CHR$(&H1B);"T";CHR$(1);← Select printing direction (bottom to up)

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

(Continued on next page)

Transmit edge data

Transmit a message

Transmit data for symbol A

Page 20: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 20

■ ■ ■ more■ ■ ■ moreProgram 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);← Select printing direction (bottom to up)

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);← Select printing direction (bottom to up)

PRINT #1, CHR$(&H1D);"H";CHR$(2);← Select printing position of HRI characters (bottom)

PRINT #1, CHR$(&H1D);"f";CHR$(1);← Select font for HRI characters (font B)

PRINT #1, CHR$(&H1D);"h";CHR$(40);← Set bar code height

PRINT #1, CHR$(&H1D);"w";CHR$(2);← Set bar code width

PRINT #1, CHR$(&H1D);"$";CHR$(40);CHR$(0);← Set absolute vertical print position

PRINT #1, CHR$(&H1D);"k";CHR$(4);"*10% OFF*";CHR$(0);

PRINT #1, CHR$(&H1B);CHR$(&HC); ← Print data collectivelyPRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(80); ←Cut paper

PRINT #1, CHR$(&H1B);"S"; ←Return to standard mode

END

Edge

FOR i=1 To n

PRINT #1, CHR$(&H1B);"*";CHR$(0);CHR$(25);CHR$(0);

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);

NEXT i

RETURN

(Continued on next page)

Transmit data for symbol B

Transmit bar code

Subroutine for transmitting the edge data

Page 21: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 21

■ ■ ■ more■ ■ ■ moreProgram 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 A

Data for symbol B

Page 22: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 22

■ ■ ■ more■ ■ ■ moreTips (standard mode/page mode)

Some TM printers, such as the TM-U675 and the TM-H6000, support two different print modes: standard mode and page mode.

What is standard mode?

The standard mode is supported by all printers. In this mode, the printers print data in the print buffer by executing print commands (such as LF, CR, and ESC J) or when the buffer is full.

Standard mode is the print mode which prints data one line at a time.

Characteristics of standard mode

■ All printers support standard mode■ The printer is in standard mode when the power is turned on

■ The printable area in the vertical direction (paper feed direction) has no limit■ The printable area in the horizontal direction is defined for each printer model

■ Line spacing is adjusted depending on the size of a character or specified pattern, such as a bit-image or a bar code ■ Line spacing becomes larger for a line that has characters with different heights

Note: Line spacing for the second line is larger than the first line by the amount indicated by (*).

ESC L, FS L ESC FF

Standard mode Page mode

Printing

Printing

Power onESC S

FF

ABCDEFGHIJABCDEFGHIJ

Line spacing set

Line spacing set

Adjusted line spacing for double-height characters (*)

Page 23: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 23

■ ■ ■ more■ ■ ■ more■ The printer processes data in half dot pitch (only for printers that have the half dot pitch)

■ The functions that use the half-dot pitch, such as a double-density bit image or emphasized printing, are enabled■ The beginning of a line is the first data for the line, before any other character or command data. In other words, the

command should immediately follow a CR LF combination.■ For functions that are enabled only at the beginning of the line, the commands should be at the beginning of the line

■ Executing the following commands puts the printer at the beginning of the line:

Note: If the printing position is specified as [printing position = 0] by print position commands (ESC $, ESC \), the printing position does not move to the beginning of the line.

■ Some commands cannot be used in the same line■ For functions that include printing, such as a bit-image or the bar code, simultaneous printing with different data,

including characters in the same line, cannot be performed

What is page mode?

Page mode executes batch printing with FF or ESC FF for all data stored in the print buffer after page mode is selected with ESC L. In this mode, 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. Page mode is the print mode which prints data one page at a time.

Commands Characteristics

GS T (Recommended command)■ The printer does not execute anything if it is already at the beginning of the line.■ If the printer is not at the beginning of the line, the command lets you specify

whether to print data not printed yet or discard it.

Print commands such as LF, CR, and ESC J

■ A paper feed is executed even if the printer is at the beginning of the line.■ If the printer is not at the beginning of the line, the printer prints data not printed yet.

ESC @ ■ The printer performs initialization regardless of the current position.■ The printer is at the beginning of the line; however, the settings and data that have

been defined are all cleared.

Page 24: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 24

■ ■ ■ more■ ■ ■ moreCharacteristics of page mode

■ Page mode is used for processing special data■ Basic processing procedure for page mode:1. Select page mode with ESC L or FS L (standard mode is changed to page mode) 2. Set the position and size of the printing area with ESC W3. Select the starting position and the direction for data development with ESC T4. Store print data (such as characters or bit images) in the print buffer5. Print all data in the print buffer collectively with ESC FF6. Return to standard mode with ESC S(You can skip step 6 if you use FF instead of ESC FF in step 5.)■ Copy printing is possible■ Because printing with ESC FF leaves the data stored in the print buffer, executing ESC FF repeatedly repeats the

same printing. It is also possible to print repeated data with changes in some parts■ The flexible layout enables you to execute printing you cannot accomplish in standard mode

■ Ladder bar code printing is possible■ Characters and bit images can be rotated (90° clockwise, 180° clockwise (upside down), or 90° counterclockwise)

■ Downloaded bit images or bar codes can be printed on the same line with characters at the same time■ A character, a bit-image, and a bar code have a basic position for the data development, respectively (the line

indicating the basic position for the data development is used just for explanation) Transmission data: “A”, specifies the quadruple character, “B”, ESC ✻, cancels the quadruple character, “C”, GS k, “D”, GS /, “EF”, LF

Note: Vertical spacing for NV bit images, raster bit images, and variable bit images is the same.

■ Data can be processed only in normal dot units in page mode set by ESC L (only for the printers that have half dot units ■ Functions that are printed in half dot units, such as double-density bit images and emphasized characters, cannot be

used

AB C D EFBit-image Bar code User-defined bit-image

Development position

Page 25: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 25

■ ■ ■ more■ ■ ■ more■ The printer processes the line spacing set by commands regardless of the size of characters and specified pattern (bit

images, bar codes, etc.)■ If the line spacing set is not enough, characters are overlapped (the lines in the following example are used for

explanation)

Receipt Issuing for a Cut SheetThe example shows the printed receipt and the procedures and commands used with the TM-U925 for a preprinted cut sheet form.

Print Sample

(The shaded area indicates a pre-printed form.)

Line spacing set

Line spacing set

1111111111ABCDEFGHI J

RECEIPT

Name EPSONROOM No. GUESTS ARRIVAL

Section A

Section C

Section B

1017 2 MAR. 20,

DATE DESCRIPTION CHARGE BALANCE DUEMAR. 20 GUEST ROOM 114.00 114.00

ROOM TAX 15.96 129.96ROOM SERVICE 18.00 147.96PARKING 5.00 152.96

MAR. 21 GUEST ROOM 114.00 266.96ROOM TAX 15.96 282.92PARKING 5.00 287.92

TOTAL 287.92PAID 300.00

CHANGE 12.08

Page 26: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 26

■ ■ ■ more■ ■ ■ moreReceipt Issuing Procedures

Procedure Commands Used Description

1. Set printer to the default settings

ESC @, ESC c 4, ESC c 1, ESC c 0

Execute initialization. Enable the slip sensor, which stops printing when the paper runs out. Select slip as the setting for paper type.* The SLIP LED blinks after the printer executes ESC c 0, which

indicates the printer is in the slip insertion waiting status. Insert the slip paper.

2. Print section A ESC U, ESC !, ESC $, LF, ESC J

Set the printing position with ESC $ and ESC J and print EPSON using quadruple size in the unidirectional print direction. After selecting font B (7 × 9), print ROOM No. ~ ARRIVAL using normal size.

3. Print section B ESC $, LF, ESC d Set the printing position with ESC $ and print item B.

4. Print section C ESC $, LF Set the printing position and print item C.

5. Eject cut sheet FF Eject cut sheet.* The SLIP LED blinks when paper feed is completed, which indicates

the printer is in the slip ejection waiting status. Remove the slip paper.

Page 27: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 27

■ ■ ■ more■ ■ ■ moreProgram Example

PRINT #1, CHR$(&H1B);"@"; ← Initialize the printer

PRINT #1, CHR$(&H1B);"c4";CHR$(48); ← Enable a sensor to stop printing due to a paper end

PRINT #1, CHR$(&H1B);"c1";CHR$(4); ← Select paper type for command settings (slip)

PRINT #1, CHR$(&H1B);"c0";CHR$(4); ← Select paper type for printing (slip)

PRINT #1, CHR$(&H1D);"J";CHR$(112); ← Set printing position

PRINT #1, CHR$(&H1B);"U";CHR$(1); ← Select unidirectional printing

PRINT #1, CHR$(&H1B);"!";CHR$(48); ← Select character size (double-height × double-width)PRINT #1, CHR$(&H1B);"$";CHR$(60);CHR$(0) ←Set printing position

PRINT #1, "EPSON";CHR$(&H1B);"J";CHR$(68); ← Print and paper feed (68/144 inch)

PRINT #1, CHR$(&H1B);"U";CHR$(0); ← Cancel unidirectional printing

PRINT #1, CHR$(&H1B);"!";CHR$(1); ← Select character size (normal) and font B (7×9)PRINT #1, CHR$(&H1B);"$";CHR$(60);CHR$(0); ← Set printing position

PRINT #1, "1017 2 MAR.20,1997 MAR.22,1997";

PRINT #1, CHR$(&H1B);"J";CHR$(108); ← Print and paper feed (108/144 inch)

PRINT #1, "MAR. 20"

PRINT #1, CHR$(&H1B);"$";CHR$(135);CHR$(0);"GUEST ROOM";

PRINT #1, CHR$(&H1B);"$";CHR$(131);CHR$(1);"114.00";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"114.00";CHR$(&HA);

PRINT #1, CHR$(&H1B);"$";CHR$(135);CHR$(0);"ROOM TAX";

PRINT #1, CHR$(&H1B);"$";CHR$(131);CHR$(1);" 15.96";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"129.96";CHR$(&HA);

PRINT #1, CHR$(&H1B);"$";CHR$(135);CHR$(0);"ROOM SERVICE";

PRINT #1, CHR$(&H1B);"$";CHR$(131);CHR$(1);" 18.00";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"147.96";CHR$(&HA);

PRINT #1, CHR$(&H1B);"$";CHR$(135);CHR$(0);"PARKING";

PRINT #1, CHR$(&H1B);"$";CHR$(131);CHR$(1);" 5.00";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"152.96";CHR$(&HA);

(Continued to the next page)

Set default

Print Section A

Print Section B

Page 28: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 28

■ ■ ■ more■ ■ ■ moreProgram Example (continued)

PRINT #1, "MAR. 21"

PRINT #1, CHR$(&H1B);"$";CHR$(135);CHR$(0);"GUEST ROOM";

PRINT #1, CHR$(&H1B);"$";CHR$(131);CHR$(1);"114.00";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"266.960";CHR$(&HA);

PRINT #1, CHR$(&H1B);"$";CHR$(135);CHR$(0);"ROOM TAX";

PRINT #1, CHR$(&H1B);"$";CHR$(131);CHR$(1);" 15.96";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"282.92";CHR$(&HA);

PRINT #1, CHR$(&H1B);"$";CHR$(135);CHR$(0);"PARKING";

PRINT #1, CHR$(&H1B);"$";CHR$(131);CHR$(1);" 5.00";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"287.92";CHR$(&HA);

PRINT #1, CHR$(&H1B);"d";CHR$(13);← Print and 13-line paper feed

PRINT #1, CHR$(&H1B);"$";CHR$(113);CHR$(0);"TOTAL";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"287.92";CHR$(&HA);

PRINT #1, CHR$(&H1B);"$";CHR$(113);CHR$(0);"PAID";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);"300.00";CHR$(&HA);

PRINT #1, CHR$(&H1B);"$";CHR$(113);CHR$(0);"CHANGE";

PRINT #1, CHR$(&H1B);"$";CHR$(28);CHR$(2);" 12.08";CHR$(&HA);

PRINT #1, CHR$(&HC);← Eject paper

END

Print Section B

Print Section C

Page 29: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 29

■ ■ ■ more■ ■ ■ moreTips (paper roll/cut sheet)

If a TM printer can print on both paper roll (receipt or journal) and cut sheet (slip or validation paper), the paper roll is selected as the paper type when the power is turned on. The printer prints on the paper roll after the print data and print commands are processed. In order to print on a cut sheet, first select slip or validation paper as the paper type with ESC c 0.

Example for slip printing process: Enable the slip sensor (n = 48) with ESC c 4 n.

1. Select slip paper as the paper type (n = 4) with ESC c 0 n.2. Insert the slip paper after confirming that the SLIP LED blinks (slip insertion wait status).3. Process the print data (characters and bit images, etc.) and print commands (printing on the slip paper).4. Eject the slip paper with FF.5. Remove the ejected slip paper.

■ Steps 2 and 5 are user operations.■ If you want to print on validation paper, select validation paper in step 1. ■ It is not necessary to follow step 1, but the print result will be different.

■ With step 1: When a paper-end occurs in step 4, the printer goes back to step 2. Insert a new slip. The printer prints the data that was not printed on the first slip.

■ Without step 1: The printer does not stop printing even if a paper-end occurs in step 4. The data is printed on the same line.

Page 30: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 30

■ ■ ■ more■ ■ ■ moreRelationship between cut sheets and status:The status of cut sheet paper is as follows:

Relationship between slip printing and ASB status:The host computer should process GS a when it checks the slip status using the ASB function. The relationship between the slip printing process and the ASB status is as follows:

— indicates there is no change

Status (corresponding commands) Slip Validation

Normal status (GS r) Paper sensor status (n = 1, 49)/cut sheet status (n = 3, 51)

(ESC v) Paper sensor status

ASB status (GS a) Third byte: Bits 5 and 6Fourth byte: Bits 0 and 1

Fourth byte: Bits 2, 3, 5, and 6

Real-time status (DLE EOT) Slip status (n = 5) Validation status (n = 6)

Process Transmission

Third byte Fourth byte

Paper detection Selection status Print possibility

GS a n (n = 32) Processing Paper not present Not selected Impossible to print

Paper insertion Processing Paper present — —

ESC c 0 n (n = 4) Processing — Selected —

Start loading No processing — — —

Paper loading completion Processing — — Printing possible

Data printing No processing — — —

FF (start ejection) Processing — — Printing not possible

Paper ejection completion Processing Paper not present Not selected —

Page 31: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 31

■ ■ ■ more■ ■ ■ moreProcessing the Data Received from the Printer

This example shows procedures and programming samples for differentiating data transmitted from the printer. It is possible to know what type of data has been transmitted from the printer by the bit status.

Note: This example reads the firmware version; your printer’s firmware version may be different.

Data type Procedure to judge Remarks

Block data The first byte is 5FH • Data configuration is [Header(5FH)~NUL] • [Header~NUL] is always successive

ASB status The first byte is (0✻✻1✻✻00) • 4-byte data is always successive

Ink ASB status The first byte is 35H • 4-byte data is always successive

Program Example

[Example A] [Example B]ASB-status: (14) (00) (60) (0F)

Ink-ASB: (35) (40) (40) (00)

Manufacturer: EPSONPrint name: TM-J8000Firmware version: 1.05 ESC/POS

ASB-status: (14) (00) (60) (0F)

Ink-ASB: (35) (40) (40) (00)

ASB-status: (5C) (02) (60) (0F)

ASB-status: (14) (00) (60) (0F)

Manufacturer: EPSONPrint name: TM-J8000Firmware version: 1.05 ESC/POS

Page 32: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 32

■ ■ ■ more■ ■ ■ moreProcessing Procedures

Procedure Action Commands used Description

1 Initializing ESC @GS a, GS j

• Initialize the printer.• Set ASB status and ink ASB status to enabled.

2 Waiting for key input

None • If you input a key before touching the printer controls, you will get [Example A]. If you input a key after pressing the PAPER FEED button once, you will get [Example B].

3 Receiving printer information and printing

GS I, LF • Request for transmission of printer information by GS I.• Perform receiving processing using a sub routine <✻RECEIVE>.• Print the printer information with a message.• If an ASB status is received, its value is printed.• If an ink ASB status is received, its value is printed.

4 Paper cut GS V • Paper is cut after the paper is fed to the autocutting position.

Page 33: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 33

■ ■ ■ more■ ■ ■ moreProgram Example

PRINT #1, CHR$(&H1B);"@"; ← Initialize printer

PRINT #1, CHR$(&H1D);"a";CHR$(111) ← Set ASB status enabled

PRINT #1, CHR$(&H1D);"j"CHR$(3); ← Set ink ASB status enabled

W&=INPUT$(1) ← Wait for input

PRINT #1, CHR$(&H1D); “I”;CHR$(66);

ST$=””: GOSUB *RECEIVE ← Receive processing

PRINT #1, “Manufacturer : ”;ST$;CHR$(&HOA);

PRINT #1, CHR$(&H1D); “I”;CHR$(67);

ST$=””: GOSUB *RECEIVE ← Receive processing

PRINT #1, “Printer name : ”;ST$;CHR$(&HOA);

PRINT #1, CHR$(&H1D); “I”;CHR$(65);

ST$=””: GOSUB *RECEIVE ← Receive processing

PRINT #1, “Firmware version : ”;ST$;CHR$(&HOA);

PRINT #1, CHR$(&H1D);”V”;CHR$(65);CHR$(0); ← Paper cut

END

*RECEIVE; ← Start receiving data from printer

IF LOC(1)=0 THEN *RECEIVE

1$=INPUT$(1,#1) : DT=ASC(I$) ← Receive 1-byte data

1F DT<>&H5F THEN *ASB ← Judge data from printer

*REC1: ← Receive printer information

IF LOC(1)=0 THEN *REC1

I$=INPUT$(1,#1) : DT=ASC(1$) ← Receive 1-byte data

1F DT<>&HO THEN ST$=ST$+I$: GOTO *REC1 ← Receive

RETURN

*ASB: ← Receive and print ASB status

IF (DT AND &H93)=&H10 THEN PRINT #1, “ASB-status”; ELSE PRINT #1, “Ink-ASB”; ← Judge ASB status

PRINT #1, “: <“;RIGHT$((“00”+HEX$(DT)),2)”> “;

FOR I=1 to 3

*ASB1: IF LOC(1)=0 THEN *ASB1

I$=INPUT$(1,#1) : DT=ASC(I$) ← Receive 1-byte

PRINT #1, “<“;RIGHT$((“00”+HEX$(DT)),2);”> “;

NEXT I : PRINT #1, CHR$(&HOA);CHR$(&HOA);

GOTO *RECEIVE

Receive and print printer information

Page 34: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 34

■ ■ ■ more■ ■ ■ moreThis program example divides transmitted data into three categories: block data (printer ID information sent with GS I), ASB status, and ink ASB status. The host differentiates information for the block data, ASB status, and ink ASB status in the following lines:

19th line: Checking the header in block data (this checks the start of a series of data for GS I)

23rd line: Checking for a NUL in block data (this checks the end of a series of data for GS I)

26th line: Checking whether there is ASB status or ink ASB status

Tips (identifying data transmissions)The host computer should determine what information it receives from the TM printer and perform appropriate processing. There are three types of status transmitted from the printer to the host: Normal, real-time, and ASB status.

Status Types

Normal status

■ This 1-byte status message is transmitted when processing a command■ It can be differentiated from other data using the bit information■ It is sent when the printer processes GS r■ GS r is processed when the printer is in online status■ “Paper sensor status (n = 1)” is processed after the printer finishes its current processing. Therefore, not only the paper

sensor status but also the data block can be checked■ Example: In a program that gets status by transmitting GS r 1 following a print command, when the status is received,

the information “printing has been completed” and “no data in print buffer” can be checked in addition to the paper sensor status

Real-time status

■ This 1-byte status message is transmitted when the printer receives a command■ It can be differentiated from other data using the bit information■ It is transmitted when the printer receives a command in the command group DLE EOT, DLE ENQ, and DLE EOT BS■ The command group DLE EOT can be processed whether the printer is offline (*) or online

(*): When the printer is offline, transmitting this command continuously causes the receive buffer to fill. Therefore, be sure to transmit the command as infrequently as possible.

Page 35: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 35

■ ■ ■ more■ ■ ■ moreASB status

■ A 4-byte status message is transmitted when opening/closing a cover or processing commands that relate to paper present/not present status

■ It can be differentiated from other transmission data using the first bit of information■ Before using the ASB status, the function should be enabled by GS a, GS ( E, or GS j■ When the ASB function is selected, the ASB status is transmitted even when the host does not expect it to be transmitted■ With a serial interface, the ASB status consists of sequential 4-byte data (*)

(*): When XON/XOFF control is selected, an XOFF code may interrupt the data sequence■ With a parallel interface, when ASB status is used, it is desirable for the host to be in a reverse idle state (*)

(*): Because the host computer cannot always be in the reverse idle state, it is necessary to enter Reverse Mode regularly to watch if there is ASB status. If the host is not in the Reverse Mode for a long time and the printer has to store ASB status caused by various status changes for transmission later, the following 2 sets (8 bytes) of ASB status are changed to special data and transmitted prior to other transmission data when the host enters Reverse Mode: • ASB-1: Status information showing whether status changes occurred• ASB-2: The latest ASB status informationIf bits have a different value between (ASB-1) and (ASB-2), this means at least one change has occurred. An example is shown below:

From (ASB-1) and (ASB-2), you can see that bits 5 and 3 of the first byte have been changed.

Information Types

There are three types of information messages transmitted from the printer to the host: 1-byte information, block data with an identifier, and other block data.

1-byte information

■ A 1-byte information message is transmitted when the printer processes a command■ It can be differentiated from other transmission data by the bit information■ It is transmitted when the printer processes GS I

The first byte The second byte The third byte The fourth byte

ASB-1 0011 1000 0000 0000 0110 0011 0000 1111

ASB-2 0001 0000 0000 0000 0110 0011 0000 1111

Page 36: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 36

■ ■ ■ more■ ■ ■ moreBlock data with an identifier

■ This is transmitted when the printer processes a command■ The group is changeable data that starts with [header] and ends with [NUL (00H)]■ It can be differentiated from other transmission data by the combination of a header and differentiation data■ It is transmitted when the printer processes commands such as GS ( C and GS ( E■ With a serial interface, [header] ~ [NUL] is successive

Other block data

■ This is transmitted when the printer processes a command■ The group is changeable data that starts with [header] and ends with [NUL (00H)]■ It can be differentiated from other transmission data by the header■ It is transmitted when the printer processes commands such as FS a 0, FS b, GS I, and GS g 2■ With a serial interface, [header] ~ [NUL] is successive (*)

(*): When XON/XOFF control is selected, the XOFF code may interrupt the sequence of data.

Notification

■ There is a power-off notification, which consists of 3 bytes: [header] + [notification] + [NUL]■ The power-off notification can be differentiated from other transmission data using the combination of [header] and

[notification]■ The power-off notification for DLE DC4 indicates that the power-off process has finished■ The power-off notification is transmitted when an unrecoverable error has occurred (*)

(*): This notification might not be transmitted, depending on the printer status.■ The power-off notification might be transmitted without the host knowing in advance■ With a serial interface, [header] ~ [NUL] is successive (*)

(*): When XON/XOFF control is selected, the XOFF code may interrupt the sequence of data.■ With a parallel interface, it is desirable for the host to be in Reverse Mode (*)

(*): If the host cannot be in the Reverse Mode for a long time, it is necessary to enter Reverse Mode regularly to watch if there is a notification transmitted from the printer and receive it.

Other data

■ With a serial interface, when XON/XOFF control is selected, interface control information, such as the XOFF code, is also transmitted without the host knowing in advance.

Page 37: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Usable application programs and tips Ver. 6.0 p. 37

■ ■ ■ more■ ■ ■ moreInformation on transmission data for command processing

Note: When XON/XOFF control is selected, XOFF may interrupt data transmission.

Data typeThe amount of Data Identifier data Command

Normal status 1 byte Data (0**0 ****) GS r

Real-time status 1 byte Data (0**1 **10) The group of DLE EOT commands

ASB status 4 bytes The first byte is (0**1 **00) GS a

Ink ASB status 4 bytes The first byte is (00110101) GS j

Extended ASB status 4 bytes The first byte is (00111001) FS ( e

1-byte information 1 byte Data (0**0 ****) GS I

Block data with an identifier Header (00110111)

• NV user memory data Changeable Identifier data: (01110000) GS ( C <Function 2>

• NV user memory used Changeable Identifier data: (00101000) GS ( C <Function 3>

• NV user memory unused Changeable Identifier data: (00101001) GS ( C <Function 4>

• Key code list Changeable Identifier data: (01110001) GS ( C <Function 5>

• Change to user setting mode 3 bytes Identifier data: (00100000) GS ( E <Function 1>

• Customized value Changeable Identifier data: (00100111) GS ( E <Function 6>

Other block data Changeable Header (01011111) FS a 0, FS b, GS I, GS g 2

Notification of turning off the power 3 bytes Header (00111011) DLE DC4

XON code 1 byte Data (00010001) —XOFF code 1 byte Data (00010011) —

Page 38: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 38

Character code tables

SP in a table represents space. See 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.)

CHARACTER CODE TABLES

Page 39: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 39

Page 1 (Katakana)

Page 40: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 40

Page 2 (PC850: Multilingual)

Page 41: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 41

Page 3 (PC860: Portuguese)

Page 42: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 42

Page 4 (PC863: Canadian-French)

Page 43: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 43

Page 5 (PC865: Nordic)

Page 44: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 44

Page 6 (Hiragana) (Available on the Kanji model)

Page 45: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 45

Page 7 (One-pass printing Kanji characters) (Available on the Kanji model)

Page 46: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 46

Page 8 (One-pass printing Kanji characters) (Available on the Kanji model)

Page 47: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 47

Page 16 (WPC1252)

Page 48: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 48

Page 17 (PC866: Cyrillic #2)

Page 49: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 49

Page 18 (PC862: Latin2)

Page 50: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 50

Page 19 (PC858: Euro)

Page 51: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 51

Page 20 (Thai Character Code 42)

Page 52: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 52

Page 21 (Thai Character Code 11)

Page 53: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 53

Page 22 (Thai Character Code 13)

Page 54: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 54

Page 23 (Thai Character Code 14)

Page 55: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 55

Page 24 (Thai Character Code 16)

Page 56: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables

■ ■ ■ more■ ■ ■ more

Ver. 6.0 p. 56

Page 25 (Thai Character Code 17)

Page 57: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character code tables Ver. 6.0 p. 57

Page 26 (Thai Character Code 18)

Page 58: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Using the character code tables Ver. 6.0 p. 58

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 . . . . . . . . . . . . . 4Binary . . . . . . . . . . . . . . . . . . 0100These numbers are the most significant bits of the ASCII code.Follow its row to the left to find the digits.Hexadecimal . . . . . . . . . . . . . 1Binary . . . . . . . . . . . . . . . . . . 0001These numbers are the least significant bits of the ASCII code.The combination of the numbers above is the ASCII code for character "A".Decimal . . . . . . . . . . . . . . . . . 65Hexadecimal . . . . . . . . . . . . . 41Binary . . . . . . . . . . . . . . . . . . 01000001

USING THE CHARACTER CODE TABLES

Page 59: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-J8000 supported commands Ver. 6.0 p. 59

■ ■ ■ more■ ■ ■ moreTM-J8000 supported commands

Command Classification Name Function type

HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS

FF EXECUTING COMMAND ➀ Print and eject cut sheet (in standard mode) PRINT COMMANDS

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS

DLE EOT EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE EOT NUL EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE EOT BEL EXECUTING COMMAND Real-time status transmission for ink STATUS COMMANDS

DLE ENQ EXECUTING COMMAND Real-time request to printer MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➀ Generate real-time pulse MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➁ Execute power-off sequence MISCELLANEOUS COMMANDS

ESC FF EXECUTING COMMAND Print data in page mode PRINT COMMANDS

ESC SP SETTING COMMAND Set right-side character spacing CHARACTER COMMANDS

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS

ESC $ EXECUTING COMMAND Set absolute print position PRINT POSITION COMMANDS

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS

TM-J8000 SUPPORTED COMMANDS

Page 60: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-J8000 supported commands Ver. 6.0 p. 60

■ ■ ■ more■ ■ ■ more

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS

ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS

ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS

ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS

ESC = SETTING COMMAND Select peripheral device MISCELLANEOUS COMMANDS

ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS

ESC @ EXECUTING COMMANDSETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS

ESC C SETTING COMMAND Set cut sheet eject length LINE SPACING COMMANDS

ESC D SETTING COMMAND Set horizontal tab positions PRINT POSITION COMMANDS

ESC E SETTING COMMAND Turn emphasized mode on/off CHARACTER COMMANDS

ESC G SETTING COMMAND Turn double-strike mode on/off CHARACTER COMMANDS

ESC J EXECUTING COMMAND Print and feed paper PRINT COMMANDS

ESC M SETTING COMMAND Select character font CHARACTER COMMANDS

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS

ESC U SETTING COMMAND Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

Command Classification Name Function type

Page 61: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-J8000 supported commands Ver. 6.0 p. 61

■ ■ ■ more■ ■ ■ more

ESC \ EXECUTING COMMAND Set relative print position PRINT POSITION COMMANDS

ESC a SETTING COMMAND Select justification PRINT POSITION COMMANDS

ESC c 0 EXECUTING COMMANDSETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 1 SETTING COMMAND Select paper type(s) for command settings PRINTING PAPER COMMANDS

ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS

ESC f SETTING COMMAND Set cut sheet wait time PRINTING PAPER COMMANDS

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS

ESC { SETTING COMMAND Turn upside-down printing mode on/off CHARACTER COMMANDS

FS p EXECUTING COMMAND Print NV bit image BIT-IMAGE COMMANDS

FS q EXECUTING COMMANDSETTING COMMAND Define NV bit image BIT-IMAGE COMMANDS

GS ! SETTING COMMAND Select character size CHARACTER COMMANDS

GS ( B SETTING COMMAND Customize ASB-status bits STATUS COMMANDS

Command Classification Name Function type

Page 62: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-J8000 supported commands Ver. 6.0 p. 62

■ ■ ■ more■ ■ ■ more

GS ( D EXECUTING COMMANDSETTING COMMAND Enable/disable real-time command MISCELLANEOUS COMMANDS

GS ✻ SETTING COMMAND Define downloaded bit image BIT-IMAGE COMMANDS

GS / EXECUTING COMMAND Print downloaded bit image BIT-IMAGE COMMANDS

GS : EXECUTING COMMANDSETTING COMMAND Start/end macro definition MACRO FUNCTION COMMANDS

GS B SETTING COMMAND Turn white/black reverse printing mode on/off CHARACTER COMMANDS

GS E SETTING COMMAND Select head control method MISCELLANEOUS COMMANDS

GS H SETTING COMMAND Select printing position of HRI characters BAR CODE COMMANDS

GS I EXECUTING COMMAND Transmit printer ID MISCELLANEOUS COMMANDS

GS L SETTING COMMAND Set left margin PRINT POSITION COMMANDS

GS P SETTING COMMAND Set horizontal and vertical motion units MISCELLANEOUS COMMANDS

GS Q 0 EXECUTING COMMAND Print variable vertical size bit image BIT-IMAGE COMMANDS

GS T EXECUTING COMMAND Set print position to the beginning of print line PRINT POSITION COMMANDS

GS V EXECUTING COMMAND Select cut mode and cut paper MECHANISM CONTROL COMMANDS

GS W SETTING COMMAND Set printing area width PRINT POSITION COMMANDS

GS ^ EXECUTING COMMAND Execute macro MACRO FUNCTION COMMANDS

GS a EXECUTING COMMANDSETTING COMMAND Enable/disable Automatic Status Back (ASB) STATUS COMMANDS

Command Classification Name Function type

Page 63: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-J8000 supported commands Ver. 6.0 p. 63

GS f SETTING COMMAND Select font for HRI characters BAR CODE COMMANDS

GS h SETTING COMMAND Set bar code height BAR CODE COMMANDS

GS j EXECUTING COMMAND Enable/disable Ink Automatic Status Back (ASB) STATUS COMMANDS

GS k EXECUTING COMMAND Print bar code BAR CODE COMMANDS

GS r EXECUTING COMMAND Transmit status STATUS COMMANDS

GS v 0 EXECUTING COMMAND Print raster bit image BIT-IMAGE COMMANDS

GS w SETTING COMMAND Set bar code width BAR CODE COMMANDS

Note 1) The printing result with ESC E or ESC G is the same, due to ink-jet printing characteristics; otherwise, ink on the double strike printing with ESC G may spread.

Note 2) For GS P, the horizontal and vertical motion units are used to set the minimum pitch by software instead of by mechanical pitch. Using the horizontal and vertical motion units minimizes dependence on the mechanical pitch for setting (such as, the paper feed amount), and enables the printing position to be set in inches.

Command Classification Name Function type

Page 64: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H5000II supported commands Ver. 6.0 p. 64

■ ■ ■ more■ ■ ■ moreTM-H5000II supported commands

Command Classification Name Function type

HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS

FF EXECUTING COMMAND ➀ Print and eject cut sheet (in standard mode) PRINT COMMANDS

FF EXECUTING COMMAND ➁ Print and return to standard mode (in page mode) PRINT COMMANDS

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS

CAN EXECUTING COMMAND Cancel print data in page mode CHARACTER COMMANDS

DLE EOT EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE ENQ EXECUTING COMMAND Real-time request to printer MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➀ Generate real-time pulse MISCELLANEOUS COMMANDS

ESC FF EXECUTING COMMAND Print data in page mode PRINT COMMANDS

ESC SP SETTING COMMAND Set right-side character spacing CHARACTER COMMANDS

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS

ESC $ EXECUTING COMMAND Set absolute print position PRINT POSITION COMMANDS

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS

TM-H5000II SUPPORTED COMMANDS

Page 65: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H5000II supported commands Ver. 6.0 p. 65

■ ■ ■ more■ ■ ■ more

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS

ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS

ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS

ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS

ESC = SETTING COMMAND Select peripheral device MISCELLANEOUS COMMANDS

ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS

ESC @ EXECUTING COMMANDSETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS

ESC C SETTING COMMAND Set cut sheet eject length LINE SPACING COMMANDS

ESC D SETTING COMMAND Set horizontal tab positions PRINT POSITION COMMANDS

ESC E SETTING COMMAND Turn emphasized mode on/off CHARACTER COMMANDS

ESC F SETTING COMMAND Set/cancel cut sheet reverse eject MECHANISM CONTROL COMMANDS

ESC G SETTING COMMAND Turn double-strike mode on/off CHARACTER COMMANDS

ESC J EXECUTING COMMAND Print and feed paper PRINT COMMANDS

ESC K EXECUTING COMMAND Print and reverse feed PRINT COMMANDS

ESC L EXECUTING COMMAND Select page mode MISCELLANEOUS COMMANDS

ESC M SETTING COMMAND Select character font CHARACTER COMMANDS

Command Classification Name Function type

Page 66: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H5000II supported commands Ver. 6.0 p. 66

■ ■ ■ more■ ■ ■ more

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS

ESC S EXECUTING COMMAND Select standard mode MISCELLANEOUS COMMANDS

ESC T SETTING COMMAND Select print direction in page mode PRINT POSITION COMMANDS

ESC U SETTING COMMAND Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

ESC V SETTING COMMAND Turn 90° clockwise rotation mode on/off CHARACTER COMMANDS

ESC W SETTING COMMAND Set printing area in page mode PRINT POSITION COMMANDS

ESC \ EXECUTING COMMAND Set relative print position PRINT POSITION COMMANDS

ESC a SETTING COMMAND Select justification PRINT POSITION COMMANDS

ESC c 0 EXECUTING COMMANDSETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 1 SETTING COMMAND Select paper type(s) for command settings PRINTING PAPER COMMANDS

ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS

ESC e EXECUTING COMMAND Print and reverse feed n lines PRINT COMMANDS

ESC f SETTING COMMAND Set cut sheet wait time PRINTING PAPER COMMANDS

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS

Command Classification Name Function type

Page 67: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H5000II supported commands Ver. 6.0 p. 67

■ ■ ■ more■ ■ ■ more

ESC q EXECUTING COMMAND Paper release MECHANISM CONTROL COMMANDS

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS

ESC { SETTING COMMAND Turn upside-down printing mode on/off CHARACTER COMMANDS

FS g 1 SETTING COMMAND Write to NV user memory MISCELLANEOUS COMMANDS

FS g 2 EXECUTING COMMAND Read from NV user memory MISCELLANEOUS COMMANDS

FS p EXECUTING COMMAND Print NV bit image BIT-IMAGE COMMANDS

FS q EXECUTING COMMANDSETTING COMMAND Define NV bit image BIT-IMAGE COMMANDS

GS ! SETTING COMMAND Select character size CHARACTER COMMANDS

GS $ EXECUTING COMMAND Set absolute vertical print position in page mode PRINT POSITION COMMANDS

GS ( A EXECUTING COMMAND Execute test print MISCELLANEOUS COMMANDS

GS ✻ SETTING COMMAND Define downloaded bit image BIT-IMAGE COMMANDS

GS / EXECUTING COMMAND Print downloaded bit image BIT-IMAGE COMMANDS

GS : EXECUTING COMMANDSETTING COMMAND Start/end macro definition MACRO FUNCTION COMMANDS

GS B SETTING COMMAND Turn white/black reverse printing mode on/off CHARACTER COMMANDS

GS H SETTING COMMAND Select printing position of HRI characters BAR CODE COMMANDS

GS I EXECUTING COMMAND Transmit printer ID MISCELLANEOUS COMMANDS

GS L SETTING COMMAND Set left margin PRINT POSITION COMMANDS

Command Classification Name Function type

Page 68: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H5000II supported commands Ver. 6.0 p. 68

■ ■ ■ more■ ■ ■ more

GS P SETTING COMMAND Set horizontal and vertical motion units MISCELLANEOUS COMMANDS

GS V EXECUTING COMMAND Select cut mode and cut paper MECHANISM CONTROL COMMANDS

GS W SETTING COMMAND Set printing area width PRINT POSITION COMMANDS

GS \ EXECUTING COMMAND Set relative vertical print position in page mode PRINT POSITION COMMANDS

GS ^ EXECUTING COMMAND Execute macro MACRO FUNCTION COMMANDS

GS a EXECUTING COMMANDSETTING COMMAND Enable/disable Automatic Status Back (ASB) STATUS COMMANDS

GS b SETTING COMMAND Turn smoothing mode on/off CHARACTER COMMANDS

GS f SETTING COMMAND Select font for HRI characters BAR CODE COMMANDS

GS g 0 SETTING COMMAND Initialize maintenance counter MISCELLANEOUS COMMANDS

GS g 2 EXECUTING COMMAND Transmit maintenance counter MISCELLANEOUS COMMANDS

GS h SETTING COMMAND Set bar code height BAR CODE COMMANDS

GS k EXECUTING COMMAND Print bar code BAR CODE COMMANDS

GS r EXECUTING COMMAND Transmit status STATUS COMMANDS

GS v 0 EXECUTING COMMAND Print raster bit image BIT-IMAGE COMMANDS

GS w SETTING COMMAND Set bar code width BAR CODE COMMANDS

Command Classification Name Function type

Page 69: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H5000II supported commands Ver. 6.0 p. 69

■ ■ ■ more■ ■ ■ moreThe following commands are supported only by the printers with the optional Magnetic Ink Character Recognition (MICR) reader. (The MICR reader is a factory-installed option.)

Command Classification Name Function type

DLE EOT BS EXECUTING COMMAND Real-time MICR status transmission MICR COMMANDS

FS ( f EXECUTING COMMAND Select MICR data handling MICR COMMANDS

FS a 0 EXECUTING COMMAND Read check paper MICR COMMANDS

FS a 1 EXECUTING COMMAND Load check paper to print starting position MICR COMMANDS

FS a 2 EXECUTING COMMAND Eject check paper MICR COMMANDS

FS b EXECUTING COMMAND Request retransmission of check paper reading result MICR COMMANDS

FS c EXECUTING COMMAND MICR mechanism cleaning MICR COMMANDS

Page 70: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H5000II supported commands Ver. 6.0 p. 70

The following commands are supported only by the Kanji supporting models.

Command Classification Name Function type

FS ! SETTING COMMAND Set print mode(s) for Kanji characters KANJI COMMANDS

FS & SETTING COMMAND Select Kanji character mode KANJI COMMANDS

FS – SETTING COMMAND Turn underline mode on/off for Kanji characters KANJI COMMANDS

FS . SETTING COMMAND Cancel Kanji character mode KANJI COMMANDS

FS 2 SETTING COMMAND Define user-defined Kanji characters KANJI COMMANDS

FS C SETTING COMMAND Select Kanji character code system KANJI COMMANDS

FS S SETTING COMMAND Set Kanji character spacing KANJI COMMANDS

FS W SETTING COMMAND Turn quadruple-size mode on/off for Kanji characters KANJI COMMANDS

Page 71: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U375 supported commands Ver. 6.0 p. 71

■ ■ ■ more■ ■ ■ moreTM-U375 supported commands

Command Classification Name Function type

HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS

FF EXECUTING COMMAND ➀ Print and eject cut sheet (in standard mode) PRINT COMMANDS

FF EXECUTING COMMAND ➁ Print and return to standard mode (in page mode) PRINT COMMANDS

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS

CAN EXECUTING COMMAND Cancel print data in page mode CHARACTER COMMANDS

DLE EOT EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE ENQ EXECUTING COMMAND Real-time request to printer MISCELLANEOUS COMMANDS

ESC SP SETTING COMMAND Set right-side character spacing CHARACTER COMMANDS

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS

ESC $ EXECUTING COMMAND Set absolute print position PRINT POSITION COMMANDS

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS

ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS

ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS

TM-U375 SUPPORTED COMMANDS

Page 72: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U375 supported commands Ver. 6.0 p. 72

■ ■ ■ more■ ■ ■ more

ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS

ESC = SETTING COMMAND Select peripheral device MISCELLANEOUS COMMANDS

ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS

ESC @ EXECUTING COMMANDSETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS

ESC C SETTING COMMAND Set cut sheet eject length LINE SPACING COMMANDS

ESC D SETTING COMMAND Set horizontal tab positions PRINT POSITION COMMANDS

ESC E SETTING COMMAND Turn emphasized mode on/off CHARACTER COMMANDS

ESC G SETTING COMMAND Turn double-strike mode on/off CHARACTER COMMANDS

ESC J EXECUTING COMMAND Print and feed paper PRINT COMMANDS

ESC L EXECUTING COMMAND Select page mode MISCELLANEOUS COMMANDS

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS

ESC T SETTING COMMAND Select print direction in page mode PRINT POSITION COMMANDS

ESC U SETTING COMMAND Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

ESC V SETTING COMMAND Turn 90° clockwise rotation mode on/off CHARACTER COMMANDS

ESC W SETTING COMMAND Set printing area in page mode PRINT POSITION COMMANDS

ESC \ EXECUTING COMMAND Set relative print position PRINT POSITION COMMANDS

ESC a SETTING COMMAND Select justification PRINT POSITION COMMANDS

Command Classification Name Function type

Page 73: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U375 supported commands Ver. 6.0 p. 73

■ ■ ■ more■ ■ ■ more

ESC c 0 EXECUTING COMMANDSETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 1 SETTING COMMAND Select paper type(s) for command settings PRINTING PAPER COMMANDS

ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS

ESC f SETTING COMMAND Set cut sheet wait time PRINTING PAPER COMMANDS

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS

ESC q EXECUTING COMMAND Paper release MECHANISM CONTROL COMMANDS

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS

ESC u EXECUTING COMMAND Transmit peripheral device status STATUS COMMANDS

ESC v EXECUTING COMMAND Transmit paper sensor status STATUS COMMANDS

ESC { SETTING COMMAND Turn upside-down printing mode on/off CHARACTER COMMANDS

FS L SETTING COMMAND Select double-density page mode MISCELLANEOUS COMMANDS

GS ✻ SETTING COMMAND Define downloaded bit image BIT-IMAGE COMMANDS

GS / EXECUTING COMMAND Print downloaded bit image BIT-IMAGE COMMANDS

GS E SETTING COMMAND Select head control method MISCELLANEOUS COMMANDS

GS I EXECUTING COMMAND Transmit printer ID MISCELLANEOUS COMMANDS

Command Classification Name Function type

Page 74: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U375 supported commands Ver. 6.0 p. 74

■ ■ ■ more■ ■ ■ more

GS L SETTING COMMAND Set left margin PRINT POSITION COMMANDS

GS P SETTING COMMAND Set horizontal and vertical motion units MISCELLANEOUS COMMANDS

GS W SETTING COMMAND Set printing area width PRINT POSITION COMMANDS

GS a EXECUTING COMMANDSETTING COMMAND Enable/disable Automatic Status Back (ASB) STATUS COMMANDS

GS r EXECUTING COMMAND Transmit status STATUS COMMANDS

Command Classification Name Function type

Page 75: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U375 supported commands Ver. 6.0 p. 75

The following commands are supported only by the Kanji supporting models.

Command Classification Name Function type

FS ! SETTING COMMAND Set print mode(s) for Kanji characters KANJI COMMANDS

FS & SETTING COMMAND Select Kanji character mode KANJI COMMANDS

FS – SETTING COMMAND Turn underline mode on/off for Kanji characters KANJI COMMANDS

FS . SETTING COMMAND Cancel Kanji character mode KANJI COMMANDS

FS 2 SETTING COMMAND Define user-defined Kanji characters KANJI COMMANDS

FS C SETTING COMMAND Select Kanji character code system KANJI COMMANDS

FS S SETTING COMMAND Set Kanji character spacing KANJI COMMANDS

FS W SETTING COMMAND Turn quadruple-size mode on/off for Kanji characters KANJI COMMANDS

Page 76: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U325D supported commands Ver. 6.0 p. 76

■ ■ ■ more■ ■ ■ moreTM-U325D supported commands

Command Classification Name Function type

HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS

FF EXECUTING COMMAND ➀ Print and eject cut sheet (in standard mode) PRINT COMMANDS

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS

DLE EOT EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE ENQ EXECUTING COMMAND Real-time request to printer MISCELLANEOUS COMMANDS

ESC SP SETTING COMMAND Set right-side character spacing CHARACTER COMMANDS

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS

ESC $ EXECUTING COMMAND Set absolute print position PRINT POSITION COMMANDS

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS

ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS

ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS

ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS

TM-U325D SUPPORTED COMMANDS

Page 77: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U325D supported commands Ver. 6.0 p. 77

■ ■ ■ more■ ■ ■ more

ESC = SETTING COMMAND Select peripheral device MISCELLANEOUS COMMANDS

ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS

ESC @ EXECUTING COMMANDSETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS

ESC D SETTING COMMAND Set horizontal tab positions PRINT POSITION COMMANDS

ESC E SETTING COMMAND Turn emphasized mode on/off CHARACTER COMMANDS

ESC G SETTING COMMAND Turn double-strike mode on/off CHARACTER COMMANDS

ESC J EXECUTING COMMAND Print and feed paper PRINT COMMANDS

ESC K EXECUTING COMMAND Print and reverse feed PRINT COMMANDS

ESC M SETTING COMMAND Select character font CHARACTER COMMANDS

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS

ESC U SETTING COMMAND Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

ESC \ EXECUTING COMMAND Set relative print position PRINT POSITION COMMANDS

ESC a SETTING COMMAND Select justification PRINT POSITION COMMANDS

ESC c 0 EXECUTING COMMANDSETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 1 SETTING COMMAND Select paper type(s) for command settings PRINTING PAPER COMMANDS

ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

Command Classification Name Function type

Page 78: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U325D supported commands Ver. 6.0 p. 78

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS

ESC e EXECUTING COMMAND Print and reverse feed n lines PRINT COMMANDS

ESC f SETTING COMMAND Set cut sheet wait time PRINTING PAPER COMMANDS

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS

ESC q EXECUTING COMMAND Paper release MECHANISM CONTROL COMMANDS

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS

ESC { SETTING COMMAND Turn upside-down printing mode on/off CHARACTER COMMANDS

GS ! SETTING COMMAND Select character size CHARACTER COMMANDS

GS I EXECUTING COMMAND Transmit printer ID MISCELLANEOUS COMMANDS

GS L SETTING COMMAND Set left margin PRINT POSITION COMMANDS

GS V EXECUTING COMMAND Select cut mode and cut paper MECHANISM CONTROL COMMANDS

GS W SETTING COMMAND Set printing area width PRINT POSITION COMMANDS

GS a EXECUTING COMMANDSETTING COMMAND Enable/disable Automatic Status Back (ASB) STATUS COMMANDS

GS r EXECUTING COMMAND Transmit status STATUS COMMANDS

Command Classification Name Function type

Page 79: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U300C/D supported Ver. 6.0 p. 79

■ ■ ■ more■ ■ ■ moreTM-U300C/D supported

Command Classification Name Function type

HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS

ESC SP SETTING COMMAND Set right-side character spacing CHARACTER COMMANDS

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS

ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS

ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS

ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS

ESC @ EXECUTING COMMANDSETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS

ESC D SETTING COMMAND Set horizontal tab positions PRINT POSITION COMMANDS

ESC E SETTING COMMAND Turn emphasized mode on/off CHARACTER COMMANDS

TM-U300C/D SUPPORTED

Page 80: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U300C/D supported Ver. 6.0 p. 80

■ ■ ■ more■ ■ ■ more

ESC G SETTING COMMAND Turn double-strike mode on/off CHARACTER COMMANDS

ESC J EXECUTING COMMAND Print and feed paper PRINT COMMANDS

ESC K EXECUTING COMMAND Print and reverse feed PRINT COMMANDS

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS

ESC U SETTING COMMAND Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

ESC c 0 EXECUTING COMMANDSETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS

ESC e EXECUTING COMMAND Print and reverse feed n lines PRINT COMMANDS

ESC f SETTING COMMAND Set cut sheet wait time PRINTING PAPER COMMANDS

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS

ESC r SETTING COMMAND Select print color CHARACTER COMMANDS

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS

ESC u EXECUTING COMMAND Transmit peripheral device status STATUS COMMANDS

ESC v EXECUTING COMMAND Transmit paper sensor status STATUS COMMANDS

Command Classification Name Function type

Page 81: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U300C/D supported Ver. 6.0 p. 81

ESC { SETTING COMMAND Turn upside-down printing mode on/off CHARACTER COMMANDS

GS E SETTING COMMAND Select head control method MISCELLANEOUS COMMANDS

Command Classification Name Function type

The following commands are supported only by the Kanji supporting models.

Command Classification Name Function type

FS ! SETTING COMMAND Set print mode(s) for Kanji characters KANJI COMMANDS

FS & SETTING COMMAND Select Kanji character mode KANJI COMMANDS

FS – SETTING COMMAND Turn underline mode on/off for Kanji characters KANJI COMMANDS

FS . SETTING COMMAND Cancel Kanji character mode KANJI COMMANDS

FS 2 SETTING COMMAND Define user-defined Kanji characters KANJI COMMANDS

FS C SETTING COMMAND Select Kanji character code system KANJI COMMANDS

FS S SETTING COMMAND Set Kanji character spacing KANJI COMMANDS

FS W SETTING COMMAND Turn quadruple-size mode on/off for Kanji characters KANJI COMMANDS

Page 82: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U925 supported commands Ver. 6.0 p. 82

■ ■ ■ more■ ■ ■ moreTM-U925 supported commands

Command Classification Name Function type

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS

FF EXECUTING COMMAND ➀ Print and eject cut sheet (in standard mode) PRINT COMMANDS

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS

DLE EOT EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE ENQ EXECUTING COMMAND Real-time request to printer MISCELLANEOUS COMMANDS

ESC SP SETTING COMMAND Set right-side character spacing CHARACTER COMMANDS

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS

ESC $ EXECUTING COMMAND Set absolute print position PRINT POSITION COMMANDS

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS

ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS

ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS

ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS

ESC = SETTING COMMAND Select peripheral device MISCELLANEOUS COMMANDS

TM-U925 SUPPORTED COMMANDS

Page 83: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U925 supported commands Ver. 6.0 p. 83

■ ■ ■ more■ ■ ■ more

ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS

ESC @ EXECUTING COMMANDSETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS

ESC C SETTING COMMAND Set cut sheet eject length LINE SPACING COMMANDS

ESC E SETTING COMMAND Turn emphasized mode on/off CHARACTER COMMANDS

ESC G SETTING COMMAND Turn double-strike mode on/off CHARACTER COMMANDS

ESC J EXECUTING COMMAND Print and feed paper PRINT COMMANDS

ESC K EXECUTING COMMAND Print and reverse feed PRINT COMMANDS

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS

ESC U SETTING COMMAND Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

ESC \ EXECUTING COMMAND Set relative print position PRINT POSITION COMMANDS

ESC a SETTING COMMAND Select justification PRINT POSITION COMMANDS

ESC c 0 EXECUTING COMMANDSETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 1 SETTING COMMAND Select paper type(s) for command settings PRINTING PAPER COMMANDS

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS

ESC e EXECUTING COMMAND Print and reverse feed n lines PRINT COMMANDS

Command Classification Name Function type

Page 84: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U925 supported commands Ver. 6.0 p. 84

■ ■ ■ more■ ■ ■ more

ESC f SETTING COMMAND Set cut sheet wait time PRINTING PAPER COMMANDS

ESC i EXECUTING COMMAND Partial cut (one point left uncut) MECHANISM CONTROL COMMANDS

ESC m EXECUTING COMMAND Partial cut (three points left uncut) MECHANISM CONTROL COMMANDS

ESC o EXECUTING COMMAND Stamp MECHANISM CONTROL COMMANDS

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS

ESC u EXECUTING COMMAND Transmit peripheral device status STATUS COMMANDS

ESC v EXECUTING COMMAND Transmit paper sensor status STATUS COMMANDS

ESC { SETTING COMMAND Turn upside-down printing mode on/off CHARACTER COMMANDS

GS ✻ SETTING COMMAND Define downloaded bit image BIT-IMAGE COMMANDS

GS / EXECUTING COMMAND Print downloaded bit image BIT-IMAGE COMMANDS

GS E SETTING COMMAND Select head control method MISCELLANEOUS COMMANDS

GS I EXECUTING COMMAND Transmit printer ID MISCELLANEOUS COMMANDS

GS P SETTING COMMAND Set horizontal and vertical motion units MISCELLANEOUS COMMANDS

GS a EXECUTING COMMANDSETTING COMMAND Enable/disable Automatic Status Back (ASB) STATUS COMMANDS

GS r EXECUTING COMMAND Transmit status STATUS COMMANDS

Command Classification Name Function type

Page 85: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U925 supported commands Ver. 6.0 p. 85

The following commands are supported only by the printers with the optional Magnetic Ink Character Recognition (MICR) reader. (The MICR reader is a factory-installed option.)

Command Classification Name Function type

DLE EOT BS EXECUTING COMMAND Real-time MICR status transmission MICR COMMANDS

FS ( f EXECUTING COMMAND Select MICR data handling MICR COMMANDS

FS a 0 EXECUTING COMMAND Read check paper MICR COMMANDS

FS a 1 EXECUTING COMMAND Load check paper to print starting position MICR COMMANDS

FS a 2 EXECUTING COMMAND Eject check paper MICR COMMANDS

FS b EXECUTING COMMAND Request retransmission of check paper reading result MICR COMMANDS

FS c EXECUTING COMMAND MICR mechanism cleaning MICR COMMANDS

Page 86: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H6000 supported commands Ver. 6.0 p. 86

■ ■ ■ more■ ■ ■ moreTM-H6000 supported commands

Command Classification Name Function type

HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS

FF EXECUTING COMMAND ➀ Print and eject cut sheet (in standard mode) PRINT COMMANDS

FF EXECUTING COMMAND ➁ Print and return to standard mode (in page mode) PRINT COMMANDS

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS

CAN EXECUTING COMMAND Cancel print data in page mode CHARACTER COMMANDS

DLE EOT EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE EOT NUL EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE ENQ EXECUTING COMMAND Real-time request to printer MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➀ Generate real-time pulse MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➁ Execute power-off sequence MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➂ Clear buffer(s) MISCELLANEOUS COMMANDS

ESC FF EXECUTING COMMAND Print data in page mode PRINT COMMANDS

ESC SP SETTING COMMAND Set right-side character spacing CHARACTER COMMANDS

TM-H6000 SUPPORTED COMMANDS

Page 87: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H6000 supported commands Ver. 6.0 p. 87

■ ■ ■ more■ ■ ■ more

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS

ESC $ EXECUTING COMMAND Set absolute print position PRINT POSITION COMMANDS

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS

ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS

ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS

ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS

ESC = SETTING COMMAND Select peripheral device MISCELLANEOUS COMMANDS

ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS

ESC @ EXECUTING COMMANDSETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS

ESC D SETTING COMMAND Set horizontal tab positions PRINT POSITION COMMANDS

ESC E SETTING COMMAND Turn emphasized mode on/off CHARACTER COMMANDS

ESC F SETTING COMMAND Set/cancel cut sheet reverse eject MECHANISM CONTROL COMMANDS

ESC G SETTING COMMAND Turn double-strike mode on/off CHARACTER COMMANDS

ESC J EXECUTING COMMAND Print and feed paper PRINT COMMANDS

Command Classification Name Function type

Page 88: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H6000 supported commands Ver. 6.0 p. 88

■ ■ ■ more■ ■ ■ more

ESC K EXECUTING COMMAND Print and reverse feed PRINT COMMANDS

ESC L EXECUTING COMMAND Select page mode MISCELLANEOUS COMMANDS

ESC M SETTING COMMAND Select character font CHARACTER COMMANDS

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS

ESC S EXECUTING COMMAND Select standard mode MISCELLANEOUS COMMANDS

ESC T SETTING COMMAND Select print direction in page mode PRINT POSITION COMMANDS

ESC U SETTING COMMAND Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

ESC V SETTING COMMAND Turn 90° clockwise rotation mode on/off CHARACTER COMMANDS

ESC W SETTING COMMAND Set printing area in page mode PRINT POSITION COMMANDS

ESC \ EXECUTING COMMAND Set relative print position PRINT POSITION COMMANDS

ESC a SETTING COMMAND Select justification PRINT POSITION COMMANDS

ESC c 0 EXECUTING COMMANDSETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 1 SETTING COMMAND Select paper type(s) for command settings PRINTING PAPER COMMANDS

ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS

Command Classification Name Function type

Page 89: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H6000 supported commands Ver. 6.0 p. 89

■ ■ ■ more■ ■ ■ more

ESC e EXECUTING COMMAND Print and reverse feed n lines PRINT COMMANDS

ESC f SETTING COMMAND Set cut sheet wait time PRINTING PAPER COMMANDS

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS

ESC q EXECUTING COMMAND Paper release MECHANISM CONTROL COMMANDS

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS

ESC { SETTING COMMAND Turn upside-down printing mode on/off CHARACTER COMMANDS

FS ( e EXECUTING COMMAND Enable/disable Automatic Status Back (ASB) for optional functions (extended status) STATUS COMMANDS

FS L SETTING COMMAND Select double-density page mode MISCELLANEOUS COMMANDS

FS p EXECUTING COMMAND Print NV bit image BIT-IMAGE COMMANDS

FS q EXECUTING COMMANDSETTING COMMAND Define NV bit image BIT-IMAGE COMMANDS

GS ( A EXECUTING COMMAND Execute test print MISCELLANEOUS COMMANDS

GS ( B SETTING COMMAND Customize ASB-status bits STATUS COMMANDS

GS ( C EXECUTING COMMANDSETTING COMMAND Edit NV user memory MISCELLANEOUS COMMANDS

GS ( D EXECUTING COMMANDSETTING COMMAND Enable/disable real-time command MISCELLANEOUS COMMANDS

GS ( E EXECUTING COMMANDSETTING COMMAND User setup commands MISCELLANEOUS COMMANDS

GS ( G EXECUTING COMMAND Select cut sheet control function(s) PRINTING PAPER COMMANDS

Command Classification Name Function type

Page 90: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H6000 supported commands Ver. 6.0 p. 90

■ ■ ■ more■ ■ ■ more

GS ( L SETTING COMMAND Transmit NV bit-image memory size BIT-IMAGE COMMANDS

GS ( M EXECUTING COMMANDSETTING COMMAND Customize printer control value(s) MISCELLANEOUS COMMANDS

GS ! SETTING COMMAND Select character size CHARACTER COMMANDS

GS $ EXECUTING COMMAND Set absolute vertical print position in page mode PRINT POSITION COMMANDS

GS ✻ SETTING COMMAND Define downloaded bit image BIT-IMAGE COMMANDS

GS / EXECUTING COMMAND Print downloaded bit image BIT-IMAGE COMMANDS

GS : EXECUTING COMMANDSETTING COMMAND Start/end macro definition MACRO FUNCTION COMMANDS

GS B SETTING COMMAND Turn white/black reverse printing mode on/off CHARACTER COMMANDS

GS E SETTING COMMAND Select head control method MISCELLANEOUS COMMANDS

GS H SETTING COMMAND Select printing position of HRI characters BAR CODE COMMANDS

GS I EXECUTING COMMAND Transmit printer ID MISCELLANEOUS COMMANDS

GS L SETTING COMMAND Set left margin PRINT POSITION COMMANDS

GS P SETTING COMMAND Set horizontal and vertical motion units MISCELLANEOUS COMMANDS

GS T EXECUTING COMMAND Set print position to the beginning of print line PRINT POSITION COMMANDS

GS V EXECUTING COMMAND Select cut mode and cut paper MECHANISM CONTROL COMMANDS

GS W SETTING COMMAND Set printing area width PRINT POSITION COMMANDS

GS \ EXECUTING COMMAND Set relative vertical print position in page mode PRINT POSITION COMMANDS

Command Classification Name Function type

Page 91: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H6000 supported commands Ver. 6.0 p. 91

■ ■ ■ more■ ■ ■ more

GS ^ EXECUTING COMMAND Execute macro MACRO FUNCTION COMMANDS

GS a EXECUTING COMMANDSETTING COMMAND Enable/disable Automatic Status Back (ASB) STATUS COMMANDS

GS b SETTING COMMAND Turn smoothing mode on/off CHARACTER COMMANDS

GS f SETTING COMMAND Select font for HRI characters BAR CODE COMMANDS

GS g 0 SETTING COMMAND Initialize maintenance counter MISCELLANEOUS COMMANDS

GS g 2 EXECUTING COMMAND Transmit maintenance counter MISCELLANEOUS COMMANDS

GS h SETTING COMMAND Set bar code height BAR CODE COMMANDS

GS k EXECUTING COMMAND Print bar code BAR CODE COMMANDS

GS r EXECUTING COMMAND Transmit status STATUS COMMANDS

GS v 0 EXECUTING COMMAND Print raster bit image BIT-IMAGE COMMANDS

GS w SETTING COMMAND Set bar code width BAR CODE COMMANDS

Command Classification Name Function type

Page 92: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H6000 supported commands Ver. 6.0 p. 92

■ ■ ■ more■ ■ ■ moreThe following commands are supported only by the printers with the optional Magnetic Ink Character Recognition (MICR) reader. (The MICR reader is a factory-installed option.)

Command Classification Name Function type

DLE EOT BS EXECUTING COMMAND Real-time MICR status transmission MICR COMMANDS

FS ( f EXECUTING COMMAND Select MICR data handling MICR COMMANDS

FS a 0 EXECUTING COMMAND Read check paper MICR COMMANDS

FS a 1 EXECUTING COMMAND Load check paper to print starting position MICR COMMANDS

FS a 2 EXECUTING COMMAND Eject check paper MICR COMMANDS

FS b EXECUTING COMMAND Request retransmission of check paper reading result MICR COMMANDS

FS c EXECUTING COMMAND MICR mechanism cleaning MICR COMMANDS

Page 93: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-H6000 supported commands Ver. 6.0 p. 93

The following commands are supported only by the Kanji supporting models.

Command Classification Name Function type

FS ! SETTING COMMAND Set print mode(s) for Kanji characters KANJI COMMANDS

FS & SETTING COMMAND Select Kanji character mode KANJI COMMANDS

FS – SETTING COMMAND Turn underline mode on/off for Kanji characters KANJI COMMANDS

FS . SETTING COMMAND Cancel Kanji character mode KANJI COMMANDS

FS 2 SETTING COMMAND Define user-defined Kanji characters KANJI COMMANDS

FS C SETTING COMMAND Select Kanji character code system KANJI COMMANDS

FS S SETTING COMMAND Set Kanji character spacing KANJI COMMANDS

FS W SETTING COMMAND Turn quadruple-size mode on/off for Kanji characters KANJI COMMANDS

Page 94: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U675 supported commands Ver. 6.0 p. 94

■ ■ ■ more■ ■ ■ moreTM-U675 supported commands

Command Classification Name Function type

HT EXECUTING COMMAND Horizontal tab PRINT POSITION COMMANDS

LF EXECUTING COMMAND Print and line feed PRINT COMMANDS

FF EXECUTING COMMAND ➀ Print and eject cut sheet (in standard mode) PRINT COMMANDS

FF EXECUTING COMMAND ➁ Print and return to standard mode (in page mode) PRINT COMMANDS

CR EXECUTING COMMAND Print and carriage return PRINT COMMANDS

CAN EXECUTING COMMAND Cancel print data in page mode CHARACTER COMMANDS

DLE EOT EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE EOT NUL EXECUTING COMMAND Real-time status transmission STATUS COMMANDS

DLE ENQ EXECUTING COMMAND Real-time request to printer MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➀ Generate real-time pulse MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➁ Execute power-off sequence MISCELLANEOUS COMMANDS

DLE DC4 EXECUTING COMMANDSETTING COMMAND ➂ Clear buffer(s) MISCELLANEOUS COMMANDS

ESC FF EXECUTING COMMAND Print data in page mode PRINT COMMANDS

ESC SP SETTING COMMAND Set right-side character spacing CHARACTER COMMANDS

TM-U675 SUPPORTED COMMANDS

Page 95: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U675 supported commands Ver. 6.0 p. 95

■ ■ ■ more■ ■ ■ more

ESC ! SETTING COMMAND Select print mode(s) CHARACTER COMMANDS

ESC $ EXECUTING COMMAND Set absolute print position PRINT POSITION COMMANDS

ESC % SETTING COMMAND Select/cancel user-defined character set CHARACTER COMMANDS

ESC & SETTING COMMAND Define user-defined characters CHARACTER COMMANDS

ESC ✻ EXECUTING COMMAND Select bit-image mode BIT-IMAGE COMMANDS

ESC – SETTING COMMAND Turn underline mode on/off CHARACTER COMMANDS

ESC 2 SETTING COMMAND Select default line spacing LINE SPACING COMMANDS

ESC 3 SETTING COMMAND Set line spacing LINE SPACING COMMANDS

ESC < EXECUTING COMMAND Return home MECHANISM CONTROL COMMANDS

ESC = SETTING COMMAND Select peripheral device MISCELLANEOUS COMMANDS

ESC ? SETTING COMMAND Cancel user-defined characters CHARACTER COMMANDS

ESC @ EXECUTING COMMANDSETTING COMMAND Initialize printer MISCELLANEOUS COMMANDS

ESC D SETTING COMMAND Set horizontal tab positions PRINT POSITION COMMANDS

ESC E SETTING COMMAND Turn emphasized mode on/off CHARACTER COMMANDS

ESC F SETTING COMMAND Set/cancel cut sheet reverse eject MECHANISM CONTROL COMMANDS

ESC G SETTING COMMAND Turn double-strike mode on/off CHARACTER COMMANDS

ESC J EXECUTING COMMAND Print and feed paper PRINT COMMANDS

Command Classification Name Function type

Page 96: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U675 supported commands Ver. 6.0 p. 96

■ ■ ■ more■ ■ ■ more

ESC K EXECUTING COMMAND Print and reverse feed PRINT COMMANDS

ESC L EXECUTING COMMAND Select page mode MISCELLANEOUS COMMANDS

ESC M SETTING COMMAND Select character font CHARACTER COMMANDS

ESC R SETTING COMMAND Select an international character set CHARACTER COMMANDS

ESC S EXECUTING COMMAND Select standard mode MISCELLANEOUS COMMANDS

ESC T SETTING COMMAND Select print direction in page mode PRINT POSITION COMMANDS

ESC U SETTING COMMAND Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

ESC V SETTING COMMAND Turn 90° clockwise rotation mode on/off CHARACTER COMMANDS

ESC W SETTING COMMAND Set printing area in page mode PRINT POSITION COMMANDS

ESC \ EXECUTING COMMAND Set relative print position PRINT POSITION COMMANDS

ESC a SETTING COMMAND Select justification PRINT POSITION COMMANDS

ESC c 0 EXECUTING COMMANDSETTING COMMAND Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 1 SETTING COMMAND Select paper type(s) for command settings PRINTING PAPER COMMANDS

ESC c 3 SETTING COMMAND Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS

ESC c 4 SETTING COMMAND Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

ESC c 5 SETTING COMMAND Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d EXECUTING COMMAND Print and feed n lines PRINT COMMANDS

Command Classification Name Function type

Page 97: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U675 supported commands Ver. 6.0 p. 97

■ ■ ■ more■ ■ ■ more

ESC e EXECUTING COMMAND Print and reverse feed n lines PRINT COMMANDS

ESC f SETTING COMMAND Set cut sheet wait time PRINTING PAPER COMMANDS

ESC p EXECUTING COMMAND Generate pulse MISCELLANEOUS COMMANDS

ESC q EXECUTING COMMAND Paper release MECHANISM CONTROL COMMANDS

ESC t SETTING COMMAND Select character code table CHARACTER COMMANDS

ESC { SETTING COMMAND Turn upside-down printing mode on/off CHARACTER COMMANDS

FS ( e EXECUTING COMMAND Enable/disable Automatic Status Back (ASB) for optional functions (extended status) STATUS COMMANDS

FS L SETTING COMMAND Select double-density page mode MISCELLANEOUS COMMANDS

FS p EXECUTING COMMAND Print NV bit image BIT-IMAGE COMMANDS

FS q EXECUTING COMMANDSETTING COMMAND Define NV bit image BIT-IMAGE COMMANDS

GS ! SETTING COMMAND Select character size CHARACTER COMMANDS

GS $ EXECUTING COMMAND Set absolute vertical print position in page mode PRINT POSITION COMMANDS

GS ( A EXECUTING COMMAND Execute test print MISCELLANEOUS COMMANDS

GS ( B SETTING COMMAND Customize ASB-status bits STATUS COMMANDS

GS ( C EXECUTING COMMANDSETTING COMMAND Edit NV user memory MISCELLANEOUS COMMANDS

GS ( D EXECUTING COMMANDSETTING COMMAND Enable/disable real-time command MISCELLANEOUS COMMANDS

Command Classification Name Function type

Page 98: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U675 supported commands Ver. 6.0 p. 98

■ ■ ■ more■ ■ ■ more

GS ( E EXECUTING COMMANDSETTING COMMAND User setup commands MISCELLANEOUS COMMANDS

GS ( G EXECUTING COMMAND Select cut sheet control function(s) PRINTING PAPER COMMANDS

GS ( L SETTING COMMAND Transmit NV bit-image memory size BIT-IMAGE COMMANDS

GS ( M EXECUTING COMMANDSETTING COMMAND Customize printer control value(s) MISCELLANEOUS COMMANDS

GS ✻ SETTING COMMAND Define downloaded bit image BIT-IMAGE COMMANDS

GS / EXECUTING COMMAND Print downloaded bit image BIT-IMAGE COMMANDS

GS : EXECUTING COMMANDSETTING COMMAND Start/end macro definition MACRO FUNCTION COMMANDS

GS B SETTING COMMAND Turn white/black reverse printing mode on/off CHARACTER COMMANDS

GS E SETTING COMMAND Select head control method MISCELLANEOUS COMMANDS

GS I EXECUTING COMMAND Transmit printer ID MISCELLANEOUS COMMANDS

GS L SETTING COMMAND Set left margin PRINT POSITION COMMANDS

GS P SETTING COMMAND Set horizontal and vertical motion units MISCELLANEOUS COMMANDS

GS T EXECUTING COMMAND Set print position to the beginning of print line PRINT POSITION COMMANDS

GS W SETTING COMMAND Set printing area width PRINT POSITION COMMANDS

GS \ EXECUTING COMMAND Set relative vertical print position in page mode PRINT POSITION COMMANDS

GS ^ EXECUTING COMMAND Execute macro MACRO FUNCTION COMMANDS

Command Classification Name Function type

Page 99: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U675 supported commands Ver. 6.0 p. 99

■ ■ ■ more■ ■ ■ more

GS a EXECUTING COMMANDSETTING COMMAND Enable/disable Automatic Status Back (ASB) STATUS COMMANDS

GS f SETTING COMMAND Select font for HRI characters BAR CODE COMMANDS

GS g 0 SETTING COMMAND Initialize maintenance counter MISCELLANEOUS COMMANDS

GS g 2 EXECUTING COMMAND Transmit maintenance counter MISCELLANEOUS COMMANDS

GS r EXECUTING COMMAND Transmit status STATUS COMMANDS

GS v 0 EXECUTING COMMAND Print raster bit image BIT-IMAGE COMMANDS

Command Classification Name Function type

Page 100: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U675 supported commands Ver. 6.0 p. 100

■ ■ ■ more■ ■ ■ moreThe following commands are supported only by the printers with the optional Magnetic Ink Character Recognition (MICR) reader. (The MICR reader is a factory-installed option.)

Command Classification Name Function type

DLE EOT BS EXECUTING COMMAND Real-time MICR status transmission MICR COMMANDS

FS ( f EXECUTING COMMAND Select MICR data handling MICR COMMANDS

FS a 0 EXECUTING COMMAND Read check paper MICR COMMANDS

FS a 1 EXECUTING COMMAND Load check paper to print starting position MICR COMMANDS

FS a 2 EXECUTING COMMAND Eject check paper MICR COMMANDS

FS b EXECUTING COMMAND Request retransmission of check paper reading result MICR COMMANDS

FS c EXECUTING COMMAND MICR mechanism cleaning MICR COMMANDS

Page 101: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet TM-U675 supported commands Ver. 6.0 p. 101

The following commands are supported only by the Kanji supporting models.

Command Classification Name Function type

FS ! SETTING COMMAND Set print mode(s) for Kanji characters KANJI COMMANDS

FS & SETTING COMMAND Select Kanji character mode KANJI COMMANDS

FS – SETTING COMMAND Turn underline mode on/off for Kanji characters KANJI COMMANDS

FS . SETTING COMMAND Cancel Kanji character mode KANJI COMMANDS

FS 2 SETTING COMMAND Define user-defined Kanji characters KANJI COMMANDS

FS C SETTING COMMAND Select Kanji character code system KANJI COMMANDS

FS S SETTING COMMAND Set Kanji character spacing KANJI COMMANDS

FS W SETTING COMMAND Turn quadruple-size mode on/off for Kanji characters KANJI COMMANDS

Page 102: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands in alphanumeric order Ver. 6.0 p. 102

■ ■ ■ more■ ■ ■ moreCommands in alphanumeric order

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 Name Function type

HT Horizontal tab PRINT POSITION COMMANDS

LF Print and line feed PRINT COMMANDS

FF ➀ Print and eject cut sheet (in standard mode) PRINT COMMANDS

FF ➁ Print and return to standard mode (in page mode) PRINT COMMANDS

CR Print and carriage return PRINT COMMANDS

CAN Cancel print data in page mode CHARACTER COMMANDS

DLE EOT Real-time status transmission STATUS COMMANDS

DLE EOT NUL Real-time status transmission STATUS COMMANDS

DLE EOT BEL Real-time status transmission for ink STATUS COMMANDS

DLE ENQ Real-time request to printer MISCELLANEOUS COMMANDS

DLE DC4 ➀ Generate real-time pulse MISCELLANEOUS COMMANDS

DLE DC4 ➁ Execute power-off sequence MISCELLANEOUS COMMANDS

DLE DC4 ➂ Clear buffer(s) MISCELLANEOUS COMMANDS

ESC FF Print data in page mode PRINT COMMANDS

COMMANDS IN ALPHANUMERIC ORDER

Page 103: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands in alphanumeric order Ver. 6.0 p. 103

■ ■ ■ more■ ■ ■ more

ESC SP Set right-side character spacing CHARACTER COMMANDS

ESC ! Select print mode(s) CHARACTER COMMANDS

ESC $ Set absolute print position PRINT POSITION COMMANDS

ESC % Select/cancel user-defined character set CHARACTER COMMANDS

ESC & Define user-defined characters CHARACTER COMMANDS

ESC ✻ Select bit-image mode BIT-IMAGE COMMANDS

ESC – Turn underline mode on/off CHARACTER COMMANDS

ESC 2 Select default line spacing LINE SPACING COMMANDS

ESC 3 Set line spacing LINE SPACING COMMANDS

ESC < Return home MECHANISM CONTROL COMMANDS

ESC = Select peripheral device MISCELLANEOUS COMMANDS

ESC ? Cancel user-defined characters CHARACTER COMMANDS

ESC @ Initialize printer MISCELLANEOUS COMMANDS

ESC C Set cut sheet eject length LINE SPACING COMMANDS

ESC D Set horizontal tab positions PRINT POSITION COMMANDS

ESC E Turn emphasized mode on/off CHARACTER COMMANDS

ESC F Set/cancel cut sheet reverse eject MECHANISM CONTROL COMMANDS

ESC G Turn double-strike mode on/off CHARACTER COMMANDS

Command Name Function type

Page 104: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands in alphanumeric order Ver. 6.0 p. 104

■ ■ ■ more■ ■ ■ more

ESC J Print and feed paper PRINT COMMANDS

ESC K Print and reverse feed PRINT COMMANDS

ESC L Select page mode MISCELLANEOUS COMMANDS

ESC M Select character font CHARACTER COMMANDS

ESC R Select an international character set CHARACTER COMMANDS

ESC S Select standard mode MISCELLANEOUS COMMANDS

ESC T Select print direction in page mode PRINT POSITION COMMANDS

ESC U Turn unidirectional printing mode on/off MECHANISM CONTROL COMMANDS

ESC V Turn 90° clockwise rotation mode on/off CHARACTER COMMANDS

ESC W Set printing area in page mode PRINT POSITION COMMANDS

ESC \ Set relative print position PRINT POSITION COMMANDS

ESC a Select justification PRINT POSITION COMMANDS

ESC c 0 Select paper type(s) for printing PRINTING PAPER COMMANDS

ESC c 1 Select paper type(s) for command settings PRINTING PAPER COMMANDS

ESC c 3 Select paper sensor(s) to output paper-end signals PAPER SENSOR COMMANDS

ESC c 4 Select paper sensor(s) to stop printing PAPER SENSOR COMMANDS

ESC c 5 Enable/disable panel buttons PANEL BUTTON COMMAND

ESC d Print and feed n lines PRINT COMMANDS

Command Name Function type

Page 105: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands in alphanumeric order Ver. 6.0 p. 105

■ ■ ■ more■ ■ ■ more

ESC e Print and reverse feed n lines PRINT COMMANDS

ESC f Set cut sheet wait time PRINTING PAPER COMMANDS

ESC i Partial cut (one point left uncut) MECHANISM CONTROL COMMANDS

ESC m Partial cut (three points left uncut) MECHANISM CONTROL COMMANDS

ESC o Stamp MECHANISM CONTROL COMMANDS

ESC p Generate pulse MISCELLANEOUS COMMANDS

ESC q Paper release MECHANISM CONTROL COMMANDS

ESC r Select print color CHARACTER COMMANDS

ESC t Select character code table CHARACTER COMMANDS

ESC u Transmit peripheral device status STATUS COMMANDS

ESC v Transmit paper sensor status STATUS COMMANDS

ESC { Turn upside-down printing mode on/off CHARACTER COMMANDS

FS ( e Enable/disable Automatic Status Back (ASB) for optional functions (extended status) STATUS COMMANDS

FS L Select double-density page mode MISCELLANEOUS COMMANDS

FS g 1 Write to NV user memory MISCELLANEOUS COMMANDS

FS g 2 Read from NV user memory MISCELLANEOUS COMMANDS

FS p Print NV bit image BIT-IMAGE COMMANDS

FS q Define NV bit image BIT-IMAGE COMMANDS

Command Name Function type

Page 106: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands in alphanumeric order Ver. 6.0 p. 106

■ ■ ■ more■ ■ ■ more

GS ( A Execute test print MISCELLANEOUS COMMANDS

GS ( B Customize ASB-status bits STATUS COMMANDS

GS ( C Edit NV user memory MISCELLANEOUS COMMANDS

GS ( D Enable/disable real-time command MISCELLANEOUS COMMANDS

GS ( E User setup commands MISCELLANEOUS COMMANDS

GS ( G Select cut sheet control function(s) PRINTING PAPER COMMANDS

GS ( L Transmit NV bit-image memory size BIT-IMAGE COMMANDS

GS ( M Customize printer control value(s) MISCELLANEOUS COMMANDS

GS ! Select character size CHARACTER COMMANDS

GS $ Set absolute vertical print position in page mode PRINT POSITION COMMANDS

GS ✻ Define downloaded bit image BIT-IMAGE COMMANDS

GS / Print downloaded bit image BIT-IMAGE COMMANDS

GS : Start/end macro definition MACRO FUNCTION COMMANDS

GS B Turn white/black reverse printing mode on/off CHARACTER COMMANDS

GS E Select head control method MISCELLANEOUS COMMANDS

GS H Select printing position of HRI characters BAR CODE COMMANDS

GS I Transmit printer ID MISCELLANEOUS COMMANDS

GS L Set left margin PRINT POSITION COMMANDS

Command Name Function type

Page 107: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands in alphanumeric order Ver. 6.0 p. 107

■ ■ ■ more■ ■ ■ more

GS P Set horizontal and vertical motion units MISCELLANEOUS COMMANDS

GS Q 0 Print variable vertical size bit image BIT-IMAGE COMMANDS

GS T Set print position to the beginning of print line PRINT POSITION COMMANDS

GS V Select cut mode and cut paper MECHANISM CONTROL COMMANDS

GS W Set printing area width PRINT POSITION COMMANDS

GS \ Set relative vertical print position in page mode PRINT POSITION COMMANDS

GS ^ Execute macro MACRO FUNCTION COMMANDS

GS a Enable/disable Automatic Status Back (ASB) STATUS COMMANDS

GS b Turn smoothing mode on/off CHARACTER COMMANDS

GS f Select font for HRI characters BAR CODE COMMANDS

GS g 0 Initialize maintenance counter MISCELLANEOUS COMMANDS

GS g 2 Transmit maintenance counter MISCELLANEOUS COMMANDS

GS h Set bar code height BAR CODE COMMANDS

GS j Enable/disable Ink Automatic Status Back (ASB) STATUS COMMANDS

GS k Print bar code BAR CODE COMMANDS

GS r Transmit status STATUS COMMANDS

GS v 0 Print raster bit image BIT-IMAGE COMMANDS

GS w Set bar code width BAR CODE COMMANDS

Command Name Function type

Page 108: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands in alphanumeric order Ver. 6.0 p. 108

■ ■ ■ more■ ■ ■ moreThe following commands are supported only by the printers with the optional Magnetic Ink Character Recognition (MICR) reader. (The MICR reader is a factory-installed option.)

Command Name Function type

DLE EOT BS Real-time MICR status transmission MICR COMMANDS

FS ( f Select MICR data handling MICR COMMANDS

FS a 0 Read check paper MICR COMMANDS

FS a 1 Load check paper to print starting position MICR COMMANDS

FS a 2 Eject check paper MICR COMMANDS

FS b Request retransmission of check paper reading result MICR COMMANDS

FS c MICR mechanism cleaning MICR COMMANDS

Page 109: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands in alphanumeric order Ver. 6.0 p. 109

The following commands are supported only by the Kanji supporting models.

Command Name Function type

FS ! Set print mode(s) for Kanji characters KANJI COMMANDS

FS & Select Kanji character mode KANJI COMMANDS

FS – Turn underline mode on/off for Kanji characters KANJI COMMANDS

FS . Cancel Kanji character mode KANJI COMMANDS

FS 2 Define user-defined Kanji characters KANJI COMMANDS

FS C Select Kanji character code system KANJI COMMANDS

FS S Set Kanji character spacing KANJI COMMANDS

FS W Turn quadruple-size mode on/off for Kanji characters KANJI COMMANDS

Page 110: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Command list Ver. 6.0 p. 110

Command list

■■■■ Commands in alphanumeric order

■■■■ Commands arranged by function

COMMAND LIST

Page 111: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Commands arranged by function Ver. 6.0 p. 111

Commands arranged by function

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 commands

Line spacing commands

Character commands

Printing paper commands

Panel button command

Paper sensor commands

Print position commands

Bit-image commands

COMMANDS ARRANGED BY FUNCTION

The print samples are images of the printing results of theprogram examples; they do not represent actual printing.

Status commands

Bar code commands

Macro function commands

Mechanism control commands

MICR commands

Miscellaneous commands

Kanji commands

Page 112: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands Ver. 6.0 p. 112

Print commands

Command Name

LF Print and line feedFF ➀ Print and eject cut sheet (in standard mode)FF ➁ Print and return to standard mode (in page mode)CR Print and carriage return

ESC FF Print data in page modeESC J Print and feed paperESC K Print and reverse feedESC d Print and feed n linesESC e Print and reverse feed n lines

PRINT COMMANDS

Page 113: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands LF Ver. 6.0 p. 113

LFEXECUTING COMMAND

[Name] Print and line feed

[Format] ASCII LFHex 0ADecimal 10

[Range] None

[Default] None

[Printers not featuring this command] None

[Description] Prints the data in the print buffer and feeds one line.

[Notes] ■ The amount of paper fed per line is based on the value set using the line spacing command (ESC 2 or ESC 3).

■ After printing, the printing position moves to the beginning of the line.

■ When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing.

[Model-dependent variations] TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, "AAAAA"; CHR$(&HA); AAAAA

PRINT #1, "BBBBB"; CHR$(&HA); BBBBB

Print commands

Page 114: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands LF Ver. 6.0 p. 114

TM-H6000

When the back of a slip is selected as the paper type, the line spacing is approximately 3.18 mm{1/8 inch}.

When the slip (face or back) is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command.

The paper ejection direction is set to forward.

The status of whether paper is in the print head position can be checked by the slip paper status of GS rGS rGS rGS r.

TM-U675

When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

The status of whether paper is in the print head position can be checked by the slip paper status of GS rGS rGS rGS r.

Page 115: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands FF Ver. 6.0 p. 115

FFEXECUTING COMMAND

[Name] ➀ Print and eject cut sheet (in standard mode)

[Format] ASCII FFHex 0CDecimal 12

[Range] None

[Default] None

[Printers not featuring this command] TM-U300C/D

[Description] In standard mode, prints the data in the print buffer and ejects the cut sheet (slip paper or validation paper).

[Notes] ■ This command is enabled only when the cut sheet is selected as the paper type by ESC c 0.

■ This command is enabled only in standard mode.

■ The amount of paper fed is based on the value set using ESC C.

■ The cut sheet is ejected in the direction specified by ESC F.

■ After the cut sheet is ejected, the printer selects the paper roll as the paper type and the printing position moves to the beginning of the line.

■ For the printer models that support the function of paper ejection waiting, when this command is processed, the printer is in the paper ejection waiting status and the SLIP LED blinks. In this case, after confirming the paper ejection, the printer performs the next operation. The cut sheet waiting status can be checked by normal ASB status after executing customizing.

[Model-dependent variations] TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"c0";CHR$(4); ← Select paper type AAAAA

PRINT #1, "AAAAA"; CHR$(&HA); BBBBB

PRINT #1, "BBBBB"; CHR$(&HC);

Slip paper ejected

Print commands

Page 116: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands FF Ver. 6.0 p. 116

TM-H6000

When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command.

The status of “no paper in the print head position” can be checked by the slip paper status of GS r.

There is an area where the printer cannot execute a reverse paper feed. If the bottom edge of a paper is in this area, the printer feeds the paper forward regardless of a setting of ESC FF. Whether paper can or cannot be fed in the reverse direction can be checked by the slip status of GS r.

The area where the printer cannot execute a reverse paper feed:

• When an endorsement printer mechanism is installed:

When the distance between the bottom of the slip and the BOF sensor is approximately 92 mm {523/144 inches} or more.

• When an endorsement printer mechanism is not installed:

When the distance between the bottom of the slip and the BOF sensor is approximately 75 mm {425/144 inches} or more.

TM-U675

• When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward. The status of whether paper is in the print head position can be checked by cut sheet status of GS r.

• There is an area where the printer cannot execute a reverse paper feed. If the bottom edge of a slip is in this area, the printer feeds the paper forward regardless of a setting of ESC FF. The status of whether paper can be fed in the reverse direction can be checked by slip paper status of GS r.

When the distance between the bottom of the slip and the BOF sensor is approximately 75 mm {425/144 inches} or more.

Page 117: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands FF Ver. 6.0 p. 117

FFEXECUTING COMMAND

[Name] ➁ Print and return to standard mode (in page mode)

[Format] ASCII FFHex 0CDecimal 12

[Default] None

[Range] None

[Printers not featuring this command] TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Description] In page mode, prints the data in the print buffer collectively and returns to standard mode.

[Notes] ■ This command is enabled only in page mode.

■ The data is deleted in the printing area after being printed.

■ This command returns the values set by ESC W to the default values.

■ The value set by ESC T is maintained.

■ After printing, the printing position moves to the beginning of the line.

[Model-dependent variations] TM-H6000 TM-U675

Program Example for all printers Print Sample 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$(60);CHR$(0);CHR$(90);CHR$(0);

PRINT #1, CHR$(&H1B);"T";CHR$(0);

PRINT #1, "AAAAA"; CHR$(&HA); ←Store characters for printing

PRINT #1, "BBBBB"; CHR$(&HA); ←Store characters for printing

PRINT #1, "CCCCC"; CHR$(&HC); ←Batch print

AAAAABBBBBCCCCC

Print commands

Page 118: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands FF Ver. 6.0 p. 118

TM-H6000

When the slip is selected as the paper type but no paper is in the position, the printer waits for the paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

The status of “no paper in the print head position” can be checked by cut sheet status of GS r.

TM-U675

When the slip is selected as the paper type but no paper is in the position, the printer waits for the paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward. The status of “no paper in the print head position” can be checked by cut sheet status of GS r.

Page 119: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands CR Ver. 6.0 p. 119

■ ■ ■ more■ ■ ■ moreCR

EXECUTING COMMAND

[Name] Print and carriage return

[Format] ASCII CRHex 0DDecimal 13

[Range] None

[Default] None

[Printers not featuring this command] None

[Description]

[Notes] ■ With a serial interface, auto line feed is disabled.

■ With a parallel interface, whether enabling or disabling the auto line feed can be selected by the DIP switch (Auto line feed).

■ After printing, the printing position moves to the beginning of the line.

■ When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

Print head When auto line feed is enabled When auto line feed is disabled

Line thermal/shuttle head Executes printing and one line feed as LF

This command is ignored

Serial dot head Executes printing and one line feed as LF

Prints data in print buffer and does not feed the paper

Print commands

Page 120: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands CR Ver. 6.0 p. 120

TM-H5000II

Auto line feed for a parallel interface is selected by DIP switch 1-1.

CR functions in a different way depending on the paper type. A line thermal head is used for printing on a paper roll. A serial dot head is used for printing on a slip.

TM-U375

Auto line feed for a parallel interface is selected by DIP switch 1-1.

This printer has only a serial dot head.

Program Example (Line thermal) Print Sample (Line thermal)AAAAA ←Auto line feed enabled

PRINT #1, "AAAAA";CHR$(&HD); BBBBB

PRINT #1, " BBBBB";CHR$(&HA); AAAAA BBBBB ←Auto line feed disabled

Program Example (Serial dot head) Print Sample (Serial dot head)AAAAA

PRINT #1, "AAAAA";CHR$(&HD); BBBBB ←Auto line feed enabled

PRINT #1, " BBBBB";CHR$(&HA); AAAAABBBBB ←Auto line feed disabled

Paper type When auto line feed is enabled When auto line feed is disabled

Paper roll Executes printing and one line feed as LFLFLFLF This command is ignored

Slip Executes printing and one line feed as LFLFLFLF Prints the data in the print buffer and does not feed the paper

Page 121: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands CR Ver. 6.0 p. 121

TM-U925

Auto line feed for a parallel interface is selected by DIP switch 1-1.

This printer has only a serial dot head.

TM-U325D

This printer has only a serial dot head. Auto line feed for a parallel interface is selected by DIP switch 1-1.

TM-U300C/D

This printer has only a serial dot head. Auto line feed for a parallel interface is selected by DIP switch 1-1.

TM-J8000

Auto line feed for a parallel interface is selected by DIP switch 1-1.

This printer has only a serial dot head.

TM-H6000

Auto line feed for a parallel interface is selected by DIP switch 1-1.

There is a line thermal head mounted on the paper roll section, a serial head mounted on the slip section (face) and a shuttle head mounted on the slip section (back); therefore, CR functions in a different way.

TM-U675

Auto line feed for a parallel interface is selected by DIP switch 1-1.

This printer has only a serial dot head.

Paper type Auto line feed enabled Auto line feed disabled

Paper roll Executes printing and one line feed as LF This command is ignored

Slip (face) Executes printing and one line feed as LF Prints only data in the print buffer

Slip (back) Executes printing and one line feed as LF This command is ignored

Page 122: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC FF Ver. 6.0 p. 122

ESC FFEXECUTING COMMAND

[Name] Print data in page mode

[Format] ASCII ESC FFHex 1B 0CDecimal 27 12

[Range] None

[Default] None

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Description] In page mode, prints all buffered data in the printable area collectively.

[Notes] ■ This command is enabled only in page mode.

■ After printing, the printer does not clear the buffered data, the printing position, or values set by other commands.

■ The printer returns to standard mode with FF, ESC S, and ESC @. When it returns to standard mode by ESC @, all settings are canceled.

■ This command is used when the data in page mode is printed repeatedly.

[Model-dependent variations] TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"L"; ← Select page modePRINT #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 directionPRINT #1, "AAAAA"; CHR$(&HA); ← Store characters for printingPRINT #1, "BBBBB"; CHR$(&HA); ← Store characters for printingPRINT #1, "CCCCC"; CHR$(&H1B);CHR$(&HC); ← Batch printPRINT #1, CHR$(&HC); ← Batch print and return to standard mode

AAAAABBBBBCCCCC

AAAAABBBBBCCCCC

Print commands

Page 123: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC FF Ver. 6.0 p. 123

TM-H6000

When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

The status of “no paper in the print head position” can be checked by cut sheet status of GS r.

TM-U675

When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward. The status of “no paper in the print head position” can be checked by cut sheet status of GS r.

Page 124: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC J Ver. 6.0 p. 124

■ ■ ■ more■ ■ ■ moreESC J

EXECUTING COMMAND

[Name] Print and feed paper

[Format] ASCII ESC J nHex 1B 4A nDecimal 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] ■ The maximum paper feed amount is 1016 mm {40 inches}. If the specified amount exceeds 1016 mm {40 inches}, the paper feed amount is automatically set to 1016 mm {40 inches}.

■ When standard mode is selected, the vertical motion unit is used.

■ 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.

■ After printing, the printing position moves to the beginning of the line.

■ When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing.

■ This command is used to temporarily feed a specific length without changing the line spacing set by other commands.

Print commands

Page 125: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC J Ver. 6.0 p. 125

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

TM-H5000II

The vertical or horizontal motion unit is specified by GS P....

When paper roll is selected as the paper type in standard mode, if the paper feed amount specified is shorter than the maximum height of the character in the print buffer, paper is fed to the amount of the height of the character.

Example: When a line with double-size characters vertically is printed by ESC J, if paper feed of 30 dots is specified (n = 30), paper is fed 48 dots.

TM-U375

The vertical or horizontal motion unit is specified by GS P.

TM-U925

The vertical motion unit is specified by GS P.

TM-U325D

The vertical motion unit is approximately 0.176 mm {1/144 inches}. This value equals a half dot pitch (the minimum movement amount).

Program Example for all printers Print Sample

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);

AAAAA

BBBBB

CCCCC

DDDDD

ESC J used to print one line and advancethe paper by 100/180 inch

Page 126: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC J Ver. 6.0 p. 126

TM-U300C/D

The vertical motion unit is approximately 0.176 mm {1/144 inches}. This value equals a half dot pitch (the minimum movement amount).

When only validation paper is selected as the paper type by ESC c 0, the printer only prints the data in the print buffer and does not feed the paper.

TM-J8000

The vertical or horizontal motion unit is specified by GS P.

TM-H6000

The vertical or horizontal motion unit for a paper roll and a slip (face) is specified by GS P.

The vertical or horizontal motion unit for a slip (back) is approximately 0.176 mm {1/144 inches}. This is equivalent to the minimum mechanical pitch.

When paper roll is selected as the paper type in standard mode, if the line spacing is less than the highest character in a line, paper is fed to the height of the character.

Example: If you specify a line spacing as 30 dots to print a line which includes a double-sizecharacter vertically, the printer feeds paper for 48 dots.

When slip (face or back) is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command.

The paper ejection direction is set to forward.

TM-U675

The vertical or horizontal motion unit is specified by GS P.

When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

Page 127: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC K Ver. 6.0 p. 127

ESC KEXECUTING COMMAND

[Name] Print and reverse feed

[Format] ASCII ESC K nHex 1B 4B nDecimal 27 75 n

[Range] TM-H5000II, TM-H6000, TM-U925, TM-U675: 0 ≤ ≤ ≤ ≤ n ≤ ≤ ≤ ≤ 255TM-U325D, TM-U300C/D: 0 ≤ ≤ ≤ ≤ n ≤ ≤ ≤ ≤ 48

[Default] None

[Printers not featuring this command] TM-U375, TM-J8000

[Description] Prints the data in the print buffer and feeds the paper n × (vertical motion unit) in the reverse direction.

[Notes] ■ The maximum paper feed amount depends on the printer model.

■ After printing, the printing position moves to the beginning of the line.

■ This command is used to temporarily feed a specific length without changing the line spacing set by other commands.

■ When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing.

[Model-dependent variations] TM-H5000II TM-H6000 TM-U925 TM-U325D TM-U300C/DTM-U675

Program Example for all printers Print Sample

AAAAACCCCCBBBBB ESC K used to print one line and then reverse

feed the paper by 30/180 inch 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);

Print commands

Page 128: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC K Ver. 6.0 p. 128

TM-H5000II

This command is ignored when paper roll is selected as the paper type with ESC c 0. The vertical motion unit is specified by GS P. In the reverse direction, the maximum paper feed amount is 1016 mm {40 inches}. If the specified amount exceeds 1016 mm {40 inches}, the paper feed amount is automatically set to 1016 mm {40 inches}.

TM-U925

This command must not be executed continuously more than two times. The vertical motion unit is specified by GS P. In the reverse direction, the maximum paper feed amount is 4.23 mm {1/6 inches}. If the specified amount exceeds 4.23 mm {1/6 inches}, the printer prints the data and does not feed the paper.

TM-U325D

This command must not be executed continuously more than two times and must not be used when validation paper is selected. The vertical motion unit is approximately 0.176 mm {1/144 inches}. This value equals a half dot pitch (the minimum movement amount). In the reverse direction, the maximum paper feed amount is 8.467 mm {48/144 inches}. If the specified amount exceeds 8.467 mm {48/144 inches}, the printer only prints the data and does not feed the paper.

TM-U300C/D

This command must not be executed continuously more than two times and must not be used with the TM-U300C. The vertical motion unit is approximately 0.176 mm {1/144 inches}. This value equals a half dot pitch (the minimum movement amount). In the reverse direction, the maximum paper feed amount is 8.467 mm {48/144 inches}. If the specified amount exceeds 8.467 mm {48/144 inches}, the printer only prints the data and does not feed the paper.

Page 129: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC K Ver. 6.0 p. 129

TM-H6000

• When slip (face or back) is selected as the paper type, the printer processes this command.• The vertical motion unit for the face of a slip is specified by GS P.• When the back of the slip is selected as the paper type and print data is stored in the print

buffer, the printer prints the data in the print buffer and feeds in the forward direction by the amount corresponding to the print data.

• On the back of the slip, the paper feed amount is set to [vertical motion unit = 0.176 mm {1/144 inches}]. The unit equals the minimum mechanical pitch.

• When slip (face or back) is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

• The maximum paper feed amount is 1016 mm {40 inches}.• This command controls printing on the face or the back of the slip.• When the face of the slip is selected, there is an area in

which reverse feeding is not possible. See the diagram and table below.Area in which reverse feeding is not possible

Equipped with endorsement printer

Not equipped with endorsement printer

Using paper more than 90 mm wide

Maximum distance between a and b

41 mm 58 mm 84 mm

Maximum distance between b and c

92 mm 75 mm

a: bottom of printing

b: bottom of paper

c: position of BOF sensor

Page 130: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC K Ver. 6.0 p. 130

TM-U675

• When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

• The maximum paper feed amount is 1016 mm {40 inches}. If the paper feed set exceeds the maximum paper feed amount, the printer feeds the paper for the maximum amount in the reverse direction.

• The vertical motion unit specified by GS P is used.• When the paper roll is selected as the paper type, the printer processes the command as

follows:• In standard mode, the printer prints the data in the print buffer and does not feed paper.• In page mode, only the printing position moves in the reverse direction.

• The command controls printing on slip paper.• When slip paper is selected, there is

an area in which reverse feeding is not possible. See the diagram and table below.Area in which reverse feeding is not possible

Normal check paper

Using paper more than 90 mm wide

Maximum distance between a and b

58 mm 84 mm

Maximum distance between b and c

75 mm

a: bottom of printing

b: bottom of paper

c: position of BOF sensor

Page 131: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC d Ver. 6.0 p. 131

■ ■ ■ more■ ■ ■ moreESC d

EXECUTING COMMAND

[Name] Print and feed n lines

[Format] ASCII ESC d nHex 1B 64 nDecimal 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] ■ The amount of paper fed per line is based on the value set using the line spacing command (ESC 2 or ESC 3).

■ The maximum paper feed amount is 1016 mm {40 inches}. If the specified amount exceeds 1016 mm {40 inches}, the paper feed amount is automatically set to 1016 mm {40 inches}.

■ After printing, the printing position moves to the beginning of the line.

■ When this command is processed in page mode, only the printing position moves and the printer does not perform actual printing.

■ This command is used to temporarily feed a specific line without changing the line spacing set by other commands.

Print commands

Page 132: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC d Ver. 6.0 p. 132

[Model-dependent variations] TM-U300C/D TM-H6000 TM-U675

TM-U300C/D

When only validation paper is selected as the paper type by ESC c 0, the printer only prints the data and does not feed the paper.

TM-H6000

When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command.

The paper ejection direction is set to forward.

TM-U675

When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

Program Example for all printers Print Sample

PRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB"; CHR$(&H1B);"d";CHR$(6);

PRINT #1, "CCCCC"; CHR$(&HA);

AAAAA

BBBBB

CCCCC

ESC d used to print one line and advance the paper by six lines

Page 133: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC e Ver. 6.0 p. 133

ESC eEXECUTING COMMAND

[Name] Print and reverse feed n lines

[Format] ASCII ESC e nHex 1B 65 nDecimal 27 101 n

[Range] TM-H5000II, TM-H6000, TM-U925, TM-U675: 0 ≤ ≤ ≤ ≤ n ≤ ≤ ≤ ≤ 255TM-U325D, TM-U300C/D: 0 ≤ ≤ ≤ ≤ n ≤ ≤ ≤ ≤ 2

[Default] None

[Printers not featuring this command] TM-U375, TM-J8000

[Description] Prints the data in the print buffer and feeds n lines in the reverse direction.

[Notes] ■ The amount of paper fed per line is based on the value set using the line spacing command (ESC 2 or ESC 3).

■ The maximum paper feed amount depends on the printer model.

■ After printing, the printing position moves to the beginning of the line.

■ This command is used to temporarily feed a specific line without changing the line spacing set by other commands.

■ In page mode, the print position moves and the printer does not perform actual printing.

[Model-dependent variations] TM-H5000II TM-H6000 TM-U925 TM-U325D TM-U300C/DTM-U675

Program Example for all printers Print Sample

PRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB"; CHR$(&H1B);"e";CHR$(1);

PRINT #1, " CCCCC"; CHR$(&HA);

AAAAACCCCCBBBBB Paper reverse fed one line after printing the

line of Bs

Print commands

Page 134: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC e Ver. 6.0 p. 134

TM-H5000II

This command is ignored when paper roll is selected as the paper type by ESC c 0. The maximum reverse paper feed amount is 1016 mm {40 inches}. If the specified amount exceeds 1016 mm {40 inches}, the paper feed amount is automatically set to 1016 mm {40 inches}.

TM-U925

This command must not be executed continuously more than two times. In the reverse direction, the maximum paper feed amount is 4.23 mm {1/6 inches}. If the specified amount exceeds 4.23 mm {1/6 inches}, the printer prints the data and does not feed the paper.

TM-U325D

This command must not be executed continuously more than two times and must not be used when validation paper is selected. In the reverse direction, the maximum paper feed amount is 8.467 mm {48/144 inches} inches. If the specified amount exceeds 8.467 mm {48/144 inches}, the printer only prints the data and does not feed the paper.

TM-U300C/D

This command must not be executed continuously more than two times and must not be used with the TM-U300C. In the reverse direction, the maximum paper feed amount is 8.467 mm {48/144 inches}. If the specified amount exceeds 8.467 mm {48/144 inches}, the printer only prints the data and does not feed the paper.

Page 135: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC e Ver. 6.0 p. 135

TM-H6000

• When slip (face or back) is selected as the paper type, the printer processes this command.

• When the back of the slip is selected, the paper feed amount is set to [n ×××× approximately 3.175 mm {1/8 inches}].

• When slip (back) is selected as the paper type and print data is stored in the print buffer, the printer prints the data in the print buffer and feeds in the forward direction by the height corresponding to the print data.

• When slip (face or back) is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

• When the face of the slip is selected, there is an area where the printer only executes printing and cannot feed the paper in the reverse direction:

• When an endorsement printer mechanism is installed:

The area between “the printer feeds paper in the forward direction, exceeding the area by approximately 92 mm {523/144 inches} from the point where the BOF sensor detects a paper end “ and “no paper in the print head”.

• When an endorsement printer mechanism is not installed:

The area between “the printer feeds paper in the forward direction, exceeding the area by approximately 75 mm {425/144 inches} from the point where the BOF sensor detects a paper end “ and “no paper in the print head”.

Page 136: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print commands ESC e Ver. 6.0 p. 136

TM-U675

• The maximum paper feed amount is 1016 mm {40 inches}. If the paper feed set exceeds the maximum paper feed amount, the printer feeds the paper for the maximum amount in the reverse direction.

• When paper roll is selected as the paper type, the printer performs as follows:

• In standard mode, the printer prints the data in the print buffer and does not feed the paper.

• In page mode, the print position moves in the reverse direction.

• When slip is selected, there is an area where the printer only executes printing and cannot feed the paper in the reverse direction:

• The area between “the printer feeds paper in the forward direction, exceeding the area by approximately 75 mm {425/144 inches} from the point where the BOF sensor detects a paper end “ and “no paper in the print head”.

• When slip is selected as the paper type but no paper is in position, the printer waits for paper insertion after the current paper is ejected (including the slip removal waiting state) and performs this command. The paper ejection direction is set to forward.

Page 137: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Line spacing commands Ver. 6.0 p. 137

Line spacing commands

Command Name

ESC 2 Select default line spacingESC 3 Set line spacingESC C Set cut sheet eject length

LINE SPACING COMMANDS

Page 138: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Line spacing commands ESC 2 Ver. 6.0 p. 138

ESC 2SETTING COMMAND

[Name] Select default line spacing

[Format] ASCII ESC 2Hex 1B 32Decimal 27 50

[Range] None

[Default] None

[Printers not featuring this command] None

[Description] Sets the line spacing to 4.23 mm {1/6 inches}.

[Notes] ■ This command specifies the line spacing for the paper type selected by ESC c 1. The line spacing can be set independently for paper roll, slip, and validation paper.

■ The line spacing can be set independently in standard mode and in page mode.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

See program example and print sample for ESC 2 and ESC 3.

Line spacing commands

Page 139: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Line spacing commands ESC 2 Ver. 6.0 p. 139

TM-H5000II

4.23 mm {1/6 inches} is equivalent to 30 dots for the paper roll and 12 dots for slip.

TM-U375

4.23 mm {1/6 inches} is equivalent to 12 dots.

TM-U925

4.23 mm {1/6 inches} is equivalent to 12 dots.

TM-U325D

4.23 mm {1/6 inches} is equivalent to 12 dots.

TM-U300C/D

4.23 mm {1/6 inches} is equivalent to 12 dots.

TM-J8000

4.23 mm {1/6 inches} is equivalent to 60 dots.

TM-H6000

The default line spacing is 30 dots for a 2-paper roll and 12 dots for slip. Line spacing set for slip affects line spacing for the face of the slip.

TM-U675

4.23 mm {1/6 inches} is equivalent to 12 dots.

Page 140: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Line spacing commands ESC 3 Ver. 6.0 p. 140

■ ■ ■ more■ ■ ■ moreESC 3

SETTING COMMAND

[Name] Set line spacing

[Format] ASCII ESC 3 nHex 1B 33 nDecimal 27 51 n

[Range] 0 ≤ n ≤ 255

[Default] TM-H5000II, TM-H6000: For the paper roll: n = 60For the slip paper: n = 24

TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-U675: n = 24, TM-J8000: n = 60

[Printers not featuring this command] None

[Description] Sets the line spacing to n × (vertical or horizontal motion unit).

[Notes] ■ When standard mode is selected, the vertical motion unit is used.

■ 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.

■ This command specifies the line spacing for the paper type selected by ESC c 1. The line spacing can be set independently for paper roll, slip, and validation paper.

■ The line spacing can be set independently in standard mode and in page mode.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

See program example and print sample for ESC 2 and ESC 3.

Line spacing commands

Page 141: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Line spacing commands ESC 3 Ver. 6.0 p. 141

Program example for ESC 2 and ESC 3 n

TM-H5000II

The vertical or horizontal motion unit is specified by GS P.

If the line spacing specified is less than the maximum height of the characters in a line, paper is fed for the height of the characters in standard mode.

Example: When the line spacing is 30 dots, paper is fed 30 dots with a font A (normal size). When the line spacing is 30 dots, paper is fed 48 dots with a double size font A vertically.

TM-U375

The vertical or horizontal motion unit is specified by GS P.

TM-U925

The vertical motion unit is specified by GS P.

This command does not use the horizontal motion unit because this printer does not support page mode.

Program Example Print Sample

PRINT #1, CHR$(&H1B);"c0";CHR$(1); ←Select paper type

PRINT #1, CHR$(&H1B);"c1";CHR$(1); ←Select paper type for commands

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180);

FOR n=25 TO 50 STEP 5

PRINT #1, CHR$(&H1B);"3";CHR$(n); ← Set line spacing PRINT #1, "AAAAA"; CHR$(&HA);

NEXT n

PRINT #1, CHR$(&H1B);"2"; ← Set the defaultPRINT #1, "BBBBB"; CHR$(&HA);

PRINT #1, "CCCCC"; CHR$(&HA);

AAAAAAAAAA

AAAAA

AAAAA

AAAAA

AAAAA

BBBBBCCCCC

25/180-inch line spacing30/180-inch line spacing35/180-inch line spacing

40/180-inch line spacing

45/180-inch line spacing

50/180-inch line spacing

1/6-inch line spacing

Page 142: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Line spacing commands ESC 3 Ver. 6.0 p. 142

TM-U325D

The vertical motion unit is 0.176 mm {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.

TM-U300C/D

The vertical motion unit is 0.176 mm {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.

TM-J8000

The vertical or horizontal motion unit is specified by GS P. This command does not use the horizontal motion unit because this printer does not support page mode.

TM-H6000

The vertical or horizontal motion unit is specified by GS P.

The line spacing set for a slip affects the paper feed for the face of the slip. When standard mode is selected, if the line spacing set is less than the highest character in a line, paper is fed to the height of the character.

Example: When a line spacing of 30 dots is specified, the printer feeds paper 30 dots to print a normal size font A and 48 dots to print a double size vertically for font A.

TM-U675

The vertical or horizontal motion unit is specified by GS P. This command does not use the horizontal motion unit because this printer does not support page mode.

Page 143: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Line spacing commands ESC C Ver. 6.0 p. 143

ESC CSETTING COMMAND

[Name] Set cut sheet eject length

[Format] ASCII ESC C nHex 1B 43 nDecimal 27 67 n

[Range] 0 ≤ n ≤ 255

[Default] n = 0

[Printers not featuring this command] TM-U325D, TM-U300C/D, TM-H6000, TM-U675

[Description] Sets the eject length for a cut sheet (slip or validation paper) to n lines.• When n = 0, the eject length setting is canceled.

[Notes] ■ When n = 0, eject operation differs, depending on the printer model.

■ This command specifies the line spacing for the paper type selected by ESC c 1. The eject length can be set independently for slip and validation paper.

■ The eject length set by this command is effective only when the cut sheet is selected as the paper type and affects ejection.

■ The cut sheet eject direction is specified by ESC F.

■ The amount of paper fed per line is based on the value set using the line spacing commands (ESC 2 or ESC 3).

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-J8000

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"c0";CHR$(4); ← Select paper typePRINT #1, CHR$(&H1B);"c1";CHR$(4); ←Select paper type for commands

PRINT #1, CHR$(&H1B);"C";CHR$(8); ← Set eject length

PRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB"; CHR$(&HC);

AAAAABBBBB

Eject length set to 8lines using ESC C

Line spacing commands

Page 144: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Line spacing commands ESC C Ver. 6.0 p. 144

TM-H5000II

The maximum eject length is 450 mm {17.72 inches}. If the specified amount exceeds 450 mm {17.72 inches}, the eject length is automatically set to 450 mm {17.72 inches}.

When n=0, the printer continues paper feed until the printer gets to the position where the slip paper can be ejected.

Selecting paper type by ESC c 1 is unnecessary because this printer has only a slip as the cut sheet.

TM-U375

The maximum eject length is 1016 mm {40 inches}. If the specified amount exceeds 1016 mm {40 inches}, the eject length amount is automatically set to 1016 mm {40 inches}.

When n = 0, the printer continues paper feed until the cut sheet is ejected completely.

The eject length can be set independently for slip and validation paper selected by ESC c 1.

TM-U925

The maximum eject length is 1016 mm {40 inches}. If the specified amount exceeds 1016 mm {40 inches}, the eject length amount is automatically set to 1016 mm {40 inches}.

When n = 0, the printer continues paper feed until the cut sheet is ejected completely.

Selecting paper type by ESC c 1 is unnecessary because this printer has only a slip as the cut sheet.

TM-J8000

The maximum eject length is 1016 mm {40 inches}. If the specified amount exceeds 1016 mm {40 inches}, the eject length amount is automatically set to 1016 mm {40 inches}.

When n = 0, the printer continues paper feed until the cut sheet is ejected completely.

Selecting paper type by ESC c 1 is unnecessary because this printer has only a slip as the cut sheet.

Page 145: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands Ver. 6.0 p. 145

Character commands

Command Name

CAN Cancel print data in page modeESC SP Set right-side character spacing

ESC ! Select print mode(s)ESC % Select/cancel user-defined character setESC & Define user-defined charactersESC – Turn underline mode on/offESC ? Cancel user-defined charactersESC E Turn emphasized mode on/offESC G Turn double-strike mode on/offESC M Select character fontESC R Select an international character setESC V Turn 90° clockwise rotation mode on/offESC r Select print colorESC t Select character code tableESC { Turn upside-down printing mode on/offGS ! Select character sizeGS B Turn white/black reverse printing mode on/offGS b Turn smoothing mode on/off

CHARACTER COMMANDS

Page 146: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands CAN Ver. 6.0 p. 146

CANEXECUTING COMMAND

[Name] Cancel print data in page mode

[Format] ASCII CANHex 18Decimal 24

[Range] None

[Default] None

[Printers not featuring this command] TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Description] In page mode, deletes all the print data for the current printing area.

[Notes] ■ This command is enabled only in page mode

■ If data set in the previously specified printing area is set in the currently specified printing area, it is deleted.

[Model-dependent variations] TM-H5000II TM-H6000

TM-H5000II

Page mode can be used only when paper roll is selected as the paper type.

TM-H6000

Page mode is selected only when paper roll or slip (face) is selected as the paper type.

Program Example for all printers Print SamplePRINT #1, CHR$(&H1B);"L"; ← Select page modePRINT #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 directionFOR 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 dataPRINT #1, CHR$(&HC); ← Batch print and return to standard mode

AAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAA

AAAAA AAAAAAAAAA

AAAAA AAAAAAAAAA

AAAAA AAAAAAAAAA

AAAAA AAAAAAAAAA

AAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAA

Character commands

Page 147: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC SP Ver. 6.0 p. 147

■ ■ ■ more■ ■ ■ moreESC SP

SETTING COMMAND

[Name] Set right-side character spacing

[Format] ASCII ESC SP nHex 1B 20 nDecimal 27 32 n

[Range] TM-H5000II, TM-J8000, TM-H6000, TM-U675, TM-U375, TM-U925, TM-U325D: 0 ≤≤≤≤ n ≤≤≤≤ 255, TM-U300C/D: 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] ■ The right-side character spacing set by this command is effective for all characters (except for HRI characters).

■ 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.

■ When standard mode is selected, the horizontal motion unit is used.

■ 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.

■ The right-side character spacing can be set independently in standard mode and in page mode.

■ It is used to change the spacing between characters.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

Character commands

Page 148: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC SP Ver. 6.0 p. 148

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180);

PRINT #1, CHR$(&H1B);" ";CHR$(0); ← Character spacing set to 0PRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, CHR$(&H1B);" ";CHR$(6); ← Character spacing set to 6PRINT #1, "BBBBB"; CHR$(&HA);

PRINT #1, CHR$(&H1B);" ";CHR$(12); ← Character spacing set to 12PRINT #1, "CCCCC"; CHR$(&HA);

AAAAA ← 0-inch character spacing

BBBBB ← 6/180-inch character spacing

C C C C C ← 12/180-inch character spacing

Page 149: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC SP Ver. 6.0 p. 149

TM-H5000II

The vertical or horizontal motion unit is specified by GS P.

TM-U375

The vertical or horizontal motion unit is specified by GS P.

TM-U925

The horizontal motion unit is specified by GS P.

This command does not use the vertical motion unit because this printer does not support Page mode.

TM-U325D

The horizontal motion unit is 0.16 mm {1/160 inch} (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.

TM-U300C/D

The horizontal motion unit is 0.16 mm {1/160 inch} (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.

TM-J8000

The vertical or horizontal motion unit is specified by GS P.

TM-H6000

The vertical or horizontal motion unit for a paper roll and the face of a slip is specified by GS P.

The vertical or horizontal motion unit for the back of a slip is 0.2 mm (1/127 inch). This is equivalent to 1 dot (minimum mechanical pitch).

TM-U675

The vertical or horizontal motion unit is specified by GS P.

Page 150: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC ! Ver. 6.0 p. 150

■ ■ ■ more■ ■ ■ moreESC !

SETTING COMMAND

[Name] Select print mode(s)

[Format] ASCII ESC ! nHex 1B 21 nDecimal 27 33 n

[Range] 0 ≤ n ≤ 255

[Default] TM-H5000II, TM-H6000: n = 0; TM-U925: n = 0 or 1; TM-U375, TM-U325D, TM-U300C/D, TM-U675: n = 1

[Printers not featuring this command] None

[Description] Selects or cancels character font and emphasized mode collectively as follows:

Bit Off/On Hex Decimal Function

0 Off 00 0 Character font A selected.... how to use

this tableOn 01 1 Character font B selected.

1, 2 Off 00 0 Reserved.

3 Off 00 0 Emphasized mode not selected.

On 08 8 Emphasized mode selected.

4 Off 00 0 Double-height mode not selected.

On 10 16 Double-height mode selected.

5 Off 00 0 Double-width mode not selected.

On 20 32 Double-width mode selected.

6 Off 00 0 Reserved.

7 Off 00 0 Underline mode not selected.

On 80 128 Underline mode selected.

Character commands

Page 151: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC ! Ver. 6.0 p. 151

■ ■ ■ more■ ■ ■ more[Notes] ■ Functions for each bit can also be executed by the following commands:

Bit 0 (character font): ESC MBit 3 (emphasized mode): ESC EBit 4, 5 (character size): GS !Bit 7 (underline mode): ESC –

■ Configurations of font A and font B are different, depending on the printer model.

■ The print modes set by this command are effective for all characters (except HRI characters).

■ When some characters in a line are double-height, all characters on the line are aligned at the baseline.

■ When double-width mode is turned on, the characters are enlarged to the right, based on the left side of the character.

■ When both double-height and double-width modes are turned on, quadruple size characters are printed.

■ 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.

■ In page mode, double-height and double-width are in the character orientation.

■ The underline thickness is that specified by ESC –, regardless of the character size.

■ When underline mode is turned on, 90° clockwise-rotated characters and white/black reverse characters cannot be underlined.

■ The printer cannot underline the space set by HT, ESC $, and ESC \.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

Page 152: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC ! Ver. 6.0 p. 152

Program Example for all printers Print Sample

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); AA: Normal

PRINT #1, CHR$(&H1B);"!";CHR$(129); "AA"; BB: Emphasized

PRINT #1, CHR$(&H1B);"!";CHR$(137); "BB"; CC: Double-height

PRINT #1, CHR$(&H1B);"!";CHR$(145); "CC"; DD: Emphasized + Double-height

PRINT #1, CHR$(&H1B);"!";CHR$(153); "DD"; EE: Double-width

PRINT #1, CHR$(&H1B);"!";CHR$(161); "EE"; FF: Emphasized + Double-width

PRINT #1, CHR$(&H1B);"!";CHR$(169); "FF"; GG: Double-height + Double-width

PRINT #1, CHR$(&H1B);"!";CHR$(177); "GG"; HH: Emphasized + Double-height + Double-width

PRINT #1, CHR$(&H1B);"!";CHR$(185); "HH"; CHR$(&HA);

← Font A

← Font Bwith underline

Page 153: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC ! Ver. 6.0 p. 153

TM-H5000II

Character configurations

Bit 0: Font A: 12 ×××× 24 (paper roll), 9 ×××× 9 (slip)Font B: 9 ×××× 17 (paper roll), 7 ×××× 9 (slip)

TM-U375

Character configurations

Bit 0: Font A: 5 ×××× 9Font B: 7 ×××× 9

The character font B (7 ×××× 9) and emphasized mode are not effective 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.

TM-U925

Character configurations

Bit 0: Font A: 9×××× 9Font B: 7 ×××× 9

TM-U325D

Character configurations

Bit 0: Font A: 9 ×××× 9Font B: 7 ×××× 9

TM-U300C/D

Character configurations

Bit 0: Font A: 9 ×××× 9Font B: 7 ×××× 9

Page 154: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC ! Ver. 6.0 p. 154

TM-J8000

Character configurations

Font A: 22 ×××× 48Font B: 18 ×××× 36

TM-H6000

Character configurations

Font A: Paper roll: 12 ×××× 24 Slip (face): 5 ×××× 9

Font B: Paper roll: 9 ×××× 17Slip (face): 7 ×××× 9

In page mode, selecting font B (7 × × × × 9) and emphasized printing do not affect the face of a slip.

This command does not affect printing on the back of a slip.

TM-U675

Character configurations

Bit 0: Font A: 5 ×××× 9Font B: 7 ×××× 9

The character font B (7 ×××× 9) and emphasized mode are not effective 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.

Page 155: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC % Ver. 6.0 p. 155

ESC %SETTING COMMAND

[Name] Select/cancel user-defined character set

[Format] ASCII ESC % nHex 1B 25 nDecimal 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] ■ When the user-defined character set is canceled, the resident character set is automatically selected.

[Model-dependent variations] TM-H6000

See program example and print sample for ESC %, ESC &, and ESC ?.

TM-H6000

The resident characters are always specified for slip (back) printing.

Character commands

Page 156: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC & Ver. 6.0 p. 156

■ ■ ■ more■ ■ ■ moreESC &

SETTING COMMAND

[Name] Define user-defined characters

[Format] 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)]

[Range] TM-H5000II: For the paper roll:y = 332 ≤ c1 ≤ c2 ≤ 1260 ≤ x ≤ 12 (Font A (12 × 24))0 ≤ x ≤ 9 (Font B (9 × 17))0 ≤ d ≤ 255k = c2–c1+1

For the slip paper:y = 232 ≤ c1 ≤ c2 ≤ 1260 ≤ x ≤ 12 (Font A (9 × 9))0 ≤ x ≤ 9 (Font B (7 × 9))0 ≤ d ≤ 255k = c2–c1+1

TM-J8000: y = 6 (Font A (22 × 48))y = 5 (Font B (18 × 36))32 ≤ c1 ≤ c2 ≤ 1260 ≤ x ≤ 22 (Font A (22 × 48))0 ≤ x ≤ 18 (Font B (18 × 36))0 ≤ d ≤ 255k = c2 -c1 + 1

Character commands

Page 157: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC & Ver. 6.0 p. 157

■ ■ ■ more■ ■ ■ moreTM-H6000: For the paper roll:

y = 332 ≤≤≤≤ c1 ≤≤≤≤ c2 ≤≤≤≤ 1260 ≤≤≤≤ x ≤≤≤≤ 12 (Font A)0 ≤≤≤≤ x ≤≤≤≤ 9 (Font B )0 ≤≤≤≤ d ≤≤≤≤ 255k = c2–c1+1

For the slip paper:y = 232 ≤≤≤≤ c1 ≤≤≤≤ c2 ≤≤≤≤ 1260 ≤≤≤≤ x ≤≤≤≤ 6 (Font A)0 ≤≤≤≤ x ≤≤≤≤ 9 (Font B)0 ≤≤≤≤ d ≤≤≤≤ 255k = c2–c1+1

TM-U675: When DIP switch [SW2-4] is Off or [SW2-4] is On and [SW2-3] is On:

y = 232 ≤≤≤≤ c1 ≤≤≤≤ c2 ≤≤≤≤ 1260 ≤≤≤≤ x ≤≤≤≤ 6 (Font A)0 ≤≤≤≤ x ≤≤≤≤ 9 (Font B )0 ≤≤≤≤ d ≤≤≤≤ 255k = c2–c1+1

When DIP switch [SW2-4] is On and [SW2-3] is Off:y = 232 ≤≤≤≤ c1 ≤≤≤≤ c2 ≤≤≤≤ 1260 ≤≤≤≤ x ≤≤≤≤ 6 (Font A)0 ≤≤≤≤ x ≤≤≤≤ 10 (Font B)0 ≤≤≤≤ d ≤≤≤≤ 255k = c2–c1+1

Page 158: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC & Ver. 6.0 p. 158

■ ■ ■ more■ ■ ■ moreTM-U375: y = 2

32 ≤ c1 ≤ c2 ≤ 1260 ≤ x ≤ 6 (Font A (5 × 9))0 ≤ x ≤ 10 (Font B (7 × 9))0 ≤ d ≤ 255k = c2–c1+1

TM-U925: y = 232 ≤ c1 ≤ c2 ≤ 1260 ≤ x ≤ 12 (Font A (9 × 9))0 ≤ x ≤ 9 (Font B (7 × 9))0 ≤ d ≤ 255k = c2–c1+1

TM-U325D, TM-U300C/D: y = 232 ≤≤≤≤ c1 ≤≤≤≤ c2 ≤≤≤≤ 1260 ≤≤≤≤ x ≤≤≤≤ 12 (Font A (9 ×××× 9))0 ≤≤≤≤ x ≤≤≤≤ 10 (Font B (7 ×××× 9))0 ≤≤≤≤ d ≤≤≤≤ 255k = 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] ■ Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can be defined.

■ Data (d) specifies a bit printed as 1 and not printed as 0. The dot pattern is in the horizontal direction from the left side. Any remaining dots on the right side are blank.

■ The data to define a user-defined character is (y × x) bytes.

■ This command can define user-defined characters for each font independently. To select a font, use ESC ! or ESC M.

Page 159: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC & Ver. 6.0 p. 159

■ ■ ■ more■ ■ ■ more■ A user-defined character and downloaded bit image cannot be defined simultaneously. When this

command is executed, the downloaded bit image is cleared.

■ Once the user-defined characters have been defined, they are available until ESC ?, GS ✻, or ESC @, is executed. The user-defined characters are lost when the power is turned off or the printer is reset.

■ The user-defined characters are not defined in the default settings, and the resident characters are printed.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

See program example and print sample for ESC %, ESC &, and ESC ?.

TM-H5000II

This command defines the pattern for the paper type selected by ESC c 1. The user-defined characters can be defined independently for paper roll and slip paper.

If slip paper is selected, dots adjoining each other horizontally cannot be printed. Only the MSB can be printed in the second byte in the vertical direction.

TM-U375

If font B (7 ×××× 9) is selected, dots adjoining each other horizontally cannot be printed. Only the MSB can be printed in the second byte in the vertical direction.

TM-U925

Dots adjoining each other horizontally cannot be printed. Only the MSB can be printed in the second byte in the 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 Maximum number of user-defined characters

2 KB 23

32 bytes 71

Page 160: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC & Ver. 6.0 p. 160

TM-U325D

Dots adjoining each other horizontally cannot be printed. Only the MSB can be printed in the second byte in the 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.

TM-U300C/D

Dots adjoining each other horizontally cannot be printed. Only the MSB can be printed in the second byte in the 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.

TM-J8000

In the fifth byte, only 4 bits of the MSB are available when defining user-defined characters with font B.

Receive buffer capacity Maximum number of user-defined characters

4 KB 20

45 bytes 95

Receive buffer capacity Maximum number of user-defined characters

512 bytes 4

40 bytes 20

0 bytes 22

Page 161: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC & Ver. 6.0 p. 161

TM-H6000

The command defines a pattern of user-defined characters for the paper type selected by ESC c 1. If slip is selected as the paper type, user-defined characters for the face of a slip are defined. The user-defined patterns can be selected both for the paper roll and the face of a slip.

For user-defined characters for a paper roll using font B, only the most significant bit of the third byte vertically is available. For user-defined characters for a slip, only the most significant bit of the second byte vertically is available. When using font B, adjacent dots horizontally cannot be used as print data.

TM-U675

If font B (7 ×××× 9) is selected, the dots adjoining each other horizontally cannot be printed. Only the MSB can be printed in the second byte in the vertical direction.

Page 162: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC – Ver. 6.0 p. 162

■ ■ ■ more■ ■ ■ moreESC –

SETTING COMMAND

[Name] Turn underline mode on/off

[Format] ASCII ESC – nHex 1B 2D nDecimal 27 45 n

[Range] TM-H5000II, TM-J8000, TM-H6000, TM-U675: 0 ≤≤≤≤ n ≤≤≤≤ 2, 48 ≤≤≤≤ n ≤≤≤≤ 50TM-U375, TM-U925, TM-U325D: n = 0, 1, 48, 49

[Default] n = 0

[Printers not featuring this command] None

[Description] Turns underline mode on or off using n as follows:

[Notes] ■ The underline mode is effective for all characters (except HRI characters).

■ When underline mode is turned on, 90° clockwise rotated characters and white/black reverse characters cannot be underlined.

■ The printer cannot underline the space set by HT, ESC $, and ESC \.

■ Changing the character size does not affect the current underline thickness.

■ When underline mode is turned off, the following data is not underlined, but the thickness is maintained.

■ This command and bit 7 of ESC ! turn on and off underline mode in the same way.

■ Some printer models support the 2-dot thick underline (n = 2 or 5).

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

n Function

0, 48 Turns off underline mode

1, 49 Turns on underline mode (1 dot thick)

2, 50 Turns on underline mode (2 dots thick)

Character commands

Page 163: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC – Ver. 6.0 p. 163

TM-H5000II

If the slip is selected as the paper type set by ESC c 0, the underline is 1 dot wide when n = 2 or 50.

TM-J8000

When n = 1, 2, 49, 50 the underline is 2 dots wide.

TM-H6000

When an underline with a 2-dot width is selected (n = 2 or n = 50), it affects the underline width for printing on the face of a slip. When the underline is selected for printing on the back of a slip, the underline is not affected.

TM-U675

When n = 1, 2, 49, or 50, an underline with 1-dot width is selected.

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"-";CHR$(1); ← Select AAAAA ← Underline (1-dot thick) turned on

PRINT #1, "AAAAA"; CHR$(&HA); BBBBB ← Underline turned off

PRINT #1, CHR$(&H1B);"-";CHR$(0); ← Cancel

PRINT #1, "BBBBB"; CHR$(&HA);

Page 164: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC ? Ver. 6.0 p. 164

■ ■ ■ more■ ■ ■ moreESC ?

SETTING COMMAND

[Name] Cancel user-defined characters

[Format] ASCII ESC ? nHex 1B 3F nDecimal 27 63 n

[Range] 32 ≤ n ≤ 126

[Default] None

[Printers not featuring this command] TM-U300C/D

[Description] Cancels the user-defined characters defined for the character code n.

[Notes] ■ After the user-defined characters are canceled, the resident character set is printed.

■ This command can cancel user-defined characters for each font independently. To select a font, use ESC ! or ESC M.

[Model-dependent variations] TM-H5000II TM-H6000

Character commands

Page 165: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC ? Ver. 6.0 p. 165

Program example for ESC %, ESC &, and ESC ?

TM-H5000II

This command cancels the pattern defined for the paper type selected by ESC c 1. The user-defined characters can be defined independently for paper roll and slip paper.

TM-H6000

This command cancels the pattern defined for the paper type selected by ESC c 1. The user-defined characters can be defined independently for paper roll and slip paper.

Program Example Program Example (continued)

PRINT #1, CHR$(&H1B);"&";CHR$(2);"AC";

PRINT #1, CHR$(9);

FOR i=1 TO 2*9

READ d: PRINT #1, CHR$(d);

NEXT i

PRINT #1, CHR$(9);

FOR i=1 TO 2*9

READ d: PRINT #1, CHR$(d);

NEXT i

PRINT #1, CHR$(10);

FOR i=1 TO 2*10

READ d: PRINT #1, CHR$(d);

NEXT i

PRINT #1, CHR$(&H1B);"%";CHR$(0); ← Select resident character

PRINT #1, "A B C D E"; CHR$(&HA);

PRINT #1, CHR$(&H1B);"%";CHR$(1); ← Select user-defined character

PRINT #1, "A B C D E"; CHR$(&HA):

PRINT #1, CHR$(&H1B);"?";"A"; ← Cancel the user-defined characterPRINT #1, "A B C D E"; CHR$(&HA);

DATA &H18,&H00,&H00,&H00,&H3C,&H00,&H00,&H00

DATA &H7E,&H00,&H00,&H00,&H3C,&H00,&H00,&H00

DATA &H18,&H00

DATA &H18,&H00,&H00,&H00,&H24,&H00,&H00,&H00

DATA &H42,&H00,&H00,&H00,&H24,&H00,&H00,&H00

DATA &H18,&H00

DATA &H00,&H00,&H10,&H00,&H20,&H00,&H5F,&H00

DATA &H00,&H00,&H81,&H00,&H00,&H00,&H5F,&H00

DATA &H20,&H00,&H10,&H00

Print Sample

A B C D E ← Characters from resident character set

♦ ◊ ! D E ← Characters from user-defined character set

A ◊ !D E ← Characters from user-defined character set (cancel one character)

Defines the user-defined characters as "A","B",and "C"

Page 166: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC E Ver. 6.0 p. 166

ESC ESETTING COMMAND

[Name] Turn emphasized mode on/off

[Format] ASCII ESC E nHex 1B 45 nDecimal 27 69 n

[Range] 0 ≤ n ≤ 255

[Default] n = 0

[Printers not featuring this command] None

[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] ■ The emphasized mode is effective for all characters (except for HRI characters).

■ This command and bit 3 of ESC ! turn on and off emphasized mode in the same way.

[Model-dependent variations] TM-U375 TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"E";CHR$(1); ← Select AAAAA ← Emphasized

PRINT #1, "AAAAA"; CHR$(&HA); BBBBB ← Normal

PRINT #1, CHR$(&H1B);"E";CHR$(0); ← CancelPRINT #1, "BBBBB"; CHR$(&HA);

Character commands

Page 167: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC E Ver. 6.0 p. 167

TM-U375

Emphasized mode is not effective in page mode. If this command is processed in page mode, an internal flag is activated, and emphasized mode is enabled when the printer returns to standard mode.

TM-H6000

Specifying emphasized mode does not affect printing on the face of a slip in page mode or printing on the back of a slip.

TM-U675

Emphasized mode is not effective in page mode. If this command is processed in page mode, an internal flag is activated, and emphasized mode is enabled when the printer returns to standard mode.

Page 168: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC G Ver. 6.0 p. 168

ESC GSETTING COMMAND

[Name] Turn double-strike mode on/off

[Format] ASCII ESC G nHex 1B 47 nDecimal 27 71 n

[Range] 0 ≤ n ≤ 255

[Default] n = 0

[Printers not featuring this command] None

[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] ■ The double-strike mode is effective for all characters (except for HRI characters).

[Model-dependent variations] TM-U375 TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"G";CHR$(1); ← Select AAAAA ← Double-strike

PRINT #1, "AAAAA"; CHR$(&HA); BBBBB ← Normal

PRINT #1, CHR$(&H1B);"G";CHR$(0); ← Cancel

PRINT #1, "BBBBB"; CHR$(&HA);

Character commands

Page 169: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC G Ver. 6.0 p. 169

TM-U375

Double-strike mode is not effective in page mode. If this command is processed in page mode, an internal flag is activated, and double-strike mode is enabled when the printer returns to standard mode.

TM-H6000

Specifying double-strike mode does not affect printing on the face of a slip in page mode or printing on the back of a slip.

TM-U675

Double-strike mode is not effective in page mode. If this command is processed in page mode, an internal flag is activated, and emphasized mode is enabled when the printer returns to standard mode.

Page 170: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC M Ver. 6.0 p. 170

■ ■ ■ more■ ■ ■ moreESC M

SETTING COMMAND

[Name] Select character font

[Format] ASCII ESC M nHex 1B 4D nDecimal 27 77 n

[Range] n = 0, 1, 48, 49

[Default] TM-H5000II, TM-J8000, TM-H6000: n = 0; TM-U325D, TM-U675: n = 1

[Printers not featuring this command] TM-U375, TM-U925, TM-U300C/D

[Description] Selects a character font, using n as follows:

[Notes] ■ Configurations of font A and font B depend on the printer model.

■ This command and bit 0 of ESC ! select character font A or B in the same way. The last setting is effective.

[Model-dependent variations] TM-H5000II TM-U325D TM-J8000 TM-H6000TM-U675

n Font

0, 48 Font A

1, 49 Font B

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"M";CHR$(0);← Select font A AAAAA ← Font APRINT #1, "AAAAA";CHR$(&HA); BBBBB ← Font BPRINT #1, CHR$(&H1B);"M";CHR$(1); ← Select font BPRINT #1,"BBBBB";CHR$(&HA);

Character commands

Page 171: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC M Ver. 6.0 p. 171

TM-H5000II

Character configurations

Font A: (paper roll: 12 ×××× 24 / slip: 9 ×××× 9)Font B: (paper roll: 9 ×××× 17 / slip: 7 ×××× 9)

TM-U325D

Character configurations

Font A: 9 ×××× 9Font B: 7 ×××× 9

TM-J8000

Character configurations

Font A: 22 ×××× 48Font B: 18 × × × × 36

TM-H6000

Character configurations

Font A: 22 ×××× 48Font B: 18 × × × × 36

TM-U675

Character configurations

Font A: 5 ×××× 9Font B: 7 × × × × 9

Page 172: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC R Ver. 6.0 p. 172

■ ■ ■ more■ ■ ■ moreESC R

SETTING COMMAND

[Name] Select an international character set

[Format] ASCII ESC R nHex 1B 52 nDecimal 27 82 n

[Range] 0 ≤ n ≤ 10TM-H6000, TM-U675, TM-H5000II: 0 ≤ ≤ ≤ ≤ nnnn ≤ ≤ ≤ ≤ 13

[Default] n = 0

[Printers not featuring this command] None

[Description] Selects an international character set n as follows:

Character commands

Page 173: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC R Ver. 6.0 p. 173

[Model-dependent variations] None

Program Example for all printers Print Sample

FOR n=0 TO 10

PRINT #1, CHR$(&H1B);"R";CHR$(n);

PRINT #1, "# $ @ [ \ ] ^ ` { ¦ } ~"; CHR$(&HA);

NEXT n

# $ @ [ \ ] ^ ` { ¦ } ~ ← n=0 (Default setting)

# $ à ° ç § ^ ` é ù è ¨ ← n=1

# $ § Ä Ö Ü ^ ` ä ö ü ß ← n=2£ $ @ [ \ ] ^ ` { ¦ } ~ ← n=3

# $ @ Æ Ø Å ^ ` æ ø å ~ ← n=4# ¤ É Ä Ö Å Ü é ä ö å ü ← n=5

# $ @ ° \ é ^ ù à ò è ì ← n=6

Pt $ @ ¡ Ñ ¿ ^ ` ¨ ñ } ~ ← n=7# $ @ [ ¥ ] ^ ` { ¦ } ~ ← n=8# ¤ É Æ Ø Å Ü é æ ø å ü ← n=9

# $ É Æ Ø Å Ü é æ ø å ü ← n=10

Page 174: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC V Ver. 6.0 p. 174

■ ■ ■ more■ ■ ■ moreESC V

SETTING COMMAND

[Name] Turn 90° clockwise rotation mode on/off

[Format] ASCII ESC V nHex 1B 56 nDecimal 27 86 n

[Range] TM-H5000II: n = 0, 1, 48, 49 TM-U375: 0 ≤ ≤ ≤ ≤ n ≤ ≤ ≤ ≤ 2, 48 ≤ ≤ ≤ ≤ n ≤ ≤ ≤ ≤ 50TM-H6000, TM-U675: 0 ≤ ≤ ≤ ≤ n ≤ ≤ ≤ ≤ 1, 48 ≤ ≤ ≤ ≤ n ≤ ≤ ≤ ≤ 50

[Default] n = 0

[Printers not featuring this command] TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Description] In standard mode, turns 90° clockwise rotation mode on or off, using n as follows:

[Notes] ■ The 90° clockwise rotation mode is effective for all characters (except for HRI characters) in standard mode.

■ When underline mode is turned on, the printer does not underline 90° clockwise-rotated characters.

■ When character orientation changes in 90° clockwise rotation mode, the relationship between vertical and horizontal directions is reversed.

■ The 90° clockwise rotation mode has no effect in page mode.

■ Some printer models support 90° clockwise rotation mode when n = 2 or 50.

■ Not all printers can rotate the fonts.

[Model-dependent variations] TM-H5000II TM-U375 TM-H6000 TM-U675

n Function

0, 48 Turns off 90° clockwise rotation mode.

1, 48 Turns on 90° clockwise rotation mode (1-dot character spacing).

2, 50 Turns on 90° clockwise rotation mode (1.5-dot character spacing).

Character commands

Page 175: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC V Ver. 6.0 p. 175

TM-H5000II

The 90°°°° clockwise rotation mode affects printing on the paper roll in standard mode.

If this command is processed when slip is selected as the paper type, an internal flag is activated and this flag is enabled when the paper roll is selected.

TM-U375

The 90°°°° clockwise rotation mode is not effective for font B (7 ×××× 9).

TM-H6000

Specifying 90°°°° clockwise rotation mode does not affect printing on the face of a slip with font B or printing on the back of a slip. When specifying 90°°°° clockwise rotation mode for a paper roll, the print results of (n = 1, 49) and (n = 2, 50) are the same.

TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"c0";CHR$(1);← Select paper typePRINT #1, CHR$(&H1B);"c1";CHR$(1);← Select paper type for commands

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180);

PRINT #1, CHR$(&H1B);" ";CHR$(20);← Set character spacingPRINT #1, CHR$(&H1B);"3";CHR$(15);← Set line spacingPRINT #1, CHR$(&H1B);"V";CHR$(1);← Select PRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB"; CHR$(&HA);

PRINT #1, "CCCCC"; CHR$(&HA);

PRINT #1, CHR$(&H1B);"2";← Set line spacingPRINT #1, CHR$(&H1B);"V";CHR$(0);← Cancel PRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB"; CHR$(&HA);

PRINT #1, "CCCCC"; CHR$(&HA);

ABC

ABC

ABC

ABC

ABC

ABC

Character spacing

Linespacing ESC V 1

Linespacing ESC V 0

Character spacing

A A A A AB B B B BC C C C C

ABC

Page 176: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC V Ver. 6.0 p. 176

■ ■ ■ more■ ■ ■ moreThe 90°°°° clockwise rotation mode is not effective for font B (7 ×××× 9).

Page 177: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC r Ver. 6.0 p. 177

ESC rSETTING COMMAND

[Name] Select print color

[Format] ASCII ESC r nHex 1B 72 nDecimal 27 114 n

[Range] TM-U300C/D: n = 0, 1

[Default] n = 0

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-J8000

[Description] Selects a print color, using n as follows:

[Notes] ■ When standard mode is selected, this command is enabled only when processed at the beginning of the line.

■ 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-U300C/D

TM-U300C/D

This command is ignored with the TM-U300D single-color model.

n Print color

0, 48 Black

1, 49 Red

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"r";CHR$(1);← Select red AAAAA ← RedPRINT #1, "AAAAA";CHR$(&HA); BBBBB ← BlackPRINT #1, CHR$(&H1B);"r";CHR$(0); ← Select blackPRINT #1,"BBBBB";CHR$(&HA);

Character commands

Page 178: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC t Ver. 6.0 p. 178

■ ■ ■ more■ ■ ■ moreESC t

SETTING COMMAND

[Name] Select character code table

[Format] ASCII ESC t nHex 1B 74 nDecimal 27 116 n

[Range] TM-H5000II: 0 ≤≤≤≤ n ≤≤≤≤ 8, 19 ≤≤≤≤ n ≤≤≤≤ 26, n = 255TM-U300C/D: 0 ≤≤≤≤ n ≤≤≤≤ 5, n = 255TM-J8000: 0 ≤ n ≤≤≤≤ 5, n = 19, 254, 255TM-H6000: For paper roll and slip (back): 0 ≤≤≤≤ n ≤≤≤≤ 8, 16 ≤≤≤≤ n ≤≤≤≤ 19, n = 255

For slip (face): 0 ≤≤≤≤ n ≤≤≤≤ 8, 16 ≤≤≤≤ n ≤≤≤≤ 19, n = 254, 255TM-U325D: 0 ≤≤≤≤ n ≤≤≤≤ 5, n = 254, 255TM-U925, TM-U375: 0 ≤≤≤≤ n ≤≤≤≤ 5, n = 19, 254, 255TM-U675: 0 ≤≤≤≤ n ≤≤≤≤ 8, 16 ≤≤≤≤ n ≤≤≤≤ 19, n = 254, 255

[Default] n = 0TM-H5000II: nnnn = 20 (for Thai character supporting model)

[Range] n = 0

[Printers not featuring this command] None

[Description] Selects page n from the character code tables, as follows:

n Character Code Table

0 Page 0 [PC437 (U.S.A. , Standard Europe)]

1 Page 1 [Katakana]

2 Page 2 [PC850 (Multilingual)]

3 Page 3 [PC860 (Portuguese)]

4 Page 4 [PC863 (Canadian-French)]

5 Page 5 [PC865 (Nordic)]

6 Hiragana

Character commands

Page 179: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC t Ver. 6.0 p. 179

■ ■ ■ more■ ■ ■ more

[Note] ■ 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.

7 One-pass printing Kanji characters

8 One-pass printing Kanji characters

16 WPC1252

17 PC866 [Cyrillic #2]

18 PC852 [Latin 2]

19 Page 19 [PC858]

20 Thai character code 42

21 Thai character code 11

22 Thai character code 13

23 Thai character code 14

24 Thai character code 16

25 Thai character code 17

26 Thai character code 18

254 Page 254

255 Page 255

n Character Code Table

Page 180: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC t Ver. 6.0 p. 180

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

TM-H5000II

Page 255 for the paper roll and using font A (9 ×××× 9) on a slip are space characters. Page 255 using font B (7 ×××× 9) on a slip are special characters.

The character code tables from n = 20 to 26 are available only for the TM-H5000IIM, which is the Thai character supporting model.

The character code tables, n = 6, 7, and 8 are available only for slip printing of the Kanji supporting model.

TM-U375

Pages 254 and 255 are the space characters.

Program Example for all printers Print SamplePRINT #1, CHR$(&H1B);"t";CHR$(0); ← Select page 0

GOSUB printing

PRINT #1, CHR$(&H1B);"t";CHR$(1); ← Select page 1

GOSUB printing

END

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 0

Page 1

Page 181: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC t Ver. 6.0 p. 181

TM-U925

Pages 254 and 255 are the space characters.

TM-U325D

Pages 254 and 255 are the space characters.

TM-U300C/D

Page 255 is the space characters.

TM-J8000

Pages 254 and 255 are the space characters.

TM-H6000

The character type for pages 254 and 255, on the face of a slip using font B is special characters and the character type for other paper types and font A is space characters.

Character code tables, n = 6, 7, and 8 are available only for the Kanji supporting model.

TM-U675

The character type for pages 254 and 255, using font A (5 ×××× 9) is space characters and for font B (7 ×××× 9) is special characters.

Character code tables, n = 6, 7, and 8 are available only for the Kanji supporting model.

Page 182: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands ESC { Ver. 6.0 p. 182

ESC {SETTING COMMAND

[Name] Turn upside-down printing mode on/off

[Format] ASCII ESC { nHex 1B 7B nDecimal 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.

[Notes] ■ When standard mode is selected, this command is enabled only when processed at the beginning of the line.

■ The upside-down printing mode is effective for all data in standard mode.

■ The upside-down printing mode has no effect in page mode.

■ 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

Program Example for all printers Print Sample

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);

Normal printing

ABCDEBCDEF

BCDEFABCDE

Upside-downprinting

Character commands

Page 183: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands GS ! Ver. 6.0 p. 183

■ ■ ■ more■ ■ ■ moreGS !

SETTING COMMAND

[Name] Select character size

[Format] ASCII GS ! nHex 1D 21 nDecimal 29 33 n

[Range] TM-H5000II: 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)

TM-H6000: 0 ≤≤≤≤ n ≤≤≤≤ 7, 16 ≤≤≤≤ n ≤≤≤≤ 23, 32 ≤≤≤≤ n ≤≤≤≤ 39, 48 ≤≤≤≤ n ≤≤≤≤ 55, 64 ≤≤≤≤ n ≤≤≤≤ 71, 80 ≤≤≤≤ n ≤≤≤≤ 87, 96 ≤≤≤≤ n ≤≤≤≤ 103, 112 ≤≤≤≤ n ≤≤≤≤ 119

TM-J8000, TM-U325D, TM-U675: n = 0, 1, 16, 17

[Default] n = 0

[Printers not featuring this command] TM-U375, TM-U925, TM-U300C/D

[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:

Character Width Selection Character Height Selection

Bit6 Bit5 Bit4 Hex Decimal Width Bit2 Bit1 Bit0 Hex Decimal Height

Off Off Off 00 0 1 (normal) Off Off Off 00 0 1 (normal)

Off Off On 10 16 2 (double-width)

Off Off On 01 1 2 (double-height)

Off On Off 20 32 3 Off On Off 02 2 3

Off On On 30 48 4 Off On On 03 3 4

On Off Off 40 64 5 On Off Off 04 4 5

On Off On 50 80 6 On Off On 05 5 6

On On Off 60 96 7 On On Off 06 6 7

On On On 70 112 8 On On On 07 7 8

Character commands

Page 184: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands GS ! Ver. 6.0 p. 184

[Notes] ■ The character size set by this command is effective for all characters (except HRI characters).

■ When characters are enlarged with different heights on one line, all characters on the line are aligned at the baseline.

■ When characters are enlarged by width, the characters are enlarged to the right, based on the left side of the character.

■ ESC ! can also turn double-width and double-height modes on or off.

■ 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.

■ In page mode, double-height and double-width are in the character orientation.

[Model-dependent variations] TM-H5000II TM-H6000

TM-H5000II

When the character width or height is set to three times the normal font size or more, double-width or double-height is printed with slip.

TM-H6000

If triple-size or larger is selected, a double-size character is printed on the face of a slip. The character size printed on the back of a slip cannot be changed.

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"!";CHR$(17); AAAAA�← Select quadruple (double-height x double-width)

PRINT #1, "AAAAA"; CHR$(&HA); BBBBB

PRINT #1, CHR$(&H1D);"!";CHR$(0);

PRINT #1, "BBBBB"; CHR$(&HA);

Page 185: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands GS B Ver. 6.0 p. 185

GS BSETTING COMMAND

[Name] Turn white/black reverse printing mode on/off

[Format] ASCII GS B nHex 1D 42 nDecimal 29 66 n

[Range] 0 ≤ n ≤ 255

[Default] n = 0

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[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] ■ The white/black reverse printing mode is effective for all characters (except for HRI characters).

■ When white/black reverse printing mode is turned on, it also affects the right-side character spacing set by ESC SP.

■ When white/black reverse printing mode is turned on, it does not affect the space between lines.

■ When underline mode is turned on, the printer does not underline white/black reverse characters.

■ In white/black reverse printing mode, characters are printed in white on a black background.

[Model-dependent variations] TM-H5000II TM-H6000

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"B";CHR$(1); ← SelectPRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, CHR$(&H1D);"B";CHR$(0); ← CancelPRINT #1, "BBBBB"; CHR$(&HA);

BBBBB ← Normal printingAAAAA ← White/black reverse printing

Character commands

Page 186: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands GS B Ver. 6.0 p. 186

TM-H5000II

This command is effective for the paper roll.

TM-H6000

This command is effective for the paper roll.

Page 187: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Character commands GS b Ver. 6.0 p. 187

GS bSETTING COMMAND

[Name] Turn smoothing mode on/off

[Format] ASCII GS b nHex 1D 62 nDecimal 29 98 n

[Range] 0 ≤ n ≤ 255

[Default] n = 0

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[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] ■ The smoothing mode is effective for all quadruple-size or larger characters (except for HRI characters).

[Model-dependent variations] TM-H5000II TM-H6000

TM-H5000II

Smoothing is available for quadruple-size or larger characters for paper roll.

TM-H6000

Smoothing is available for quadruple-size or larger characters for paper roll.

Program Example for all printers Print SampleAAAAA

PRINT #1, CHR$(&H1D);"!";CHR$(68); ← Select font sizePRINT #1, CHR$(&H1D);"b";CHR$(1); ← Select smoothingPRINT #1, "AAAAA"; CHR$(&HA);

Character commands

Page 188: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands Ver. 6.0 p. 188

Printing paper commands

Command Name

ESC c 0 Select paper type(s) for printingESC c 1 Select paper type(s) for command settings

ESC f Set cut sheet wait timeGS ( G Select cut sheet control function(s)

PRINTING PAPER COMMANDS

Page 189: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC c 0 Ver. 6.0 p. 189

■ ■ ■ more■ ■ ■ moreESC c 0

EXECUTING COMMAND

SETTING COMMAND

[Name] Select paper type(s) for printing

[Format] ASCII ESC c 0 nHex 1B 63 30 nDecimal 27 99 48 n

[Range] TM-H5000II, TM-J8000, TM-U925: 1 ≤≤≤≤ n ≤≤≤≤ 4TM-U375: 1 ≤≤≤≤ n ≤≤≤≤ 11TM-U325D: 1 ≤≤≤≤ n ≤≤≤≤ 3, 8 ≤≤≤≤ n ≤≤≤≤ 11TM-U300C/D: n = 1, 8, 9TM-H6000: 0 ≤≤≤≤ n ≤≤≤≤ 2, 48 ≤≤≤≤ n ≤≤≤≤ 50TM-U675: 1 ≤≤≤≤ n ≤≤≤≤ 4, n = 8

[Default] TM-H5000II, TM-J8000, TM-U925, TM-U675: n = 3TM-U375, TM-U325D, TM-U300C/D: n = 1TM-H6000: n = 0

[Printers not featuring this command] None

[Description] Selects paper type(s) for printing, using n as follows:

Bit Off/On Hex Decimal Function

0 Off 00 0 Paper roll disabled.

... how to usethis table

On 01 1 Paper roll enabled.

1 Off 00 0 Paper roll disabled.

On 02 2 Paper roll enabled.

2 Off 00 0 Slip paper disabled.

On 04 4 Slip paper enabled.

3 Off 00 0 Validation paper disabled.

On 08 8 Validation paper enabled.

4–7 Off 00 0 Reserved.

Printing paper commands

Page 190: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC c 0 Ver. 6.0 p. 190

[Notes] ■ This command is enabled only when processed at the beginning of the line in standard mode.

■ This command is ignored in page mode.

■ When cut sheet is first enabled, the printer enters the cut sheet waiting status. The printer waits for the cut sheet until the cut sheet is inserted, the waiting time t1 set by ESC f elapses, the printer is reset, or the power is turned off.

■ When the printer is in cut sheet mode and it is disabled, the printer ejects the cut sheet.

■ If the current paper type is specified again, this command is ignored.

■ Both bits 0 and 1 select paper roll and when either bit location 0 or bit location 1 is on, the paper roll is selected as the paper type.

■ During the cut sheet waiting period, the printer processes only a real-time command, such as DLE EOT or DLE ENQ.

■ It is possible to cancel the cut sheet waiting status using DLE ENQ 3. In this case, however, data in the print and receive buffers is cleared. The cut sheet insertion waiting status can be confirmed by DLE EOT.

■ Multiple sheets with different printable areas cannot be selected simultaneously.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

Program Example for all printersPRINT #1, CHR$(&H1B);"c0";CHR$(1); ← Select paper type (paper roll)

PRINT #1, "AAAAA"; CHR$(&HA); ← Print on paper roll

PRINT #1, CHR$(&H1B);"c0";CHR$(4); ← Select print sheet (slip)

PRINT #1, "BBBBB"; CHR$(&HC); ← Print on slip

Print Sample <paper roll> Print Sample <slip>AAAAA BBBBB

Page 191: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC c 0 Ver. 6.0 p. 191

TM-H5000II

Either the paper roll or slip paper can be used as the paper type. Slip and paper roll cannot be selected simultaneously. When a slip is not inserted correctly, the printer ejects the slip and waits for the slip to be inserted again. The SLIP LED blinks when the printer is in the slip ejection waiting status. The printer processes the next operation after checking that the slip is removed. The slip ejection waiting status can be checked by normal ASB status after customization.

TM-U375

Paper roll, slip, and validation can be used as the paper type. Slip and validation cannot be selected simultaneously. Be sure to use pressure-sensitive paper when cut sheet and paper roll are selected simultaneously. Otherwise, the print on the paper roll will not be the expected output.

TM-U925

Paper roll and slip can be used as the paper type. The paper roll and slip cannot be selected simultaneously.

TM-U325D

Paper roll and validation can be used as the paper type. Be sure to use pressure-sensitive paper when paper roll and validation are selected simultaneously. Otherwise, the print on the paper roll will not be the expected output.

TM-U300C/D

Bit 1 of n is undefined.

Paper roll and validation can be used as the paper type. Be sure to use pressure-sensitive paper when paper roll and validation are selected simultaneously. Otherwise, the printing result will not be on the paper roll. The printer can print only one line with normal size or double-width characters on validation paper. After printing one line, the printer waits for the validation paper to be removed. After the validation paper is removed, paper roll is selected automatically.

Page 192: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC c 0 Ver. 6.0 p. 192

TM-J8000

Paper roll and slip can be used as the paper type. Bit 3 is undefined. The paper roll and slip cannot be selected simultaneously.

TM-H6000

Paper roll and slip can be used as the paper type. The paper roll and slip cannot be selected simultaneously. When slip is selected as the paper type, the face of the slip is selected. If the length of the slip is too short or the slip is not inserted correctly, the printer ejects the slip and waits for insertion of another slip. The SLIP LED blinks when the printer is in the slip ejection waiting status. The printer processes the next operation after checking that the slip is removed. The slip ejection waiting status can be checked by normal ASB status after customization.

TM-U675

Paper roll, slip, and validation can be used for the paper type. They cannot be selected simultaneously. If the length of the slip is too short or the slip is not inserted correctly, the printer ejects the slip and waits for insertion of another slip. The SLIP LED blinks when the printer is in the slip ejection waiting status. The printer processes the next operation after checking that the slip is removed. The slip ejection waiting status can be checked by normal ASB status after customization.

Page 193: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC c 1 Ver. 6.0 p. 193

■ ■ ■ more■ ■ ■ moreESC c 1

SETTING COMMAND

[Name] Select paper type(s) for command settings

[Format] ASCII ESC c 1 nHex 1B 63 31 nDecimal 27 99 49 n

[Range] TM-H5000II, TM-H6000: 1 ≤≤≤≤ n ≤≤≤≤ 4; TM-U375, TM-U675: 1 ≤≤≤≤ n ≤≤≤≤ 15; TM-J8000, TM-U925: 1 ≤≤≤≤ n ≤≤≤≤ 7; TM-U325D: 1 ≤≤≤≤ n ≤≤≤≤ 3, 8 ≤ ≤ ≤ ≤ n ≤≤≤≤ 11

[Default] TM-H5000II, TM-H6000, TM-U675: n = 3; TM-U375: n = 15; TM-J8000, TM-U925: n = 7; TM-U325D: n = 11

[Printers not featuring this command] TM-U300C/D

[Description] Selects paper type(s) for setting, using�n as follows:

Bit Off/On Hex Decimal Function

0 Off 00 0 Paper roll disabled. ... how to usethis tableOn 01 1 Paper roll enabled.

1 Off 00 0 Paper roll disabled.

On 02 2 Paper roll enabled.

2 Off 00 0 Slip paper disabled.

On 04 4 Slip paper enabled.

3 Off 00 0 Validation paper disabled.

On 08 8 Validation paper enabled.

4–7 Off 00 0 Reserved.

Printing paper commands

Page 194: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC c 1 Ver. 6.0 p. 194

[Notes] ■ When multiple paper types are selected, each setting is used for all paper types selected.

■ Both bits 0 and 1 indicate paper roll and when either bit 0 or bit 1 is on or both are on, the paper roll is selected as the paper type for command settings.

■ The commands that need you to select a paper type for command settings are ESC 2, ESC 3, GS L, and GS W.

■ If the printer supports both slip and validation, ESC C needs to select a paper type for command settings.

■ If the printer has multiple print heads with different pitches, the commands that need you to select paper types for settings are ESC &, ESC ?, GS ✻, and GS P.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-J8000TM-H6000 TM-U675

TM-H5000II

Paper roll and slip paper can be used as the paper type for command settings. The slip and paper roll cannot be selected simultaneously. The commands that need you to select a paper type for command settings are ESC &, ESC 2, ESC 3, ESC ?, GS ✻✻✻✻, GS L, GS P and GS W.

TM-U375

Paper roll, slip and validation paper can be used as the paper type for command settings. It is possible to select multiple paper types. If different settings are set for paper roll and cut sheet, and both the paper roll and the cut sheet are selected for printing by ESC c 0, printer operation is based on the settings for cut sheet. The commands that need you to select paper types for command settings are ESC 2, ESC 3, ESC C, GS L, and GS W.

Program Example for all printersPRINT #1, CHR$(&H1B);"c1";CHR$(1); ← Select paper type for command settings (paper roll)

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180);

PRINT #1, CHR$(&H1B);"3";CHR$(30); ← Set line spacing for paper roll

Page 195: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC c 1 Ver. 6.0 p. 195

TM-U925

Paper roll and slip can be used as the paper type for command settings. It is possible to select paper roll and slip simultaneously. The commands that need you to select paper types for command settings are ESC 2 and ESC 3.

TM-U325D

Paper roll and validation can be used as the paper type for command settings. The commands that need you to select paper type for command settings are ESC 2, ESC 3, GS L, and GS W. If different settings are set for the paper roll and validation and both the paper roll and validation are selected for printing by ESC c 0, printer operation is based on the settings for validation.

TM-J8000

Paper roll and slip paper can be used as the paper type for command settings. Paper roll and slip paper can be selected simultaneously. The setting of this command affects ESC 2, ESC 3, GS L, and GS W.

TM-H6000

Paper roll and slip paper can be used as the paper type for command settings. When slip is selected, the settings for the face of the slip are changed. Paper roll and slip cannot be selected simultaneously. The commands that are affected by this command are ESC &, ESC 2, ESC 3, ESC ?, GS ✻✻✻✻, GS L, GS P, and GS W.

TM-U675

Paper roll, slip, and validation can be used as the paper type for command settings. All the paper types can be enabled or disabled. The commands that are affected by this command are ESC 2, ESC 3, ESC C, GS L, and GS W.

Page 196: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC f Ver. 6.0 p. 196

■ ■ ■ more■ ■ ■ moreESC f

SETTING COMMAND

[Name] Set cut sheet wait time

[Format] ASCII ESC f t1 t2Hex 1B 66 t1 t2Decimal 27 102 t1 t2

[Range] 0 ≤ t1 ≤ 150 ≤ t2 ≤ 64

[Default] t1 = 0TM-H5000II: t2 = 5; TM-H6000, TM-J8000, TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-U675: t2 = 10

[Printers not featuring this command] None

[Description] Sets the time that the printer waits for the cut sheet (slip, validation, and check paper). • The waiting time for the cut sheet to be inserted is t1 × 1 minutes.

• The time from detection of the cut sheet to the start of printing is t2 × 0.1 seconds.

[Notes] ■ When t1=0, the cut sheet waiting time is not set, and the printer continues waiting for the cut sheet to be inserted.

■ If the sheet is not inserted within [t1 × 1 minutes], the printer cancels cut sheet and selects the paper roll as the paper type.

■ In the following cases, the printer continues waiting for the cut sheet to be inserted, regardless of the settings of t1.

• Waits for the cut sheet to be inserted when the paper sensor detects no paper with the cut sheet sensor enabled for paper-end stop by ESC c 4.

• Waits for the cut sheet to be inserted when the printer recovers from an error.■ It is possible to cancel the cut sheet waiting state using DLE ENQ 3. In this case, however, the data in the

print and receive buffers is cleared.

■ This setting alone, however, does not cause the printer to immediately start waiting for the cut sheet to be inserted. The setting becomes effective when the printer executes ESC c 0 or FS a 0.

Printing paper commands

Page 197: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands ESC f Ver. 6.0 p. 197

[Model-dependent variations] TM-U300C/D

TM-U300C/D

The cut sheet wait time set by this command is effective only when the optional validation sensor is installed.

Program Example for all printers

PRINT #1, CHR$(&H1B);"f";CHR$(15);CHR$(20);

PRINT #1, CHR$(&H1B);"c0";CHR$(4); ← Select paper type

Page 198: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands GS ( G Ver. 6.0 p. 198

■ ■ ■ more■ ■ ■ moreGS ( G

EXECUTING COMMAND

[Name] Select cut sheet control function(s)

[Format] ASC II GS ( G pL pH fn mHex 1D 28 47 pL pH fn mDecimal 29 40 71 pL pH fn m

[Printers not featuring this command] TM-J8000, TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] pL = 2, pH = 0 ((pL + pH × 256) = 2)fn = 48, 84m differs, depending on the value of fn

[Description] Select cut sheet control function:

• pL, pH specifies (pL + pH × 256) as the number of bytes after pH (fn and m).

• fn specifies the type of slip control.

[Notes] ■ The function of this command is defined by fn and the operation differs, depending on the function selected.

fn Function

48 Function 1 Specifies slip as the paper type and the side to be printed.

84 Function 2 Feeds to the print starting position for the slip.

Printing paper commands

Page 199: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands GS ( G Ver. 6.0 p. 199

Program example and print samples using both Functions (1) and (2)

PRINT #1, CHR$(&H1D);”(G”;CHR$(2);CHR$(0);CHR$(48);CHR$(4); ← Select the face of a slip [function (1)]

PRINT #1, CHR$(&H1D);”(G”;CHR$(2);CHR$(0);CHR$(84);CHR$(1); ← Move to a print starting position [function (2)]

PRINT #1, ”AAAAA”;CHR$(&HA); ← Print on the front side of the slip

PRINT #1, CHR$(&H1D);”(G”;CHR$(2);CHR$(0);CHR$(48);CHR$(68); ← Select the back of the slip [function (1)]

PRINT #1, CHR$(&H1D);”(G”;CHR$(2);CHR$(0);CHR$(84);CHR$(1); ← Move to a print starting position [function (2)]

PRINT #1, ”BBBBB”;CHR$(&HA); ← Print on the back of the slip

Print sample (face of a slip)

AAAAA

Print sample (back of a slip)

BBBBB

Page 200: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands GS ( G Ver. 6.0 p. 200

■ ■ ■ more■ ■ ■ moreGS ( G pL pH fn m <Function 1>

[Format] ASC II GS ( G pL pH fn mHex 1D 28 47 02 00 30 mDecimal 29 40 71 2 0 48 m

[Range] TM-U675: m = 4TM-H6000: m = 4, 68

[Description] Select slip as the paper type and the side of the sheet to be printed:

• pL, pH specifies (pL + pH × 256) for the number of bytes after fn.

• m specifies the side to be printed on a slip.

[Notes] ■ This command is enabled only when processed at the beginning of the line in standard mode.

■ This command is ignored in page mode.

■ Slip is selected as the paper type by this command.

■ When paper roll is selected as the paper type during the execution of this command, the printer waits for a slip to be inserted.

■ When validation is selected as the paper type during the execution of this command, the printer waits for a slip to be inserted after the validation is ejected.

■ The printer is in the slip insertion waiting status until the slip sheet is inserted, the waiting time t1 set by ESC f elapses, the printer is reset, or the power is turned off.

■ When slip is selected as the paper type, this command only executes switching the print side. The printer does not perform paper feeding, such as ejecting paper, waiting for paper insertion, and moving to the print starting position.

m Function

4 Specifies the face of the slip

68 Specifies the back of the slip

Page 201: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands GS ( G Ver. 6.0 p. 201

■ It is possible to cancel the slip sheet waiting status using DLE ENQ 3. In this case, however, data in the print and receive buffers is cleared. The slip sheet insertion waiting status can be confirmed by DLE EOT and ASB status after executing customizing.

■ If this command is executed when MICR is selected, the MICR function is canceled. The printer selects a slip as the paper type and does not perform paper feeding, such as ejecting paper, waiting for paper insertion, and moving to the print starting position.

[Model-dependent variations] TM-H6000 TM-U675

TM-H6000

The SLIP LED blinks when the printer waits for a slip to be ejected. In this case, the printer processes the next operation after checking to confirm that the slip has been ejected. The status of the slip ejection can be checked by a normal ASB status after a customization.

Face is on which printing is performed by a serial impact dot head.

Back is on which printing is performed by a shuttle head.

The back can be specified (m = 68) when the printer has the endorsement printing function.

TM-U675

The SLIP LED blinks when the printer waits for the cut sheet to be ejected. In this case, the printer processes the next operation after checking to confirm that the cut sheet has been ejected. The status of the cut sheet ejection can be checked by a normal ASB status after a customization.

Page 202: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands GS ( G Ver. 6.0 p. 202

GS ( G pL pH fn m <Function 2>

[Format] ASC II GS ( G pL pH fn mHex 1D 28 47 02 00 54 mDecimal 29 40 71 2 0 84 m

[Range] m = 1

[Description] Feed slip to print starting position on the currently selected paper side when slip paper is selected as the paper source.

[Notes] ■ This command is ignored if paper other than a slip is selected as the paper source.

■ When processing this command, the printer performs either of the following, depending on the position where paper is stopped.

• Feeds paper to the print starting position.

• Ejects paper and wait for slip insertion.

[Model-dependent variations] TM-H6000 TM-U675

TM-H6000

There is an area where the printer cannot execute a reverse paper feed. If the bottom edge of a paper is in this area, the printer waits for a paper to be inserted after ejecting the paper. In this case, insert the paper which has been ejected.

The area where the printer cannot execute a reverse paper feed:

• When an endorsement printer is equipped:

The printer exceeds the area for approximately 92 mm {523/144 inch} from the point where the BOF sensor detects a paper end.

• When an endorsement printer is not equipped:

The printer exceeds the area for approximately 75 mm {425/144 inch} from the point where the BOF sensor detects a paper end.

Page 203: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Printing paper commands GS ( G Ver. 6.0 p. 203

TM-U675

There is an area where the printer cannot execute a reverse paper feed. If the bottom edge of a paper is in this area, the printer waits for a paper to be inserted after ejecting the paper. In this case, insert the paper which has been ejected.

The area where the printer cannot execute a reverse paper feed:

• The printer exceeds the area for approximately 75 mm {425/144 inch} from the point where the BOF sensor detects a paper end.

Page 204: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Panel button command Ver. 6.0 p. 204

Panel button command

Command Name

ESC c 5 Enable/disable panel buttons

PANEL BUTTON COMMAND

Page 205: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Panel button command ESC c 5 Ver. 6.0 p. 205

■ ■ ■ more■ ■ ■ moreESC c 5

SETTING COMMAND

[Name] Enable/disable panel buttons

[Format] ASCII ESC c 5 nHex 1B 63 35 nDecimal 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] ■ 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.

■ When the LED blinks to indicate that the printer is waiting for a macro to be executed, the paper feed button is enabled (but paper cannot be fed).

■ To prevent problems caused by accidentally pressing the buttons, use this command to disable the buttons.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

Program Example for all printers

PRINT #1, CHR$(&H1B);"c5";CHR$(1); ← Disable panel buttons

Panel button command

Page 206: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Panel button command ESC c 5 Ver. 6.0 p. 206

TM-H5000II

The panel buttons are FEED, FORWARD, REVERSE, and RELEASE. When the PAPER OUT LED and RELEASE LED blink to indicate that the printer is waiting for a macro to be executed, the FEED, FORWARD, and REVERSE buttons are enabled regardless of the setting of this command (but paper cannot be fed).

When the paper roll cover is open, the FEED button is disabled regardless of the setting of this command.

When the front cover is open, the FORWARD, REVERSE, and RELEASE buttons are disabled regardless of the setting of this command.

TM-H6000

• The panel buttons are FEED and RELEASE. When the PAPER FEED LED blinks during a macro, the FEED button is enabled, regardless of the setting of the command. In this case, paper cannot be fed with the button.

• When paper roll is selected as the paper type and the paper roll cover or the unit is open, the FEED button is disabled, regardless of the setting of the command.

• When the paper roll is selected as the paper type and the front cover is open, the FEED button operates based on the command.

• When cut sheet is selected as the paper type, and the paper roll cover is open, the FEED button operates based on the command.

• When cut sheet is selected as the paper type, and the front cover is open or the unit is open, the FEED button is enabled, regardless of the setting of the command.

• When the paper roll cover, front cover, or unit is open, the RELEASE button is enabled regardless of the setting of the command.

Page 207: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Panel button command ESC c 5 Ver. 6.0 p. 207

TM-U675

• The panel buttons are FEED and RELEASE. When the PAPER FEED LED blinks during a macro, the FEED button is enabled, regardless of the setting of the command. In this case, paper cannot be fed with the button.

• When paper roll is selected as the paper type and the paper roll cover is open, the FEED button is enabled, regardless of the setting of the command.

• When a slip or validation sheet is selected as the paper type and the paper roll cover is open, the FEED button is disabled, regardless of a setting of the command.

• When the paper roll cover or the front cover is open, the RELEASE button is enabled, regardless of the setting of this command.

TM-U375

The panel buttons are PAPER FEED and RELEASE.

When the cover is open, the PAPER FEED is disabled and RELEASE is enabled regardless of the settings of this command.

TM-U925

The panel buttons are RECEIPT FEED and SLIP FEED.

When the cover is open, these buttons are enabled regardless of the settings of this command.

TM-U325D

The panel buttons are FEED and RELEASE.

When the cover is open, these buttons are enabled regardless of the settings of this command.

TM-U300C/D

The panel button is FEED.

When the cover is open, this button is enabled regardless of the settings of this command.

Page 208: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Panel button command ESC c 5 Ver. 6.0 p. 208

TM-J8000

Panel buttons are PAPER FEED and SLIP FEED. There is a CLEANING button under the cover, but this is not affected by the setting of this command.

When the PAPER OUT light blinks, the PAPER FEED and SLIP FEED buttons are enabled regardless of the setting of this command. However, paper cannot be fed by the buttons. When the paper roll cover is open or cleaning is performed, all buttons are disabled regardless of the setting of this command.

When the carriage cover is open, all buttons are enabled regardless of the setting of this command.

Page 209: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Paper sensor commands Ver. 6.0 p. 209

Paper sensor commands

Command Name

ESC c 3 Select paper sensor(s) to output paper-end signalsESC c 4 Select paper sensor(s) to stop printing

PAPER SENSOR COMMANDS

Page 210: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Paper sensor commands ESC c 3 Ver. 6.0 p. 210

■ ■ ■ more■ ■ ■ moreESC c 3

SETTING COMMAND

[Name] Select paper sensor(s) to output paper-end signals

[Format] ASCII ESC c 3 nHex 1B 63 33 nDecimal 27 99 51 n

[Range] 0 ≤ n ≤ 255

[Default] TM-H5000II, TM-J8000, TM-U325D: n = 15 TM-U375, TM-U300C/D: n = 3TM-H6000, TM-U675: n = 0

[Printers not featuring this command] TM-U925

[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

0 Off 00 0 Paper roll near-end sensor disabled.

... how to usethis table

On 01 1 Paper roll near-end sensor enabled.

1 Off 00 0 Paper roll near-end sensor disabled.

On 02 2 Paper roll near-end sensor enabled.

2 Off 00 0 Paper roll end sensor disabled.

On 02 4 Paper roll end sensor enabled.

3 Off 00 0 Paper roll end sensor disabled.

On 08 8 Paper roll end sensor enabled.

4 Off 00 0 Slip TOF sensor disabled.

On 10 16 Slip TOF sensor enabled.

5 Off 00 0 Slip BOF sensor disabled.

On 20 32 Slip BOF sensor enabled

Paper sensor commands

Page 211: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Paper sensor commands ESC c 3 Ver. 6.0 p. 211

[Notes] ■ This command is enabled only with a parallel interface and is ignored with a serial interface.

■ The paper roll near-end sensor is enabled when either bit 0 or bit 1 is on or both are on.

■ The paper roll end sensor is enabled when either bit 2 or bit 3 is on or both are on.

■ 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.

■ Some sensors are not supported or there are some sensors that are not used to output a paper-end signal, depending on the printer model.

■ The names of some sensors differ depending on the printer model.

[Model-dependent variations] TM-H5000II TM-U375 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

6 Off 00 0 Validation TOF sensor disabled.

On 40 64 Validation TOF sensor enabled.

7 Off 00 0 Validation BOF sensor disabled.

On 80 128 Validation BOF sensor enabled.

Program Example for all printers

PRINT #1, CHR$(&H1B);"c3";CHR$(4); ← Paper roll end sensor enabled

Bit Off/On Hex Decimal Function

Page 212: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Paper sensor commands ESC c 3 Ver. 6.0 p. 212

TM-H5000II

Bits 6 and 7 are not supported.

TM-U375

Bits 2 and 3 are not supported.

Bits 4, 5, 6, and 7 indicate the same sensor. The name of the sensor is cut sheet sensor. The cut sheet sensor is enabled when either bit 4, bit 5, bit 6, or bit 7 is on or all bits are on.

TM-U325D

Bits 4 and 5 are not supported. Bits 6 and 7 indicate the same paper sensor. The name of the paper sensor is “validation sensor”.

TM-U300C/D

Bits 1, 3, 4, 5, 6, and 7 are not supported. Bit 6 or 7 is enabled only when the optional validation sensor is installed.

TM-J8000

Bits 4, 6 and 7 are not supported.

TM-H6000

Bits 6 and 7 are not supported.

TM-U675

Bits 6 and 7 indicate the same paper sensor. The sensor is a validation sensor. If either bit 6 or bit 7 or both are enabled, the validation sensor is enabled.

Page 213: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Paper sensor commands ESC c 4 Ver. 6.0 p. 213

■ ■ ■ more■ ■ ■ moreESC c 4

SETTING COMMAND

[Name] Select paper sensor(s) to stop printing

[Format] ASCII ESC c 4 nHex 1B 63 34 nDecimal 27 99 52 n

[Range] 0 ≤ n ≤ 255

[Default] TM-H5000II, TM-U375, TM-U300C/D: n = 0; TM-U925, TM-U325D: n = 12; TM-J8000, TM-H6000: n = 32TM-U675: n = 160

[Printers not featuring this command] None

[Description] Selects whether to stop printing or not when the paper runs out using n as follows:

Bit Off/On Hex Decimal Function

0 Off 00 0 Paper roll near-end sensor disabled.

... how to usethis table

On 01 1 Paper roll near-end sensor enabled.

1 Off 00 0 Paper roll near-end sensor disabled

On 02 2 Paper roll near-end sensor enabled.

2 Off 00 0 Paper roll end sensor disabled.

On 02 4 Paper roll end sensor enabled.

3 Off 00 0 Paper roll end sensor disabled.

On 08 8 Paper roll end sensor enabled.

4 Off 00 0 Slip TOF sensor disabled.

On 10 16 Slip TOF sensor enabled.

Paper sensor commands

Page 214: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Paper sensor commands ESC c 4 Ver. 6.0 p. 214

■ ■ ■ more■ ■ ■ more

[Notes] ■ It is possible to select multiple sensors to stop printing. When any sensor detects a paper-end, printing stops.

■ When a paper sensor is enabled with this command, printing stops only when the corresponding paper is selected as the paper type. Paper type can be selected by ESC c 0.

■ Some sensors are not present, depending on the printer model.

■ The names of some sensors differ, depending on the printer model.

■ The paper roll near-end sensor is enabled when either bit 0 or bit 1 is on or both are on.

■ The paper roll end sensor is enabled when either bit 2 or bit 3 is on or both are on.

■ When a paper near-end is detected, printing stops after printing the current line and feeding the paper. The printer goes offline and PAPER LED comes on after printing stops. To resume printing, cancel the "paper roll near-end" status by replacing the paper roll.

■ 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 offline, but the PAPER LED comes on.

■ When a paper roll end is detected, the printer performs the same operations as when a paper roll near-end is detected.

■ When the slip TOF sensor or the slip BOF sensor is enabled and a paper-end is detected, the printer ejects the paper after printing as much as possible and enters the cut sheet waiting state. The printer does not go offline.

5 Off 00 0 Slip BOF sensor disabled.

On 20 32 Slip BOF sensor enabled.

6 Off 00 0 Validation TOF sensor disabled.

On 40 64 Validation TOF sensor enabled.

7 Off 00 0 Validation BOF sensor disabled.

On 80 128 Validation BOF sensor enabled.

Bit Off/On Hex Decimal Function

Page 215: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Paper sensor commands ESC c 4 Ver. 6.0 p. 215

■ When the slip TOF sensor or the slip BOF sensor is disabled and a paper-end is detected, the printer does not stop printing and ejects the paper.

■ When the validation TOF sensor or the validation BOF sensor detects a paper-end, the printer performs the same operations as when the slip TOF sensor or the slip BOF sensor detects a paper-end.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

TM-H5000II

Bits 2, 3, 6 and 7 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.

TM-U375

Bits 2, 3, 4, and 6 are undefined.

When a paper roll near-end is detected, the JOURNAL OUT LED comes on.

TM-U925

Bits 6 and bit 7 are undefined.

Bits 4 and 5 indicate the same sensor. The name of the sensor is "slip insertion sensor". The slip insertion sensor is enabled when either bit 4 or bit 5 is on or both are on.

When a paper roll near-end or a paper roll end is detected, the RECEIPT OUT LED comes on.

Program Example for all printers

PRINT #1, CHR$(&H1B);"c4";CHR$(1); ← Paper roll near-end sensor enabled

Page 216: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Paper sensor commands ESC c 4 Ver. 6.0 p. 216

TM-U325D

Bits 4 and 5 are undefined. Bits 6 and 7 indicate the same paper sensor. The name of the paper sensor is “validation sensor”. When either bit is on or both are on, the validation sensor is enabled. When a paper roll near-end or a paper roll end is detected, the RECEIPT OUT LED comes on.

TM-U300C/D

Bits 1, 3, 4, 5, 6, and 7 are undefined.

When a paper roll near-end or a paper roll end is detected, the PAPER OUT LED comes on.

TM-J8000

Bits 2, 3, 4, 6 and 7 are undefined.

Paper-roll end sensor is always enabled and when the sensor detects a paper-end, printing stops.

When a paper-end or a paper near-end is detected, the PAPER OUT light blinks.

Whether slip BOF sensor is (bit 5) enabled or disabled, the slip BOF sensor stops printing when it detects a paper-end. However, the bottom margin is different.

Slip BOF sensor enabled: bottom margin is 16 mm {0.63 inch}

Slip BOF sensor disabled: bottom margin is 10 mm {0.39 inch}

TM-H6000

Bits 2, 3, 4, 6, and 7 are not supported.

Paper roll end sensor is always enabled and printing stops when the sensor detects a paper end.

When a paper end or paper near end is detected, the PAPER OUT LED blinks.

TM-U675

Bits 2, 3, 4, and 6 are not supported.

Paper roll end sensor is always enabled and printing stops when the sensor detects a paper end.

When a paper end or paper near end is detected, the PAPER OUT LED blinks.

Page 217: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands Ver. 6.0 p. 217

Print position commands

Command Name

HT Horizontal tabESC $ Set absolute print positionESC D Set horizontal tab positionsESC T Select print direction in page modeESC W Set printing area in page mode

ESC \ Set relative print positionESC a Select justificationGS $ Set absolute vertical print position in page modeGS L Set left marginGS T Set print position to the beginning of print lineGS W Set printing area width

GS \ Set relative vertical print position in page mode

PRINT POSITION COMMANDS

Page 218: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands HT Ver. 6.0 p. 218

HTEXECUTING COMMAND

[Name] Horizontal tab

[Format] ASCII HTHex 09Decimal 9

[Range] None

[Default] None

[Printers not featuring this command] TM-U925

[Description] Moves the printing position to the next horizontal tab.

[Notes] ■ This command is ignored unless the next horizontal tab position has been set.

■ Horizontal tab positions are set by ESC D.

■ If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [Printing area width + 1].

■ 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] None

See program example and print sample for HT and ESC D.

Print position commands

Page 219: Epson Programming Guide

ESC $EXECUTING COMMAND

[Name] Set absolute print position

[Format] ASCII ESC $ nL nH

Hex 1B 24 nL nH

Decimal 27 36 nL nH

[Range] 0 ≤ nL ≤ 2550 ≤ nH�≤ 255

[Printers not featuring this command] TM-U300C/D

[Description] Sets the print starting position to (nL + nH ×�256) × (horizontal or vertical motion unit) from the beginning of the line.

[Notes] ■ The printer ignores any setting that exceeds the printing area.

■ When standard mode is selected, the horizontal motion unit is used.

■ 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.

■ When a left margin is set in standard mode, the position of the left margin is the beginning of the line.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-J8000TM-H6000 TM-U675

See program example and print sample for ESC $ and ESC \.

Print position commands

Page 220: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC $ Ver. 6.0 p. 220

TM-H5000II

The vertical or horizontal motion unit is specified by GS P.

TM-U375

The vertical or horizontal motion unit is specified by GS P.

TM-U925

The vertical or horizontal motion unit is specified by GS P.

TM-U325D

The horizontal motion unit is 0.16 mm {1/160 inch} (the minimum movement amount). This value equals a half dot pitch.

TM-J8000

The horizontal or vertical motion unit is specified by GS P.

TM-H6000

The vertical or horizontal motion unit for a paper roll and the face of a slip is specified by GS P.

The horizontal motion unit for the back of a slip is approximately 0.2 mm {1/127 inch}. This is equivalent to a normal dot pitch (minimum mechanical pitch).

TM-U675

The vertical or horizontal motion unit is specified by GS P.

Page 221: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC D Ver. 6.0 p. 221

ESC DSETTING COMMAND

[Name] Set horizontal tab positions

[Format] ASCII ESC D n1 ... nk NULHex 1B 44 n1 ... nk 00Decimal 27 68 n1 ... nk 0

[Range] 1 ≤ n ≤ 2550 ≤ k ≤ 32TM-H6000, TM-U675: 1 ≤≤≤≤ n1 ≤≤≤≤ n2 ≤≤≤≤ ... ≤≤≤≤ nk ≤≤≤≤ 255

[Default] n = 8, 16, 24, 32, ... (Every eight characters for the default font set by ESC ! or ESC M)

[Printers not featuring this command] TM-U925

[Description] Sets a horizontal tab to n columns from the beginning of the line.• k indicates the number of horizontal tab positions to be set.

[Notes] ■ The horizontal tab position is stored as a value of [character width × n] measured from the beginning of the line. The character width includes the right-side character spacing, and double-width characters are selected with twice the width of normal characters.

■ A maximum of 32 horizontal tab positions can be set. Data exceeding 32 horizontal tab positions are processed as normal data.

■ This command cancels any previous horizontal tab settings.

■ Transmit [n]k in ascending order and place a NUL code at the end. ESC D NUL cancels all horizontal tab positions.

■ 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.

■ k is not transmission data to the printer.

[Model-dependent variations] None

See program example and print sample for HT and ESC D.

Print position commands

Page 222: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC D Ver. 6.0 p. 222

Program example for HT and ESC D

Program Example Print Sample

PRINT #1, "0123456789012345678901234567890123456";

PRINT #1, CHR$(&HA);

FOR i=1 TO 4

PRINT #1, CHR$(&H9); "H"; ← Execute HT

NEXT i : PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1B);"D";CHR$(10);CHR$(20);

PRINT #1, CHR$(30);CHR$(0); ← Set HT positions

FOR i=1 TO 4

PRINT #1, CHR$(&H9); "H"; ← Execute HT

NEXT i : PRINT #1, CHR$(&HA);

0123456789012345678901234567890123456

H H H HH H HH↑ ↑ ↑

8 16 24 32

Tabposition10

Default →

Tabposition30

Tabposition20

Page 223: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC T Ver. 6.0 p. 223

■ ■ ■ more■ ■ ■ moreESC T

SETTING COMMAND

[Name] Select print direction in page mode

[Format] ASCII ESC T nHex 1B 54 nDecimal 27 84 n

[Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51

[Default] n = 0

[Printers not featuring this command] TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Description] In page mode, selects the print direction and starting position using�n as follows:

[Notes] ■ The print direction set by this command is effective only in page mode.

■ This command setting has no effect in standard mode.

■ 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 \

n Print Direction Starting Position

0, 48 Left to right Upper left (A in the figure)

1, 49 Bottom to top Lower left (B in the figure)

2, 50 Right to left Lower right (C in the figure)

3, 51 Top to bottom Upper right (D in the figure)

A

D

B

CPrinting area

Print position commands

Page 224: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC T Ver. 6.0 p. 224

[Model-dependent variations] TM-H5000II TM-H6000

TM-H5000II

Page mode can be used only when the paper roll is selected as the paper type. However, the setting is always enabled.

TM-H6000

In page mode, the command affects printing when a paper roll or the face of a slip is selected as the paper type.

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"L"; ← Select page modePRINT #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 areaPRINT #1, CHR$(&H1B);"T";CHR$(0); ← Select print directionPRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB"; CHR$(&HA);

PRINT #1, CHR$(&H1B);"T";CHR$(1); ← Select print directionPRINT #1, "CCCCC"; CHR$(&HA);

PRINT #1, "DDDDD"; CHR$(&HA);

PRINT #1, CHR$(&H1B);"T";CHR$(2); ← Select print directionPRINT #1, "EEEEE"; CHR$(&HC); ← Batch print and return to standard mode

AAAAABBBBB

CCCCC

DDDDD

EEEEE

Printing

by ESC Warea set

Page 225: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC W Ver. 6.0 p. 225

■ ■ ■ more■ ■ ■ moreESC W

SETTING COMMAND

[Name] Set printing area in page mode

[Format] ASCII ESC W xL xH yL yH dxL dxH dyL dyH

Hex 1B 57 xL xH yL yH dxL dxH dyL dyH

Decimal 27 87 xL xH yL yH dxL dxH dyL dyH

[Range] 0 ≤ xL, xH, yL, yH, dxL, dxH, dyL, dyH ≤ 255(except for dxL = dxH = 0 or dyL = dyH = 0)TM-H6000, TM-U675: 0 ≤≤≤≤ xL, xH, yL, yH, dxL, dxH, dyL, dyH ≤≤≤≤ 255

where 0 ≤≤≤≤ xL + xH ×××× 256 ≤≤≤≤ 65535where 0 ≤≤≤≤ yL + yH ×××× 256 ≤≤≤≤ 65535where 0 ≤≤≤≤ dxL + dxH ×××× 256 ≤≤≤≤ 65535where 0 ≤≤≤≤ dyL + dyH ×××× 256 ≤≤≤≤ 65535

[Default] xL = 0, xH = 0, yL = 0, yH = 0Printing area width and printing area height = entire printable areaTM-H5000II: dxL = 0, dxH = 2, dyL = 126, dyH = 6TM-U375: dxL = 144, dxH = 1, dyL = 128, dyH = 5TM-H6000: For paper roll: dxL = 0, dxH = 2, dyL = 126, dyH = 6

For slip paper (face): dxL = 28, dxH = 2, dyL = 128, dyH = 5TM-U675: When DIP switch [SW2-4] is Off:

For paper roll: dxL = 194, dxH = 1, dyL = 0, dyH = 0For cut sheet: dxL = 28, dxH = 2, dyL = 0, dyH = 0

When DIP switch [SW2-4] is On:For paper roll: dxL = 144, dxH = 1, dyL = 128, dyH = 5For cut sheet: dxL = 144, dxH = 1, dyL = 128, dyH = 5

[Printers not featuring this command] TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[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)

Print position commands

Page 226: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC W Ver. 6.0 p. 226

• Printing area height = (dyL + dyH × 256) × (vertical motion unit)

[Notes] ■ Both printing area width and height cannot be set to 0.

■ The absolute origin is the upper left of the printable area.

■ If the horizontal or vertical logical origin is set outside the printable area, this command is canceled.

■ 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].

■ 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].

■ The printing area and the logical origin set by this command is effective only in page mode.

■ This command setting has no effect in standard mode.

[Model-dependent variations] TM-H5000II TM-U375 TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"L";← Select page modePRINT #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 areaPRINT #1, CHR$(&H1B);"T";CHR$(0); ← Select print directionPRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB"; CHR$(&HA);

PRINT #1, CHR$(&H1B);"T";CHR$(2); ← Select print directionPRINT #1, "CCCCC"; CHR$(&HA);

PRINT #1, "DDDDD"; CHR$(&HC); ← Batch print and return to standard mode

AAAAABBBBB

CCCCCDDDDD

Printing

by ESC Warea set

Page 227: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC W Ver. 6.0 p. 227

TM-H5000II

Page mode can be used only when the paper roll is selected as the paper type.

The vertical or horizontal motion unit is specified by GS P for the paper roll.

TM-U375

The vertical or horizontal motion unit is specified by GS P.

TM-H6000

The vertical or horizontal motion unit is specified by GS P.

In page mode, the command affects printing when paper roll or the face of a slip is selected as the paper type.

TM-U675

The vertical or horizontal motion unit is specified by GS P.

Page 228: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC \ Ver. 6.0 p. 228

ESC \EXECUTING COMMAND

[Name] Set relative print position

[Format] ASCII ESC \ nL nH

Hex 1B 5C nL nH

Decimal 27 92 nL nH

[Range] 0 ≤ nL ≤ 2550 ≤ nH ≤ 255

[Default] None

[Printers not featuring this command] TM-U300C/D

[Description] Moves the print starting position to (nL + nH ×�256) × (horizontal or vertical motion unit) from the current position.

[Notes] ■ The printer ignores any setting that exceeds the printing area.

■ 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.

■ When standard mode is selected, the horizontal motion unit is used.

■ 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-H5000II TM-U375 TM-U925 TM-U325D TM-J8000TM-H6000 TM-U675

See program example and print sample for ESC $ and ESC \.

Print position commands

Page 229: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC \ Ver. 6.0 p. 229

Program example for ESC $ and ESC \

TM-H5000II

The vertical or horizontal motion unit is specified by GS P.

TM-U375

The vertical or horizontal motion unit is specified by GS P.

TM-U925

The vertical or horizontal motion unit is specified by GS P.

TM-U325D

The horizontal motion unit is 0.16 mm {1/160 inch} (the minimum movement amount). This value equals a half dot pitch.

TM-J8000

The vertical or horizontal motion unit is specified by GS P.

Program Example Print Sample

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180);

PRINT #1, "ABCD";

PRINT #1, CHR$(&H1B);"$";CHR$(90);CHR$(0); ←Set absolute position

PRINT #1, "EFGH"; CHR$(&HA);

PRINT #1, "ABCD";

PRINT #1, CHR$(&H1B);"\";CHR$(90);CHR$(0); ←Set relative position

PRINT #1, "EFGH"; CHR$(&HA);

ABCD EFGH

90/180 inch

90/180 inch

ABCD EFGH

Page 230: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC \ Ver. 6.0 p. 230

TM-H6000

The vertical or horizontal motion unit is specified by GS P.

The horizontal motion unit for a slip (back side) is approximately 0.2 mm {1/127 inch}. This is equivalent to a normal dot pitch (minimum mechanical pitch).

TM-U675

The vertical or horizontal motion unit is specified by GS P.

Page 231: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC a Ver. 6.0 p. 231

■ ■ ■ more■ ■ ■ moreESC a

SETTING COMMAND

[Name] Select justification

[Format] ASCII ESC a nHex 1B 61 nDecimal 27 97 n

[Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50

[Default] n = 0

[Printers not featuring this command] TM-U300C/D

[Description] In standard mode, aligns all the data in one line to a specified position, using n as follows:

[Notes] ■ When standard mode is selected, this command is enabled only when processed at the beginning of the line in standard mode.

■ The justification has no effect in page mode.

■ This command executes justification in the printing area set by GS L and GS W.

■ This command justifies printing data (such as characters, bit images, and bar codes) and space area set by HT, ESC $, and ESC \.

n Justification

0, 48 Left justification

1, 49 Centered

2, 50 Right justification

Print position commands

Page 232: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands ESC a Ver. 6.0 p. 232

[Model-dependent variations] TM-H6000

TM-H6000

This command does not affect printing on the back of a slip.

Program Example for all printers Print Sample

FOR n=0 TO 2

PRINT #1, CHR$(&H1B);"a";CHR$(n);

PRINT #1, "ABC"; CHR$(&HA);

PRINT #1, "ABCD"; CHR$(&HA);

PRINT #1, "ABCDE"; CHR$(&HA);

NEXT n

ABCABCDABCDE

ABCABCDABCDE ABC

ABCDABCDE

ESC a 0

ESC a 1

ESC a 2

Page 233: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS $ Ver. 6.0 p. 233

GS $EXECUTING COMMAND

[Name] Set absolute vertical print position in page mode

[Format] 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-U375, TM-U925, TM-U300C/D, TM-J8000

[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] ■ This command is enabled only in page mode.

■ The printer ignores any setting that exceeds the printing area set by ESC W.

■ 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-H5000II TM-H6000 TM-U675

See program example and print sample for GS $ and GS \.

Print position commands

Page 234: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS $ Ver. 6.0 p. 234

TM-H5000II

Page mode can be used only when the paper roll is selected as the paper type. The vertical or horizontal motion unit is specified by GS P for the paper roll.

TM-H6000

The vertical or horizontal motion unit is specified by GS P.

In page mode, the command affects printing when a paper roll or the face of a slip is selected as the paper type.

TM-U675

The vertical or horizontal motion unit is specified by GS P.

Page 235: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS L Ver. 6.0 p. 235

GS LSETTING COMMAND

[Name] Set left margin

[Format] ASCII GS L nL nH

Hex 1D 4C nL nH

Decimal 29 76 nL nH

[Range] 0 ≤ nL ≤ 2550 ≤ nH ≤ 255

[Default] nL = 0, nH = 0

[Printers not featuring this command] TM-U925, TM-U300C/D

[Description] In standard mode, sets the left margin to (nL + nH × 256) × (horizontal motion unit) from the left edge of the printable area.

[Notes] ■ When standard mode is selected, this command is enabled only when processed at the beginning of the line.

■ The left margin has no effect in page mode.

■ This command is available for the paper type selected by ESC c 1. The left margin can be set independently for paper roll and slip and validation paper.

■ If the setting exceeds the printable area, the left margin is automatically set to the maximum value of the printable area.

■ 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-H5000II TM-U375 TM-U325D TM-J8000 TM-H6000TM-U675

See program example and print sample for GS L and GS W.

Print position commands

Page 236: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS L Ver. 6.0 p. 236

TM-H5000II

The horizontal motion unit is specified by GS P.

TM-U375

The horizontal motion unit is specified by GS P.

TM-U325D

The horizontal motion unit is 0.16 mm {1/160 inch} (the minimum movement amount). This value equals a half dot pitch.

TM-J8000

The horizontal motion unit is specified by GS P.

TM-H6000

The vertical or horizontal motion unit is specified by GS P. Left margin set for a slip affects a printing area on the face of the slip.

TM-U675

The horizontal motion unit is specified by GS P.

Page 237: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS T Ver. 6.0 p. 237

GS TEXECUTING COMMAND

[Name] Set print position to the beginning of print line

[Format] ASCII GS T nHex 1D 54 nDecimal 29 84 n

[Range] n=0,1,48,49

[Default] None

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Sets the print position to the beginning of the line in standard mode.

[Notes] ■ In page mode, this command is ignored.

■ This command is ignored if the print position is already the beginning of the line.

■ If the print position is not set to the beginning of the line, when n = 1, 49, this command functions the same as LF.

■ Setting values of each command, definitions, and receive buffer content are not changed.

■ When using commands that are enabled only at the beginning of the line, these commands are sure to be executed if GS T is used immediately before using those commands.

[Model-dependent variations] None

n Function

0, 48 Cancel data in the current print buffer

1, 49 Print data in the current print buffer

Program Example

PRINT #1, CHR$(&H1D);"T";CHR$(49):

PRINT #1, CHR$(&H1B);"c0";CHR$(2):

PRINT #1, CHR$(&H1D);"V";CHR$(65):

Print position commands

Page 238: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS W Ver. 6.0 p. 238

■ ■ ■ more■ ■ ■ moreGS W

SETTING COMMAND

[Name] Set printing area width

[Format] ASCII GS W nL nH

Hex 1D 57 nL nH

Decimal 29 87 nL nH

[Range] 0 ≤ nL ≤ 2550 ≤ nH ≤ 255

[Default] TM-H5000II: For paper roll: nnnnLLLL = 0, nnnnHHHH = 2For slip paper: nnnnLLLL = 32, nnnnHHHH = 3

TM-H6000: For paper roll: nnnnLLLL = 0, nnnnHHHH = 2For slip paper (face): nnnnLLLL = 28, nnnnHHHH = 2

TM-U375, TM-U325D: nnnnLLLL = 144, nnnnHHHH = 1TM-J8000:::: For paper roll: nnnnLLLL = 156, nnnnHHHH = 3

For slip paper: nnnnLLLL = 44, nnnnHHHH = 11TM-U675: When DIP switch [SW2-4] is Off:

For paper roll: nnnnLLLL = 194, nnnnHHHH = 1For slip paper: nnnnLLLL = 28, nnnnHHHH = 2For validation paper: nnnnLLLL = 28, nnnnHHHH = 2

When DIP switch [SW2-4] is On and {SW2-3] is Off:nnnnLLLL = 144, nnnnHHHH = 1

When DIP switch [SW2-4] is On and {SW2-3] is On:nnnnLLLL = 129, nnnnHHHH = 1

[Printers not featuring this command] TM-U925, TM-U300C/D

[Description] In standard mode, sets the printing area width to (nL + nH × 256) × (horizontal motion unit).

[Notes] ■ When standard mode is selected, this command is enabled only when processed at the beginning of the line.

■ The printing area width has no effect in page mode.

■ This command is available for the paper type selected by ESC c 1. The printing area width can be set independently for paper roll and slip and validation paper.

Print position commands

Page 239: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS W Ver. 6.0 p. 239

■ If the [left margin + printing area width] exceeds the printable area, the printing area width is automatically set to [printable area - left margin].

■ 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-H5000II TM-U375 TM-U325D TM-J8000 TM-H6000TM-U675

See program example and print sample for GS L and GS W.

TM-H5000II

The horizontal motion unit is specified by GS P.

TM-U375

The horizontal motion unit is specified by GS P.

TM-U325D

The horizontal motion unit is 0.16 mm {1/160 inch} (the minimum movement amount). This value equals a half dot pitch.

TM-J8000

The horizontal motion unit is specified by GS P.

TM-H6000

The horizontal motion unit is specified by GS P.

TM-U675

The horizontal motion unit is specified by GS P.

Page 240: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS W Ver. 6.0 p. 240

Program example for GS L and GS W

Program Example Print Sample

PRINT #1, CHR$(&H1B);"c0";CHR$(1); ← Select paper type

PRINT #1, CHR$(&H1B);"c1";CHR$(1); ← Select paper type for commands

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180);

PRINT #1, "01234567890123456789"; CHR$(&HA);

PRINT #1, CHR$(&H1D);"L";CHR$(60);CHR$(0); ← Set left margin

PRINT #1, CHR$(&H1D);"W";CHR$(120);CHR$(0); ← Set printing area width

PRINT #1, "01234567890123456789"; CHR$(&HA);

01234567890123456789

0123456789

0123456789

Left Printing areamargin width

Page 241: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS \ Ver. 6.0 p. 241

■ ■ ■ more■ ■ ■ moreGS \

EXECUTING COMMAND

[Name] Set relative vertical print position in page mode

[Format] ASCII GS \ nL nH

Hex 1D 5C nL nH

Decimal 29 92 nL nH

[Range] 0 ≤ nL ≤ 2550 ≤ nH ≤ 255

[Default] None

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] In page mode, moves the vertical printing position to (nL + nH × 256) × (vertical or horizontal motion unit) from the current position.

[Notes] ■ This command is enabled only in page mode.

■ The printer ignores any setting that exceeds the printing area set by ESC W.

■ A positive number specifies movement downward, and a negative number specifies movement upward. N pitch movement downward: (nL + nH ×�256) =�N. Use the complement of N for setting�N pitch movement upward: (nL + nH ×�256) = 65536 –N.

■ 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-H5000II TM-H6000 TM-U675

See program example and print sample for GS $ and GS \.

Print position commands

Page 242: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Print position commands GS \ Ver. 6.0 p. 242

Program example for GS $ and GS \

TM-H5000II

Page mode can be used only when the paper roll is selected as the paper type. The vertical or horizontal motion unit is specified by GS P for the paper roll.

TM-H6000

The vertical or horizontal motion unit is specified by GS P.

In page mode, the command affects printing when a paper roll or the face of a slip is selected as the paper type.

TM-U675

The vertical or horizontal motion unit is specified by GS P.

Program Example Print Sample

PRINT #1, CHR$(&H1B);"L"; ← Select page modePRINT #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 areaPRINT #1, CHR$(&H1B);"T";CHR$(0); ← Select print directionPRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB";

PRINT #1, CHR$(&H1D);"$";CHR$(90);CHR$(0); ← Set absolute positionPRINT #1, "CCCCC"; CHR$(&HA);

PRINT #1, "DDDDD"; CHR$(&HA);

PRINT #1, "EEEEE";

PRINT #1, CHR$(&H1D);"\";CHR$(90);CHR$(0); ← Set relative positionPRINT #1, "FFFFF"; CHR$(&HC); ← Batch print and return to standard mode

AAAAABBBBB

CCCCC

DDDDDEEEEE

FFFFF

← Printing

90/180 inch

90/180 inch

area setby ESC W

Page 243: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands Ver. 6.0 p. 243

Bit-image commands

Command Name

ESC ✻ Select bit-image modeFS p Print NV bit imageFS q Define NV bit image

GS ( L Transmit NV bit-image memory sizeGS ✻ Define downloaded bit imageGS / Print downloaded bit image

GS Q 0 Print variable vertical size bit imageGS v 0 Print raster bit image

BIT-IMAGE COMMANDS

Page 244: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 244

■ ■ ■ more■ ■ ■ moreESC ✻

EXECUTING COMMAND

[Name] Select bit-image mode

[Format] ASCII ESC ✻ m nL nH d1 ... dkHex 1B 2A m nL nH d1 ... dkDecimal 27 42 m nL nH d1 ... dk

[Range] TM-H5000II: For paper roll: mmmm = 0, 1, 32, 33 0 ≤≤≤≤ nnnnLLLL ≤≤≤≤ 2550 ≤≤≤≤ nnnnHHHH ≤≤≤≤ 3 (1 ≤≤≤≤ nnnnLLLL + nnnnHHHH ×××× 256 ≤≤≤≤ 1023)0 ≤≤≤≤ dddd ≤≤≤≤ 255

For slip paper: mmmm = 0, 10 ≤≤≤≤ nnnnLLLL ≤≤≤≤ 2550 ≤≤≤≤ nnnnHHHH ≤≤≤≤ 30 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = nnnnLLLL + nnnnHHHH ×××× 256 (when mmmm = 0, 1)kkkk = (nnnnLLLL + nnnnHHHH ×××× 256) ×××× 3 (when mmmm = 32, 33)

TM-J8000: mmmm = 0, 1, 32, 33, 80, 810 ≤≤≤≤ nnnnLLLL ≤≤≤≤ 2550 ≤≤≤≤ nnnnHHHH ≤≤≤≤ 12, where 1 ≤≤≤≤ (nnnnLLLL + nnnnHHHH × × × × 256) ≤≤≤≤ 33270 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = nnnnLLLL + nnnnHHHH ×××× 256 (when mmmm = 0, 1)kkkk = (nnnnLLLL + nnnnHHHH ×××× 256) ×××× 3 (when mmmm = 32, 33)kkkk = (nnnnLLLL + nnnnHHHH ×××× 256) ×××× 6 (when mmmm = 80, 81)

Bit-image commands

Page 245: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 245

■ ■ ■ more■ ■ ■ moreTM-H6000: For paper roll: mmmm = 0, 1, 32, 33

0 ≤≤≤≤ nnnnLLLL ≤≤≤≤ 2550 ≤≤≤≤ nnnnHHHH ≤≤≤≤ 3 (1 ≤≤≤≤ nnnnLLLL + nnnnHHHH ×××× 256 ≤≤≤≤ 1023)0 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = nnnnLLLL + nnnnHHHH ×××× 256 (when mmmm = 0, 1)kkkk = (nnnnLLLL + nnnnHHHH ×××× 256) ×××× 3 (when mmmm = 32, 33)

For slip paper mmmm = 0, 1 (standard mode)(face): mmmm = 0 (page mode)

0 ≤≤≤≤ nnnnLLLL ≤≤≤≤ 2550 ≤≤≤≤ nnnnHHHH ≤≤≤≤ 3 (1 ≤≤≤≤ nnnnLLLL + nnnnHHHH ×××× 256 ≤≤≤≤ 1023)0 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = nnnnLLLL + nnnnHHHH ×××× 256

For slip paper mmmm = 0(back): 0 ≤≤≤≤ nnnnLLLL ≤≤≤≤ 255

0 ≤≤≤≤ nnnnHHHH ≤≤≤≤ 3 (1 ≤≤≤≤ nnnnLLLL + nnnnHHHH ×××× 256 ≤≤≤≤ 1023)0 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = nnnnLLLL + nnnnHHHH ×××× 256

TM-U675: For paper roll: mmmm = 0, 1 (standard mode)mmmm = 0 (page mode)0 ≤≤≤≤ nnnnLLLL ≤≤≤≤ 2550 ≤≤≤≤ nnnnHHHH ≤≤≤≤ 3 (1 ≤≤≤≤ nnnnLLLL + nnnnHHHH ×××× 256 ≤≤≤≤ 1023)0 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = nnnnLLLL + nnnnHHHH ×××× 256

TM-U375, TM-U925, TM-U325D, TM-U300C/D: mmmm = 0, 1

0 ≤≤≤≤ nnnnLLLL ≤≤≤≤ 2550 ≤≤≤≤ nnnnHHHH ≤≤≤≤ 3 (1≤≤≤≤ nnnnLLLL + nnnnHHHH ×××× 256 ≤≤≤≤ 1023)0 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = nnnnLLLL + nnnnHHHH ×××× 256

[Default] None

[Printers not featuring this command] None

Page 246: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 246

■ ■ ■ more■ ■ ■ more[Description] Selects bit-image mode using m for the number of dots specified by

(nL + nH �256), as follows:

• nL, nH specifies a bit image in the horizontal direction as (nL + nH × 256) dots.• k indicates the amount of bit image data. k is an explanation parameter; not a part of the command.• d indicates the bit image data.

[Notes] ■ k bytes of data of d1 ... dk are processed as bit image data. Data (d) specifies a bit printed as 1 and not printed as 0.

■ If the bit image data exceeds the number of dots to be printed on a line, the excess data is ignored.

■ The bit image is not affected by print mode (emphasized, double-strike, underline, white/black reverse printing, or 90° clockwise-rotated), except for character size and upside-down printing mode.

■ After printing a bit image, the printer returns to processing data as normal data.

■ 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.

■ This command is used to print a picture or logo.

■ The relationship between bit image data and the print result is as follows:

m Mode

Number of Bits for Vertical data

Dot Density in Horizontal Amount of Data (k)

0 8-dot single-density 8 Single-density nL + nH × 256

1 8-dot double-density 8 Double-density nL + nH × 256

32 24-dot single-density 24 Single-density (nL +nH × 256) × 3

33 24-dot double-density 24 Double-density (nL + nH × 256) × 3

80 48-dot single-density 48 Single-density (nL + nH × 256) × 6

81 48-dot double-density 48 Double-density (nL + nH × 256) × 6

Page 247: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 247

8-dot mode (m = 0, 1) 24-dot mode (m = 32, 33) 48-dot mode (m = 80, 81)

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325DTM-U300C/D TM-J8000 TM-H6000 TM-U675

d1 d2 ... dk d1 d4 ... dk-2 d1 d7 ... dk-5d2 d8 ... dk-4

d2 d5 ... dk-1 d3 d9 ... dk-3d1 d2 ... dk d4 d10 ... dk-2

d3 d6 ... dk d5 d11 ... dk-1d6 d12 ... dk

Program Example for all printers Print Sample

m=0: GOSUB bitimage8 ← 8-dot single-density

m=1: GOSUB bitimage8 ← 8-dot double-density

END

bitimage8:

PRINT #1, CHR$(&H1B);"✻";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

m=0

m=1

Page 248: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 248

TM-H5000II

The modes that can be specified are different for a paper roll and slip, using m as follows:

<Paper roll>

<Slip>

dpi: dots per 25.4 mm (dots per inch)

The amount of data (k) is (nL + nH ××××�256).

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 60 dpi 90 dpi Permitted

1 8-dot double-density 60 dpi 80 dpi Permitted

32 24-dot single-density 180 dpi 90 dpi Permitted

33 24-dot double-density 180 dpi 180 dpi Permitted

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 72 dpi 75 dpi Permitted

1 8-dot double-density 72 dpi 150 dpi Prohibited

Page 249: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 249

TM-U375

The modes selectable by m are as follows:

dpi: dots per 25.4 mm (dots per inch)

In page mode, double-density mode (m = 1) is disabled.

The amount of data (k) is (nnnnLLLL + nnnnHHHH ××××�256).

In page mode, the maximum number of horizontal dots in single-density mode depends on the print direction specified by ESC T, as follows:

•••• When the starting position is set to the upper left or lower right of the printing area using ESC T, the maximum number of horizontal dots is 200.

•••• When the starting position is set to the upper right or lower left of the printing area using ESC T, the maximum number of horizontal dots is 1408.

TM-U925

The modes selectable by m are as follows:

dpi: dots per 25.4 mm (dots per inch)

Amount of data (k) is (nnnnLLLL + nnnnHHHH ××××�256).

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 72 dpi 80 dpi Permitted

1 8-dot double-density 72 dpi 160 dpi Prohibited

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 72 dpi 75 dpi Permitted

1 8-dot double-density 72 dpi 150 dpi Prohibited

Page 250: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 250

TM-U325D

The modes selectable by m are as follows:

dpi: dots per 25.4 mm (dots per inch)

Amount of data (kkkk) is (nnnnLLLL + nnnnHHHH ××××�256).

TM-U300C/D

The modes selectable by m are as follows:

dpi: dots per 25.4 mm (dots per inch)

Amount of data (k) is (nnnnLLLL + nnnnHHHH ××××�256).

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 72 dpi 80 dpi Permitted

1 8-dot double-density 72 dpi 160 dpi Prohibited

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 72 dpi 80 dpi Permitted

1 8-dot double-density 72 dpi 60 dpi Prohibited

Page 251: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 251

TM-J8000

The modes selectable by m are as follows:

dpi: dots per 25.4 mm (dots per inch)

m Mode

Vertical Direction Horizontal Direction

Number of Data Dot Density Dot Density Set Adjacent Dots

0 8-dot single density 1 byte 60 dpi 180 dpi Permitted

1 8-dot double density 1 byte 60 dpi 360 dpi Permitted

32 24-dot single-density 3 bytes 180 dpi 180 dpi Permitted

33 24-dot double-density 3 bytes 180 dpi 360 dpi Permitted

80 48-dot single density 6 bytes 360 dpi 180 dpi Permitted

81 48-dot double density 6 bytes 360 dpi 360 dpi Permitted

Page 252: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 252

TM-H6000

The modes that can be specified are different for paper roll, the face of a slip, and the back of a slip.

Paper roll

Slip (face)

•When page mode is selected, double-density mode (m = 1) is disabled.

Slip (back)

dpi: dots per 25.4 mm (dots per inch)

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 60 dpi 90 dpi Permitted

1 8-dot double-density 60 dpi 180 dpi Permitted

32 24-dot single-density 180 dpi 90 dpiI Permitted

33 24-dot double-density 180 dpi 180 dpi Permitted

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 72 dpi 80 dpi Permitted

1 8-dot double-density 72 dpi 160 dpi Prohibited

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 72 dpi 127 dpi Permitted

Page 253: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands ESC ✻ Ver. 6.0 p. 253

TM-U675

The modes selectable by m are as follows:

dpi: dots per 25.4 mm (dots per inch)

In page mode, double-density mode (m = 1) is disabled.

The amount of data (k) is (nnnnLLLL + nnnnHHHH ××××�256).

In page mode, the maximum number of horizontal dots in single-density mode depends on the printing direction specified by ESC T, as follows:

•••• When the starting position is set to the upper left or lower right of the printing area using ESC T, the maximum number of horizontal dots is 200.

•••• When the starting position is set to the upper right or lower left of the printing area using ESC T, the maximum number of horizontal dots is 1408.

m Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0 8-dot single-density 72 dpi 80 dpi Permitted

1 8-dot double-density 72 dpi 160 dpi Prohibited

Page 254: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS p Ver. 6.0 p. 254

■ ■ ■ more■ ■ ■ moreFS p

EXECUTING COMMAND

[Name] Print NV bit image

[Format] ASCII FS p n mHex 1C 70 n mDecimal 28 112 n m

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] 1 ≤ n ≤ 255, 0 ≤ m ≤ 3, 48 ≤ m ≤ 51TM-H6000: For paper roll: 1 ≤≤≤≤ nnnn ≤ ≤ ≤ ≤ 255, 0 ≤≤≤≤ mmmm ≤ ≤ ≤ ≤ 3, 48 ≤≤≤≤ mmmm ≤ ≤ ≤ ≤ 51

For slip (face): 1 ≤≤≤≤ nnnn ≤ ≤ ≤ ≤ 255, mmmm = 0, = 0, = 0, = 0, 1, 48, 49 (standard mode)mmmm = = = = 1, 49 (page mode)

TM-U675: 1 ≤≤≤≤ nnnn ≤ ≤ ≤ ≤ 255, mmmm ==== 0, 1, 48, 49 (standard mode)mmmm = = = = 1, 49 (page mode)

[Description] Prints NV bit image n using the mode specified by m.

[Notes] ■ This command is not effective when the NV bit image specified by n has not been defined.

■ In standard mode, this command is effective only when there is no data in the print buffer.

■ In page mode, the NV bit image is only stored in the print buffer and is not printed.

■ If the NV bit image exceeds one line of printing area, the printer does not print it.

■ This command is not affected by print modes (emphasized, underline, or 90° rotated characters, etc.) except character size and upside-down printing mode.

m Mode

0, 48 Normal

1, 49 Double-width

2, 50 Double-height

3, 51 Quadruple

Bit-image commands

Page 255: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS p Ver. 6.0 p. 255

■ This command executes paper feeding for the amount needed for printing the NV bit image, regardless of the paper feed amount set by the paper feed setting command.

■ After printing the bit image, this command sets the print position to the beginning of the line.

■ 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.

■ The NV bit image is defined by FS q.

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

See program example and print sample for FS q and FS p.

TM-H5000II

This command is used in standard mode. The image modes specified are as follows:

dpi: dots per 25.4 mm (dots per inch)

mmmm Mode Dot density in vertical

Dot density in horizontal

Dot Density Set Adjacent Dots

0, 48 Normal 180 dpi 180 dpiI Permitted

1, 49 Double-width 180 dpi 90 dpi Permitted

2, 50 Double-height 90 dpi 180 dpiI Permitted

3, 51 Quadruple 90 dpi 90 dpi Permitted

Page 256: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS p Ver. 6.0 p. 256

TM-J8000

The modes specified are as follows:

dpi: dots per 25.4 mm (dots per inch)

TM-U675

The modes that can be specified are as follows:

dpi: dots per 25.4 mm (dots per inch)

mmmm Mode Vertical Dot Density

Horizontal Dot Density

Dot Density Set Adjacent Dots

0, 48 Normal 360 dpi 360 dpi Permitted

1, 49 Double-width 360 dpi 180 dpi Permitted

2, 50 Double-height 180 dpi 360 dpi Permitted

3, 51 Quadruple 180 dpi 80 dpi Permitted

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal mode 72 dpi 160 dpi Prohibited

1, 49 Double-width density mode 72 dpi 80 dpi Permitted

Page 257: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS p Ver. 6.0 p. 257

TM-H6000

The modes that can be specified are different, depending on the paper type.

Paper roll

Slip (face)

dpi: dots per 25.4 mm (dots per inch)

• When page mode is selected, normal mode (m = 0, 48) is disabled.

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal mode 180 dpi 180 dpi Permitted

1, 49 Double-width density mode 180 dpi 90 dpi Permitted

2, 50 Double-height density mode 90 dpi 180 dpi Permitted

3, 51 Quadruple-density mode 90 dpi 90 dpi Permitted

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal mode 72 dpi 160 dpi Prohibited

1, 49 Double-width density mode 72 dpi 80 dpi Permitted

Page 258: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS q Ver. 6.0 p. 258

■ ■ ■ more■ ■ ■ moreFS q

EXECUTING COMMAND

SETTING COMMAND

[Name] Define NV bit image

[Format] ASCII FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk] nHex 1C 71 n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk] nDecimal 28 113 n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk] n

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] TM-H5000II: 1 ≤≤≤≤ nnnn ≤ ≤ ≤ ≤ 2550 ≤≤≤≤ xxxxLLLL ≤ ≤ ≤ ≤ 2550 ≤≤≤≤ xxxxHHHH ≤ ≤ ≤ ≤ 3 (when 1 ≤≤≤≤ (xxxxLLLL + xxxxHHHH ×××× 256) ≤ ≤ ≤ ≤ 1023)0 ≤≤≤≤ yyyyLLLL ≤ ≤ ≤ ≤ 10 ≤≤≤≤ yyyyHHHH ≤ ≤ ≤ ≤ 1 (when 1 ≤≤≤≤ (yyyyLLLL + yyyyHHHH ×××× 256) ≤ ≤ ≤ ≤ 288)0 ≤≤≤≤ dddd ≤ ≤ ≤ ≤ 255kkkk = (xxxxLLLL + xxxxHHHH ×××× 256) ×××× (yyyyLLLL + yyyyHHHH ×××× 256) ×××× 8Total defined data area is 384 KB

TM-H6000: 1 ≤≤≤≤ nnnn ≤ ≤ ≤ ≤ 2550 ≤≤≤≤ xxxxLLLL ≤ ≤ ≤ ≤ 2550 ≤≤≤≤ xxxxHHHH ≤ ≤ ≤ ≤ 3 (when 1 ≤≤≤≤ (xxxxLLLL + xxxxHHHH ×××× 256) ≤ ≤ ≤ ≤ 1023)0 ≤≤≤≤ yyyyLLLL ≤ ≤ ≤ ≤ 2550 ≤≤≤≤ yyyyHHHH ≤ ≤ ≤ ≤ 1 (when 1 ≤≤≤≤ (yyyyLLLL + yyyyHHHH ×××× 256) ≤ ≤ ≤ ≤ 288)0 ≤≤≤≤ dddd ≤ ≤ ≤ ≤ 255kkkk = (xxxxLLLL + xxxxHHHH ×××× 256) ×××× (yyyyLLLL + yyyyHHHH ×××× 256) ×××× 8Total defined data area = 0, 64 KB, 128 KB, 192 KB, 256 KB, 320 KB, 384 KB (default)(Total defined data area can be selected with GS ( E command.)

Bit-image commands

Page 259: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS q Ver. 6.0 p. 259

■ ■ ■ more■ ■ ■ moreTM-J8000: 1 ≤≤≤≤ nnnn ≤ ≤ ≤ ≤ 255

0 ≤≤≤≤ xxxxLLLL ≤ ≤ ≤ ≤ 2550 ≤≤≤≤ xxxxHHHH ≤ ≤ ≤ ≤ 3, where 1 ≤≤≤≤ (xxxxLLLL + xxxxHHHH ×××× 256) ≤ ≤ ≤ ≤ 10230 ≤≤≤≤ yyyyLLLL ≤ ≤ ≤ ≤ 2550 ≤≤≤≤ yyyyHHHH ≤ ≤ ≤ ≤ 2, where 1 ≤≤≤≤ (yyyyLLLL + yyyyHHHH ×××× 256) ≤ ≤ ≤ ≤ 7670 ≤≤≤≤ dddd ≤ ≤ ≤ ≤ 255kkkk = (xxxxLLLL + xxxxHHHH ×××× 256) ×××× (yyyyLLLL + yyyyHHHH ×××× 256) ×××× 8Total defined data area = 128 KB

[Description] Defines NV bit image specified.• n specifies the number of defined NV bit images.

• xL, xH specifies (xL + xH × 256) bytes in the horizontal direction for the NV bit image you defined.

• yL, yH specifies (yL + yH × 256) bytes in the vertical direction for the NV bit image you defined.

• d specifies the definition data for the NV bit image.

• k indicates the number of the definition data. k is a parameter for explanation; it is not actually in the command.

[Notes] ■ The printer is 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.

■ An NV bit image is a bit image defined in the printer’s non-volatile memory. The NV bit image defined is effective until the next NV bit image is defined (or until the memory capacity is changed with the GS ( E command).

■ In standard mode, this command is effective only when processed at the beginning of the line.

■ In page mode, this command is not effective.

■ Do not use this command during macro execution because the command cannot be included in a macro.

■ k bytes of data of d1...dk are processed as the data defining the NV bit image. In this data a bit to be printed is 1 and not to be printed is 0.

■ All NV bit images previously defined are canceled.

Page 260: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS q Ver. 6.0 p. 260

■ After processing this command, the printer executes a software reset. Therefore, processing this command puts the printer in the same status as when the power is turned on.

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS q, GS ( C, GS ( E, GS g 0.

■ There are the limitations during processing of this command, as follows:

• Paper cannot be fed by using the 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.

■ Bit image data and the print results are as follows:

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

See program example and print sample for FS q and FS p.

d1 dY+1 ... : Y = yL + yH × 256

d2 dY+2 ... dk-2

: : ... dk-1

dY dY×2 ... dk

Page 261: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS q Ver. 6.0 p. 261

Program example for FS q and FS p

Program Example Program Example (continued)

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

PRINT #1, CHR$(&H1C);"p";CHR$(0);CHR$(&HA); ← Normal

PRINT #1, CHR$(&H1C);"p";CHR$(1);CHR$(&HA); ← Double width

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

DATA 83,80,00,00,02,4C,00,00,00,04,80,00,00,00,02

DATA 40,00,00,00,04,80,00,00,00,02,4A,AA,AA,AA,A4

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

Print Sample

Definition

← Double-width mode

← Normal mode

Page 262: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands FS q Ver. 6.0 p. 262

TM-H5000II

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS q, GS ( C, GS ( E, GS g 0.

TM-J8000

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS q, GS ( C, GS ( E, GS g 0.

TM-H6000

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS q, GS ( C, GS ( E, GS g 0.

TM-U675

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS q, GS ( C, GS ( E, GS g 0.

The NV bit-image defined can be printed on a paper roll and slip (face). The size of the defined area [0, 64 KB, 128 KB, 192 KB, 256 KB, 320 KB, or 384 KB] can be selected by GS ( E. The default setting (at factory shipment) is 384 KB.

Page 263: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS ( L Ver. 6.0 p. 263

■ ■ ■ more■ ■ ■ moreGS ( L

SETTING COMMAND

[Name] Transmit NV bit-image memory size

[Format] ASCII GS ( L pL pH m fnHex 1D 28 4C pL pH m fn Decimal 29 40 76 pL pH m fn

[Range] pL = 2, pH = 0 ((pL + pH × 256)= 2)m = 48fn = 0, 48

[Printers not featuring this command] TM-J8000, TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Transmits all the memory size (the number of bytes) in the NV bit-image area.pL, pH specifies the number of parameters following m to (pL + pH × 256) bytes.

[Notes] ■ The printer sends the “header to NUL” data shown below:

■ The printer changes the memory size to values in decimal and send them to the host.Example: If total size is 120 bytes, the printer transmits 3-byte data (120 is changed to 49, 50, 48 in decimal).

■ The total memory size sent by this command is the total number of bytes regardless of the definition of the NV bit-image. The size of the NV bit-image memory can be changed by GS ( E.

■ The memory size sent by this command is the number of bytes being used in the actual operation. The memory size sent might differs from the value set by GS ( E.

■ When the memory size is “0” (Hex = 30H/Decimal = 48), the functions of the NV bit-image cannot be used.

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 30H 48 1 byte

Memory size 30H − 39H 48 − 57 1 − 8 bytes

NUL 00H 0 1 byte

Bit-image commands

Page 264: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS ( L Ver. 6.0 p. 264

■ The host can differentiate the data of the memory size from other send data by the specific information in the send data block. When the header sent from the printer is 37H or 55 decimal, the data up to NUL (00H or 0 decimal) is handled as one group and can be identified by the following data:

However, consider the following requirement for data processing:

• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the “header to NUL” data string.

[Model-dependent variations] None

Send Data Hex Decimal

1st byte (header) 37H 55

2nd byte (identifier) 30H 48

Program Example for all printers

PRINT #1, CHR$(&H1D);"(L";CHR$(2);CHR$(0);CHR$(48);CHR$(0);

Page 265: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS ✻ Ver. 6.0 p. 265

■ ■ ■ more■ ■ ■ moreGS ✻

SETTING COMMAND

[Name] Define downloaded bit image

[Format] ASCII GS ✻ 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-H5000II: For paper roll: 1 ≤≤≤≤ xxxx ≤ ≤ ≤ ≤ 2551 ≤≤≤≤ yyyy ≤≤≤≤ 481 ≤≤≤≤ xxxx ×××× yyyy ≤≤≤≤ 15360 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = xxxx ×××× yyyy ×××× 8

For slip paper: 1 ≤≤≤≤ xxxx ≤≤≤≤ 2551 ≤≤≤≤ yyyy ≤≤≤≤ 2551 ≤≤≤≤ xxxx ×××× yyyy ≤≤≤≤ 4040 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = xxxx ×××× yyyy ×××× 8

TM-H6000: For paper roll: 1 ≤≤≤≤ xxxx ≤ ≤ ≤ ≤ 2551 ≤≤≤≤ yyyy ≤≤≤≤ 48 where 1 ≤ ≤ ≤ ≤ xxxx ×××× yyyy ≤≤≤≤ 15360 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = xxxx ×××× yyyy ×××× 8

For slip paper 1 ≤≤≤≤ xxxx ≤ ≤ ≤ ≤ 255(face): 1 ≤≤≤≤ yyyy ≤≤≤≤ 255 where 1 ≤ ≤ ≤ ≤ xxxx ×××× yyyy ≤≤≤≤ 512

0 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = xxxx ×××× yyyy ×××× 8

TM-U375: 1 ≤≤≤≤ xxxx ≤≤≤≤ 2551 ≤≤≤≤ yyyy ≤≤≤≤ 2551 ≤≤≤≤ xxxx ×××× yyyy ≤≤≤≤ 5120 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = xxxx ×××× yyyy ×××× 8

TM-J8000: 0 ≤≤≤≤ xxxx ≤≤≤≤ 255 1 ≤≤≤≤ yyyy ≤≤≤≤ 255, where 1 ≤ ≤ ≤ ≤ xxxx ×××× yyyy ≤≤≤≤ 147840 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = xxxx ×××× yyyy ×××× 8

Bit-image commands

Page 266: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS ✻ Ver. 6.0 p. 266

■ ■ ■ more■ ■ ■ moreTM-U925: 1 ≤≤≤≤ xxxx ≤≤≤≤ 255

1 ≤≤≤≤ yyyy ≤ ≤ ≤ ≤ 2551 ≤≤≤≤ xxxx × × × × yyyy ≤≤≤≤ 155 (when the receive buffer capacity is 2 KB)1 ≤≤≤≤ xxxx ×××× yyyy ≤≤≤≤ 404 (when the receive buffer capacity is 32 bytes)0 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = xxxx ×××× yyyy ×××× 8

TM-U675: 1 ≤≤≤≤ xxxx ≤≤≤≤ 255 1 ≤≤≤≤ yyyy ≤≤≤≤ 255, where 1 ≤≤≤≤ xxxx ×××× yyyy ≤≤≤≤ 5120 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = xxxx ×××× yyyy ×××× 8

[Default] None

[Printers not featuring this command] TM-U325D TM-U300C/D

[Description] Defines a downloaded bit image. • x specifies the size of a bit image in horizontal to x bytes.

• y specifies the size of a bit image in vertical to y bytes.

• k indicates the number of data to be defined. k is an explanation parameter; therefore it does not need to be transmitted.

• d indicates the bit image data.

[Notes] ■ Data (d) specifies a bit printed as 1 and not printed as 0.

■ The downloaded bit image is not defined in the default settings.

■ 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.

■ A downloaded bit image and a user-defined character cannot be defined simultaneously. When this command is executed, the user-defined character is cleared.

■ If the printer has multiple print heads that have different dot density, the user-defined bit image is defined for the sheet selected by ESC c 1. A user-defined bit image can be defined for each print head.

■ The downloaded bit image is printed by GS /.

Page 267: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS ✻ Ver. 6.0 p. 267

■ The relationship between the bit image data and the printed result is as follows:

[Model-dependent variations] TM-H5000II TM-H6000

See program example and print sample for GS ✻ ✻ ✻ ✻ and GS /.

TM-H5000II

This command defines the downloaded bit image defined for the paper type selected by ESC c 1. The downloaded bit image can be set independently for paper roll and slip.

TM-H6000

The user-defined bit image for the paper type selected by ESC c 1 is defined. When slip is selected as the paper type, the user-defined bit image is defined for the face of the slip. The user-defined bit image can be defined for roll paper and the face of the slip independently.

d1 dy+1 ... :

d2 dy+2 ... dk-2

: : ... dk-1

dy dy×2 ... dk

Page 268: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS / Ver. 6.0 p. 268

■ ■ ■ more■ ■ ■ moreGS /

EXECUTING COMMAND

[Name] Print downloaded bit image

[Format] ASCII GS / mHex D 2F mDecimal 29 47 m

[Range] TM-H5000II: For paper roll: 0 ≤≤≤≤ mmmm ≤≤≤≤ 3, 48 ≤≤≤≤ mmmm ≤≤≤≤ 51For slip paper: mmmm = 0, 1, 48, 49

TM-H6000: For paper roll: 0 ≤≤≤≤ mmmm ≤≤≤≤ 3, 48 ≤≤≤≤ mmmm ≤≤≤≤ 51For slip paper (face): mmmm = 0, 1, 48, 49 (standard mode)

mmmm = 1, 49 (page mode)TM-U375, TM-U925: mmmm = 0, 1, 48, 49TM-J8000: 0 ≤≤≤≤ mmmm ≤≤≤≤ 3, 48 ≤≤≤≤ mmmm ≤≤≤≤ 51TM-U675: mmmm = 0, 1, 48, 49 (standard mode)

mmmm = 1, 49 (page mode)

[Default] None

[Printers not featuring this command] TM-U325D TM-U300C/D

[Description] Prints a downloaded bit image using the mode specified by m, as follows:

m Mode

0, 48 Normal

1, 49 Double-width

2, 50 Double-height

3, 51 Quadruple

Bit-image commands

Page 269: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS / Ver. 6.0 p. 269

[Notes] ■ This command is ignored if a downloaded bit image has not been defined.

■ When standard mode is selected, this command is enabled only when there is no data in the print buffer.

■ 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.

■ If a downloaded bit image exceeds one line, the excess data is not printed.

■ 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.

■ The downloaded bit image is not affected by print mode (emphasized, double-strike, underline, white/black reverse printing, or 90° clockwise-rotated), except for character size and upside-down printing mode.

■ 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.

■ The downloaded bit image is defined by GS ✻.

■ After printing, the printing position moves to the beginning of the line.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-J8000 TM-H6000TM-U675

See program example and print sample for GS ✻ ✻ ✻ ✻ and GS /.

Page 270: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS / Ver. 6.0 p. 270

Program example for GS ✻ and GS /

Program Example Program Example (continued)

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); ← Normal

PRINT #1, CHR$(&H1D);"/";CHR$(1);CHR$(&HA); ← Double width

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

DATA 83,80,00,00,02,4C,00,00,00,04,80,00,00,00,02

DATA 40,00,00,00,04,80,00,00,00,02,4A,AA,AA,AA,A4

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

Print Sample

Definedownloadedbit image

← GS / 1

← GS / 0

Page 271: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS / Ver. 6.0 p. 271

TM-H5000II

The printer prints the downloaded bit image defined for the paper selected by ESC c 0. If the downloaded bit image is not defined for the paper selected by ESC c 0, this command is ignored. The modes that can be specified are different for the paper roll and slip, using mmmm as follows: Dots per 25.4 mm (dpi: dots per inch):

<Paper roll>

<Slip>

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal 180 dpi 180 dpi Permitted

1, 49 Double-width 180 dpi 90 dpi Permitted

2, 50 Double-height 90 dpi 180 dpi Permitted

3, 51 Quadruple 90 dpi 90 dpi Permitted

mmmm Mode

Horizontal Direction

Vertical Dot DensityDot DensitySet Adjacent Dots

0, 48 Normal 150 dpi Prohibited 72 dpi

1, 49 Double-width 75 dpi Permitted 72 dpi

Page 272: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS / Ver. 6.0 p. 272

TM-U375

In page mode, the normal mode (mmmm = 0 or 48) is disabled. The modes selectable by mmmm are as follows: Dots per 25.4 mm (dpi: dots per inch):

In page mode, the maximum number of horizontal dots for single-density depends on the printing direction specified by ESC T, as follows:

•••• When the starting position is set to the upper left or lower right of the printing area using ESC T, the maximum number of horizontal dots is 200.

•••• When the starting position is set to the upper right or lower left of the printing area using ESC T, the maximum number of horizontal dots is 1408.

TM-U925

The downloaded bit image mode for this printer is different from the standard ESC/POS downloaded bit image mode.

The modes selectable by mmmm are as follows: Dots per 25.4 mm (dpi: dots per inch)

mmmm Mode

Horizontal Direction

Vertical Dot DensityDot Density Set Adjacent Dots

0, 48 Normal 160 dpi Prohibited 72 dpi

1, 49 Double-width 80 dpi Permitted 72 dpi

mmmm Mode

Horizontal Direction

Vertical Dot DensityDot Density Set Adjacent Dots

0, 48 Single-density 75 dpi Permitted 72 dpi

1, 49 Double-density 150 dpi Prohibited 72 dpi

Page 273: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS / Ver. 6.0 p. 273

TM-J8000

The modes selectable by mmmm are as follows: Dots per 25.4 mm (dpi: dots per inch)

TM-U675

In page mode, the normal mode (m = 0 or 48) is disabled. The modes selectable by m are as follows:

dpi: dots per 25.4 mm (dots per inch)

In page mode, the maximum number of horizontal dots for single-density depends on the printing direction specified by ESC T, as follows:

•••• When the starting position is set to the upper left or lower right of the printing area using ESC T, the maximum number of horizontal dots is 200.

•••• When the starting position is set to the upper right or lower left of the printing area using ESC T, the maximum number of horizontal dots is 1408.

mmmm Mode Vertical Dot Density

Horizontal Dot Density

Dot Density Set Adjacent Dots

0, 48 Normal 360 dpi 360 dpi Permitted

1, 49 Double-width 360 dpi 180 dpi Permitted

2, 50 Double-height 180 dpi 360 dpi Permitted

3, 51 Quadruple 180 dpi 180 dpi Permitted

m Mode

Horizontal Direction

Vertical Dot DensityDot Density Set Adjacent Dots

0, 48 Normal 160 dpi Prohibited 72 dpi

1, 49 Double-width 80 dpi Permitted 72 dpiI

Page 274: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS / Ver. 6.0 p. 274

TM-H6000

The modes that can be specified are different for paper roll and slip (face). Dots per 25.4 mm (dpi: dots per inch)

Paper roll

Slip (face)

• When page mode is selected, normal mode (m m m m = 0, 48) is disabled.

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal mode 180 dpi 80 dpi Permitted

1, 49 Double-width density mode 180 dpi 90 dpi Permitted

2, 50 Double-height density mode 90 dpi 180 dpi Permitted

3, 51 Quadruple-density mode 90 dpi 90 dpi Permitted

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal mode 72 dpi 160 dpi Prohibited

1, 49 Double-width density mode

72 dpi 80 dpi Permitted

Page 275: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS Q 0 Ver. 6.0 p. 275

■ ■ ■ more■ ■ ■ moreGS Q 0

EXECUTING COMMAND

[Name] Print variable vertical size bit image

[Format] ASC II GS Q 0 m xL xH yL yH d1...dkHex 1D 51 30 m xL xH yL yH d1...dkDecimal 29 81 48 m xL xH yL yH d1...dk

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 510 ≤ xL ≤ 2550 ≤ xH ≤ 12, where 1 ≤ (xL + xH × 256) ≤ 33270 ≤ yL ≤ 16yH = 60 ≤ d ≤ 255k = (xL + xH × 256) × (yL + yH × 256)

[Description] Prints a variable vertical size bit image

The modes selectable by m are as follows:

• xL, xH specifies (xL + xH × 256) dots in horizontal direction for the bit image.

• yL, yH specifies (yL + yH × 256) dots in vertical direction for the bit image.

• d specifies the bit image data.

• k indicates the number of the bit image data. k is an explanation parameter; therefore, it needs not to be transmitted.

m Mode

0, 48 Normal

1, 49 Double-width

2, 50 Double-height

3, 51 Quadruple

Bit-image commands

Page 276: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS Q 0 Ver. 6.0 p. 276

■ ■ ■ more■ ■ ■ more[Notes] ■ In standard mode, this command is effective only when data is not in the print buffer.

■ This command processes k bytes data of d1...dk as a bit image data. Image data (d) specifies a bit printed to 1 and not printed to 0.

■ If a variable vertical bit image which exceeds a print area for a line is specified, the excess image data is ignored.

■ Character size and all print modes such as emphasize, underline, 90° clockwise rotation, upside-down do not affect printing of a variable vertical size bit image data.

■ This command feeds paper for amount needed for printing a variable vertical bit image regardless of the paper feed setting set by paper feed setting commands.

■ Do not use this command during macro execution because the command cannot be included in a macro.

■ After printing a variable vertical bit-image, normal data processing is started.

The printing position is set to the beginning of a line.

■ Relationship between bit-image data and printing result is as follows:

Y = (yL + yH × 256)

[Model-dependent variations] TM-J8000

d1 dY + 1 ... :

d2 dY + 2 ... dk - 2

: : ... dk - 1

dY dY × 2 ... dk

Page 277: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS Q 0 Ver. 6.0 p. 277

Program Example for GS Q 0Program Example Program Example (continued)

PRINT #1, CHR$(&H1B);"U";CHR$(1); ← Specify unidirection

PRINT #1, CHR$(&H1D);"p";CHR$(0);

PRINT #1, CHR$(144);CHR$(0);CHR$(5);CHR$(0);

FOR i=1 TO 144*5

READ a$: d=VAL("&H"+a$)

PRINT #1, CHR$(d);

NEXT i

PRINT #1, CHR$(&H1B);"U";CHR$(1); ← Select direction

PRINT #1, CHR$(&H1C);"p";CHR$(0);CHR$(&HA); ← Normal

PRINT #1, CHR$(&H1C);"p";CHR$(1);CHR$(&HA); ← Double width

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

DATA 83,80,00,00,02,4C,00,00,00,04,80,00,00,00,02

DATA 40,00,00,00,04,80,00,00,00,02,4A,AA,AA,AA,A4

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

Print Sample

Definition

Page 278: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS Q 0 Ver. 6.0 p. 278

TM-J8000

Selectable mode m is as follows:

dpi: dots per 25.4 mm (dots per inch)

When [Economy printing] is selected by GS E, there may be no printing because the printer does not correctly process a raster bit image in vertical direction.

m Mode Vertical Dot Density

Horizontal Dot Density

Dot Density Set Adjacent Dots

0, 48 Normal 360 dpi 360 dpi Permitted

1, 49 Double-width 360 dpi 180 dpi Permitted

2, 50 Double-height 180 dpi 360 dpi Permitted

3, 51 Quadruple 180 dpi 180 dpi Permitted

Page 279: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS v 0 Ver. 6.0 p. 279

■ ■ ■ more■ ■ ■ moreGS v 0

EXECUTING COMMAND

[Name] Print raster bit image

[Format] ASCII GS v 0 m xL xH yL yH d1...dkHex 1D 76 30 m xL xH yL yH d1...dkDecimal 29 118 48 m xL xH yL yH d1...dk

[Range] TM-H5000II: 0 ≤≤≤≤ mmmm ≤≤≤≤ 3, 48 ≤≤≤≤ mmmm ≤≤≤≤ 510 ≤≤≤≤ xxxxLLLL ≤≤≤≤ 2550 ≤≤≤≤ xxxxHHHH ≤≤≤≤ 255 (1≤≤≤≤ xxxxLLLL + xxxxHHHH ×××× 256 ≤≤≤≤ 65535)0 ≤≤≤≤ yyyyLLLL ≤≤≤≤ 2550 ≤≤≤≤ yyyyHHHH ≤≤≤≤ 8 (1≤≤≤≤ yyyyLLLL + yyyyHHHH ×××× 256 ≤≤≤≤ 2047)0 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = (xxxxLLLL + xxxxHHHH ×××× 256) ×××× (yyyyLLLL + yyyyHHHH ×××× 256) (except for kkkk = 0)

TM-J8000: 0 ≤≤≤≤ mmmm ≤≤≤≤ 3, 48 ≤≤≤≤ mmmm ≤≤≤≤ 510 ≤≤≤≤ xxxxLLLL ≤≤≤≤ 2550 ≤≤≤≤ xxxxHHHH ≤≤≤≤ 3, where 1 ≤≤≤≤ (xxxxLLLL + xxxxHHHH ×××× 256) ≤≤≤≤ 10230 ≤≤≤≤ yyyyLLLL ≤≤≤≤ 2550 ≤≤≤≤ yyyyHHHH ≤≤≤≤ 255, where 1 ≤≤≤≤ (yyyyLLLL + yyyyHHHH ×××× 256) ≤≤≤≤ 655350 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = (xxxxLLLL + xxxxHHHH ×××× 256) ×××× (yyyyLLLL + yyyyHHHH ×××× 256)

Bit-image commands

Page 280: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS v 0 Ver. 6.0 p. 280

■ ■ ■ more■ ■ ■ moreTM-H6000: 0 ≤≤≤≤ mmmm ≤≤≤≤ 3, 48 ≤≤≤≤ mmmm ≤≤≤≤ 51 (when paper roll is selected)

mmmm = 0, 1, 48, 49 (when slip paper (face) is selected in standard mode)

mmmm = 1, 49 (when slip paper (back) is selected in page mode)0 ≤≤≤≤ xxxxLLLL ≤≤≤≤ 128xxxxHHHH ==== 0, where 1 ≤≤≤≤ (xxxxLLLL + xxxxHHHH ×××× 256) ≤≤≤≤ 1280 ≤≤≤≤ yyyyLLLL ≤≤≤≤ 2550 ≤≤≤≤ yyyyHHHH ≤≤≤≤ 15, where 1 ≤≤≤≤ (yyyyLLLL + yyyyHHHH ×××× 256) ≤≤≤≤ 40950 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = (xxxxLLLL + xxxxHHHH ×××× 256) ×××× (yyyyLLLL + yyyyHHHH ×××× 256)

TM-U675: mmmm = 0, 1, 48, 49 (standard mode)mmmm = 1, 49 (page mode)0 ≤≤≤≤ xxxxLLLL ≤≤≤≤ 128xxxxHHHH ==== 0, where 1 ≤≤≤≤ (xxxxLLLL + xxxxHHHH ×××× 256) ≤≤≤≤ 1280 ≤≤≤≤ yyyyLLLL ≤≤≤≤ 2550 ≤≤≤≤ yyyyHHHH ≤≤≤≤ 15, where 1 ≤≤≤≤ (yyyyLLLL + yyyyHHHH ×××× 256) ≤≤≤≤ 40950 ≤≤≤≤ dddd ≤≤≤≤ 255kkkk = (xxxxLLLL + xxxxHHHH ×××× 256) ×××× (yyyyLLLL + yyyyHHHH ×××× 256)

[Default] None

[Printers not featuring this command] TM-U375 TM-U925 TM-U325D TM-U300C/D

[Description] Prints a raster bit image using the mode specified by m, as follows:

• 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.

m Mode

0, 48 Normal

1, 49 Double-width

2, 50 Double-height

3, 51 Quadruple

Page 281: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS v 0 Ver. 6.0 p. 281

■ ■ ■ more■ ■ ■ more• k indicates the amount of a bit image data. k is an explanation parameter; it is not actually part of the

command.

• d indicates the bit image data.

[Notes] ■ When standard mode is selected, this command is enabled only when there is no data in the print buffer.

■ Data (d) specifies a bit printed as 1 and not printed as 0.

■ If a raster bit image exceeds one line, the excess data is not printed.

■ The raster bit image is not affected by character size and print modes (emphasized, double-strike, underline, white/black reverse printing, upside-down printing, or 90° clockwise-rotated).

■ 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.

■ Do not use this command during macro execution because the command cannot be included in a macro.

■ After printing a raster bit image, the printer processes additional data as normal data.

■ After printing, the print position moves to the beginning of the line.

■ The relationship between the bit image data and the printed result is as follows:

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

d1 d2 ... dX X = xL + xH × 256

dX+1 dX+2 ... dX×2

: : ... :

... dk-2 dk-1 dk

Page 282: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS v 0 Ver. 6.0 p. 282

Program Example Program Example (continued)

PRINT #1, CHR$(&H1B);"U";CHR$(1);← Select unidirectional printing

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

DATA CF,80,00,3F,E7,E0,00,30,1F,FF,F3,F0,07,E0,3F,E3

DATA CF,80,00,1F,E7,E0,00,20,1F,FF,E3,F0,07,E0,1F,E3

DATA CF,80,00,0F,F7,E0,00,20,1F,FF,E3,F0,07,E0,0F,F3

DATA CF,80,00,07,F7,E0,00,60,1F,FF,83,F0,07,E0,07,F3

DATA CF,80,00,03,F7,E0,00,40,1F,80,03,F0,07,E0,03,F3

DATA CF,80,00,03,F7,E0,00,C0,1F,80,03,F0,07,E0,03,F3

DATA CF,80,00,03,F7,F0,00,80,1F,80,01,F8,0F,C0,03,F3

DATA CF,80,00,07,F7,F0,00,80,1F,80,01,F8,0F,C0,07,F3

DATA CF,FF,EF,FF,F3,FF,F9,80,1F,80,01,FF,FF,CF,FF,F3

DATA CF,FF,EF,FF,F3,FF,F9,00,1F,80,01,FF,FF,CF,FF,F3

DATA CF,FF,EF,FF,F3,FF,F9,00,1F,80,00,FF,FF,8F,FF,F3

DATA CF,FF,EF,FF,E1,FF,FB,00,1F,80,00,FF,FF,8F,FF,F3

DATA CF,FF,EF,FF,C0,FF,FA,00,1F,80,00,7F,FF,0F,FF,C3

DATA CF,FF,EF,FF,00,3F,FA,00,1F,80,00,1F,FC,0F,FF,03

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 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

Print Sample

← Normal mode

Page 283: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS v 0 Ver. 6.0 p. 283

TM-H5000II

This command is enabled when the paper roll is selected as the paper type. The modes selectable by mmmm are as follows: Dots per 25.4 mm (dpi: dots per inch)

When page mode is selected, this command is disabled.

TM-J8000

The modes selectable by mmmm are as follows: Dots per 25.4 mm (dpi: dots per inch):

When economy printing is selected by GS E, the printer does not correctly process vertical dots; therefore, depending on the pattern of the image data, there may be no printing result from GS Q 0 or GS v 0. Fine printing is always selected when printing a bar code.

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal 180 dpi 180 dpi Permitted

1, 49 Double-width 180 dpi 90 dpi Permitted

2, 50 Double-height 90 dpi 180 dpi Permitted

3, 51 Quadruple 90 dpi 90 dpi Permitted

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal 360 dpi 360 dpi Permitted

1, 49 Double-width 360 dpi 180 dpi Permitted

2, 50 Double-height 180 dpi 360 dpi Permitted

3, 51 Quadruple 180 dpi 180 dpi Permitted

Page 284: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS v 0 Ver. 6.0 p. 284

TM-H6000

The modes that can be specified are different for paper roll and the face of a slip.

Paper roll

Slip (face)

dpi: dots per 25.4 mm (dots per inch)

• When page mode is selected, normal mode (m m m m = 0, 48) is disabled.

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal mode 180 dpi 180 dpi Permitted

1, 49 Double-width density mode 180 dpi 90 dpi Permitted

2, 50 Double-height density mode 90 dpi 180 dpi Permitted

3, 51 Quadruple-density mode 90 dpi 90 dpi Permitted

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal mode 72 dpi 160 dpi Prohibited

1, 49 Double-width density mode 72 dpi 80 dpi Permitted

Page 285: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bit-image commands GS v 0 Ver. 6.0 p. 285

TM-U675

The modes that can be specified are as follows:

dpi: dots per 25.4 mm (dots per inch)

• When page mode is selected, normal mode (m m m m = 0, 48) is disabled.

mmmm Mode Vertical Dot Density

Horizontal Direction

Dot Density Set Adjacent Dots

0, 48 Normal mode 72 dpi 160 dpi Prohibited

1, 49 Double-width density mode 72 dpi 80 dpi Permitted

Page 286: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands Ver. 6.0 p. 286

Status commands

Command Name

DLE EOT Real-time status transmissionDLE EOT NUL Real-time status transmissionDLE EOT BEL Real-time status transmission for ink

ESC u Transmit peripheral device statusESC v Transmit paper sensor statusFS ( e Enable/disable Automatic Status Back (ASB) for optional functions

(extended status)GS ( B Customize ASB-status bits

GS a Enable/disable Automatic Status Back (ASB)GS j Enable/disable Ink Automatic Status Back (ASB)GS r Transmit status

STATUS COMMANDS

Page 287: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 287

■ ■ ■ more■ ■ ■ moreDLE EOT

EXECUTING COMMAND

[Name] Real-time status transmission

[Format] ASCII DLE EOT nHex 10 04 nDecimal 16 4 n

[Range] TM-H5000II, TM-J8000, TM-H6000, TM-U925, TM-U675: 1 ≤≤≤≤ nnnn ≤≤≤≤ 5, TM-U375: 1 ≤≤≤≤ nnnn ≤≤≤≤ 6, TM-U325D: 1 ≤≤≤≤ nnnn ≤≤≤≤ 4, nnnn = 6

[Default] None

[Printers not featuring this command] TM-U300C/D

[Description] Transmits 1 byte of status data specified in real time, using n as follows:

[Notes] ■ The printer executes this real-time command upon receiving it.

• If this command is used in the middle of the code string of another command, this command is processed as a parameter of the other command; therefore, the print result will not be correct.

n Function

1 Transmit printer status

2 Transmit offline status

3 Transmit error status

4 Transmit paper roll sensor status

5 Transmit slip status

6 Transmit validation status

Status commands

Page 288: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 288

■ ■ ■ more■ ■ ■ moreExample:

If the user sends DLE EOT 5 in the middle of sending ESC 3 100 like this: ESC 3 DLE EOT 5 100, the printer checks the first three bytes, ESC 3 DLE, and executes a paper feed for n = 16 (because the decimal of DLE is 16) and ignores EOT (decimal 4) and 5 (there are no corresponding commands or characters). The printer checks the last code, 100, and prints the character “d.” The print result is different from what the user expected.

• If a command such as bit-image or defined data has a code string which is the same code string as DLE EOT in a parameter, the printer processes the DLE EOT command and then continues with the bit-image or other command.

In this case, a user may not recognize that the data includes the same code string as DLE EOT.

The DLE EOT command is processed when the printer receives the command, which means that the printer executes the command before storing the code string in the transmission buffer. The printer transmits the status and also stores the code string of the command in the transmission buffer as a part of the bit image data. Therefore, the print result will not be different from what the user expects.

Example:

Assume that a user sends a bit-image command, ESC ✻✻✻✻ n nL.......d1 d2 d3 d4...dk and that the codes for d1, d2, and d3 are the code string for DLE EOT n.

The printer stores the code string until it gets to the code string of DLE EOT n. At this point, it transmits the status. Then the printer continues storing the code string for the bit-image data including the code string of DLE EOT n. Therefore, the code string of DLE EOT n is used twice, and the bit image printing is what the user expects.

■ The printer transmits the 1-byte status without confirming whether the host computer can receive data.

■ With a serial interface model, this command is executed even when the printer is offline, the receive buffer is full, or an error occurs.

■ With a parallel interface model, this command is not executed in following status, 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 offline, an error occurs, or receive buffer is full when DIP switch is set to Off.

Page 289: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 289

■ ■ ■ more■ ■ ■ more■ This command is ignored during a process of transmitting the check paper reading result (only with the

MICR reader model).

■ Each status is 1 byte.

■ The real-time status to be transmitted is as follows:

• Printer status (n = 1)

Bit Off/On Hex Decimal Status

0 Off 00 0 Fixed.

... how to usethis table

1 On 02 2 Fixed.

2 Off 00 0 Drawer kick-out connector pin 3 is LOW.

On 04 4 Drawer kick-out connector pin 3 is HIGH.

3 Off 00 0 Online.

On 08 8 Offline.

4 On 10 16 Fixed.

5 Off 00 0 Not waiting for online recovery.

On 20 32 Waiting for online recovery.

6 0 00 0 Paper feed button is not being fed (Off).

1 40 64 Paper feed button is being fed (On)

7 Off 00 0 Fixed.

Page 290: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 290

■ ■ ■ more■ ■ ■ more• Offline status (n = 2)

• Bit 5 becomes on when the paper roll sensor (near-end sensor or end sensor) detects a paper-end and printing stops.

Bit Off/On Hex Decimal Status

0 Off 00 0 Fixed.

... how to usethis table

1 On 02 2 Fixed.

2 Off 00 0 Cover is closed.

On 04 4 Cover is open.

3 Off 00 0 Paper is not being fed by the paper feed button.

On 08 8 Paper is being fed by the paper feed button.

4 On 10 16 Fixed.

5 Off 00 0 No paper-end stop.

On 20 32 Printing stops due to a paper-end (paper roll).

6 Off 00 0 No error.

On 40 64 Error occurred.

7 Off 00 0 Fixed.

Page 291: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 291

■ ■ ■ more■ ■ ■ more• Error status (n = 3)

• 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 (such as a wire break) occurs, it is impossible to recover.

• 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.

Bit Off/On Hex Decimal Status

0 Off 00 0 Fixed.

... how to usethis table

1 On 02 2 Fixed.

2 Off 00 0 No mechanical error.

On 04 4 Mechanical error occurred.

3 Off 00 0 No autocutter error.

On 08 8 Autocutter error occurred.

4 On 10 16 Fixed.

5 Off 00 0 No unrecoverable error.

On 20 32 Unrecoverable error occurred.

6 Off 00 0 No auto-recoverable error.

On 40 64 Auto-recoverable error occurred.

7 Off 00 0 Fixed.

Page 292: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 292

■ ■ ■ more■ ■ ■ more• Paper roll sensor status (n = 4)

• Some paper sensors are not present, depending on the printer model.• The names of some paper sensors are different, depending on the printer model.• Slip status (n = 5)

Bit Off/On Hex Decimal Status

0 Off 00 0 Fixed.

... how to usethis table

1 On 02 2 Fixed.

2, 3 Off 00 0 Paper roll near-end sensor: paper adequate.

On 0C 12 Paper roll near-end sensor: paper near end.

4 On 10 16 Fixed.

5, 6 Off 00 0 Paper roll end sensor: paper present.

On 60 96 Paper roll end sensor: paper not present.

7 Off 00 0 Fixed.

Bit Off/On Hex Decimal Status

0 Off 00 0 Fixed.

... how to usethis table

1 On 02 2 Fixed.

2 Off 00 0 Slip paper selected.

On 04 4 Slip paper not selected.

3 Off 00 0 Does not wait for slip paper insertion.

On 08 8 Waits for slip insertion.

4 On 10 16 Fixed.

Page 293: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 293

■ ■ ■ more■ ■ ■ more

• Some paper sensors are not present, depending on the printer model.• The names of some paper sensors are different, depending on the printer model.• Validation status (n = 6)

• Some paper sensors are not present, depending on the printer model.

5 Off 00 0 Slip TOF sensor: paper present.

On 20 32 Slip TOF sensor: paper not present.

6 Off 00 0 Slip BOF sensor: paper present.

On 40 64 Slip BOF sensor: paper not present.

7 Off 00 0 Fixed.

Bit Off/On Hex Decimal Status

0 Off 00 0 Fixed.

... how to usethis table

1 On 02 2 Fixed.

2 Off 00 0 Validation paper selected.

On 04 4 Validation paper not selected.

3 Off 00 0 Does not wait for validation paper insertion.

On 08 8 Waits for validation insertion.

4 On 10 16 Fixed.

5 Off 00 0 Validation TOF sensor: paper present.

On 20 32 Validation TOF sensor: paper not present.

6 Off 00 0 Validation BOF sensor: paper present.

On 40 64 Validation BOF sensor: paper not present.

7 Off 00 0 Fixed.

Bit Off/On Hex Decimal Status

Page 294: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 294

• The names of some paper sensors are different, depending on the printer model.■ Real-time status can be differentiated by the information of bits 0, 1, 4, and 7 from other transmission

data. If the data transmitted from the printer is “0xx1xx10”(x = 0 or 1), process the data as a real-time status.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-J8000TM-H6000 TM-U675

TM-H5000II

BUSY condition for a parallel interface is selected by DIP switch 2-1.

■■■■ Printer status (nnnn = 1)

Bits 5 of the printer status is not supported.

■■■■ Error status (nnnn = 3)

Mechanical error indicates the home position detection error, carriage detection error, cut sheet (slip or check paper) ejection error, or front cover open error during printing.

Automatically recoverable error indicates the high head temperature error or paper roll cover open error during printing.

■■■■ Paper roll sensor status (nnnn = 4)

When the paper roll cover is open, paper detection (detected by the paper roll end sensor) may be incorrect.

Program Example for all printers

PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(2); ← Transmits offline status

Page 295: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 295

TM-U375

BUSY condition for a parallel interface is selected by DIP switch 2-3.

Bits 5 and 6 of the slip status and bits 5 and 6 of the validation status indicate the same paper sensor. The name of the paper sensor is "cut sheet sensor".

■■■■ Printer status (nnnn = 1)

Bit 5 of the printer status is not supported.

■■■■ Error status (nnnn = 3)

Bit 3 of the error status is not supported.

Mechanical error indicates the home position detection error, carriage detection error, or cut sheet (slip or validation) ejection error.

Automatically recoverable error indicates the high head temperature error.

■■■■ Paper roll status (nnnn = 4)

Bits 5 and 6 of the paper sensor status are not supported.

TM-U925

BUSY condition for a parallel interface is selected by DIP switch 2-5.

■■■■ Printer status (nnnn = 1)

Bit 5 of the printer status is not supported.

■■■■ Error status (nnnn = 3)

Mechanical error indicates the home position detection error, carriage detection error, or cut sheet (slip or validation) ejection error.

Automatically recoverable error indicates the high head temperature error.

■■■■ Slip status (nnnn = 5)

The names of the paper sensors for bits 5 and 6:

•••• Slip insertion sensor is the same sensor as the Slip TOF sensor.

•••• Slip ejection sensor is the same sensor as the Slip BOF sensor.

Page 296: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT Ver. 6.0 p. 296

TM-U325D

BUSY condition for a parallel interface is selected by DIP switch 2-1.

■■■■ Printer status (nnnn = 1)

Bit 5 of the printer status is not supported.

■■■■ Error status (nnnn = 3)

Bit 3 of the printer status is not supported.

Mechanical error indicates the home position detection error or validation ejection error.

Automatically recoverable error indicates the high head temperature error.

■■■■ Validation status (nnnn = 6)

Bits 5 and 6 indicate the same paper sensor. The name of the paper sensor is “validation sensor”.

TM-J8000

BUSY condition is selected by DIP switch 2-1.

Continuous paper sensor status (n n n n = 4)

When a paper roll cover is open, a paper roll sensor status may not be correct.

TM-H6000

BUSY condition is selected by DIP switch 2-1.

Paper roll sensor status (nnnn = 4)

When a paper roll cover is open, a paper-end sensor may be incorrect.

TM-U675

BUSY condition is selected by DIP switch 2-1.

Error status (nnnn = 3): Bit 3 is not supported.

Page 297: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT NUL Ver. 6.0 p. 297

■ ■ ■ more■ ■ ■ moreDLE EOT NUL

EXECUTING COMMAND

[Name] Real-time status transmission

[Format] ASCII DLE EOT NUL nHex 10 04 00 nDecimal 16 4 0 n

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] n = 1

[Description] Transmits the status specified by n in real time.

[Notes] ■ The printer executes this real-time command upon receiving it.

Be careful of the following points for real-time commands:

• If this command is used in the middle of the code string of another command, this command is processed as a parameter of the other command; therefore, the print result will not be correct.Example:If the user sends DLE EOT 5 in the middle of sending ESC 3 100 like this: ESC 3 DLE EOT 5 100, the printer checks the first three bytes, ESC 3 DLE, and executes 16 paper feeds (n = 16, because the decimal of DLE is 16) and ignores EOT (decimal 4) and 5 (there are no corresponding commands or characters). The printer checks the last code, 100, and prints the character “d.” The print result is different from what the user expected.

• If a command such as a bit-image or defined data uses a data string that is the same as DLE EOT, the printer processes the DLE EOT command and then continues with the bit-image or other command.In this case, the user may not recognize that the data includes the same code string as DLE EOT.The DLE EOT command is processed when the printer receives the command, which means that the printer executes the command before storing the code string in the transmission buffer. The printer transmits the status and also stores the code string for the command in the transmission buffer as a part of the bit image data. Therefore, the print result will not be different from what the user expects.

m Function

1 Transmit cut sheet status

Status commands

Page 298: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT NUL Ver. 6.0 p. 298

■ ■ ■ more■ ■ ■ moreExample:Assume that a user sends a bit-image command, ESC ✻ ✻ ✻ ✻ n nL.......d1 d2 d3 d4...dk and that the codes for d1, d2, and d3 are the code string for DLE EOT n.The printer stores the code string until it encounters the code string DLE EOT n. At this point, it transmits the status. Then the printer continues storing the code string for the bit-image data including the code string DLE EOT n. Therefore, the code string DLE EOT n is used twice, and the bit image printing is what the user expects.

■ With a serial interface model, this command is executed even when the printer is offline, the receive buffer is full, or an error occurs.

■ With a parallel interface model, this command is not executed in any of the following status 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.

• The receive buffer is full when the DIP switch is set to On.• The printer is offline, an error occurs, or the receive buffer is full when the DIP switch is set to Off.

■ This command can be used when the printer is disabled by ESC =.

■ This command is ignored when block data (Header~NUL) is being transmitted.

■ Each status message is 1 byte.

■ Cut sheet status (n = 1) is as follows:

Bit Function Binary Hexadecimal Decimal

0 Fixed 0 00 0

1 Fixed 1 02 2

2 Paper width sensor: paper present 0 00 0

Paper width sensor: paper not present 1 04 4

3 Slip paper ejection sensor detects the presence of paper

0 00 0

Slip paper ejection sensor does not detect the presence of paper

1 08 8

Page 299: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT NUL Ver. 6.0 p. 299

■ With a serial interface, the printer transmits a 1-byte data message without confirming that the host can receive the data.

■ With a parallel interface, real-time status is stored in the transmission buffer of the printer temporarily as with other transmission data (except ASB status), and when the host enters Reverse Mode, data is transmitted in order from the beginning of the transmission buffer. The transmission buffer is 99 bytes; therefore, data which exceeds 99 bytes is ignored. When using this command, the host should enter the Reverse Mode immediately and execute receive processing of status.

■ Real-time status can be differentiated from other transmission data by the information in bits 0, 1, 4, and 7. If the data transmitted from the printer is “0xx1xx10”(x = 0 or 1), the host should process the data as a real-time status.

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U300C/D TM-U325DTM-U375 TM-U925 �

TM-H5000II

BUSY condition is selected by DIP switch 2-1.

Cut sheet status (when nnnn = 1):Bit 3 is not supported.

4 Fixed 1 10 16

5 Select the face of a slip 0 00 0

Select the back of a slip 1 20 32

6 Reversed — — —

7 Fixed 0 00 0

Program Example

PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(0);CHR$(1);

Page 300: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT NUL Ver. 6.0 p. 300

TM-J8000

BUSY condition is selected by DIP switch 2-1.

Slip sheet status (when nnnn = 1):Bit 5 is not supported.

TM-H6000

BUSY condition is selected by DIP switch 2-1.

Cut sheet status (nnnn = 1):Bit 2 is not supported.

TM-U300C/D

Cut sheet status (nnnn = 1):Bit 3 is not supported.

TM-U325D

BUSY condition is selected by DIP switch 2-1.

Cut sheet status (nnnn = 1)Bit 3 is not supported.

TM-U375

BUSY condition is selected by DIP switch 2-3.

Cut sheet status (nnnn = 1):Bit 3 is not supported.

TM-U925

BUSY condition is selected by DIP switch 2-5.

Cut sheet status (nnnn = 1):Bit 3 is not supported.

Page 301: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT BEL Ver. 6.0 p. 301

■ ■ ■ more■ ■ ■ moreDLE EOT BEL

EXECUTING COMMAND

[Name] Real-time status transmission for ink

[Format] ASCII DLE EOT BEL nHex 10 04 07 nDecimal 16 4 7 n

[Range] n = 1

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Transmits the ink status specified by n in real time.

[Notes] ■ This is a real-time command which the printer executes upon receiving it. Take the following into consideration:

• If this command is used in the middle of the code string of another command, this command is processed as a parameter of the other command; therefore, the print result will not be correct.Example:If the user sends DLE EOT 5 in the middle of sending ESC 3 100 like this: ESC 3 DLE EOT 5 100, the printer checks the first three bytes, ESC 3 DLE, and executes a paper feed for n = 16 (because the decimal of DLE is 16) and ignores EOT (decimal 4) and 5 (there are no corresponding commands or characters). The printer checks the last code, 100, and prints the character “d.” The print result is different from what the user expected.

• If a command such as bit-image or defined data has a code string which is the same code string as DLE EOT in a parameter, the printer processes the DLE EOT command and then continues with the bit-image or other command.In this case, a user may not recognize that the data includes the same code string as DLE EOT.

n Function

1 Transmit ink status

Status commands

Page 302: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT BEL Ver. 6.0 p. 302

■ ■ ■ more■ ■ ■ moreThe DLE EOT command is processed when the printer receives the command, which means that the printer executes the command before storing the code string in the transmission buffer. The printer transmits the status and also stores the code string of the command in the transmission buffer as a part of the bit image data. Therefore, the print result will not be different from what the user expects.Example:Assume that a user sends a bit-image command, ESC ✻✻✻✻ n nL.......d1 d2 d3 d4...dk and that the codes for d1, d2, and d3 are the code string for DLE EOT n.The printer stores the code string until it gets to the code string of DLE EOT n. At this point, it transmits the status.Then the printer continues storing the code string for the bit-image data including the code string of DLE EOT n. Therefore, the code string of DLE EOT n is used twice, and the bit image printing is what the user expects.

■ With a serial interface, this command can be executed when the printer is in offline, receive buffer full, or error state.

■ With a parallel interface, the printer cannot receive data when it is BUSY condition. This command cannot be used in the following cases:

• DIP switch (BUSY condition) is On: receive buffer full state• DIP switch (BUSY condition) is Off: offline, receive buffer full, or error state

■ This command can be used when the printer is disabled by ESC =.

■ This command is ignored when transmitting block data (header~NUL).

■ Each status 1-byte.

■ Ink status (n = 1) is as follows:

Bit Function Binary Hexadecimal Decimal

0 Fixed 0 00 0

1 Fixed 1 02 2

2 No ink near-end detected 0 00 0

Ink near-end detected 1 04 4

3 No ink end detected 0 00 0

Ink end detected 1 08 8

Page 303: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands DLE EOT BEL Ver. 6.0 p. 303

■ With a serial interface, the printer transmits a 1-byte status without confirming whether the host can receive data.

■ With a parallel interface, a real-time status is stored in the transmission buffer of the printer temporarily the same as the other transmission data (except for ASB status), and when the host enters Reverse Mode, data is transmitted in order from the beginning of the transmission buffer. The transmission buffer is 99 bytes; therefore, data which exceeds 99 bytes is ignored. When using this command, the host should be changed to the Reverse Mode immediately and execute a receive processing of status.

■ Real-time status can be differentiated by the information of bits 0, 1, 4, and 7 from other transmission data. If the data transmitted from the printer is “0xx1xx10”(x = 0 or 1), process the data as a real-time status.

[Model-dependent variations] TM-J8000

TM-J8000

BUSY condition is selected by DIP switch 2-1.

When an ink near-end is detected, the INK OUT light blinks. It is possible to print approximately 20,000 characters using font B with economy printing specified during the time when an ink near-end is detected to the time when an ink end is detected.

4 Fixed 1 10 16

5 Ink cartridge detected 0 00 0

Ink cartridge not detected 1 20 32

6 Cleaning is not being performed 0 00 0

Cleaning is being performed 1 40 64

7 Fixed 0 00 0

Program Example

PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(7);CHR$(1);

Page 304: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands ESC u Ver. 6.0 p. 304

■ ■ ■ more■ ■ ■ moreESC u

EXECUTING COMMAND

[Name] Transmit peripheral device status

[Format] ASCII ESC u nHex 1B 75 nDecimal 27 117 n

[Range] TM-U375, TM-U925: nnnn = 0, 48; TM-U300C/D: nnnn = 0

[Default] None

[Printers not featuring this command] TM-H5000II, TM-U325D, TM-J8000

[Description] Transmits the status of drawer kick-out connector pin 3 as 1 byte of data when n = 0 or 48.

[Notes] ■ GS r 2 can be used to check the status. GS r is recommended for transmitting the peripheral device status. ESC u is not a recommended command and will not be supported by future printer models.

■ 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.

■ 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.

■ The peripheral device status to be transmitted is as follows:

Bit Off/On Hex Decimal Status

0 Off 00 0 Drawer kick-out connector pin 3 is LOW.

... how to usethis table

On 01 1 Drawer kick-out connector pin 3 is HIGH.

1-3 — — — Reserved.

4 Off 00 0 Fixed.

5, 6 — — — Reserved.

7 Off 00 0 Fixed.

Status commands

Page 305: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands ESC u Ver. 6.0 p. 305

[Model-dependent variations] TM-U375 TM-U925 TM-U300C/D

TM-U375

Handshaking for a serial interface is selected by DIP switch 1-3.

TM-U925

Handshaking for a serial interface is selected by DIP switch 1-8.

TM-U300C/D

Handshaking for a serial interface is selected by DIP switch 1-3.

Program Example for all printers

PRINT #1,CHR$(&H1B);"u";CHR$(0);

Page 306: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands ESC v Ver. 6.0 p. 306

■ ■ ■ more■ ■ ■ moreESC v

EXECUTING COMMAND

[Name] Transmit paper sensor status

[Format] ASCII ESC vHex 1B 76Decimal 27 118

[Range] None

[Default] None

[Printers not featuring this command] TM-H5000II, TM-U325D, TM-J8000

[Description] Transmits the status of paper sensor(s) as 1 byte of data.

[Notes] ■ GS r 1 can be used to check the status. GS r is recommended for transmitting the paper sensor status. ESC v is not a recommended command and will not be supported by future printer models.

■ 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.

■ 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.

■ The peripheral device status to be transmitted is as follows:

Bit Off/On Hex Decimal Status

0, 1 Off 00 0 Paper roll near-end sensor: paper adequate.

... how to usethis table

On 03 3 Paper roll near-end sensor: paper near end.

2, 3 Off 00 0 Paper roll end sensor: paper present.

On 0C 12 Paper roll end sensor: paper not present.

4 Off 00 0 Fixed.

5 Off 00 0 TOF sensor: paper present.

On 20 32 TOF sensor: paper not present.

Status commands

Page 307: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands ESC v Ver. 6.0 p. 307

[Model-dependent variations] TM-U375 TM-U925 TM-U300C/D

TM-U375

Handshaking for a serial interface is selected by DIP switch 1-3.

Bits 2 and 3 of the status are undefined.

Bits 5 and 6 indicate the same paper sensor. The name of the paper sensor is "cut sheet sensor".

TM-U925

Handshaking for a serial interface is selected by DIP switch 1-8.

The names of the paper sensors for bits 5 and 6:

■■■■ Slip insertion sensor is the same sensor as the TOF sensor.

■■■■ Slip ejection sensor is the same sensor as the BOF sensor.

TM-U300C/D

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:

■■■■ Bits 1, 3, and 5 of the status are not supported.

■■■■ Bits 6 and 7 indicate the same paper sensor. The name of the paper sensor is “validation sensor”.

6 Off 00 0 BOF sensor: paper present.

On 40 64 BOF sensor: paper not present.

7 Off 00 0 Fixed.

Program Example for all printers

PRINT #1,CHR$(&H1B);"v";

Bit Off/On Hex Decimal Status

Page 308: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands FS ( e Ver. 6.0 p. 308

■ ■ ■ more■ ■ ■ moreFS ( e

EXECUTING COMMAND

[Name] Enable/disable Automatic Status Back (ASB) for optional functions (extended status)

[Format] ASC II FS ( e pL pH m nHex 1C 28 65 pL pH m nDecimal 28 44 101 pL pH m n

[Printers not featuring this command] TM-J8000, TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] pL = 2, pH = 0 ((pL + pH × 256) = 2)m = 510 ≤ n ≤ 255TM-H6000, TM-U675: ppppLLLL = 2, ppppHHHH = 0

mmmm = 510 ≤≤≤≤ nnnn ≤≤≤≤ 255

[Default] n =0

[Description] Enables or disables ASB and specifies the status items to include, using n as follows:

[Notes] ■ The status message the printer sends for optional functions consists of 4 bytes, [Header + status A + status B + NUL].

■ Header is [Hex = 39H/Decimal = 57]

Bits Function Binary Hexdecimal Decimal

0 Status bit for MICR disabled 0 00 0

Status bit for MICR enabled 1 01 1

1 Status bit for print side selection disabled 0 00 0

Status bit for print side selection enabled 1 02 2

2 - 7 Reserved 0 00 0

Status commands

Page 309: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands FS ( e Ver. 6.0 p. 309

■ ■ ■ more■ ■ ■ more■ Status A is as follows:

Note: Bit 5 may be incorrect when slip is not selected as the paper type.

■ Status B is [Hex = 40H/Decimal = 64].

■ NUL is [Hex = 00H/Decimal = 0].

■ With a serial interface, the 4-byte status message is transmitted without confirming whether the host computer is ready to receive data.

■ With a parallel interface, when ASB status is used, it is desirable for the host to be in the reverse idle state. However, if the host computer cannot always be in the reverse idle state, it is necessary to enter Reverse Mode regularly to watch for ASB status. If the host is not in the Reverse Mode for a long time, and the printer has to store ASB status bits to be transmitted when each status item changes, the following 2 sets (8 bytes) of ASB status are changed to special data and transmitted prior to other transmission data when the host enters Reverse Mode.

ASB-1: Status information that shows whether status changes occurred

ASB-2: The latest ASB status information

Bits Function Binary Hexdecimal Decimal

0 Status bit for MICR enabled 0 00 0

Status bit for MICR disabled 1 01 1

1-4 Reserved - - -

5 Face of slip selected 0 00 0

Back of slip selected 1 20 32

6 Fixed 1 40 64

7 Fixed 0 00 0

Page 310: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands FS ( e Ver. 6.0 p. 310

■ ■ ■ more■ ■ ■ moreIf bits have a different value between (ASB-1) and (ASB-2), it shows at least one change occurred. An example is shown below:

Bit 0 of status A is different. This information shows MICR has been selected at least once, but the current status is that MICR is unselected.

■ Multiple status items can be enabled or disabled. When n = 0, all status items are disabled, and automatic status transmission is disabled.

■ ASB is enabled if any status item is selected. The printer transmits a 4-byte status message when this command is executed. The printer automatically transmits the 4-byte status message whenever the status changes. Each status message shows the current status:

■ If ASB is enabled when the printer is disabled by ESC =, the printer transmits the 4-byte status message whenever the status changes.

■ The printer does not transmit ASB status during block data [Header ~ NUL] transmission.

■ The setting of this command is effective until ESC @ is received, the printer is reset, or the power is turned off.

■ The host can differentiate extended status from other status transmissions by the header. When the printer transmits the header [Hex = 39H/Decimal = 57], four bytes of data up to NUL [Hex = 00H/Decimal = 0] are processed as ASB status. The other processes described below are also necessary:

• While block data [Header ~ NUL] is being processed, ASB status is not identified.

Header Status A Status B NUL

ASB-1 0011 1001 0100 0000 0100 0000 0000 0000

ASB-2 0011 1001 0100 0001 0100 0000 0000 0000

n Extended ASB status

Bit Status ASB status Bit

0 MICR operation MICR selection Status A: bit 0

1 Print side Print side selection for a slip Status A: bit 5

Page 311: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands FS ( e Ver. 6.0 p. 311

• When the host is communicating with the printer by XON/XOFF control, the host processes a 4-byte data group, except the XOFF code, as ASB status. ASB status does not have the same data configuration as the XOFF code.

[Model-dependent variations] TM-U675

TM-U675

Bit 1 of nnnn and bit 5 of Status A are not supported.

Program Example

PRINT #1, CHR$(&H1C);”(e”;CHR$(2);CHR$(0);CHR$(51);CHR$(1); ← Only MICR status is enabled

Page 312: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS ( B Ver. 6.0 p. 312

■ ■ ■ more■ ■ ■ moreGS ( B

SETTING COMMAND

[Name] Customize ASB-status bits

[Format] ASCII GS ( B pL pH m [a1 b1]...[ak bk]Hex 1D 28 42 pL pH m [a1 b1]...[ak bk]Decimal 29 81 48 pL pH m [a1 b1]...[ak bk]

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] pL = 2, 3, 5pH = 0m = 97a = 0, 69, 70b = 44 [when a = 69]b = 54 [when a = 70]TM-H6000: ppppLLLL = 2, 3, 5, 7

ppppHHHH = 0mmmm = 97aaaa = 0, 49, 51, 70bbbb = 44 [when aaaa = 49]bbbb = 45 [when aaaa = 51], 55 (when a = 70)

TM-U675: ppppLLLL = 2, 3, 5, 7ppppHHHH = 0mmmm = 97aaaa = 0, 49, 51, 70bbbb = 44 [when aaaa = 49]bbbb = 45 [when aaaa = 51], 55 (when aaaa = 70)

[Description] Changes the bit assignments of the ASB status bit • pL, pH specifies (pL + pH × 256) for the number of bytes after pH (m and [a1 b1] ...

[ak bk]).

• a specifies the bit of the ASB to be customized.• b specifies the ASB status.

Status commands

Page 313: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS ( B Ver. 6.0 p. 313

■ ■ ■ more■ ■ ■ more• When a = 0, the setting of the ASB status bit assignment is canceled. b is not necessary, and

(pL + pH × 256) = 2.

• When a is not 0, ASB status bit is specified for customizing. The status is specified by bit 7, 6, 5, or 4, and the bit is specified by bit 3, 2, 1, or 0. a can be specified as follows:

• b specifies the status to be customized.

a

Specifying Customization of Status

First byte Second byte Third byte Fourth byte

Specifies the bit for customization as bit 0

Cannot be specified 32 48 64

Specifies the bit for customization as bit 1

Cannot be specified 33 49 65

Specifies the bit for customization as bit 2

18 34 50 66

Specifies the bit for customization as bit 3

19 35 51 67

Specifies the bit for customization as bit 5

21 37 53 69

Specifies the bit for customization as bit 6

22 38 54 70

b Function

44 Specifies “cut sheet insertion waiting status”

45 Specifies “cut sheet removal waiting status”

54 Specifies “the status of a paper-width sensor”

55 Specifies “slip paper ejection sensor status”

Page 314: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS ( B Ver. 6.0 p. 314

[Notes] ■ This command customizes a status bit, but does not change the enabled/disabled setting for ASB status transmission.

■ When customizing a bit with this command, set ASB status transmission to disabled with a GS a command in advance.

■ Bit customization by this command affects normal ASB status (ASB status for GS a). Refer to GS a for details.

■ Customizing is not specified by default.

■ The setting of this command is effective until the printer is reset or the power is turned off. This command is not initialized by executing ESC @.

[Model-dependent variations] None

Program Example

PRINT #1, CHR$(&H1D);”(B”;CHR$(3);CHR$(0);CHR$(97);CHR$(69);CHR$(44);

Page 315: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 315

■ ■ ■ more■ ■ ■ moreGS a

EXECUTING COMMAND

SETTING COMMAND

[Name] Enable/disable Automatic Status Back (ASB)

[Format] ASCII GS a nHex 1D 61 nDecimal 29 97 n

[Range] 0 ≤ n ≤ 255

[Default] When DIP switch (BUSY condition) is Off : n = 0When DIP switch (BUSY condition) is On : n = 2

[Printers not featuring this command] TM-U300C/D

[Description] Enables or disables ASB and specifies the status items to include, using n as follows:

Bit Off/On Hex Decimal Function

0 Off 00 0 Drawer kick-out connector pin 3 status disabled.

... how to usethis table

On 01 1 Drawer kick-out connector pin 3 status enabled.

1 Off 00 0 Online/offline status disabled.

On 02 2 Online/offline status enabled.

2 Off 00 0 Error status disabled.

On 04 4 Error status enabled.

3 Off 00 0 Paper roll sensor status disabled.

On 08 8 Paper roll sensor status enabled.

4 0 00 0 Reserved.

5 Off 00 0 Cut sheet sensor and status disabled.

On 20 32 Cut sheet sensor and status enabled.

Status commands

Page 316: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 316

■ ■ ■ more■ ■ ■ more

[Notes] ■ Multiple status items can be selected.

■ When n = 0, ASB is disabled.

■ If ASB is enabled when the printer is disabled by ESC =, the printer transmits a 4-byte status message whenever the status changes.

■ The printer does not transmit ASB status during block data [header ~ NUL] transmission.

■ The setting of this command is effective until ESC @ is executed, the printer is reset, or the power is turned off.

■ Bits of ASB status can be customized by GS ( B. The bits that can be customized are different depending on the printer.

■ With a serial interface, the 4-byte status message is transmitted without confirming whether the host computer is ready to receive data. The 4-byte status message must be consecutive, except for the XOFF code.

■ With a parallel interface, when ASB status is used, it is desirable for the host to be in reverse idle state. However, if the host computer cannot always be in the reverse idle state, it is necessary to enter Reverse Mode regularly to watch for ASB status. If the host is not in the Reverse Mode for a long time and the printer has to store ASB status bits to be transmitted when each status item changes, the following 2 sets (8 bytes) of ASB status are changed to special data and transmitted prior to other transmission data when the host enters the Reverse Mode:

• ASB-1: Status information that shows whether status changes occurred• ASB-2: The latest ASB status information

6 Off 00 0 Panel buttons disabled.

On 40 64 Panel buttons enabled.

7 0 00 0 Reserved.

Bit Off/On Hex Decimal Function

Page 317: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 317

■ ■ ■ more■ ■ ■ more If the bits have a different value between (ASB-1) and (ASB-2), at least one change occurred. An example is

shown below:

• Bits 5 and 3 of the first byte are different. From this information, the printer went offline (bit 3) due to a cover open (bit 5), but the current status is that the printer is online and the cover is closed.

■ The host can differentiate normal ASB status from other transmission data by the information in bits 0, 1, 4, and 7. If the data transmitted from the printer is “0xx1xx00”(x = 0 or 1), it processes the following 3 bytes of data as an ASB status item. When identifying an ASB status item, there are exceptions, as follows:

• When processing block data [Header ~ NUL], the host does not identify the ASB status.• When the host communicates with the printer by XON/XOFF control, it processes 4 bytes of data from

the printer, except for the XOFF code, as ASB status. The configuration of ASB status is different from that of the XOFF code.

■ ASB is enabled if any status item is selected. The printer transmits a 4-byte status message when this command is executed. The printer automatically transmits another 4-byte status message whenever the status changes.

The first byte The second byte The third byte The fourth byte

ASB-1 0011 1000 0000 0000 0110 0011 0000 1111

ASB-2 0001 0000 0000 0000 0110 0011 0000 1111

Page 318: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 318

■ ■ ■ more■ ■ ■ more■ The current ASB status items, corresponding to each bit of n are as follows:

n ASB status

Bit Function Bit ASB Status

0 Drawer kick-out connector

Bit 2 of the first byte Status of drawer kick-out connector pin 3 (high or low).

... how to usethis table

1 Online/offline status

Bit 3 of the first byte Online/offline status.

Bit 5 of the first byte Cover status.

Bit 6 of the first byte Status of whether paper is being fed by paper FEED button.

Bit 0 of the second byte Status of whether the printer is waiting for online recovery.

*1) Bits 0, 1 of the third byte Paper roll near-end sensor status.

*1) Bits 2, 3 of the third byte Paper roll end sensor status.

2 Error status Bit 2 of the second byte Mechanical error status.

Bit 3 of the second byte Autocutter error status.

Bit 5 of the second byte Unrecoverable error status.

Bit 6 of the second byte Automatically recoverable error status.

3 Paper roll sensor status

Bits 0 and 1 of the third byte Paper roll near-end sensor status.

Bits 2 and 3 of the third byte Paper roll end sensor status.

*1) Note: Only when the paper-end sensor is enabled.

Page 319: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 319

■ ■ ■ more■ ■ ■ more

*2) Note: Only when customization is set by GS ( B.

■ ASB status is a 4-byte status message from the first byte to the fourth byte.

■ The ASB status message to be transmitted is as follows:

5 Cut sheet sensor and status

Bit 5 of the third byte Slip TOF sensor status.

Bit 6 of the third byte Slip BOF sensor status.

Bit 0 of the fourth byte Slip paper selection status.

Bit 1 of the fourth byte Slip printing status.

Bit 2 of the fourth byte Validation paper selection status.

Bit 3 of the fourth byte Validation printing status.

Bit 5 of the fourth byte Validation TOF sensor status.

Bit 6 of the fourth byte Validation BOF sensor status.

*2) Depends on GS ( B setting Cut sheet insertion waiting status.

*2) Depends on GS ( B setting Cut sheet removal waiting status.

*2) Depends on GS ( B setting Paper-width sensor status.

6 Panel switch status Bit 1 of the second byte Paper FEED button status.

n ASB status

Bit Function Bit ASB Status

Page 320: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 320

■ ■ ■ more■ ■ ■ more• First byte (printer information)

Bit Off/On Hex Decimal ASB Status Description

0 Off 00 0 Fixed.

... how to usethis table

1 Off 00 0 Fixed.

2 Off 00 0 Drawer kick-out connector pin 3 is LOW.

On 04 4 Drawer kick-out connector pin 3 is HIGH.

3 Off 00 0 Online.

On 08 8 Offline.

4 On 10 16 Fixed.

5 Off 00 0 Cover is closed.

On 20 32 Cover is open.

6 Off 00 0 Paper is not being fed by the paper FEED button.

On 40 64 Paper is being fed by the paper FEED button.

7 Off 00 0 Fixed.

Page 321: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 321

■ ■ ■ more■ ■ ■ more• Second byte (printer information)

• If a mechanical error (bit 2) or an 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.

• If an unrecoverable error (bit 5) occurs, turn off the power as soon as possible.

Bit Off/On Hex Decimal ASB Status Description

0 Off 00 0 Not waiting for online recovery.

... how to usethis table

On 01 1 Waiting for online recovery.

1 Off 00 0 Paper FEED not pressed (Off).

On 02 2 Paper FEED pressed (On).

2 Off 00 0 No mechanical error.

On 04 4 Mechanical error occurred.

3 Off 00 0 No autocutter error.

On 08 8 Autocutter error occurred.

4 Off 00 0 Fixed.

5 Off 00 0 No unrecoverable error.

On 20 32 Unrecoverable error occurred.

6 Off 00 0 No automatically recoverable error.

On 40 64 Automatically recoverable error occurred.

7 Off 00 0 Fixed.

Page 322: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 322

■ ■ ■ more■ ■ ■ more• Third byte (paper sensor information)

• Some paper sensors are not present, depending on the printer model.• The names of some paper sensors are different, depending on the printer model.

Bit Off/On Hex Decimal ASB Status Description

0, 1 Off 00 0 Paper roll near-end sensor: paper adequate.

... how to usethis table

On 03 3 Paper roll near-end sensor: paper near end.

2, 3 Off 00 0 Paper roll end sensor: paper present.

On 0C 12 Paper roll end sensor: paper not present.

4 Off 00 0 Fixed.

5 Off 00 0 Slip TOF sensor: paper present.

On 20 32 Slip TOF sensor: paper not present.

6 Off 00 0 Slip BOF sensor: paper present.

On 40 64 Slip BOF sensor: paper not present.

7 Off 00 0 Fixed.

Page 323: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 323

• Fourth byte (paper sensor information)

• Some paper sensors are not present, depending on the printer model.• The names of some paper sensors are different, depending on the printer model.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-J8000TM-H6000 TM-U675

Bit Off/On Hex Decimal ASB Status Description

0 Off 00 0 Slip paper selected.

... how to usethis table

On 01 1 Slip paper not selected.

1 Off 00 0 Slip printing possible.

On 02 2 Slip printing not possible.

2 Off 00 0 Validation paper selected.

On 04 4 Validation paper not selected.

3 Off 00 0 Validation printing possible.

On 08 8 Validation printing not possible.

4 Off 00 0 Fixed.

5 Off 00 0 Validation TOF sensor: paper present.

On 20 32 Validation TOF sensor: paper not present.

6 Off 00 0 Validation BOF sensor: paper present.

On 40 64 Validation BOF sensor: paper not present.

7 Off 00 0 Fixed.

Program Example for all printers

PRINT #1, CHR$(&H1D);"a";CHR$(4); ← Enable "Error" status

Page 324: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 324

TM-H5000II

The default value is set by DIP switch 2-1.

■■■■ Second byte (printer information)

Bit 0 of the second byte is not supported.

A mechanical error indicates a home position detection error, carriage detection error, cut sheet (slip or check paper) ejection error, or front cover open error during printing.

An automatically recoverable error indicates a high head temperature error or a paper roll cover open error during printing.

■■■■ Third byte (paper sensor information)

When the paper roll cover is open, paper detection (detected by the paper roll end sensor) may be incorrect.

■■■■ Fourth byte (paper sensor information)

Bits 2, 3, 5, and 6 of the fourth byte are not supported.

TM-U375

The default value is set by DIP switch 2-3.

Bits 5 and 6 of the third byte and bits 5 and 6 of the fourth byte indicate the same paper sensor. The name of the paper sensor is "cut sheet sensor."

■■■■ Second byte (printer information)

Bits 0 and 3 of the second byte are not supported.

A mechanical error indicates a home position detection error, carriage detection error, or cut sheet (slip or validation) ejection error.

An automatically recoverable error indicates a high head temperature error.

■■■■ Third byte (paper sensor information)

Bits 2 and 3 of the third byte are not supported.

Page 325: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 325

TM-U925

The default value is set by DIP switch 2-5.

■■■■ Second byte (printer information)

Bit 0 of the second byte is not supported.

A mechanical error indicates a home position detection error, carriage detection error, or cut sheet (slip or check paper) ejection error.

An automatically recoverable error indicates a high head temperature error.

■■■■ Third byte (paper sensor information)

The names of the paper sensors for bits 5 and 6:

•••• Slip insertion sensor is the same sensor as the slip TOF sensor.

•••• Slip ejection sensor is the same sensor as the slip BOF sensor.

■■■■ Fourth byte (paper sensor information)

Bits 2, 3, 5, and 6 of the fourth byte are not supported.

TM-U325D

The default value is set by DIP switch 2-1.

■■■■ Second byte (printer information)

Bits 0 and 3 of the second byte are not supported.

A mechanical error indicates a home position detection error or validation ejection error.

An automatically recoverable error indicates a high head temperature error.

■■■■ Third byte (paper sensor information)

Bits 5 and 6 of the third byte are not supported.

■■■■ Fourth byte (paper sensor information)

Bits 0 and 1 of the fourth byte are not supported.

Bits 5 and 6 indicate the same paper sensor. The name of the paper sensor is “validation sensor.”

Page 326: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 326

TM-J8000

The default value is set by DIP switch 2-1.

■■■■ Third byte (paper sensor information)

When the paper roll cover is open, the paper-end sensor may not be correct.

■■■■ Fourth byte (paper sensor information)

Bits 2, 3, 5, 6 are not supported. Bits 5 and 6 can be customized by GS ( B as shown below:

Bits Function Binary Hexadecimal Decimal

0 Slip selected 0 00 0

Slip not selected 1 01 1

1 Slip printing enabled 0 00 0

Slip printing disabled 1 02 2

2, 3 Reserved - - -

4 Fixed 0 00 0

5 Not waiting for a slip to be inserted 0 00 0

Waiting for a slip to be inserted 1 20 32

6 Paper width sensor: paper present 0 00 0

Paper width sensor: paper not present 1 40 64

7 Fixed 0 00 0

Page 327: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 327

TM-H6000

■■■■ The default is selected by DIP switch 2-1.

■■■■ The third byte (paper sensor information)

When the paper roll cover is open, the paper roll end sensor status may be incorrect.

Bit 1 and bit 3 can be customized by GS ( B as follows:

■■■■ Fourth byte (paper sensor information)Bits 2, 3, 5, and 6 are not supported.

Bits Function Binary Hexadecimal Decimal

0 Paper near-end sensor: paper present 0 00 0

Paper near-end sensor: paper not present 1 01 1

1 Not waiting for a slip to be inserted 0 00 0

Waiting for a slip to be inserted 1 02 2

2 Paper roll end sensor: paper present 0 00 0

Paper roll end sensor: paper not present 1 04 4

3 Not waiting for a slip to be ejected 0 00 0

Waiting for a slip to be ejected 1 08 8

4 Fixed 0 00 0

5 Slip TOF sensor: paper present 0 00 0

Slip TOF sensor: paper not present 1 20 32

6 Slip BOF sensor: paper present 0 00 0

Slip BOF sensor: paper not present 1 40 64

7 Fixed 0 00 0

Page 328: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS a Ver. 6.0 p. 328

TM-U675

■■■■ The default is selected by DIP switch 2-1.

■■■■ The second byte (printer information)

Bit 3 is not supported.

■■■■ The third byte (paper sensor information)

Bit 1 and bit 3 can be customized by GS ( B as follows:

Bits Function Binary Hexadecimal Decimal

0 Paper near-end sensor: paper present 0 00 0

Paper near-end sensor: paper not present 1 01 1

1 Not waiting for a slip to be inserted 0 00 0

Waiting for a slip to be inserted 1 02 2

2 Paper roll end sensor: paper present 0 00 0

Paper roll end sensor: paper not present 1 04 4

3 Not waiting for a slip to be ejected 0 00 0

Waiting for a slip to be ejected 1 08 8

4 Fixed 0 00 0

5 Slip TOF sensor: paper present 0 00 0

Slip TOF sensor: paper not present 1 20 32

6 Slip BOF sensor: paper present 0 00 0

Slip BOF sensor: paper not present 1 40 64

7 Fixed 0 00 0

Page 329: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS j Ver. 6.0 p. 329

■ ■ ■ more■ ■ ■ moreGS j

EXECUTING COMMAND

[Name] Enable/disable Ink Automatic Status Back (ASB)

[Format] ASCII GS j nHex 1D 6A nDecimal 29 106 n

[Range] 0 ≤ n ≤ 255

[Default] When DIP switch 2-1 is Off: n = 0When DIP switch 2-1 is On: n = 1

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Enables or disables the ink ASB (Automatic Status Back).n specifies the status for the ASB in the table below:

[Notes] ■ The ink ASB status is a 4-byte message, consisting of [header + status A + status B + NUL].

■ The header is [Hexadecimal = 35H/Decimal = 53]

Bit Function Binary Hexadecimal Decimal

0 Disable online/offline status of the ink mechanism 0 00 0

Enable online/offline status of the ink mechanism 1 01 1

1 Disable ink status detection 0 00 0

Enable ink status detection 1 02 2

2~7 Reserved 0 00 0

Status commands

Page 330: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS j Ver. 6.0 p. 330

■ ■ ■ more■ ■ ■ more■ Status A is shown in the table below:

■ Status B is [Hexadecimal = 40H/Decimal = 64]

■ NUL is [Hexadecimal = 00H/Decimal = 0]

■ With a serial interface, the printer transmits a 4-byte ASB status message without confirming whether the host can receive data. ASB status, except for the XOFF code, is always consecutive.

■ With a parallel interface, when ASB status is used, it is desirable for the host to be in a reverse idle state. However, if the host computer cannot always be in the reverse idle state, it is necessary to enter Reverse Mode regularly to watch for ASB status. If the host is not in the Reverse Mode for a long time, and the printer has to store ASB status changes to be transmitted, the following 2 sets (8 bytes) of ASB status are changed to special data and transmitted prior to other transmission data when the host enters Reverse Mode:

• ASB-1: Status information that shows whether status changes occurred• ASB-2: The latest ASB status information

Bit Function Binary Hexadecimal Decimal

0 Ink near-end not detected 0 00 0

Ink near-end detected 1 01 1

1 Ink end not detected 0 00 0

Ink end detected 1 02 2

2 Ink cartridge installed 0 00 0

Ink cartridge not installed 1 04 4

3, 4 Reserved - - -

5 Cleaning is not being performed 0 00 0

Cleaning is being performed 1 20 32

6 Fixed 1 40 64

7 Fixed 0 00 0

Page 331: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS j Ver. 6.0 p. 331

■ ■ ■ more■ ■ ■ moreIf bits have a different value between (ASB-1) and (ASB-2), this means at least one change has occurred. An example is shown below:

Bit 5 of Status A for ASB-1 and ASB-2 is different. From this information, you can see that the printer executed a cleaning but it has already finished.

■ It is possible to enable/disable multiple status items simultaneously. When n = 0, all status items are disabled, and ASB function is disabled.

■ ASB is enabled if any status item is selected. The printer transmits a 4-byte status message when this command is executed. The printer automatically transmits another 4-byte status message whenever the status changes. Each status item represents the current status.

■ If ASB is enabled when the printer is disabled by ESC =, the printer transmits a 4-byte status message whenever the status changes.

■ This command is effective until ESC @ is executed, the printer is reset, or the power is turned off.

■ When block data [Header ~ NUL] is being transmitted, ASB status cannot be transmitted.

Header Status A Status B NUL

ASB-1 0011 0101 0110 0000 0100 0000 0000 0000

ASB-2 0011 0001 0100 0000 0100 0000 0000 0000

n ASB Status Description

Bit Status ASB Status Bit

0 Online/offline status of ink mechanism

Detect ink end Status A: Bit 1

Detect ink cartridge Status A: Bit 2

Cleaning Status A: Bit 5

1 Ink detection status Detect ink near-end Status A: Bit 0

Detect ink end Status A: Bit 1

Detect ink cartridge Status A: Bit 2

Page 332: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS j Ver. 6.0 p. 332

■ Ink ASB status can be differentiated from other transmission data by the header. If the data transmitted from the printer is [Hex = 35H/Decimal = 53], the host should process 4-byte data up to NUL [Hex = 00H/Decimal = 0] as ASB status. When identifying an ASB status message, there are exceptions, as follows:

• When processing block data [Header ~ NUL], do not identify ASB status.• When the host communicates with the printer by XON/XOFF control, the host should process 4 bytes of

data, except for the XOFF code, as ASB status. ASB status configuration is different from that of the XOFF code.

[Model-dependent variations] TM-J8000

TM-J8000

The default is selected by DIP switch 2-1.

When an ink near-end is detected, the INK OUT light blinks. It is possible to print approximately 20,000 characters using font B with economy printing specified from the time when an ink near-end is detected to the time when an ink end is detected.

Program Example

PRINT #1, CHR$(&H1D);"j";CHR&(2); ← Only sensor status can be selected.

Page 333: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 333

■ ■ ■ more■ ■ ■ moreGS r

EXECUTING COMMAND

[Name] Transmit status

[Format] ASCII GS r nHex 1D 72 nDecimal 29 114 n

[Range] TM-H5000II, TM-U375, TM-U925, TM-U325D: 1 ≤≤≤≤ nnnn ≤≤≤≤ 3, 49 ≤≤≤≤ nnnn ≤≤≤≤ 51TM-U675,TM-H6000: 1 ≤≤≤≤ nnnn ≤≤≤≤ 3, 49 ≤≤≤≤ nnnn ≤≤≤≤ 51, nnnn = 80TM-J8000: 1 ≤≤≤≤ nnnn ≤≤≤≤ 5, 49 ≤≤≤≤ nnnn ≤≤≤≤ 53

[Default] None

[Printers not featuring this command] TM-U300C/D

[Description] Transmits 1 byte of status data using n as follows:

[Notes] ■ When 1 ≤ n ≤ 5 or 49 ≤ n ≤ 53 is specified, each status message is 1 byte.

■ When n = 80, the printer transmits the status of character string data which consists of [Header ~ NUL].

■ The status to be transmitted is as follows:

n Function

1, 49 Transmits paper sensor status [A]

2, 50 Transmits drawer kick-out connector status

3, 51 Transmits cut sheet (slip or validation) status

4, 52 Specifies ink status

5, 53 Specifies paper sensor status [B]

80 Specifies status of the number of dots for cut sheet

Status commands

Page 334: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 334

■ ■ ■ more■ ■ ■ more• Paper sensor status [A] (n = 1, 49)

• Some paper sensors are not present, depending on the printer model.• The names of some paper sensors are different, depending on the printer model.• Drawer kick-out connector status (n = 2, 50)

• Cut sheet status (n = 3, 51)

Bit Off/On Hex Decimal Status

0, 1 Off 00 0 Paper roll near-end sensor: paper adequate.... how to use

this tableOn 03 3 Paper roll near-end sensor: paper near end.

2, 3 Off 00 0 Paper roll end sensor: paper present.

On 0C 12 Paper roll end sensor: paper not present.

4 Off 00 0 Fixed.

5 Off 00 0 TOF sensor: paper present.

On 20 32 TOF sensor: paper not present.

6 Off 00 0 BOF sensor: paper present.

On 40 64 BOF sensor: paper not present.

7 Off 00 0 Fixed.

Bit Off/On Hex Decimal Status

0 Off 00 0 Drawer kick-out connector pin 3 is LOW.... how to use

this tableOn 01 1 Drawer kick-out connector pin 3 is HIGH.

1-3 — — — Reserved.

4 Off 00 0 Fixed.

5, 6 — — — Reserved.

7 Off 00 0 Fixed.

Page 335: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 335

■ ■ ■ more■ ■ ■ moreTransmits the remaining printing area, which is shown by the times of the height of resident characters by using the values from 00H to 0FH. When printing data in a print buffer, if there is not enough printing area, the printer starts printing after ejecting paper (including the waiting status for the paper to be removed) and inserting new paper. When cut sheet is not selected as the paper type, the status is 00H. The range for cut sheet status is different, depending on the printer model.

• Ink status (n = 4, 52)

■ The status to be transmitted is as follows:

• Paper sensor status [B] (n = 5, 53)

• The names of some paper sensors are different, depending on the printer model.

Bits Function Binary Hexadecimal Decimal

0 Ink near-end sensor: ink present 0 00 0

Ink near-end sensor: ink not present 1 01 1

1, 2, 3 Reserved — — —

4 Fixed 0 00 0

5, 6 Reserved — — —

7 Fixed 0 00 0

Bits Function Binary Hexadecimal Decimal

0 Paper width sensor: paper present 0 00 0

Paper width sensor: paper not present 1 01 1

1, 2, 3 Reserved — — —

4 Fixed 0 00 0

5, 6 Reserved — — —

7 Fixed 0 00 0

Page 336: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 336

■ ■ ■ more■ ■ ■ more■ When the status of the number of dots for a cut sheet is specified (n = 80), the printer transmits the

number of dots of the remaining printing area for the cut sheet as a character string code to the host. The status consists of [Header ~ NUL].

(*) The number of dots is based on a normal dot pitch. For the number of dots, values are converted to character data and the data is transmitted in order starting with the most significant character. When the number of dots for the remaining printing area is “120,” 3 bytes of data are transmitted from the starting with the most significant character: 49, 50, and 48 in decimal (1 = 49, 2 = 50, 0 = 48).

• If there is not enough printing area, the printer starts printing after ejecting paper (including the waiting status for the paper to be removed) and new paper is inserted.

• If the cut sheet is not selected as the paper type or printing is not possible, the printer transmits the status (4-byte character string data) of “number of dots is 0”.

• When the cut sheet is selected as the paper type but the printer does not start counting the remaining printing area, the printer transmits the status (7-byte character string data) of “number of dots is 9999”.

■ When DTR/DSR control (handshaking) is selected by DIP switch for 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.

■ When XON/XOFF control (handshaking) is selected by DIP switch for a serial interface, the printer transmits the status without confirming whether the host computer can receive data.

■ With a parallel interface, normal status is stored in the transmission buffer of the printer temporarily just as the other transmission data (except for ASB status), and when the host enters Reverse Mode, data is transmitted in order from the beginning of the transmission buffer. The transmission buffer is 99 bytes; therefore, data that exceeds 99 bytes is ignored. When using this command, the host should enter the Reverse Mode immediately to receive status.

Transmission data Hex Decimal Number of bytes

Header 37H 55 1

Identifier 2BH 43 1

Number of dots (*) 30H~39H 48~57 1~4

NUL 00H 0 1

Page 337: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 337

■ Specifying paper sensor status [A] (n = 1, 49) is processed after print and line feed commands are executed. If GS r 1 is used immediately after a print command, the printer can tell the host that printing is completed by using paper sensor status [A].

■ Normal status can be differentiated from other transmission data by the information in bits 4 and 7. After outputting status with GS r, if the data transmitted from the printer is “0xx0xxxx”(x = 0 or 1), the host should process the data as normal status.

■ The status of the number of dots for the remaining area can be differentiated from other transmission data by a special transmission data block. If a header of the transmission data from the printer is [Hex=37H/Decimal=55], the host should processes data up to NUL [Hex=00H/Decimal=0] as a group of data differentiated as follows:

• When XON/XOFF control is selected, the XOFF code may interrupt [Header ~ NUL].

[Model-dependent variations] TM-J8000 TM-H5000II TM-U375 TM-U925 TM-U325DTM-H6000 TM-U675

Transmission data Hex Decimal

The first byte (header) 37H 55

The second byte (identifier) 2BH 43

Program Example for all printers

PRINT #1, CHR$(&H1D);"r";CHR$(1); ← Transmits paper sensor status

Page 338: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 338

TM-H5000II

Handshaking for the serial interface is selected by DIP switch 1-3.

■■■■ Paper sensor status [A] (n = 1, 49)

When the paper roll end sensor detects a paper-end, the printer goes offline and cannot execute this command. Therefore, bits 2 and 3 of the paper sensor status do not transmit paper-end status.

When the paper roll cover is open, paper detection (detected by the paper roll end sensor) may be incorrect.

■■■■ Slip status (n = 3, 51)

Slip status is used as cut sheet status.

The slip status sensor transmits values from 00H to 06H, based on the number of dots divided by 9.

The Number of Remaining Dots

Status

Hex Decimal

0 to 8 00 0

9 to 17 01 1

18 to 26 02 2

27 to 35 03 3

36 to 44 04 4

45 to 53 05 5

54 or more 06 6

Page 339: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 339

TM-U375

Handshaking for the serial interface is selected by DIP switch 1-3.

■■■■ Paper sensor status [A] (n = 1, 49)

Bits 2 and 3 of the paper sensor status are undefined. Bits 5 and 6 indicate the same paper sensor. The name of the paper sensor is the “cut sheet sensor.”

■■■■ Cut sheet status (n = 3, 51)

Cut sheet status can provide status for a slip or validation when selected as the paper source.

The cut sheet status sensor transmits values from 00H to 0FH, based on the number of dots divided by 9.

Status The Number of Remaining DotsHexadecimal Decimal

00 0 0~8

01 1 9~17

02 2 18~26

03 3 27~35

04 4 36~44

05 5 45~53

06 6 54~62

07 7 63~71

Status The Number of Remaining DotsHexadecimal Decimal

08 8 72~80

09 9 81~89

0A 10 90~98

0B 11 99~107

0C 12 108~116

0D 13 117~125

0E 14 126~134

0F 15 135 or more

Page 340: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 340

TM-U925

Handshaking for the serial interface is selected by DIP switch 1-8.

■■■■ Paper sensor status [A] (n = 1, 49)

The names of the paper sensors for bits 5 and 6:

•••• Bit 5 is slip insertion sensor

•••• Bit 6 is slip ejection sensor

■■■■ Slip status (n = 3, 51)

Slip status is used as cut sheet status.

The slip status information for this printer is different from the standard ESC/POS cut sheet status information as follows:

Slip Status

Status

Hex Decimal

No printing area or slip not selected. 00 0

1-line printing, excluding double-height characters, is possible. 01 1

1-line printing, including double-height characters, is possible. 02 2

One or more lines can be printed with the line spacing set. 03 3

Page 341: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 341

TM-U325D

Handshaking for the serial interface is selected by DIP switch 1-3.

■■■■ Paper sensor status [A] (n = 1, 49)

Bits 5 and 6 indicate the same paper sensor. The name of the paper sensor is “validation sensor.”

■■■■ Validation sensor status (n = 3, 51)

Validation status can be confirmed by cut sheet status.

The validation sensor status transmits values from 00H to 0CH, based on the number of dots divided by 9.

Status The Number of Remaining DotsHexadecimal Decimal

00 0 0~8

01 1 9~17

02 2 18~26

03 3 27~35

04 4 36~44

05 5 45~53

06 6 54~62

Status The Number of Remaining DotsHexadecimal Decimal

07 7 63~71

08 8 72~80

09 9 81~89

0A 10 90~98

0B 11 99~107

0C 12 108 or more

Page 342: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 342

TM-J8000

Handshaking for the serial interface is selected by DIP switch 1-3.

■■■■ Paper sensor status [A] (n = 1, 49)

When the paper roll end sensor detects a paper end, the printer stops printing and goes offline; therefore, paper not present status of bit 2 or 3 is not transmitted with this command. When the paper roll cover is open, the status of the paper roll end sensor may not be correct.

■■■■ Cut sheet status (n = 3, 51)

Slip status can be confirmed by the cut sheet status:

Status The Number of Remaining DotsHexadecimal Decimal

00 0 0~47

01 1 48~95

02 2 96~143

03 3 144~191

04 4 192~239

05 5 240~287

06 6 288~335

07 7 336~383

Status The Number of Remaining DotsHexadecimal Decimal

08 8 384~431

09 9 432~479

0A 10 480~527

0B 11 528~575

0C 12 576~623

0D 13 624~671

0E 14 672~719

0F 15 720 or more

Page 343: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 343

■ ■ ■ more■ ■ ■ moreTM-H6000

Handshaking is selected by DIP switch 1-3.

■■■■ Paper sensor status [A] (n = 1, 49)

When the paper roll end sensor detects a paper end, the printer stops printing and goes offline; therefore, paper not present status of bit 2 or 3 is not transmitted with this command. When the paper roll cover is open, the status of the paper roll end sensor may not be correct.

■■■■ Cut sheet sensor status (n = 3, 51)

The cut sheet sensor status can check the face and back of a slip.

If the paper source is the face of a slip:

Status The Number of Remaining DotsHexadecimal Decimal

00 0 0~8

01 1 9~17

02 2 18~26

03 3 27~35

04 4 36~44

05 5 45~53

06 6 54~62

07 7 63~71

Status The Number of Remaining DotsHexadecimal Decimal

08 8 72~80

09 9 81~89

0A 10 90~98

0B 11 99~107

0C 12 108~116

0D 13 117~125

0E 14 126~134

0F 15 135 or more

Page 344: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 344

■ ■ ■ more■ ■ ■ moreIf the paper source is the back of a slip:

■■■■ When the slip is selected as the print sheet, the following items can be checked by GS r.

When equipped with an endorsement printer:

Status

Printer statusHexadecimal Decimal

00 0 No paper in print head position or paper cannot be fed in reverse

01~07 1~7 Paper cannot be fed in reverse

08 8 Possibility that paper cannot be fed in reverse

09~0F 9~15 Paper can be fed in reverse

Status The Number of Remaining DotsHexadecimal Decimal

00 0 0~6

01 1 7~13

02 2 14~20

03 3 21~27

04 4 28~34

05 5 35~41

06 6 42~48

07 7 49~55

Status The Number of Remaining DotsHexadecimal Decimal

08 8 56~62

09 9 63~69

0A 10 70~76

0B 11 77~83

0C 12 84~90

0D 13 91~97

0E 14 98~104

0F 15 105 or more

Page 345: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 345

■ ■ ■ more■ ■ ■ moreWhen not equippped with an endorsement printer:

■■■■ When the slip (back) is selected as the print sheet, the following statuses can be checked by GS r.

■■■■ Status of the number of dots for the remaining print area (n = 80)

• The status of a slip selected as the paper type can be checked.

• 1 dot equals 0.353 mm {1/72"}.

• When a surface of the slip is selected as the paper type, the following can be checked.

Status

Printer statusHexadecimal Decimal

00 0 No paper in print head position or paper cannot be fed in reverse

01~0C 1~12 Paper cannot be fed in reverse

0D 13 Possibility that paper cannot be fed in reverse

0E, 0F 14, 15 Paper can be fed in reverse

Status

Printer statusHexadecimal Decimal

00 0 No paper in print head position or paper cannot be fed in reverse

01~0F 1~15 Paper can be fed in reverse

Page 346: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 346

When the printer is equipped with an endorsement unit:

When the printer is not equipped with an endorsement unit:

When a back of the slip is selected as the paper type:

Status Printer status

0 No paper in print head position or paper cannot be fed in reverse

1~72 Paper cannot be fed in reverse

73~334 Paper can be fed in reverse

9999 Paper can be fed in reverse: counting for the remaining print area is not started (BOF detects a paper presence)

Status Printer status

0 No paper in print head position or paper cannot be fed in reverse

1~121 Paper cannot be fed in reverse

122~334 Paper can be fed in reverse

9999 Paper can be fed in reverse: counting for the remaining print area is not started (BOF detects a paper presence)

Status Printer status

0~6 No paper in print head position or paper cannot be fed in reverse

7 or more Paper can be fed in reverse

Page 347: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 347

■ ■ ■ more■ ■ ■ moreTM-U675

Handshaking is selected by DIP switch 1-3.

■■■■ Paper sensor status [A] (n = 1, 49)

When the paper end sensor detects a paper-end, the printer stops printing and goes offline; therefore, paper not present status of bit 2 or 3 is not transmitted with this command.

■■■■ Cut sheet status (n = 3, 51)

The cut sheet status can check the status of a slip and a validation sheet.

Status The Number of Remaining DotsHexadecimal Decimal

00 0 0~8

01 1 9~17

02 2 18~26

03 3 27~35

04 4 36~44

05 5 45~53

06 6 54~62

07 7 63~71

Status The Number of Remaining DotsHexadecimal Decimal

08 8 72~80

09 9 81~89

0A 10 90~98

0B 11 99~107

0C 12 108~116

0D 13 117~125

0E 14 126~134

0F 15 135 or more

Page 348: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 348

■ ■ ■ more■ ■ ■ more■■■■ When the slip is selected as the print sheet, the following items can be checked by GS r.

■■■■ When the validation is selected as the paper type, the following items can be checked by GS r. Do not feed the validation in reverse when printing because a paper jam might occur.

■■■■ Status of the number of dots for the remaining print area (n = 80)

• The status of a slip or a validation selected as the paper type can be checked.

• 1 dot equals 0.353 mm {1/72"}.

Status

Printer statusHexadecimal Decimal

00 0 No paper in print head position or paper cannot be fed in reverse

01~0C 1~12 Paper cannot be fed in reverse

0D 13 Possibility that paper cannot be fed in reverse

0E, 0F 14, 15 Paper can be fed in reverse

Status

Printer statusHexadecimal Decimal

00 0 Paper is ejected when printing starts

01 1 Normal size in vertical of a character can be printed

02~0A 2~10 A character with double size in vertical can be printed

Page 349: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Status commands GS r Ver. 6.0 p. 349

When a slip is selected as the paper type, the following items can be checked GS r:

When the validation is selected as the paper type, the following items can be checked by GS r. Do not feed the validation in reverse when printing because a paper jam might occur.

Status Printer status

0 No paper in print head position or paper cannot be fed in reverse

1~121 Paper cannot be fed in reverse

122~334 Paper can be fed in reverse

9999 Paper can be fed in reverse: counting for the remaining print area is not started (BOF detects a paper presence)

Status Printer status

0~8 Paper is ejected when printing starts

9~17 Normal size in vertical of a character can be printed

18~93 A character with double size in vertical can be printed

Page 350: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands Ver. 6.0 p. 350

Bar code commands

Command Name

GS H Select printing position of HRI charactersGS f Select font for HRI charactersGS h Set bar code heightGS k Print bar codeGS w Set bar code width

BAR CODE COMMANDS

Page 351: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS H Ver. 6.0 p. 351

■ ■ ■ more■ ■ ■ moreGS H

SETTING COMMAND

[Name] Select printing position of HRI characters

[Format] ASCII GS H nHex 1D 48 nDecimal 29 72 n

[Range] 0 ≤ n ≤ 348 ≤ n ≤ 51

[Default] n = 0

[Printers not featuring this command] TM-U375, TM-U925

[Description] Selects the printing position for Human Readable Interpretation (HRI) characters when printing a bar code, using n as follows:

[Note] ■ HRI characters are printed using the font specified by GS f.

n Printing Position

0, 48 Not printed

1, 49 Above the bar code

2, 50 Below the bar code

3, 51 Both above and below the bar code

Bar code commands

Page 352: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS H Ver. 6.0 p. 352

[Model-dependent variations] TM-H5000II TM-H6000

TM-H5000II

A bar code can be printed only when the paper roll is selected as the paper type.

TM-H6000

A bar code can be printed only when the paper roll is selected as the paper type.

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"h";CHR$(80); ← Set heightFOR n=0 to 3

PRINT #1, CHR$(&H1D);"H";CHR$(n); ← Select print position PRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar code PRINT #1, "496595707379";CHR$(0);

PRINT #1, CHR$(&HA);

NEXT n

← GS H 0

← GS H 1

← GS H 2

← GS H 3

Page 353: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS f Ver. 6.0 p. 353

GS fSETTING COMMAND

[Name] Select font for HRI characters

[Format] ASCII GS f nHex 1D 66 nDecimal 29 102 n

[Range] n = 0, 1, 48, 49

[Default] n = 0

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Selects a font for the Human Readable Interpretation (HRI) characters when printing a bar code, using n as follows:

[Notes] ■ The font set by this command is effective only for HRI characters.■ Configurations of font A and font B are different, depending on the printer model.■ HRI characters are printed at the position specified by GS H.

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

n Font of HRI characters

0, 48 Font A

1, 49 Font B

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"h";CHR$(80); ← Set heightPRINT #1, CHR$(&H1D);"H";CHR$(2); ← Select print positionPRINT #1, CHR$(&H1D);"f";CHR$(0); ← Select fontPRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar codePRINT #1, "496595707379";CHR$(0);

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1D);"f";CHR$(1); ← Select fontPRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar codePRINT #1, "496595707379";CHR$(0);

← Font A

← GS H 3

← Font B

4 9 6 5 9 5 7 0 7 3 7 9 7

Bar code commands

4 9 6 5 9 5 7 0 7 3 7 9 7

Page 354: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS f Ver. 6.0 p. 354

TM-H5000II

A bar code can be printed only when the paper roll is selected as the paper type.

Character configurations:Font A: 12 ×××× 24Font B: 9 ×××× 17

TM-J8000

Font configurations:Font A: 22 ×××× 48Font B: 18 ×××× 36

TM-H6000

A bar code can be printed only when the paper roll is selected as the paper type.

Font configurations:Font A: 12 ×××× 24Font B: 9 ×××× 17

TM-U675

A bar code can be printed only when the paper roll is selected as the paper type.

Font configurations:Font A: 5 ×××× 9Font B: 7 ×××× 9

Page 355: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS h Ver. 6.0 p. 355

GS hSETTING COMMAND

[Name] Set bar code height

[Format] ASCI GS h nHex 1D 68 nDecimal 29 104 n

[Range] 1 ≤ n ≤ 255

[Default] TM-H5000II, TM-H6000,TM-U675,TM-J8000: n = 162

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Sets the height of a bar code.• n specifies the height of a bar code in the vertical direction.

[Note] • The setting value differs, depending on the printer model.• The setting of this command is effective until ESC @ is executed, the printer is reset, or the power is

turned off.

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"h";CHR$(50); ← Set height to 50 PRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar code PRINT #1, "496595707379";CHR$(0);

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1D);"h";CHR$(100); ← Set height to 100 PRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar code PRINT #1, "496595707379";CHR$(0);

← Height: 50

← Height: 100

Bar code commands

Page 356: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS h Ver. 6.0 p. 356

TM-H5000II

Bar code printing is possible only when the paper roll is selected as the paper type.

The setting unit is 1 dot. It is possible to set units of approximately 0.141 mm {1/180 inch}.

TM-J8000

The setting unit is 2 dots.

It is possible to set units of approximately 0.141 mm {1/180 inch}.

TM-H6000

Setting unit is 1 dot.

Possible to set approximately 0.141 mm {1/180 inch} unit.

TM-U675

Setting unit is 1 dot.

Possible to set approximately 0.353 mm {1/72 inch} unit.

Page 357: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS k Ver. 6.0 p. 357

■ ■ ■ more■ ■ ■ moreGS k

EXECUTING COMMAND

[Name] Print bar code

[Format] ➀ ASCII GS k m d1 ... dk NULHex 1D 6B m d1 ... dk NULDecimal 29 107 m d1 ... dk NUL

➁ ASCII GS k m n d1 ... dnHex 1D 6B m n d1 ... dnDecimal 29 107 m n d1 ... dn

[Range] ➀ TM-H5000II, TM-H6000, TM-U675, TM-J8000: 0 ≤ m ≤ 6 (k and d depend on the bar code system used)

➁ TM-H5000II, TM-H6000, TM-U675, TM-J8000: 65 ≤ m ≤ 73 (n and d depend on the bar code system used)

[Default] None

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Select a bar code system and print the bar code.• n of ➁ indicates the number of bytes of bar code data.• d indicates the character code data of the bar code data to be printed.

Bar code commands

Page 358: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS k Ver. 6.0 p. 358

■ ■ ■ more■ ■ ■ more•••• m specifies a bar code system as follows:

Note: In the table above, k represents the number of characters.

m Bar Code SystemAmount of Data

Number of Characters Characters Remarks

➀➀➀➀

0 UPC-A Fixed 11 ≤ k ≤ 12 0~9 48 ≤ d ≤ 57

1 UPC-E Fixed 11 ≤ k ≤ 12 0~9 48 ≤ d ≤ 57

2 JAN13 (EAN13) Fixed 12 ≤ k ≤ 13 0~9 48 ≤ d ≤ 57

3 JAN8 (EAN8) Fixed 7 ≤ k ≤ 8 0~9 48 ≤ d ≤ 57

4 CODE39 Can be changed 1 ≤ k 0~9, A~ZSP, $, %, +, -, ., /, *(start/stop character)

48 ≤ d ≤ 57, 65 ≤ d ≤ 90, d = 32, 36, 37, 43, 45, 46, 47d = 42 (start/stop character)

5 ITF(Interleaved 2 of 5)

Can be changed 1 ≤ k (even number)

0~9 48 ≤ d ≤ 57

6 CODABAR(NW7)

Can be changed 1 ≤ k 0~9, A~Z$, +, -, ., /,:

48 ≤ d ≤ 57, 65 ≤ d ≤ 68,d = 36, 43, 45, 46, 47, 58

➁➁➁➁

65 UPC-A Fixed 11 ≤ n ≤ 12 0~9 48 ≤ d ≤ 57

66 UPC-E Fixed 11 ≤ n ≤ 12 0~9 48 ≤ d ≤ 57

67 JAN13 (EAN13) Fixed 12 ≤ n ≤ 13 0~9 48 ≤ d ≤ 57

68 JAN8 (EAN8) Fixed 7 ≤ n ≤ 8 0~9 48 ≤ d ≤ 57

69 CODE39 Can be changed 1 ≤ n ≤ 255 0~9, A~ZSP, $, %, +, -, ., /, *(start/stop character)

48 ≤ d ≤ 57, 65 ≤ d ≤ 90, d = 32, 36, 37, 43, 45, 46, 47d = 42 (start/stop character)

70 ITF(Interleaved 2 of 5)

Can be changed (even number)

2 ≤ n ≤ 255 (even number)

0~9 48 ≤ d ≤ 57

71 CODABAR(NW7)

Can be changed 1 ≤ n ≤ 255 0~9, A~Z$, +, -, ., /, :

48 ≤ d ≤ 57, 65 ≤ d ≤ 68, d = 36, 43, 45, 46, 47, 58

72 CODE93 Can be changed 1 ≤ n ≤ 255 00H~7FH 0 ≤ d ≤ 127

73 CODE128 Can be changed 2 ≤ n ≤ 255 00H~7FH 0 ≤ d ≤ 127

Page 359: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS k Ver. 6.0 p. 359

■ ■ ■ more■ ■ ■ more[Notes] ■ When standard mode is selected, this command is enabled only when no data exists in the print buffer.

■ A bar code width that exceeds the printing area for one line cannot be set.

■ This command feeds as much paper as is required to print the bar code, regardless of the line spacing specified by command.

■ 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.

■ The bar code is not affected by character size and print mode (emphasized, double-strike, underline, white/black reverse printing, or 90° clockwise-rotated), except for upside-down printing mode.

■ 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.

■ When the value of m is from 0 to 6, processing of this command ends with NUL code.

■ If the number of a bar code [ITF (m = 5)] is an odd number, the last data is ignored.

■ When the value of m is from 65 to 71, the printer processes n bytes of data following n as bar code data.

■ This command does not set the left and right margins. When using the command, be sure to take this into consideration.

[UPC-A (m = 0, 65)]

■ Modular check characters are processed as follows:

• When the amount of data to be processed is 11 bytes, the modular check characters are added automatically.

• When the data to be processed is 12 bytes, that amount of data is processed as modular check characters. However, the amount of characters is not checked.

■ Left guard bar, center bar, and right guard bar are automatically added.

Page 360: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS k Ver. 6.0 p. 360

■ ■ ■ more■ ■ ■ more[UPC-E (m = 1, 66)]

■ The first data (d1) is processed as a number system character (NSC). Be sure to specify 0.

■ Modular check characters are processed as follows:

• When the amount of data to be processed is 11 bytes, the modular check characters are added automatically.

• When the data to be processed is 12 bytes, that data is processed as modular check characters. However, the amount of characters is not checked.

■ Prints a 6-column short code. Left guard bar and right guard bar are added automatically.

[JAN13/EAN13 (m = 2, 67)]■ Modular check characters are processed as follows:

• When the data to be processed is 12 bytes, the characters are added automatically.• When the data to be processed is 13 bytes, the thirteenth byte is processed as a modular check

character. However, the amount of characters is not checked.■ Left guard bar, center bar, and right guard bar are added automatically.

[JAN8/EAN8 (m = 3, 68)]■ Modular check characters are processed as follows:

• When the data to be processed is 7 bytes, the characters are added automatically.• When the data to be processed is 8 bytes, byte eight is processed as a modular check character.

However, the amount of characters is not checked.■ Left guard bar, center bar, and right guard bar are added automatically.

Page 361: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS k Ver. 6.0 p. 361

■ ■ ■ more■ ■ ■ more[JAN39 (m = 4, 69)]

■ Start code (ASCII=”*”/Hex=2AH/Decimal=42) is processed as follows:

• When the first bar code byte (d1) is “*,” the printer processes the data as a start code. • If the first bar code byte (d1) is not “*,” the printer adds a start code (*) automatically.

■ Stop code (ASCII=”*”/Hex=2AH/Decimal=42) is processed as follows:

• When the last code (dk or dn) is “*,” the printer processes the data as a stop code. • When the last code (dk or dn) is not “*,” the printer adds a stop code (*) automatically.• If the printer encounters “*” in the bar code, the printer processes the data as a stop code. In this case,

the bar code followed by “*” is printed and the processing is ended.■ A check digit is not calculated and added.

[ITF (Interleaved 2 of 5)(m = 5, 70)]■ The start code and stop code are added automatically.■ A check digit is not calculated and added.

[CODEBAR (NW-7) (m = 6, 71)]■ The start code and stop code are not added automatically; therefore, these should be included in the data

and transmitted.

■ A check digit is not calculated and added.[CODE93 (m = 72)]

■ Start and stop characters are added automatically.

■ Check digits (2 characters) are calculated and added automatically.

■ Special characters in an HRI character set are processed as follows:• " " is printed for the HRI start and stop characters.• "■ + an alphabetic character" is printed for an HRI control character.

Page 362: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS k Ver. 6.0 p. 362

■ ■ ■ more■ ■ ■ more[CODE 128 (m = 73)]

■ Be sure to specify the start character. The start character is a code set selection character. Specify CODE A, CODE B, or CODE C for the first two bytes (d1, d2).

■ Bar codes for special characters are shown in the table below: Transmit two bytes of data:

“{+ character code" from the host. For the bar code data for a bracket " {," transmit “{{“ from the host.

■ The stop character is added automatically.

■ Check digit is calculated and added automatically.

■ Special characters in an HRI character set are processed as follows:• The HRI characters for shift character (SHIFT) and code set selection character (CODE A, CODE B, CODE

C) are not printed.• Space is printed for the HRI function characters (FNC1, FNC2, FNC3, FNC4) and control characters

(00H~1FH, 7FH).[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

Special character

Transmit data

ASCII Hex Decimal

SHIFT { + S 7B, 53 123 + 83

CODE A { + A 7B, 41 123 + 65

CODE B { + B 7B, 42 123 + 66

CODE C { + C 7B, 43 123 + 67

FNC1 { + 1 7B, 31 123 + 49

FNC2 { + 2 7B, 32 123 + 50

FNC3 { + 3 7B, 33 123 + 51

FNC4 { + 4 7B, 34 123 + 52

{ { + { 7B, 7B 123 + 123

Page 363: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS k Ver. 6.0 p. 363

TM-H5000II

A bar code can be printed only when the paper roll is selected as the paper type.

TM-J8000

Fine printing is always performed for bar code printing (except for HRI), regardless of the setting of GS E.

TM-H6000

A bar code cannot be printed on a back of a slip.When printing a bar code, take the following into account.■■■■ A ladder bar code cannot be printed.■■■■ Add HRI characters.■■■■ It is recommended to use a black ribbon, ERC-32 (B) sold separately.Bar code recognition ratio will differ depending on density and color balance of a black ribbon and capability of a bar code reader; therefore, when a bar code cannot be read, input the HRI characters so that the bar code can be processed.

TM-U675

When printing a bar code, take the following into account.■■■■ A ladder bar code cannot be printed.■■■■ Add HRI characters.■■■■ It is recommended to use a black ribbon, ERC-32 (B) sold separately.■■■■ Bar code recognition ratio will differ depending on density and color balance of a black ribbon and

capability of a bar code reader; therefore, when a bar code cannot be read, input the HRI characters so that the bar code can be processed.

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"h";CHR$(80); ← Set heightPRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar codePRINT #1, "496595707379";CHR$(0);

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1D);"k";CHR$(67);CHR$(12);

PRINT #1, "496595707379"; ← Print bar code

Page 364: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS w Ver. 6.0 p. 364

GS wSETTING COMMAND

[Name] Set bar code width

[Format] ASCII GS w nHex 1D 77 nDecimal 29 119 n

[Range] TM-H5000II, TM-H6000, TM-U675: 2 ≤≤≤≤ n ≤≤≤≤ 6TM-J8000: 2 ≤ n ≤≤≤≤ 6, 68 ≤≤≤≤ n ≤ 76

[Default] TM-H5000II, TM-H6000, TM-U675, TM-J8000: n = 3

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Sets the horizontal size of a bar code.

• n specifies the bar code width.[Note] ■ The units for n depend on the printer model.

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"h";CHR$(80); ← Set heightPRINT #1, CHR$(&H1D);"w";CHR$(3); ← Set width size to 3PRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar codePRINT #1, "496595707379";CHR$(0);

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1D);"w";CHR$(4); ← Set width size to 4PRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar codePRINT #1, "496595707379";CHR$(0);

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1D);"w";CHR$(5); ← Set width size to 5PRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar codePRINT #1, "496595707379";CHR$(0);

← Width size 3

← Width size 4

← Width size 5

Bar code commands

Page 365: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS w Ver. 6.0 p. 365

TM-H5000II

A bar code can be printed only when the paper roll is selected as the paper type.

n specifies the bar code width as follows:

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.

nModule Width (mm) for Multilevel Bar Code

Binary Level Bar Code

Thin Element Width (mm) Thick Element Width (mm)

2 0.282 0.282 0.706

3 0.423 0.423 1.129

4 0.564 0.564 1.411

5 0.706 0.706 1.834

6 0.847 0.847 2.258

Page 366: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS w Ver. 6.0 p. 366

TM-J8000

Module width is as follows:

(Unit: mm)

nModule width of Multi-level bar code

2-value level bar code

Thin element width Thick element width

2, 68 Approximately 0.282 Approximately 0.282 Approximately 0.706

69 Approximately 0.353 Approximately 0.353 Approximately 0.882

3, 70 Approximately 0.423 Approximately 0.423 Approximately 1.129

71 Approximately 0.494 Approximately 0.494 Approximately 1.235

4, 72 Approximately 0.564 Approximately 0.564 Approximately 1.411

73 Approximately 0.635 Approximately 0.635 Approximately 1.588

5, 74 Approximately 0.706 Approximately 0.706 Approximately 1.834

75 Approximately 0.776 Approximately 0.776 Approximately 1.940

6, 76 Approximately 0.847 Approximately 0.847 Approximately 2.258

Page 367: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS w Ver. 6.0 p. 367

TM-H6000

A bar code can be printed only when the paper roll is selected as the paper type.

n specifies the bar code width as follows:

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.

nModule Width (mm) for Multilevel Bar Code

Binary Level Bar Code

Thin Element Width (mm)

Thick Element Width (mm)

2 0.282 0.282 0.706

3 0.423 0.423 1.129

4 0.564 0.564 1.411

5 0.706 0.706 1.834

6 0.847 0.847 2.258

Page 368: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Bar code commands GS w Ver. 6.0 p. 368

TM-U675

A bar code can be printed only when the paper roll is selected as the paper type.

n specifies the bar code width as follows:

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.

nModule Width (mm) for Multilevel Bar Code

Binary Level Bar Code

Thin Element Width (mm)

Thick Element Width (mm)

2 0.635 0.635 1.588

3 0.953 0.953 2.54

4 1.27 1.27 3.175

5 1.588 1.588 4.128

6 1.905 1.905 5.08

Page 369: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Macro function commands Ver. 6.0 p. 369

Macro function commands

Command Name

GS : Start/end macro definitionGS ^ Execute macro

MACRO FUNCTION COMMANDS

Page 370: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Macro function commands GS : Ver. 6.0 p. 370

GS :EXECUTING COMMAND

SETTING COMMAND

[Name] Start/end macro definition

[Format] ASCII GS :Hex 1D 3ADecimal 29 58

[Range] None

[Default] None

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Starts or ends macro definition.

[Notes] ■ Macro definition starts when this command is processed during normal operation and ends when it is processed during macro definition.

■ While the macro is defined, the printing is also executed.

■ The maximum amount of data that can be defined as a macro is different, depending on the printer model. If the macro definition exceeds the maximum amount of data, the excess data is not stored.

■ If the printer processes this command again immediately after previously processing it, the printer clears the definition.

■ If GS ^ is processed during macro definition, this command is canceled and the definition is cleared.

■ A macro is not defined when the power is turned on.

■ The defined contents of the macro are not cleared by ESC @.

■ The macro is executed by GS ^.

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

See program example and print sample for GS : and GS ^.

Macro function commands

Page 371: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Macro function commands GS : Ver. 6.0 p. 371

TM-H5000II

The maximum amount of data that can be defined is 2048 bytes.

TM-J8000

The maximum amount of data that can be defined is 2048 bytes.

TM-H6000

The maximum amount of data that can be defined is 2048 bytes.

TM-U675

The maximum amount of data that can be defined is 2048 bytes.

Page 372: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Macro function commands GS ^ Ver. 6.0 p. 372

GS ^EXECUTING COMMAND

[Name] Execute macro

[Format] ASCII GS ^ r t mHex 1D 5E r t mDecimal 29 94 r t m

[Range] 0 ≤ r ≤ 2550 ≤ t ≤ 255m = 0, 1

[Default] None

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D

[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.

[Notes] ■ If a macro is not defined or if r is 0, this command is ignored.

■ This command cannot be included in a macro. Do not use this command during a macro execution.

■ When m = 1, paper cannot be fed with the paper FEED button.

■ The LED and the paper FEED button are different, depending on the printer model.

■ The macro is defined by GS :.

The macro function is useful to print the same data repeatedly. To define a macro, send GS : just before and after the data to be repeated. And then execute macro by using GS ^ to print the same data repeatedly. The macro function eliminates the need for sending all the print data every time.

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

See program example and print sample for GS : and GS ^.

Macro function commands

Page 373: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Macro function commands GS ^ Ver. 6.0 p. 373

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. "; CHR$(&HA);

PRINT #1, "Name "; CHR$(&HA);

PRINT #1, "Address "; CHR$(&HA);

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);

Definesa macro

Hello EPSON World!���

No.

NameAddress

���

Hello EPSON World!���

No.

NameAddress

���

Page 374: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Macro function commands GS ^ Ver. 6.0 p. 374

TM-H5000II

When mmmm = 1, the PAPER OUT and RELEASE LED indicators blink during the macro waiting state.

When mmmm = 1, the FEED, FORWARD, and REVERSE can be used as paper feed buttons.

TM-J8000

PAPER OUT light blinks during macro standby state (in macro executing mode, mmmm = 1). Paper feed buttons to be used are PAPER FEED and SLIP FEED.

TM-H6000

When mmmm = 1, the PAPER OUT LED blinks when the printer is in the macro standby state. Use the FEED button to execute the macro.

TM-U675

When mmmm = 1, the PAPER OUT LED blinks when the printer is in the macro standby state. Use the FEED button to execute the macro.

Page 375: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands Ver. 6.0 p. 375

Mechanism control commands

Command Name

ESC < Return homeESC F Set/cancel cut sheet reverse ejectESC U Turn unidirectional printing mode on/offESC i Partial cut (one point left uncut)

ESC m Partial cut (three points left uncut)ESC o StampESC q Paper releaseGS V Select cut mode and cut paper

MECHANISM CONTROL COMMANDS

Page 376: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC < Ver. 6.0 p. 376

ESC < EXECUTING COMMAND

[Name] Return home

[Format] ASCII ESC <Hex 1B 3CDecimal 27 60

[Range] None

[Default] None

[Printers not featuring this command] None

[Description] Moves the print head to the standby position.

[Note] ■ The standby position is different, depending on the printer model.

■ The command rechecks the standby position; therefore, print position might be shifted before and after checking the standby position.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

Program Example for all printers

PRINT #1, CHR$(&H1B);"<";

Mechanism control commands

Page 377: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC < Ver. 6.0 p. 377

TM-H5000II

The standby position is on the left.

This command is effective only when the slip is selected as the paper type.

TM-U375

The standby position is approximately in the center of the line.

Do not use ESC < with the cut sheet inserted. Otherwise, a paper jam will occur.

TM-U925

The standby position is on the right.

TM-U325D

The standby position is on the left.

TM-U300C/D

The standby position is on the left.

TM-J8000

The standby position is on the right.

TM-H6000

The standby position is on the right.

The print head (serial impact dot head) for the slip (face) moves with this command.

TM-U675

The standby position is on the right.

Page 378: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC F Ver. 6.0 p. 378

ESC FSETTING COMMAND

[Name] Set/cancel cut sheet reverse eject

[Format] ASCII ESC F nHex 1B 46 nDecimal 27 70 n

[Range] 0 ≤ n ≤ 255

[Default] TM-H5000II: nnnn =1

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Description] Sets or cancels the cut sheet (slip or validation) reverse eject.

• When the LSB of n is 0, the cut sheet reverse ejection is canceled.• When the LSB of n is 1, the cut sheet reverse ejection is set.

[Notes] ■ When the cut sheet reverse ejection is canceled, forward ejection is set.

■ The eject direction set by this command is effective only when a cut sheet is ejected.

■ The eject length is specified by ESC C.

[Model-dependent variations] TM-H5000II TM-H6000 TM-U675

Program Example for all printers

PRINT #1, CHR$(&H1B);"F";CHR$(0); ← Cancel reverse eject

Mechanism control commands

Page 379: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC F Ver. 6.0 p. 379

TM-H5000II

This command is effective only when the slip is selected as the paper type and affects ejection.

TM-H6000

This command affects printing only on roll paper and the face of slip paper.

When the face of the slip is selected, there is an area in which reverse feeding is not possible. See the diagram and table below.

Area in which reverse feeding is not possible

Equipped with endorsement printer

Not equipped with endorsement printer

Using paper more than 90 mm wide

Maximum distance between a and b

41 mm 58 mm 84 mm

Maximum distance between b and c

92 mm 75 mm

a:

b:

c:

Page 380: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC F Ver. 6.0 p. 380

TM-U675

• When slip paper is selected, there is an area in which reverse feeding is not possible. See the diagram and table below.

Area in which reverse feeding is not possible

Normal check paper

Using paper more than 90 mm wide

Maximum distance between a and b

58 mm 84 mm

Maximum distance between b and c

75 mm

a:

b:

c:

Page 381: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC U Ver. 6.0 p. 381

ESC USETTING COMMAND

[Name] Turn unidirectional printing mode on/off

[Format] ASCII ESC U nHex 1B 55 nDecimal 27 85 n

[Range] 0 ≤ n ≤ 255

[Default] TM-H5000II, TM-J8000, TM-U325D, TM-U925, TM-U300C/D: nnnn = 0TM-U375, TM-H6000, TM-U675: Standard mode: nnnn = 0

Page mode: nnnn = 1

[Printers not featuring this command] None

[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] ■ This mode can be set independently in standard mode and in page mode.

■ When unidirectional printing mode is turned off, bidirectional printing mode is automatically turned on.

■ When page mode is selected, the printer performs unidirectional printing for all data that is to be collectively printed using FF or ESC FF.

■ 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] TM-H5000II TM-H6000

Program Example for all printers

PRINT #1, CHR$(&H1B);"U";CHR$(1); ← Unidirectional printing mode turned on

Mechanism control commands

Page 382: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC U Ver. 6.0 p. 382

TM-H5000II

This command is effective only when slip is selected as the paper type.

TM-H6000

The setting of this command affects printing on the face of a slip.

Page 383: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC i Ver. 6.0 p. 383

ESC iEXECUTING COMMAND

[Name] Partial cut (one point left uncut)

[Format] ASCII ESC iHex 1B 69Decimal 27 105

[Range] None

[Default] None

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Executes a partial cut of the paper roll with one point left uncut.

[Notes] ■ GS V also can be used to cut paper, and GS V is recommended for cutting paper. ESC i is an obsolete command.

■ This command is enabled only when the paper roll is selected as the paper type. If cut sheet (slip or validation) is selected as the paper type, this command is ignored.

■ When standard mode is selected, this command is enabled only when processed at the beginning of the line.

■ If an autocutter is not provided for the paper roll selected as the paper type, this command is ignored.

■ When using this command, there is a gap between the autocutter and printing position.

[Model-dependent variations] None

See program example and print sample for ESC i and ESC m.

Mechanism control commands

Page 384: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC m Ver. 6.0 p. 384

ESC mEXECUTING COMMAND

[Name] Partial cut (three points left uncut)

[Format] ASCII ESC mHex 1B 6DDecimal 27 109

[Range] None

[Default] None

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Executes a partial cut of the paper roll with three points left uncut.

[Notes] ■ GS V also can be used to cut paper, and GS V is recommended for cutting paper. ESC m is an obsolete command.

■ This command is enabled only when the paper roll is selected as the paper type. If cut sheet (slip or validation) is selected as the paper type, this command is ignored.

■ When standard mode is selected, this command is enabled only when processed at the beginning of the line.

■ If an autocutter is not provided for the paper roll selected as the paper type, this command is ignored.

■ When using this command, there is a gap between the autocutter and printing position.

[Model-dependent variations] None

See program example and print sample for ESC i and ESC m.

Mechanism control commands

Page 385: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC m Ver. 6.0 p. 385

Program example for ESC i and ESC m

Program Example Print Sample

PRINT #1,CHR$(&H1B);"c0";CHR$(2); ← Select paper type

PRINT #1," AAAAA";

PRINT #1,CHR$(&H1B);"d";CHR$(5);

PRINT #1,CHR$(&H1B);"m"; ← Cut paper

PRINT #1," BBBBB";

PRINT #1,CHR$(&H1B);"d";CHR$(5);

PRINT #1,CHR$(&H1B);"i"; ← Cut paper

AAAAA

ESC m leaves paper joined in three places.

ESC i leaves paper joined in one place.

BBBBB

Page 386: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC o Ver. 6.0 p. 386

ESC oEXECUTING COMMAND

[Name] Stamp

[Format] ASCII ESC oHex 1B 6FDecimal 27 111

[Range] None

[Default] None

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Executes stamp printing on the receipt paper.

[Notes] ■ This command is enabled only when the receipt paper is selected as the paper type. If cut sheet (slip paper) is selected as the paper type, this command is ignored.

■ This command is enabled only when processed at the beginning of the line.

■ If a stamp is not provided for the receipt paper selected as the paper type, this command is ignored.

■ When using this command, there is a gap between the stamp position and the printing position.

[Model-dependent variations] None

Program Example for all printers Print Sample

PRINT #1,CHR$(&H1B);"c0";CHR$(2); ← Select paper type

PRINT #1,CHR$(&H1B);"o"; ← Stamp

PRINT #1,CHR$(&H1B);"d";CHR$(13);

PRINT #1," AAAAA";CHR$(&HA);YOUR RECEIPT

Thank youCall again

AAAAA

Mechanism control commands

Page 387: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC q Ver. 6.0 p. 387

ESC qEXECUTING COMMAND

[Name] Paper release

[Format] ASCII ESC qHex 1B 71Decimal 27 113

[Range] None

[Default] None

[Printers not featuring this command] TM-U925, TM-U300C/D, TM-J8000

[Description] Releases the cut sheet.

[Notes] ■ When cut sheet (slip or validation) is selected as the paper type, the printer waits for the paper to be removed after executing a release; then the printer selects paper roll as the paper type.

■ When the paper roll is selected as the paper type, the printer starts the next operation immediately after executing a release.

[Model-dependent variations] TM-H5000II TM-H6000 TM-U675

Program Example for all printers

PRINT #1, CHR$(&H1B);"q";

Mechanism control commands

Page 388: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands ESC q Ver. 6.0 p. 388

TM-H5000II

When standard mode is selected, this command is enabled only when processed at the beginning of the line.

TM-H6000

When standard mode is selected, this command is enabled only when processed at the beginning of the line.

TM-U675

When standard mode is selected, this command is enabled only when processed at the beginning of the line.

Page 389: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands GS V Ver. 6.0 p. 389

■ ■ ■ more■ ■ ■ moreGS V

EXECUTING COMMAND

[Name] Select cut mode and cut paper

[Format] ➀ASCII GS V mHex 1D 56 mDecimal 29 86 m➁ASCII GS V m nHex 1D 56 m nDecimal 29 86 m n

[Range] ➀ TM-J8000, TM-H6000, TM-U675: m = 0, 1, 48, 49➁ TM-J8000, TM-H6000, TM-U675: m = 65, 66; 0 ≤≤≤≤ n ≤≤≤≤ 255

➀ TM-H5000II: m = 1, 49➁ TM-H5000II: m = 66; 0 ≤≤≤≤ n ≤≤≤≤ 255

TM-U325D: m = 65, 66; 0 ≤≤≤≤ n ≤≤≤≤ 255

[Default] None

[Printers not featuring this command] TM-U375, TM-U925, TM-U300C/D

[Description] Select a paper cutting mode using m and then cut the paper, as follows:

m Function

➀➀➀➀0, 48 Executes a full cut (cuts the paper completely).

1, 49 Executes a partial cut (one point left uncut).

➁➁➁➁

65 Feeds paper to (cutting position + n × vertical motion unit) and executes a full cut (cuts the paper completely).

66 Feeds paper to (cutting position + n × vertical motion unit) and executes a partial cut (one point left uncut).

Mechanism control commands

Page 390: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands GS V Ver. 6.0 p. 390

[Notes for ➀ and ➁]

■ These commands are enabled only when the paper roll is selected as the paper type. If cut sheet (slip or validation) is selected as the paper type, these commands are ignored.

■ When standard mode is selected, these commands are enabled only when processed at the beginning of the line.

■ Some printer models support a full cut (m = 0, 48 or 65).

■ When using these commands, there is a gap between the autocutter position and the printing position.

[Note for ➀] ■ If an autocutter is not provided for the paper roll selected as the paper type, this command is ignored.

[Notes for ➁] ■ When n = 0, the printer feeds the paper to the cutting position and cuts it.

■ If an autocutter is not provided for the paper roll selected as the paper type, the printer only feeds the paper to manual-cutter position.

[Model-dependent variations] TM-H5000II TM-U325D TM-J8000 TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"c0";CHR$(2); ← Select paper typePRINT #1, " AAAAA"; CHR$(&HA);

PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(0); ← Feed paper and cutPaper fed to the cutting position and

AAAAA

partial cut (one point left uncut)performed

Page 391: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Mechanism control commands GS V Ver. 6.0 p. 391

TM-H5000II

The vertical motion unit is specified by GS P.

The autocutter mounted on the printer executes only a partial cut (one point left uncut); therefore, the printer executes a partial cut even if m = 0, 48, or 65.

TM-H6000

The vertical motion unit is specified by GS P.

The autocutter mounted on the printer executes only a partial cut (one point left uncut); therefore, the printer executes a partial cut even if m = 0, 48, or 65.

TM-U325D

The printer feeds the paper to [cutting position + n ×××× (1/144 inch)]. The cutting position is the manual cutter position. The printer does not have an autocutter; therefore, paper cannot be cut automatically.

TM-J8000

The vertical motion unit is specified by GS P.

The autocutter can perform only a full cut. Therefore, when m = 1, 49, 66, the printer performs a full cut.

TM-U675

The vertical motion unit is specified by GS P.

The autocutter mounted on the printer executes only a partial cut (one point left uncut); therefore, the printer executes a partial cut even if m = 0, 48, or 65.

Page 392: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands Ver. 6.0 p. 392

MICR commands

Command Name

DLE EOT BS Real-time MICR status transmissionFS ( f Select MICR data handling

FS a 0 Read check paperFS a 1 Load check paper to print starting positionFS a 2 Eject check paper

FS b Request retransmission of check paper reading resultFS c MICR mechanism cleaning

MICR (MAGNETIC INK CHARACTER RECOGNITION) COMMANDS

Page 393: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands DLE EOT BS Ver. 6.0 p. 393

■ ■ ■ more■ ■ ■ moreDLE EOT BS

EXECUTING COMMAND

[Name] Real-time MICR status transmission

[Format] ASCII DLE EOT BS nHex 10 04 08 nDecimal 16 4 8 n

[Range] n = 1

[Default] None

[Printers not featuring this command] TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Transmits 1 byte of MICR status in real time when n = 1.

[Notes] ■ This command is valid with printers with the MICR option.

■ The printer executes this command upon receiving it.

■ The printer transmits the status without confirming whether the host computer can receive data.

■ With a serial interface model, this command is executed even when the printer is offline, the receive buffer is full, or an error occurs.

■ With a parallel interface model, this command is not executed in the following status 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 offline, an error occurs, or receive buffer is full when DIP switch is set to Off.

■ This command is ignored during the process of transmitting the check paper reading result.

MICR commands

Page 394: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands DLE EOT BS Ver. 6.0 p. 394

■ The MICR status to be transmitted is as follows:

• MICR status (n = 1)

• Some paper sensors are not present, depending on the printer model.• The names of some paper sensors are different, depending on the printer model.

■ Real-time status can be differentiated by bits 0, 1, 4, and 7 from the other transmitted data. If the data transmitted from the printer is “0xx1xx10” (x is 0 or 1), the host should process the data as real-time status.

[Model-dependent variations] TM-H5000II TM-U925 TM-H6000 TM-U675

Bit Off/On Hex Decimal Function

0 Off 00 0 Fixed

... how to usethis table

1 On 02 2 Fixed

2 Off 00 0 MICR function selected.

On 04 4 MICR function not selected.

3 Off 00 0 Does not wait for check paper or cleaning sheet insertion.

On 08 8 Waits for check paper or cleaning sheet insertion.

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 TOF sensor: paper present.

On 20 32 TOF sensor: paper not present.

6 Off 00 0 BOF sensor: paper present.

On 40 64 BOF sensor: paper not present.

7 Off 00 0 Fixed

Program Example for all printers

PRINT #1, CHR$(&H10);CHR$(&H4);CHR$(&H8);CHR$(1); ← Transmits MICR status

Page 395: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands DLE EOT BS Ver. 6.0 p. 395

TM-H5000II

BUSY condition for a parallel interface is selected by DIP switch 2-1.

TM-H6000

BUSY condition for a parallel interface is selected by DIP switch 2-1.

TM-U675

BUSY condition for a parallel interface is selected by DIP switch 2-1.

TM-U925

BUSY condition for a parallel interface is selected by DIP switch 2-5.

The names of the paper sensors for bits 5 and 6:

•••• Check insertion sensor is the same sensor as the TOF sensor.

•••• Check ejection sensor is the same sensor as the BOF sensor.

Page 396: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS ( f Ver. 6.0 p. 396

■ ■ ■ more■ ■ ■ moreFS ( f

EXECUTING COMMAND

[Name] Select MICR data handling

[Format] ASCII FS ( f pL pH [n m]1...[n m]kHex 1C 28 66 pL pH [n m]1...[n m]kDecimal 28 40 102 pL pH [n m]1...[n m]k

[Range] 2 ≤ (pL + pH × 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 2550 ≤ n ≤ 3, 48 ≤ n ≤ 51 0 ≤ m ≤ 255

[Default] Always m = 0 for each n

[Printers not featuring this command] TM-J8000, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Selects the MICR reading operations, using n as follows:• pL, pH specifies the number of parameters following n as (pL + pH × 256) bytes.• n specifies the type of reading processing.

• m specifies each operation as follows: When n = 0, 48, m specifies processing of characters that have not been recognized by analyzing magnetic waveforms:

n Function

0, 48 Specifies processing for unrecognized characters

1, 49 Specifies detailed information for the reading result

2, 50 Specifies no addition of the reading result in an abnormal end

3, 51 Specifies a header for transmission data

m Function

0 Reading is stopped when a character that cannot be recognized is detected.

1 ∼ 255 The character that cannot be recognized is replaced with the character “?” and reading is continued. When the number of characters that are replaced with “?” becomes (m + 1), the reading is stopped.

MICR commands

Page 397: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS ( f Ver. 6.0 p. 397

■ ■ ■ more■ ■ ■ moreWhen n = 1, 49, m specifies whether detailed information is added to the reading result or not:

When n = 2, 50, m specifies no addition of the reading result for an abnormal end:

When n = 3, 51, m specifies the header of the reading result sent to the host.

[Notes] ■ The value set by this command affects a process of FS a 0.

■ The reading result for an unrecognized character detected by analyzing the magnetic waveform is an abnormal end, regardless of the setting specified by n (n = 0, 48).

m Function

0 Not to add detailed information for an abnormal end.

1 Add detailed information for an abnormal end.

m Function

0, 48 The MICR function ends after sending the reading result.

1, 49 The MICR function is continued after sending the reading result only for the following abnormal ends:• When the length of the sheet inserted is other than that specified.• When a magnetic that cannot be read is detected by analyzing the magnetic waveform.• When an abnormality is detected by noise measurement.• When the process of FS a 0 is stopped by a cover open.

m Function

0, 48 Specifies a 1-byte header.• Hex = 5FH/Decimal = 55

1, 49 Specifies a header with an identifier of 2 bytes.• The first byte: Hex = 37H/ Decimal = 55• The second byte: Hex = 2AH/ Decimal = 42

Page 398: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS ( f Ver. 6.0 p. 398

■ ■ ■ more■ ■ ■ more■ When n = 1, 49, if m = 1 (add detailed information), transmission of the reading result by FS a 0 consists

of [header + reading status + detailed information + separation + reading data + NUL].

• [header] is 1 byte or 2 bytes specified by n (3 or 51).• [detailed information] is 1-byte data as follows:

• [Separation] is a 1-byte code consisting of [Hex=1FH/Decimal=31].• [Reading data] is added when the result of FS a 0 is a normal end or when (n = 0, 48) and if m is not

0, and the number of “?” is less than m.• [NUL] is a 1-byte code consisting of [Hex = 00H/Decimal = 0].

Data

Detailed InformationHex Decimal

40 64 No error has occurred (normal end).

41 65 FS a 0 command is not executed yet.

42 66 The check insertion waiting status has been canceled with the command.

43 67 The check insertion waiting status has been canceled because the time set by ESC f command has passed.

44 68 A check with a length other than that specified is inserted.

45 69 A magnetic waveform cannot be detected in reading process.

46 70 An unrecognized character is detected by waveform analysis.

47 71 A recoverable error or automatically recoverable error occurred during the processing of FS a 0.

48 72 An error was detected during noise measurement.

49 73 The processing of an FS a 0 command is stopped due to a cover open.

Page 399: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS ( f Ver. 6.0 p. 399

■ When n = 2, 50 [MICR function end after sending the reading result (m = 0, 48)] is selected, after transmitting the reading result, the printer processes the following operations during FS a 0.• Ejects the check (including waiting time for the check sheet to be ejected).• MICR status is set to [MICR function = not selected].• The default sheet set by ESC c 0 is selected as the paper type.

■ The MICR function is continued after transmitting the reading result in either of the following situations. In this case, the check is not ejected and the MICR status is not changed.

• The reading result is normal.

• The reading result is abnormal:

• When n = 0, 48, m ≠ 0 (unrecognized character is replaced with “?”), and the reading data is added to the reading result.

• When n = 2, 50, m = 1, 49 (MICR function is continued), and the cause of the abnormal end is the same as specified in the command.

[Model-dependent variations] None

Program Example for all printers

PRINT #1, CHR$(&H1C);"(f";CHR$(4);CHR$(0);CHR$(1);CHR$(1);CHR$(3);CHR$(1); ← Addition of detailed information and a header with an identifier are selected

PRINT #1, CHR$(&H1C);"a0";CHR$(0);

Page 400: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 0 Ver. 6.0 p. 400

■ ■ ■ more■ ■ ■ moreFS a 0

EXECUTING COMMAND

[Name] Read check paper

[Format] ASCII FS a 0 nHex 1C 61 30 nDecimal 28 97 48 n

[Range] 0 ≤ n ≤ 255

[Default] None

[Printers not featuring this command] TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Selects the MICR function and reads the check paper, using n as follows:

Readable fonts:

• If an undefined font is selected, this command is ignored.[Notes] ■ Readable fonts indicate the character standard for converting a readable waveform to character data. This

command is ignored when a reserved font is specified.

Bit Off/On Hex Decimal Function

0 Off 00 0 Readable fonts. See the table below.

On 01 1

1 Off 00 0

On 02 2

2-7 0 00 0 Reserved

Bit 1 Bit 0 Hex Decimal Font

Off Off 00 0 E13B

Off On 01 1 CMC7

On Off 02 2 Reserved

On On 03 3 Reserved

MICR commands

Page 401: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 0 Ver. 6.0 p. 401

■ ■ ■ more■ ■ ■ more■ This command is supported only by printers with the MICR option.

■ This command is enabled only when processed at the beginning of the line in standard mode.

■ If this command is processed in page mode, it is ignored.

■ If MICR function is not selected when this command is executed, the MICR function is selected and the printer enters the check paper waiting status. The printer waits for the check paper until it is inserted, the waiting time t1 set by ESC f elapses, the printer is reset, or the power is turned off. The selected/unselected status of the MICR function is confirmed by DLE EOT BS.

■ During the check paper waiting period, the printer processes only real-time commands, such as DLE EOT or DLE ENQ.

■ It is possible to cancel the check paper waiting status using DLE ENQ 3. In this case, however, data in the print and receive buffer is cleared. The check paper insertion waiting status can be confirmed by DLE EOT BS.

■ If a character detected cannot be identified in the specified character font, the printer ends this command and transmits “header + reading status (abnormal end) + NUL” (bit 5 of reading status is On) to the host computer.

■ The printer transmits the reading result to the host computer after reading.

• When the printer ends reading normally, it transmits “header + reading status (normal end) + data + NUL” to the host computer.

• When a reading result is abnormal, the printer transmits “ header + reading status (abnormal end) + NUL” to the host computer. [Detailed information + separation], [reading data], or [detailed information + separation + reading data] is added after [reading status (abnormal end)] by FS ( f.

Page 402: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 0 Ver. 6.0 p. 402

■ ■ ■ more■ ■ ■ more■ Reading status:

■ The reading data is a series of ASCII codes corresponding to the reading results. When the reading status is abnormal end, the reading data includes “?”.

■ NUL is [Hex = 00H/Decimal = 0]. ■ Header can be specified by FS ( f as follows:

• 1-byte header (Hex = 5FH/Decimal = 95)• 2-byte header with an identifier (Hex = 37H + 2AH/Decimal = 55 + 42)

■ Bits 0 and 1 of the reading status indicate identified character fonts. When an abnormal end occurs, bit 0 and bit 1 have no meaning.

■ In the following cases, rereading is not possible (bit 4 is On):

• When the printer does not support the function of rereading.• When the printer reaches the maximum times for rereading (the maximum times are different for

different models).• When the MICR status is not selected.

Bit Off/On Hex Decimal Function

0 Off 00 0 Readable font: E13B

On 01 1 Readable font: CMC7

1 Off 00 0 Reserved

2 Off 00 0 Reserved

3 Off 00 0 Detailed information: not added

On 08 1 Detailed information: added

4 Off 00 0 Rereading possible

On 10 16 Rereading not possible

5 Off 00 0 Reading: Normal end

On 20 32 Reading: Abnormal end

6 On 40 64 Fixed

7 Off 00 0 Fixed

Page 403: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 0 Ver. 6.0 p. 403

■ ■ ■ more■ ■ ■ more■ The following cases are abnormal ends (bit 5 of reading status is On):

• Character waveforms cannot be detected.• Normal waveform reading cannot be detected.• The check paper waiting status is canceled by DLE ENQ 3 or DLE DC 4.• The wait time t1 set by ESC f has elapsed.• When check paper with a length other than that specified is inserted.• When an error is detected by noise measurement.• An error occurs during the period from the start of command processing to the transmission of a

header (an error in communication is not included).• The processing of FS a 0 is stopped due to a cover open.

■ When bit 4 of reading status is Off (rereading possible), FS a 0, FS a 1, FS a 2, FS b, FS ( e, GS ( G and real-time commands are processed. When processing the other codes, the MICR function ends after specifying the reading status as [rereading not possible].

■ When the MICR function is selected and bit 4 of reading status is On (rereading not possible), FS a 1, FS a 2, FS b, FS ( e, GS ( G and real-time commands are processed. When processing the other codes, the MICR function ends.

■ The end processing of the MICR functions is as follows:

• The MICR function is set to [MICR not selected].

• The check paper is ejected (including the paper ejection waiting status).

• Paper roll is selected as the paper source.

■ In either of the following cases, the check paper is not ejected after transmitting the reading result:

• The reading ends normally.

• The reading ends abnormally, and the reading result is added (specified by FS ( f).

• The MICR function is continued after the abnormal end (specified by FS ( f).

■ When bit 5 of reading status is Off (reading ends normally), the printer does not eject the check paper.

■ When an abnormal end occurs due to a recoverable error, the printer does not transmit "Header ~ NUL." The printer recovers from the error by DLE ENQ after removing the cause of the error, ejects the check paper, deselects the MICR function, and selects the paper roll as the paper source.

Page 404: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 0 Ver. 6.0 p. 404

■ ■ ■ more■ ■ ■ more■ When sending a reading result, ASB status and real-time commands cannot be used.

■ Even if the ASB function is selected, the ASB status is not transmitted during reading and "Header ~ NUL" transmission.

■ When DTR/DSR control (handshaking) is selected by DIP switch for a serial interface, the printer confirms just before transmitting the header that the host computer is ready to receive data. If the host computer is not ready to receive data, the printer waits until the host becomes ready. After transmitting the header, the printer transmits all data without confirming whether the host computer can receive data.

■ When XON/XOFF control (handshaking) is selected by DIP switch for a serial interface, the printer transmits "Header ~ NUL" consecutively without confirming whether the host computer can receive data.

■ With a parallel interface, data of "Header ~ NUL" is stored in the transmission buffer of the printer temporarily the same as the other transmission data (except for ASB status), and when the host enters Reverse Mode, data is transmitted in order from the beginning of the transmission buffer. The transmission buffer is 99 bytes; therefore, data which exceeds 99 bytes is ignored. When using this command, the host should be changed to the Reverse Mode immediately and execute a receive processing of status.

■ The printer is busy immediately before sending the header. After sending NUL, the printer returns to be ready (except for being busy for some other reason).

■ Paper feeding with the paper FEED button cannot be performed during the period from starting MICR reading to ending check paper ejection.

■ Reading results can be differentiated by the header of block data from other transmitted data. After outputting FS a 0 to the printer, if the data transmitted from the printer is [Hex=5FH/Decimal=95], the host should process the data up to NUL [Hex=00H/Decimal=0]. There is an exception:

• When the host communicates with the printer by XON/XOFF control, the XOFF code might interrupt [Header ~ NUL].

Page 405: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 0 Ver. 6.0 p. 405

■ MICR encoding table

[Model-dependent variations] TM-H5000II TM-U925 TM-H6000 TM-U675

Program Example for all printers

PRINT #1, CHR$(&H1C);"a0";CHR$(0); ← Readable font as E13B

Page 406: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 0 Ver. 6.0 p. 406

TM-H5000II

Handshaking for a serial interface is selected by DIP switch 1-3.

The printer does not support the rereading function.

Bit 4 of reading status is always fixed to On (rereading not possible).

TM-U925

Handshaking for a serial interface is selected by DIP switch 1-8.

The printer can only reread once.

The printer does not detect the following errors:

• The length of a check paper

• Cover open during a process of this command

Page 407: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 0 Ver. 6.0 p. 407

TM-H6000

Handshaking with the host is selected by DIP switch 1-3.

This printer does not support the rereading function; therefore, reading status is always [rereading not possible (Bit 4 = 1)].

• The readable characters printed with CMC7 are 15 types as shown below:

TM-U675

Handshaking is selected by DIP switch 1-3.

The printer does not support the rereading function.

Bit 4 of reading status is always fixed to On (rereading not possible).

• The readable characters printed with CMC7 are 15 types as shown below:

Character Type Numeric Special symbols

Transmission data ASCII 0 ~ 9 # / = > ∧∧∧∧

Hex 31 ~ 39 23 2F 3D 3E 5F

Decimal 48 ~ 57 35 47 61 62 94

Character Type Numeric Special symbols

Transmission data ASCII 0 ~ 9 # / = > ∧∧∧∧

Hex 31 ~ 39 23 2F 3D 3E 5F

Decimal 48 ~ 57 35 47 61 62 94

Page 408: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 1 Ver. 6.0 p. 408

FS a 1EXECUTING COMMAND

[Name] Load check paper to print starting position

[Format] ASCII FS a 1Hex 1C 61 31Decimal 28 97 49

[Range] None

[Default] None

[Printers not featuring this command] TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Loads the check paper to the print starting position.

[Notes] ■ This command is supported only by printers with the MICR option.

■ This command is ignored unless the MICR function is selected.

■ When this command is executed, bit 4 of reading status for FS b is On (rereading not possible).

■ After loading the check paper, the printer ends the MICR function and selects the slip paper as the paper type.

[Model-dependent variations] TM-H6000

TM-H6000

The face of a slip is selected as the paper source by this command.

Program Example for all printers

PRINT #1, CHR$(&H1C);"a1";

MICR commands

Page 409: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS a 2 Ver. 6.0 p. 409

FS a 2EXECUTING COMMAND

[Name] Eject check paper

[Format] ASCII FS a 2Hex 1C 61 32Decimal 28 97 50

[Range] None

[Default] None

[Printers not featuring this command] TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Ejects the check paper.

[Notes] ■ This command is supported only by printers with the MICR option.

■ This command is ignored unless the MICR function is selected.

■ When this command is executed, bit 4 of reading status for FS b is On (rereading not possible).

■ After ejecting the check paper, the printer ends the MICR function and selects the paper roll as the paper source.

[Model-dependent variations] None

Program Example for all printers

PRINT #1, CHR$(&H1C);"a2";

MICR commands

Page 410: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS b Ver. 6.0 p. 410

■ ■ ■ more■ ■ ■ moreFS b

EXECUTING COMMAND

[Name] Request retransmission of check paper reading result

[Format] ASCII FS bHex 1C 62Decimal 28 98

[Range] None

[Default] None

[Printers not featuring this command] TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Retransmits the previous check paper reading results.

[Notes] ■ This command is supported only by printers with the MICR option.

■ The transmitted information is the same as that previously transmitted by FS a 0.

• Header: 5FH (decimal 95)• Header: 37H, 2AH/decimal = 55, 42 (2 bytes)

MICR commands

Page 411: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS b Ver. 6.0 p. 411

■ ■ ■ more■ ■ ■ more• Reading status:

• Data: Identified character strings (ASCII codes).• NUL: 00H (decimal 0)

■ Bits 0 and 1 of the reading status indicate identified character fonts. When an abnormal end occurs, both bit 0 and 1 have no meaning.

Bit Off/On Hex Decimal Function

0 Off 00 0 Readable font: E13B

On 01 1 Readable font: CMC7

1 Off 00 0 Reserved

2 Off 00 0 Reserved

3 Off 00 0 Reserved

4 Off 00 0 Rereading possible

On 10 16 Rereading not possible

5 Off 00 0 Reading: Normal end

On 20 32 Reading: Abnormal end

6 On 40 64 Fixed

7 Off 00 0 Fixed

Page 412: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS b Ver. 6.0 p. 412

■ In the following cases, rereading is not possible (bit 4 is On):

• When an abnormal end occurs.• When the printer reaches the maximum times for rereading (the maximum times are different for

different models).• When the MICR status is not selected.• If FS a 0 is not executed after executing ESC @, resetting, or turning power on.

■ “➂ data” is transmitted when the printer ends reading normally.

■ The following cases are abnormal ends (bit 5 of reading status is On):

• FS a 0 is not executed after executing ESC @, resetting, or turning power on.• Character waveforms cannot be detected.• Normal waveform reading cannot be detected.• The check paper waiting status is canceled by DLE ENQ 3.• The wait time t1 set by ESC f has elapsed.• An error occurs during the period from the start of command processing to the transmission of the

header.• When an error occurs (errors are different depending on the printer).

■ If FS a 0 is not executed before FS b, the printer transmits “ ➀ Header + ➁ Reading status (abnormal end) + ➃ NUL.” “➂ data” is not transmitted.

■ The printer ignores real-time commands during "Header ~ NUL" transmission.

■ Even if the ASB function is selected, ASB status is not transmitted during "Header ~ NUL" transmission.

■ When DTR/DSR control (handshaking) is selected by DIP switch with a serial interface, the printer confirms just before transmitting the header that the host computer is ready to receive data. If the host computer is not ready to receive data, the printer waits until the host becomes ready. After transmitting the header, the printer transmits all data without confirming whether the host can receive data.

■ When XON/XOFF control (handshaking) is selected by DIP switch with a serial interface, the printer transmits "Header ~ NUL" consecutively without confirming whether the host computer can receive data.

Program Example for all printers

PRINT #1, CHR$(&H1C);"b";

Page 413: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet MICR commands FS c Ver. 6.0 p. 413

FS cEXECUTING COMMAND

[Name] MICR mechanism cleaning

[Format] ASCII FS cHex 1C 63Decimal 28 99

[Range] None

[Default] None

[Printers not featuring this command] TM-U375, TM-U325D, TM-U300C/D, TM-J8000

[Description] Cleans the MICR mechanism.

[Notes] ■ This command is supported only by printers with the MICR option.

■ This command is enabled only when processed at the beginning of the line in standard mode.

■ If this command is encountered in page mode, it is ignored.

■ When this command is executed, the printer enters the cleaning sheet waiting status. Insert the cleaning sheet into the check paper entrance. The printer waits for the cleaning sheet until a cleaning sheet is inserted, the waiting time t1 set by ESC f elapses, the printer is reset, or the power is turned off.

■ During the cleaning sheet waiting period, the printer processes only a real-time command, such as DLE EOT or DLE ENQ.

■ It is possible to cancel the cleaning sheet waiting status using DLE ENQ 3. In this case, however, data in the print and receive buffer is cleared. The cleaning sheet insertion waiting status can be confirmed by DLE EOT BS.

■ After cleaning the MICR mechanism, the printer automatically selects the paper roll as the paper source.

[Model-dependent variations] None

Program Example for all printers

PRINT #1, CHR$(&H1C);"c";

MICR commands

Page 414: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands Ver. 6.0 p. 414

Miscellaneous commands

Command Name

DLE ENQ Real-time request to printerDLE DC4 ➀ Generate real-time pulseDLE DC4 ➁ Execute power-off sequenceDLE DC4 ➂ Clear buffer(s)

ESC = Select peripheral deviceESC @ Initialize printerESC L Select page modeESC S Select standard modeESC p Generate pulseFS L Select double-density page mode

FS g 1 Write to NV user memoryFS g 2 Read from NV user memoryGS ( A Execute test printGS ( C Edit NV user memoryGS ( D Enable/disable real-time commandGS ( E User setup commands

GS ( M Customize printer control value(s)GS E Select head control methodGS I Transmit printer ID

GS P Set horizontal and vertical motion unitsGS g 0 Initialize maintenance counterGS g 2 Transmit maintenance counter

MISCELLANEOUS COMMANDS

Page 415: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE ENQ Ver. 6.0 p. 415

■ ■ ■ more■ ■ ■ moreDLE ENQ

EXECUTING COMMAND

[Name] Real-time request to printer

[Format] ASCII DLE ENQ nHex 10 05 nDecimal 16 5 n

[Range] 1 ≤ n ≤ 3[Default] None

[Printers not featuring this command] TM-U300C/D

[Description] Responds to a request in real time from the host computer, using n as follows:

[Notes] ■ The printer executes this command upon receiving it.

■ With a serial interface model, this command is executed even when the printer is offline, the receive buffer is full, or an error occurs.

■ With a parallel interface model, this command is not executed if the printer is busy and is unable to receive data from the host computer.

■ This command is ignored when transmitting block data (Header~NUL).

■ When a recoverable error occurs, after removing the 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.

■ 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.

■ This command can be executed when the printer is disabled by ESC =.

n Request

1 Restarts printing from the beginning of the line where an error occurred, after recovering from the error.

2 Recovers from an error after clearing the receive and print buffers.

3 Cancels the cut sheet waiting status after clearing the receive and print buffers.

Miscellaneous commands

Page 416: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE ENQ Ver. 6.0 p. 416

■ When the printer recovers from an error using DLE ENQ 1 with cut sheet (slip or validation paper) selected, the printer ejects the current sheet completely and waits for new sheet insertion. However, the printer only ejects the sheet and does not wait for new sheet insertion when the printer recovers from a cut sheet ejection error.

■ When the printer recovers from an error using DLE ENQ 2 with cut sheet selected, the printer ejects the current sheet completely and selects the paper roll as the paper type.

■ 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.

■ DLE ENQ 3 is enabled only when the printer is in the cut sheet (slip paper, validation paper, check paper, and cleaning sheet) insertion waiting status, and is ignored in other cases. After canceling cut sheet insertion, the printer selects the paper roll as the paper type. DLE ENQ 3 can cancel slip or validation paper insertion. The slip paper or validation paper insertion waiting status can be confirmed by DLE EOT.

■ Cut sheet waiting status can be canceled using DLE ENQ 3, the printer selects the paper roll as the paper type. The check paper or cleaning sheet insertion waiting status can be confirmed by DLE EOT BS.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-J8000TM-H6000 TM-U675.

TM-H5000II

The BUSY condition is selected by DIP switch 2-1.A recoverable error indicates an autocutter error, home position detection error, carriage detection error, cut sheet (slip or check paper or cleaning sheet) ejection error, or front cover open error during printing.

TM-U375

When the printer is disabled, DLE ENQ 1 and DLE ENQ 2 can be executed.The BUSY condition for a parallel interface is selected by DIP switch 2-3.A recoverable error indicates a home position detection error, carriage detection error, or cut sheet (slip or validation paper) ejection error.

Program Example for all printers

PRINT #1, CHR$(&H10);CHR$(&H5);CHR$(2);

Page 417: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE ENQ Ver. 6.0 p. 417

TM-U925

When the printer is disabled, DLE ENQ 1 and DLE ENQ 2 can be executed.

The BUSY condition for a parallel interface is selected by DIP switch 2-5.

A recoverable error indicates an autocutter error, home position detection error, carriage detection error, or cut sheet (slip or check paper or cleaning sheet) ejection error.

TM-U325D

When the printer is disabled, DLE ENQ 1 and DLE ENQ 2 can be executed.

The BUSY condition for the parallel interface is selected by DIP switch 2-1.

A recoverable error indicates a home position detection error or validation ejection error.

TM-J8000

The BUSY condition is selected by DIP switch 2-1.

A recoverable error indicates an autocutter error, home position detection error, carriage detection error, cut sheet (slip or check paper or cleaning sheet) ejection error, or front cover open error during printing.

TM-H6000

The BUSY condition is selected by DIP switch 2-1.

A recoverable error indicates an autocutter error, home position detection error, carriage detection error, cut sheet (slip or check paper or cleaning sheet) ejection error, or front cover open error during printing.

TM-U675

The BUSY condition is selected by DIP switch 2-1.

A recoverable error indicates an autocutter error, home position detection error, carriage detection error, cut sheet (slip or check paper or cleaning sheet) ejection error, or front cover open error during printing.

Page 418: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE DC4 Ver. 6.0 p. 418

■ ■ ■ more■ ■ ■ moreDLE DC4

EXECUTING + SETTING

[Name] ➀ Generate real-time pulse

[Format] ASCII DLE DC4 fn m tHex 10 14 fn m tDecimal 16 20 fn m t

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D[Range] fn = 1

m = 0, 1 1 ≤ t ≤ 8

[Description] Outputs the pulse specified by t to connector pin m as follows:

The pulse ON time is [t × 100 ms] and the OFF time is [t × 100 ms]

[Notes] ■ The printer executes this command upon receiving it.

■ This command is ignored in the following status conditions:

• In error status• When a pulse is being output to the connector pin (during processing of ESC p and DLE DC4)• During transmission of block data (Header~NUL)

■ With a serial interface, the printer executes this command when it is in offline, receive buffer-full, or error status.

■ With a parallel interface, if the printer is in BUSY condition, this command cannot be used in the following status conditions.

• When DIP switch (BUSY condition) is on: receive buffer-full• When DIP switch (BUSY condition) is off: offline, receive buffer-full, or error status

m Connector pin

0 Drawer kick-out connector pin 2

1 Drawer kick-out connector pin 5

Miscellaneous commands

Page 419: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE DC4 Ver. 6.0 p. 419

■ This command is effective when the printer is disabled by ESC = (select peripheral device).

[Model-dependent variations] TM-H5000II TM-J8000 TM-H6000 TM-U675

TM-H5000II

DIP switch 2-1 selects whether the printer is in BUSY condition.

TM-J8000

DIP switch 2-1 selects whether the printer is in BUSY condition.

TM-H6000

DIP switch 2-1 selects whether the printer is in BUSY condition.

TM-U675

DIP switch 2-1 selects whether the printer is in BUSY condition.

Program Example for all printers

PRINT #1, CHR$(&H10);CHR$(&H14);CHR$(1)l;CHR$(0);CHR$(5);

Page 420: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE DC4 Ver. 6.0 p. 420

■ ■ ■ more■ ■ ■ moreDLE DC4

EXECUTING COMMAND

SETTING COMMAND

[Name] ➁ Execute power-off sequence

[Format] ASC II DLE DC4 n a bHex 10 14 n a bDecimal 16 20 n a b

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] n = 2a = 1b = 8

[Description] Executes power off.

[Notes] ■ This is a real-time command that the printer executes upon receiving it. Take the following into consideration:

• If this command is embedded within the code string of another command, it is processed as a parameter of the other command, and the print result is not correct.

• If another command (bit-image, defined data, etc.) has a code string that is the same as this command in a parameter, the printer starts processing this command.

■ This command is ignored when the printer is in the following states:

• In the status of transmitting block data [Header~NUL]• When this command is disabled by GS ( D.

■ With a serial interface, this command is executed when the printer is in offline, receive buffer full, or error state.

■ With a parallel interface, the printer cannot receive data when it is BUSY. This command cannot be used in the following cases:

• When DIP switch (BUSY condition) is On: receive buffer full• When DIP switch (BUSY condition) is Off: offline, receive buffer full, or error state.

■ This command can be used when the printer is disabled by ESC =.

Miscellaneous commands

Page 421: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE DC4 Ver. 6.0 p. 421

■ When the power is turned off, the printer transmits [header + status + NUL] to the host.

• Header: Hexadecimal=3BH/Decimal=59• Status: Hexadecimal=30H/Decimal=48• NUL: Hexadecimal=00H/Decimal=0

■ The power-off notice can be differentiated from other transmission data. When the data transmitted from the printer is [Hex=3BH/Decimal=59], the host should process 3 bytes of data up to NUL as the notice from the printer. If the second byte is [Hex=30H/Decimal=48], this is the power-off notice. There is an exception described below:

When the host is communicating with the printer by XON/XOFF control, an XOFF code might interrupt [Header ~ NUL].

[Model-dependent variations] TM-J8000 TM-U675 TM-H6000

Program Example

PRINT #1, CHR$(&H10);CHR$(&H14);CHR$(2);CHR$(1);CHR$(8);

Page 422: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE DC4 Ver. 6.0 p. 422

TM-J8000

The BUSY condition is selected by DIP switch 2-1.

After a power-off processing, the POWER LED blinks.

There are two switches on the printer. The back switch is the first switch and the front switch is the second switch. This command is effective when controlling the power using the first switch. At this time, be sure that DIP switch 2-4 is on.

TM-U675

The BUSY condition is selected by DIP switch 2-1.

The power is not cut off by this command. The user should turn off the power with the power switch.

Maintenance counter values are maintained by the power off processing of this command; therefore the maintenance counter values will be more accurate if the user uses this command before turning off the power switch.

TM-H6000

The BUSY condition is selected by DIP switch 2-1.

The power is not cut off by this command. The user should turn off the power with the power switch.

Maintenance counter values are maintained by the power off processing of this command; therefore the maintenance counter values will be more accurate if the user uses this command before turning off the power switch.

Page 423: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE DC4 Ver. 6.0 p. 423

■ ■ ■ more■ ■ ■ moreDLE DC4

EXECUTING COMMAND

SETTING COMMAND

[Name] ➂ Clear buffer(s)

[Format] ASCII DLE DC4 n d1...d7Hex 10 14 n d1...d7Decimal 16 20 n d1...d7

[Printers not featuring this command] TM-J8000, TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] n = 8d1 = 1, d2 = 3, d3 = 20, d4 = 1, d5 = 6, d6 = 2, d7 = 81 ≤ t ≤ 8

[Description] Clear all data stored in the receive buffer and the print buffer.

■ Do not use this command in a system in which the printer is used with the OPOS driver and Java POS driver that are provided by SEIKO EPSON Corporation.

■ If a code string of this command is embedded within parameters of other commands (bit-image, defined data), the printer performs a buffer clear. If the printer has this command, be sure to check if the code string of this command is embedded within the parameters of another command before transmitting the bit-image data and defined data.

[Notes] ■ When the buffer is cleared, the printer transmits [header + status + NUL] to the host.

• Header: Hexadecimal=37H/Decimal=55, number of bytes: 1• Status: Hexadecimal=25H/Decimal=37, number of bytes: 1• NUL: Hexadecimal=00H/Decimal=0, number of bytes: 1

■ This command is a real-time command and the printer executes this command upon receiving it. Take the following into consideration:

• If another command (bit-image, defined data, etc.) has a code string that is the same as this command in a parameter, the printer processes this command.

■ This command is ignored during transmission of block data (Header~NUL).

Miscellaneous commands

Page 424: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE DC4 Ver. 6.0 p. 424

■ ■ ■ more■ ■ ■ more■ When this command is processed, if there are any other commands that are being processed, the

processing of the other commands is canceled.

Examples: when defining a bit-image, when processing a command that specifies a character mode

■ If this command is processed when the printer is in the cut sheet insertion waiting state, the paper waiting state is canceled. This is the same function as the DLE ENQ3 command.

■ Roll paper is selected as the paper type by this command. When this command is processed, if the printer is in one of the following conditions, the printer processes a paper ejection (if the printer has the function of waiting for the paper to be removed, this function is also included). However, if the printer is offline when this command is processed, the paper is ejected when the printer comes online.

• When the cut sheet (a slip or a validation) is selected as the paper type.• When the printer has a MICR reader.

■ If this command is processed in page mode, the printer returns to standard mode. The setting of ESC W is changed to the default value.

■ This command does not change or initialize settings of other commands (except for ESC W with the page mode selected).

■ Executing this command moves the printing position to the beginning of a line.

■ If this command is executed when a recoverable error has occurred, the printer recovers from the error. This is the same function as the DLE ENQ2 command.

■ With a serial interface, the printer executes this command when it is in offline, receive buffer-full, or error status.

■ With a parallel interface, if the printer is in BUSY condition, this command cannot be used in the following status conditions.

• When DIP switch (BUSY condition) is on: receive buffer-full• When DIP switch (BUSY condition) is off: offline, receive buffer-full, or error status

■ This command is effective when the printer is disabled by ESC = (select peripheral device).

Page 425: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands DLE DC4 Ver. 6.0 p. 425

■ The transmission data of this command can be differentiated from other transmission data. When the data transmitted from the printer is [Hex=37H/Decimal=55], the host should process 3 bytes of data up to NUL as the notice from the printer. If the second byte is [Hex=25H/Decimal=37], this is the transmission data of this command. There is an exception described below:

When the host is communicating with the printer by XON/XOFF control, an XOFF code might interrupt [Header ~ NUL]

[Model-dependent variations] TM-H6000 TM-U675

TM-H6000

When you use the following commands, be sure to check whether the code string of DLE DC4 command is embedded within the parameters of the commands.

Bit-image commands: ESC ✻✻✻✻, FS q, GS ✻✻✻✻, GS v 0

Character pattern defining commands: ESC &, FS 2

TM-U675

When you use the following commands, be sure to check whether the code string of DLE DC4 command is embedded within the parameters of the commands.

Bit-image commands: ESC ✻✻✻✻, FS q, GS ✻✻✻✻, GS v 0

Character pattern defining commands: ESC &, FS 2

Program Example for all printers

PRINT #1, CHR$(&H10);CHR$(&H14);CHR$(8);CHR$(1);CHR$(3);CHR$(20);CHR$(1);CHR$(6);CHR$(2);CHR$(8);

Page 426: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC = Ver. 6.0 p. 426

■ ■ ■ more■ ■ ■ moreESC =

SETTING COMMAND

[Name] Select peripheral device

[Format] ASCII ESC = nHex 1B 3D nDecimal 27 61 n

[Range] 1 ≤ n ≤ 3[Default] A serial interface model:

When the DIP switch for connection of a customer display is Off: n = 1.When the DIP switch for connection of a customer display is On: n = 2.A parallel interface model: n = 1.

[Printers not featuring this command] TM-U300C/D

[Description] Selects the device to which the host computer sends data, using n as follows:

[Notes] ■ When the printer is disabled (n = 2), it ignores all character data and normal commands.

■ If ASB is enabled when the printer is disabled by this command, the printer transmits a 4-byte status message whenever the status changes.

n Peripheral Device Status

1 Only printer selected (customer display is disabled).

2 Only customer display selected (printer is disabled).

3 Both printer and customer display selected.

Miscellaneous commands

Page 427: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC = Ver. 6.0 p. 427

■ When executing ESC @, the default value of this command is as follows, depending on the value set by this command just before processing ESC @ and on the setting of DIP switch for the connection of a customer display.

If the printer does not support a DIP switch for connection of a customer display, the default value of this command is the same as when DIP switch is Off.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-J8000TM-H6000 TM-U675

n

Before ESC @ processing 1 2 3

After ESC @ processing When the DIP switch for connection of customer display is Off

1 2 1

When the DIP switch for connection of customer display is On

1 2 2

Program Example for all printers Print SampleAAAAA CCCCC

PRINT #1, CHR$(&H1B);"=";CHR$(1); ← Only printer selected

PRINT #1, "AAAAA";

PRINT #1, CHR$(&H1B);"=";CHR$(2); ← Only customer display selected

PRINT #1, "BBBBB";

PRINT #1, CHR$(&H1B);"=";CHR$(3);← Both printer and customer display selected

PRINT #1, " CCCCC"; CHR$(&HA);

Customer Display Sample

BBBBB

BBBBB�CCCCC

Page 428: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC = Ver. 6.0 p. 428

TM-H5000II

Connection of customer display for a serial interface is selected by DIP switch 2-2.

TM-U375

Real-time commands that are enabled when the printer is disabled:

•••• DLE ENQ (nnnn = 1, 2)

Connection of customer display for a serial interface is selected by DIP switch 2-1.

TM-U925

Real-time commands that are enabled when the printer is disabled:

•••• DLE ENQ (nnnn = 1, 2)

Connection of customer display for a serial interface is selected by DIP switch 1-6.

TM-U325D

Real-time commands that are enabled when the printer is disabled:

•••• DLE ENQ (nnnn = 1, 2)

The printer does not support the DIP switch for connection of customer display.

TM-J8000

Customer display (DM-D) connection is selected by DIP switch 2-2.

TM-H6000

Customer display (DM-D) connection is selected by DIP switch 2-2.

TM-U675

Customer display (DM-D) connection is selected by DIP switch 2-2.

Page 429: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC @ Ver. 6.0 p. 429

■ ■ ■ more■ ■ ■ moreESC @

EXECUTING COMMAND

SETTING COMMAND

[Name] Initialize printer

[Format] ASCII ESC @Hex 1B 40Decimal 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 is reset to the mode that was in effect when the power was turned on.

[Notes] ■ The DIP switch settings are not checked again.■ The data in the receive buffer is not cleared.■ Any macro definitions are not cleared.■ NV bit image memory, NV user memory, and ASB status customization are not cleared.■ The maintenance counter value is not affected by this command.■ When ESC @ is executed, the setting of ESC = (Select peripheral device) differs from the default value

when the power is turned on.

Miscellaneous commands

Page 430: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC @ Ver. 6.0 p. 430

• The value of n after ESC @ is executed is different, depending on the status of the peripheral device selection just before executing ESC @ and the DIP switch setting (customer display (DM-D) connection) as follows:

• If the printer does not support the DIP switch (connection of customer display), the setting is the same as when the DIP switch is off.

■ When this command is processed with cut sheet selected as the paper type, all settings are initialized after ejecting the cut sheet.

■ When this command is processed in page mode, the printer deletes the data in the printing areas, initializes all settings, and selects standard mode.

■ This command can cancel all settings, such as print mode and line feed, at the same time.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-U300C/DTM-J8000 TM-H6000 TM-U675

nSetting when the power is turned on DIP switch (customer display (DM-D) connection is off.) 1

DIP switch (customer display (DM-D) connection is on.) 2

Setting just before executing ESC @ 1 2 3

Setting after executing ESC @ DIP switch (customer display (DM-D) connection is off.) 1 2 1

DIP switch (customer display (DM-D) connection is on.) 1 2 2

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); AAAAABBBBB ← All settings are canceled after ESC @ is executed

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 #1, "BBBBB"; CHR$(&HA);

Page 431: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC @ Ver. 6.0 p. 431

TM-H5000II

Customer display (DM-D) connection is set by DIP switch 2-2.

TM-U375

Customer display (DM-D) connection is set by DIP switch 2-1.

TM-U925

Customer display (DM-D) connection is set by DIP switch 1-6.

TM-U325D

This printer does not have a DIP switch for customer display (DM-D) connection.

TM-U300C/D

This printer does not have a DIP switch for customer display (DM-D) connection.

TM-J8000

Customer display (DM-D) connection is set by DIP switch 2-2.

TM-H6000

Customer display (DM-D) connection is set by DIP switch 2-2.

TM-U675

Customer display (DM-D) connection is set by DIP switch 2-2.

Page 432: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC L Ver. 6.0 p. 432

■ ■ ■ more■ ■ ■ moreESC L

EXECUTING COMMAND

[Name] Select page mode

[Format] ASCII ESC LHex 1B 4CDecimal 27 76

[Range] None

[Default] None

[Printers not featuring this command] TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Description] Switches from standard mode to page mode.

[Notes] ■ This command is enabled only when processed at the beginning of the line in standard mode. In other cases, this command is ignored.

■ The printing position is the starting position specified by ESC T within the printing area defined by ESC W.

■ 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■ In page mode, ESC L, FS L, FS a 0, FS c, GS ( A, GS T, GS ( C (some functions), and GS ( E (some

functions) are ignored.

■ In page mode, ESC c 0, FS g 1, FS q, and GS g 0 are disabled.

■ The following commands are not effective in page mode.

• ESC V, ESC a, ESC {, GS L, and GS W■ The printer returns to standard mode with ESC S, FF, and ESC @. When it returns to standard mode

using ESC @, all settings are initialized.

■ Standard mode is selected as the default.

Miscellaneous commands

Page 433: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC L Ver. 6.0 p. 433

■ In page mode, the printer prints the data in the print buffer for the printing area specified by ESC W collectively with FF or ESC FF. When executing 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] TM-H5000II TM-U375 TM-H6000 TM-U675

See program example and print sample for ESC L, FS L, and ESC S.

TM-H5000II

Page mode can be used only when the paper roll is selected as the paper type.

In page mode, GS v 0 is disabled in addition to the normal specifications.

TM-U375

In page mode, there are the following exceptions in addition to the normal specifications.

•••• Bit images that need a data processing using a double-density unit cannot be used in page mode.

Double-density bit image: ESC ✻✻✻✻ (mmmm = 1)

Normal mode of the bit image: GS / 0 (mmmm = 0, 48)

•••• The setting of the function using the double-density unit does not affect the printing in page mode.

Selecting font B: ESC !

Character modification: ESC ! (emphasized), ESC E, ESC G

Page 434: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC L Ver. 6.0 p. 434

TM-H6000

This command is ignored when the back (endorsement side) of a slip is selected as the paper source.

In page mode, there is the following exception for the slip (face) in addition to the normal specifications:

•••• Bit images that need data processing using a double-density unit cannot be used in page mode.

Double-density bit image: ESC ✻✻✻✻ (mmmm = 1)

Normal mode bit image: FS p, GS /, GS v 0 (mmmm = 0, 48)

•••• The setting of the function using a double-density unit does not affect the printing in page mode.

Selecting font B: ESC !, ESC M

Character modification: ESC ! (emphasized), ESC E, ESC G

TM-U675

Page mode for this printer has the following exception in addition to the normal specifications:

•••• Bit images that need data processing using a double-density unit cannot be used in page mode.

Double-density bit image: ESC ✻✻✻✻ (mmmm = 1)

Normal mode bit image: FS p, GS /, GS v 0 (mmmm = 0, 48)

•••• The setting of the function using a double-density unit does not affect the printing in page mode.

Selecting font B: ESC !, ESC M

Character modification: ESC ! (emphasized), ESC E, ESC G

Page 435: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC S Ver. 6.0 p. 435

ESC SEXECUTING COMMAND

[Name] Select standard mode

[Format] ASCII ES SHex 1B 53Decimal 27 83

[Range] None

[Default] None

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Description] Switches from page mode to standard mode.

[Notes] ■ This command is enabled only in page mode.

■ When this command is executed, data in all the printing area is cleared, the printing area set by ESC W returns to the default value, but the value set by ESC T is maintained.

■ 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■ In standard mode, CAN, ESC FF, GS $, and GS \ are ignored.

■ The settings of ESC T and ESC W are not effective in standard mode.

■ The printer selects page mode with ESC L or FS L.

■ Standard mode is selected as the default.

[Model-dependent variations] None

See program example and print sample for ESC L, FS L, and ESC S.

Miscellaneous commands

Page 436: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC S Ver. 6.0 p. 436

Program Example for ESC L, FS L, and ESC S.

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1B);"L"; ← Select page mode AAAAA

PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0); CHR$(0);CHR$(240);CHR$(0);CHR$(200);CHR$(0);

BBBBB

CCCCC

PRINT #1, CHR$(&H1B);"T";CHR$(0); ← Select print directionPRINT #1, "AAAAA"; CHR$(&HA);

PRINT #1, "BBBBB"; CHR$(&HA);

PRINT #1, "CCCCC";

PRINT #1, CHR$(&H1B);CHR$(&HC); ← Batch printPRINT #1, CHR$(&H1B);"S"; ← Select standard mode

Page 437: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands ESC p Ver. 6.0 p. 437

ESC pEXECUTING COMMAND

[Name] Generate pulse

[Format] ASCII ESC p m t1 t2Hex 1B 70 m t1 t2Decimal 27 112 m t1 t2

[Range] m = 0, 1, 48, 490 ≤ t1 ≤ 2550 ≤ 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:

• t1 specifies ON time to (t1 × 2 msec).• t2 specifies OFF time to (t2 × 2 msec).

[Notes] ■ Specify a value so that the OFF time is longer than the ON time (t1 < t2).

[Model-dependent variations] TM-U925

TM-U925

A pulse is (ON time= t1t1t1t1 ×××× 10 msec / OFF time= t2t2t2t2 ×××× 10 msec).

m Connector pin

0, 48 Drawer kick-out connector pin 2

1, 49 Drawer kick-out connector pin 5

Program Example for all printers

PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250);

Miscellaneous commands

Page 438: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands FS L Ver. 6.0 p. 438

■ ■ ■ more■ ■ ■ moreFS L

SETTING COMMAND

[Name] Select double-density page mode

[Format] ASC II FS LHex 1C 4CDecimal 28 76

[Printers not featuring this command] TM-J8000, TM-H5000II, TM-U925, TM-U325D, TM-U300C/D

[Range] None

[Default] None

[Description] Switches from standard mode to double-density page mode.

[Notes] ■ This command is enabled only when processed at the beginning of the line in standard mode.

■ The printing position is the starting position specified by ESC T within the printing area defined by ESC W.

■ 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, ESC U, FS S

■ In page mode, ESC L, FS L, FS a 0, FS c, GS ( A, GS ( C (some functions), GS ( E (some functions), and GS T are ignored.

■ In page mode, ESC c 0, FS g 1, FS q, and GS g 0 are disabled.

■ The following commands are not effective in page mode:

• ESC V, ESC a, ESC {, GS L, and GS W

■ The printer returns to standard mode with ESC S, FF, and ESC @. When it returns to standard mode with ESC @, all settings are initialized.

■ Standard mode is selected as the default.

■ In page mode selected by ESC L, data is processed in single-density units. In double-density page mode selected by this command, data is processed in double-density units both in vertical and horizontal directions.

Miscellaneous commands

Page 439: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands FS L Ver. 6.0 p. 439

■ In page mode, the printer prints the data in the print buffer for the printing area specified by ESC W collectively with 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] TM-U375 TM-H6000 TM-U675

TM-U375

Only TM-U375M (Japanese Kanji specifications) supports this command.

For double-density page mode, there are functions that do not affect the printing in addition to the normal specifications.

Character modifications: ESC ! (emphasized), ESC E, ESC G

TM-H6000

This command is ignored when a back of a slip is selected as the paper type.

When the printer prints on a surface of a slip in page mode, there are functions that do not affect the printing in addition to the normal specifications.

Character modifications: ESC ! (emphasized), ESC E, ESC G

TM-U675

When the printer prints on a slip in page mode, there are functions that do not affect the printing in addition to the normal specifications.

Character modifications: ESC ! (emphasized), ESC E, ESC G

Page 440: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands FS g 1 Ver. 6.0 p. 440

■ ■ ■ more■ ■ ■ moreFS g 1

SETTING COMMAND

[Name] Write to NV user memory

[Format] ASC II FS g 1 m a1 a2 a3 a4 nL nH d1...dkHex 1C 67 31 m a1 a2 a3 a4 nL nH d1...dkDecimal 28 103 49 m a1 a2 a3 a4 nL nH d1...dk

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Range] TM-H5000II: mmmm = 00 ≤ ≤ ≤ ≤ a1a1a1a1 ≤ ≤ ≤ ≤ 255, 0 ≤≤≤≤ a2a2a2a2 ≤ ≤ ≤ ≤ 3, a3a3a3a3 = 0, a4a4a4a4 = 0 (0 ≤≤≤≤ (a1a1a1a1 + a2a2a2a2 ×××× 256) ≤ ≤ ≤ ≤ 1023)0 ≤ ≤ ≤ ≤ nnnnLLLL ≤ ≤ ≤ ≤ 255, 0 ≤≤≤≤ nnnnHHHH ≤ ≤ ≤ ≤ 4 (1 ≤≤≤≤ (nnnnLLLL + nnnnHHHH ×××× 256) ≤ ≤ ≤ ≤ 1024)32 ≤ ≤ ≤ ≤ dddd ≤ ≤ ≤ ≤ 255

[Description] Writes data to NV user memory• a1, a2, a3, and a4 specify the data storage starting address as

(a1 + a2 × 256 + a3 × 65536 + a4 × 16777216).

• nL and nH select the number of stored data bytes (nL + nH × 256).

• d specifies the stored data.

[Notes] ■ GS ( C is recommended for editing data in NV user memory. The FS g 1 command is supported by some printers.

■ The NV user memory is the memory area used for storing character font data in non-volatile memory. The data stored is effective until it is redefined by this command.

■ In standard mode, this command is effective only when processed at the beginning of a line.

■ Do not use this command while a macro is being defined, because the command cannot be included in the macro.

■ All the previously stored data in the specified area is replaced with new data.

■ The NV user memory data can be read by FS g 2.

■ The NV user memory can be used for storing definitions of NV bit images and maintenance information (ink ribbon replacement date, telephone numbers of repair companies, and so on).

Miscellaneous commands

Page 441: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands FS g 1 Ver. 6.0 p. 441

[Model-dependent variations] TM-H5000II

TM-H5000II

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g O.

The printer will become BUSY during writing of data to the non-volatile memory. In this case, the printer cannot receive and transmit data; therefore, be sure not to transmit data from the host.

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”;

Page 442: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands FS g 2 Ver. 6.0 p. 442

■ ■ ■ more■ ■ ■ moreFS g 2

EXECUTING COMMAND

[Name] Read from NV user memory

[Format] 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-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Range] TM-H5000II: mmmm = 00 ≤ ≤ ≤ ≤ a1a1a1a1 ≤ ≤ ≤ ≤ 255, 0 ≤≤≤≤ a2a2a2a2 ≤ ≤ ≤ ≤ 3, a3a3a3a3 = 0, a4a4a4a4 = 0, (0 ≤≤≤≤ (a1a1a1a1 + a2a2a2a2 ×××× 256) ≤ ≤ ≤ ≤ 1023)1 ≤ ≤ ≤ ≤ nnnnLLLL ≤ ≤ ≤ ≤ 80, nnnnHHHH = 0

[Description] Transmit data in NV user memory• a1, a2, a3, and a4 specify the starting address of transmission data as

(a1 + a2 × 256 + a3 × 65536 + a4 × 16777216).

• nL and nH specify the amount of transmission data as (nL + nH × 256) bytes.

[Notes] ■ GS ( C is recommended for editing data in the NV user memory. The FS g 2 command is supported by some printers.

■ The NV user memory is the memory area used for storing character font data in non-volatile memory.

■ Transmission data consists of [Header + data + NUL] as follows:

• Header: Hexadecimal = 5FH/Decimal = 95• Data: NV user memory data• NUL: Hexadecimal = 00H/Decimal = 0

■ The printer becomes BUSY immediately before transmitting a header and recovers to READY after transmitting a NUL (unless there are other causes of the printer being BUSY).

■ With a serial interface, when DTR/DSR control (handshaking), is selected by DIP switch, the printer transmits [Header to NUL] to the host after confirming that the host is ready to receive data.

■ With a serial interface, when XON/XOFF control (handshaking), is selected by DIP switch, the printer transmits [Header to NUL] to the host without confirming that the host is ready to receive data.

Miscellaneous commands

Page 443: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands FS g 2 Ver. 6.0 p. 443

■ With a parallel interface, a [Header to NUL] is stored first in the transmission buffer with the other transmission data (except for ASB status). When the host enters Reverse Mode, the data is transmitted in order from the beginning. Data that exceeds the transmission buffer (99 bytes) is ignored. When using the command, the host should enter Reverse Mode immediately and start processing the status.

■ When transmitting data, ASB status and real-time commands cannot be used.

■ Writing data to the NV user memory is enabled by FS g 1.

■ The NV user memory can be used for storing definitions of NV bit images and maintenance information (ink ribbon replacement date, telephone numbers of repair companies, and so on).

■ User NV memory data can be differentiated from other transmission data by the header of the block data. After outputting the FS g 2 command to the printer, if data transmitted from the printer is [Hex=5FH/Decimal=95], the host should process data up to NUL [Hex=00H/Decimal=0]. There is an exception described below:

• When the host is communicating with the printer using XON/XOFF control, an XOFF code might interrupt [Header ~ NUL].

Program Example

PRINT #1, CHR$(&H1C);”g2”;CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(14);CHR$(0)

Page 444: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( A Ver. 6.0 p. 444

■ ■ ■ more■ ■ ■ moreGS ( A

EXECUTING COMMAND

[Name] Execute test print

[Format] ASC II GS ( A pL pH n mHex 1D 28 41 pL pH n mDecimal 29 40 65 pL pH n m

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Range] pL = 2, pH = 0 ((pL + pH × 256) = 2), 0 ≤ n ≤ 4, 48 ≤ n ≤ 52, 1 ≤ m ≤ 3, 49 ≤ m ≤ 51TM-H6000, TM-U675: ppppLLLL = 2, ppppHHHH = 0, 0 ≤≤≤≤ nnnn ≤ ≤ ≤ ≤ 4, 48 ≤≤≤≤ nnnn ≤ ≤ ≤ ≤ 52, 1 ≤≤≤≤ mmmm ≤ ≤ ≤ ≤ 3, 49 ≤≤≤≤ mmmm ≤ ≤ ≤ ≤ 51

[Description] Execute a specified test print• pL and pH specify the number of parameters following n (the number of parameters is 2).

• n specifies paper used for the test print as follows:

• m specifies the type of test print as follows:

[Notes] ■ This command is effective only when processed at the beginning of the line in standard mode.

n Paper

0, 48 Default print station (paper roll)

1, 492, 50

Paper roll

3, 51 Slip

4, 52 Validation

m Type

1, 49 Hexadecimal dump

2, 50 Printer status printing

3, 51 Rolling pattern

Miscellaneous commands

Page 445: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( A Ver. 6.0 p. 445

■ Do not use this command while a macro is being defined, because this command cannot be included in the macro.

■ If a cut sheet is selected as the paper type while processing this command, the current paper is ejected.

■ When cut sheet is selected for printing the test print, the printer waits for the sheet to be inserted. The paper wait status continues until the cut sheet is inserted, paper insertion waiting time (t1) set by ESC f is elapsed, paper insertion waiting status is canceled by DLE ENQ, the printer is reset, or the power is turned off.

■ The printer processes only real-time commands when waiting for the cut sheet to be inserted.

■ After processing this command, the printer performs a software reset. Executing this command puts the printer in the same status as when the power is turned on.

■ When processing printer status printing (m = 2, 50) and rolling pattern printing (m = 3, 51), the printer does not process data reception and transmission with the host. ASB status and real-time commands cannot be used.

[Model-dependent variations] TM-H5000II TM-H6000

TM-H5000II

Paper types are paper roll and slip. (nnnn = 3, 51) and (nnnn = 4, 52) select the same paper (slip).

TM-H6000

Paper types are paper roll and slip. (mmmm = 3, 51) and (mmmm = 4, 52) select the same paper (slip). When slip is selected, the face of the slip is selected.

Program Example

PRINT #1, CHR$(&H1D);”(A”;CHR$(2);CHR$(0);CHR$(1);CHR$(2);

Page 446: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 446

■ ■ ■ more■ ■ ■ moreGS ( C

EXECUTING COMMAND

SETTING COMMAND

[Name] Edit NV user memory

[Format] ASCII GS ( C pL pH m fn b [c1, c2] [d1...dk]Hex 1D 28 43 pL pH m fn b [c1, c2] [d1...dk]Decimal 29 40 67 pL pH m fn b [c1, c2] [d1...dk]

[Printers not featuring this command] TM-J8000, TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Deletes, stores, and transmits data in the NV user memory area based on the functions defined in the table below. Also sends status information for the amount of space used in NV RAM and the amount of space still available.

• The value of fn specifies the function.

• pL and pH specify the bytes following parameter pH (m and [a1 b1] ...[ak bk]) as (pL + (pH × 256)).

• The other parameters are explained under each of the functions.

[Notes] ■ The command function is defined by the value of fn. The command operation differs, depending on the function.

fn Function Description

0, 48 Function 0 Deletes specified record

1, 49 Function 1 Stores data in specified record

2, 50 Function 2 Sends data stored in specified record

3, 51 Function 3 Sends capacity currently being used

4, 52 Function 4 Sends available capacity

5, 53 Function 5 Transmits the key code of the record stored in the NV user memory

6, 54 Function 6 Cancels all records stored in the NV user memory

Miscellaneous commands

Page 447: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 447

■ ■ ■ more■ ■ ■ more■ The NV user memory area is especially provided for storing character data in the non-volatile memory built

into the printer.

■ The NV user memory data configuration is as follows: key code + data + terminator. This unit is called a record.

• A record is one data processing unit in the NV user memory. It is identified and specified by a key code. One record consists of a group of 4 bytes of data or more.

• The key code is a two-byte ID code used to identify records, and is created with parameters c1, c2 in the command. You can specify any desired character code from 32H - 7EH.

• Data is the character string specified by d1... dk in Function 1 of the GS ( C command. You cannot specify control codes 00H - 1FH, 7FH as character string data.

• The terminator is a one-byte code, automatically assigned when the printer stores data.■ NV user memory data remains valid until the host sends a deletion or storage function command.

■ You can use the NV user memory as an index of the NV bit image definition contents or for maintenance information (ink ribbon replacement date, telephone number of repair company, etc.).

Transmission differences for the interface and handshaking type:

■ Processing of data sent from the printer differs, depending on the interface specifications below:

• When DTR/DSR control is selected for a serial interface printer with the DIP switch, the “header to NUL” data is sent after the host confirms that it can receive data.

• When XON/XOFF control is selected for a serial interface printer with the DIP switch, the “header to NUL” data is sent without confirming whether or not the host can receive data.

• With a parallel interface printer, data sent (excluding ASB status) with this command (“header to NUL”) is temporarily stored in the printer send buffer, as with other data. When the host goes into Reverse mode, the printer then sends the data sequentially from the beginning of the send buffer. Send buffer capacity is 99 bytes. Data exceeding this amount is lost. Therefore, when using this command, promptly change into Reverse mode to start the data receive process.

■ The printer goes BUSY immediately before sending the header, and it returns to Ready after sending NUL. (This excludes situations when printer goes to BUSY status for other reasons.)

■ You cannot use ASB status and real-time commands while “header to NUL” data is being sent.

Page 448: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 448

■ ■ ■ more■ ■ ■ moreHandshake control:■ Use the handshake control below for Function 2:

(*1) Response code

(*2) Processing according to response (unsent data exists, identified by send data set “status”)

(*3) Processing according to response (no unsent data, identified by send data set “status”)

[Model-dependent variations] TM-H6000 TM-U675

Step Host Process Printer Process

1 Send GS ( C <Function 2>. Start processing of Function 2. (Read specified record back to host.)

2 Receive data from printer. Send data in memory.

3 Send response code (*1) Continue processing (*2) (*3) according to response.

ASCII Hex Decimal Request

ACK 06 6 Send next data.

NAK 15 21 Resend previously sent data.

CAN 18 24 Cancel send process.

Response Code Process

ACK Start send processing for next data.

NAK Resend previously sent data.

CAN End processing for this command.

Response Code Process

ACK, CAN End processing for this command.

NAK Resend previously sent data.

Page 449: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 449

TM-H6000

You can use the GS ( EGS ( EGS ( EGS ( E command to select one of the following capacities:* 1 KB, 64 KB, 128 KB, 192 KBThe initial NV user memory capacity (when the unit is shipped) is 1 KB. Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0.

TM-U675

You can use the GS ( EGS ( EGS ( EGS ( E command to select one of the following capacities:* 1 KB, 64 KB, 128 KB, 192 KBThe initial NV user memory capacity (when the unit is shipped) is 1 KB. Excessive use of this function may destroy the non-volatile memory. As a guidline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0.

Program Example 1 (Write data for record $1)PRINT #1, CHR$(&H1D);"(C";CHR$(18);CHR$(0);CHR$(0);CHR$(1);CHR$(0);"$1";"EPSON ESC/POS"; ¨ ← <Function 1>

Program Example 2 (Read data for record %5)PRINT #1, CHR$(&H1D);"(C";CHR$(5);CHR$(0);CHR$(0);CHR$(2);CHR$(0);"%5"; ¨ ← <Function 2>*LOOP:

GOSUB *RECEIVE ← "Header to NUL" is received and stored under ST$ (details omitted)

PRINT #1,CHR$(6); ← Response code is sent

PRINT MID$(ST$,4) ← Record (%5) data is displayed on CRT

IF MID$(ST$,3,1)=CHR$(65) THEN *LOOP ← Check for any subsequent data

Program Example 3 (Read available memory capacity)PRINT #1, CHR$(&H1D);"(C";CHR$(3);CHR$(0);CHR$(0);CHR$(4);CHR$(0); ← <Function 4>

GOSUB *RECEIVE ← "Header to NUL" is received and stored under ST$ (details omitted)

PRINT MID$(ST$,4) ← Available capacity is displayed on CRT

Page 450: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 450

GS ( C pL pH m fn b c1 c2 <Function 0>

[Format] ASCII GS ( C pL pH m fn b c1 c2Hex 1D 28 43 05 00 00 fn 00 c1 c2Decimal 29 40 67 5 0 0 fn 0 c1 c2

[Range] (pL + pH × 256) = 5 (pL = 5, pH = 0)m = 0fn = 0, 48b = 032 ≤ c1 ≤ 12632 ≤ c2 ≤ 126

[Description] Deletes the specified record stored in the NV user memory. The deleted area becomes an “unused” area available for storage.

[Notes] ■ In standard mode, this command is valid only at the beginning of the line.

■ In page mode, this command is ignored.

■ You cannot include macros with this command, so do not use this command while defining macros.

[Model-dependent variations] TM-H6000 TM-U675

TM-H6000

The printer may go Busy while deleting a record. The printer does not process any received data while it is Busy. Therefore, under no circumstances should the host send data at this time.Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0.

TM-U675

The printer may go Busy while deleting a record. The printer does not process any received data while it is Busy. Therefore, under no circumstances should the host send data at this time.Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0

Page 451: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 451

GS ( C pL pH m fn b c1 c2 d1...dk <Function 1>

[Format] ASCII GS ( C pL pH m fn b c1 c2 d1...dkHex 1D 28 43 pL pH 00 fn 00 c1 c2 d1...dkDecimal 29 40 67 pL pH 0 fn 0 c1 c2 d1...dk

[Range] 6 ≤ (pL + pH × 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)m = 0fn = 1, 49b = 032 ≤ c1 ≤ 12632 ≤ c2 ≤ 12632 ≤ d ≤ 254k = (pL + pH × 256)−5

[Description] Stores data (d1... dk) in the record specified by parameters c1 and c2 (the key code ID numbers).• When the specified record already exists, the data is overwritten.• A terminator is automatically assigned.

[Notes] ■ In standard mode, this command is valid only at the beginning of the line.■ In page mode, this command is ignored.■ You cannot include macros with this command, so do not use this command while defining macros.■ This function uses the “data quantity (k) + 3 byte” area for execution.

[Model-dependent variations] TM-H6000 TM-U675

Page 452: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 452

TM-H6000

The printer may go Busy while storing a record. The printer does not process any received data while it is Busy. Therefore, under no circumstances should the host send data at this time.Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0.

TM-U675

The printer may go Busy while storing a record. The printer does not process any received data while it is Busy. Therefore, under no circumstances should the host send data at this time.Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0.

Page 453: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 453

■ ■ ■ more■ ■ ■ moreGS ( C pL pH m fn b c1 c2 <Function 2>

[Format] ASCII GS ( C pL pH m fn b c1 c2Hex 1D 28 43 05 00 00 fn 00 c1 c2Decimal 29 40 67 5 0 0 fn 0 c1 c2

[Range] (pL + pH × 256) = 5 (pL = 5, pH = 0)m = 0fn = 2, 50b = 032 ≤ c1 ≤ 12632 ≤ c2 ≤ 126

[Description] Transmits the data for the record with the ID code specified by parameters c1, c2 in the NV user memory.

• Handshake control is required for this function.

[Notes] ■ When the specified record exists, the printer sends the “header to NUL” data shown below:

(*1) When the quantity of stored data exceeds 80 bytes, the printer performs partial processing, using the following rules:• If there is unsent data, the status of the third byte is 41H or 65 decimal.• If there is no unsent data, the status of the third byte is 40H or 64 decimal.

(*2) The printer performs batch processing when the data to be stored in the specified record is 80 bytes or less. At this time, the status of the third byte is 40H or 64 decimal.

(*3) The key code and terminator are not included in the data.

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 70H 112 1 byte

Status (*1) (*2) 40H or 41H 64 or 65 1 byte

Data (*3) 20H − FEH 32 − 254 1 − 80 bytes

NUL 00H 0 1 byte

Page 454: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 454

■ If the host specifies a nonexistent record, the printer sends the “Header to NUL” data shown below:

■ The host can differentiate NV user memory data from other send data by the specific information in the send data block. When the header sent from the printer is 37H or 55 decimal, the data up to NUL (00H or 0 decimal) is handled as one group and can be identified by the following data:

However, consider the following requirement for data processing:

• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the “header to NUL” data string.

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 70H 112 1 byte

Status 40H 64 1 byte

NUL 00H 0 1 byte

Send Data Hex Decimal

1st byte (header) 37H 55

2nd byte (identifier) 70H 112

Page 455: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 455

■ ■ ■ more■ ■ ■ moreGS ( C pL pH m fn b <Function 3>

[Format] ASCII GS ( C pL pH m fn bHex 1D 28 43 03 00 00 fn 00Decimal 29 40 67 3 0 0 fn 0

[Range] (pL + pH × 256) = 3 (pL = 3, pH = 0)m = 0fn = 3, 51b = 0

[Description] The printer sends the host the number of data bytes currently used in the NV memory area.• Handshake control is not required for this function.

[Notes] ■ With this function, the printer sends the “Header to NUL” data shown below:

(*1) The quantity of stored data bytes, plus the key code and terminator, equal the capacity being used.■ The decimal value expressing the capacity being used is converted to ASCII character data and sent from

the most significant digit.

Example: When 120 bytes is used, the number 120 is expressed with three bytes of data (decimal numbers 49, 50, 48).When no memory area is used, the number 0 is expressed with 1 byte of data (decimal number 48).

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 28H 40 1 byte

Capacity Used (*1) 30H − 39H 48 − 57 1 − 8 bytes

NUL 00H 0 1 byte

Page 456: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 456

■ The host can differentiate the numbers representing “capacity being used” in the NV user memory from other data by the specific information in the send data block. When the header sent from the printer is 37H or 55 decimal, the data up to NUL, 00H or 0 decimal, is handled as one group and can be identified by the following data:

However, consider the following requirement for data processing:• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the

“header to NUL” data string.

Send Data Hex Decimal

1st byte (header) 37H 55

2nd byte (identifier) 28H 40

Page 457: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 457

■ ■ ■ more■ ■ ■ moreGS ( C pL pH m fn b <Function 4>

[Format] ASCII GS ( C pL pH m fn bHex 1D 28 43 03 00 00 fn 00Decimal 29 40 67 3 0 0 fn 0

[Range] (pL + pH × 256) = 3 (pL = 3, pH = 0)m = 0fn = 4, 52b = 0

[Description] The printer sends the available NV user memory.• Handshake control is not required for this function.

[Notes] ■ With this function, the printer sends the “Header to NUL” data shown below:

(*1) The available capacity indicates the number of bytes not being used.■ The decimal value for the available capacity is converted to ASCII character data and sent from the most

significant digit.

Example: When 120 bytes is available (not being used), the number 120 is expressed with three bytes of data (decimal numbers = 49, 50, 48).

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 29H 41 1 byte

Available Capacity (*1) 30H − 39H 48 − 57 1 − 8 bytes

NUL 00H 0 1 byte

Page 458: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 458

■ The host can differentiate the numbers for the available capacity for NV user memory from other sent data by the specific information in the data block. When the header sent from the printer is 37H or 55 decimal, the data up to NUL (00H or 0 decimal) is handled as one group, and can be identified by using the following data:

However, consider the following requirement for data processing:• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the

“header to NUL” data string.

Send Data Hex Decimal

1st byte (header) 37H 55

2nd byte (identifier) 28H 40

Page 459: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 459

■ ■ ■ more■ ■ ■ moreGS ( C pL pH m fn b <Function 5>

[Format] ASCII GS ( C pL pH m fn bHex 1D 28 43 03 00 00 fn 00Decimal 29 40 67 3 0 0 fn 0

[Range] (pL + pH × 256) = 3 (pL = 3, pH = 0)m = 0fn = 5, 53b = 0

[Description] Transmits the key code ID for the record stored in the NV user memory.

Handshake control is required for this function.[Notes] ■ When the specified record exists, the printer sends the “header to NUL” data shown below:

(*1) When the quantity of stored data exceeds 40 records, the printer performs partial processing, using the following rules:• If there is unsent data, the status of the third byte is 41H or 65 decimal.• If there is no unsent data, the status of the third byte is 40H or 64 decimal.

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 71H 113 1 byte

Status (*1) (*2) 40H or 41H 64 or 65 1 byte

Data (*3) 20H − FEH 32 − 254 1 − 80 bytes

NUL 00H 0 1 byte

Page 460: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 460

(*2) The printer performs batch processing when the data to be stored in the specified record is 40 records or less. At this time, the status of the third byte is 40H or 64 decimal.

(*3) The data is the key code. A terminator is not included in the data.■ If the host specifies a nonexistent record, the printer sends the “Header to NUL” data shown below:

■ The host can differentiate the data for the key code list from other send data by the specific information in the send data block. When the header sent from the printer is 37H or 55 decimal, the data up to NUL (00H or 0 decimal) is handled as one group and can be identified by the following data:

However, consider the following requirement for data processing:

• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the “header to NUL” data string.

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 71H 113 1 byte

Status 40H 64 1 byte

NUL 00H 0 1 byte

Send Data Hex Decimal

1st byte (header) 37H 55

2nd byte (identifier) 71H 113

Page 461: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( C Ver. 6.0 p. 461

GS ( C pL pH m fn b d1 d2 d3 <Function 6>

[Format] ASCII GS ( C pL pH m fn b d1 d2 d3Hex 1D 28 43 06 00 00 fn 00 d1 d2 d3Decimal 29 40 67 6 0 0 fn 0 d1 d2 d3

[Range] (pL + pH × 256) = 6 (pL = 6, pH = 0)m = 0fn = 6, 54b = 0d1 = 67d2 = 76d3 = 82

[Description] The printer deletes all records stored in the NV user memory.• All area is changed to unused area.

[Notes] ■ In standard mode, this command is effective only at the beginning of the line.■ In page mode, this command is ignored.■ This command cannot include a macro; therefore, do not use this command when defining the macro.

Page 462: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( D Ver. 6.0 p. 462

■ ■ ■ more■ ■ ■ moreGS ( D

EXECUTING COMMAND

SETTING COMMAND

[Name] Enable/disable real-time command

[Format] ASC II GS ( D pL pH m [a1 b1]...[ak bk]Hex 1D 28 44 pL pH m [a1 b1]...[ak bk]Decimal 29 40 68 pL pH m [a1 b1]...[ak bk]

[Printers not featuring this command] TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Range] 0 ≤ pL ≤ 255, 0 ≤ pL ≤ 255 (3 ≤ (pL + pH × 256) ≤ 65535)m = 20a = 1, 2b = 0, 1, 48, 49

[Default] a=1/b=1 (DLE DC4 n m t (n=1): enable)a=2/b=0 (DLE DC4 n a b (n=2): disable)

[Description] Specifies enable or disable of a real-time command

• pL, pH sets the number of parameters after pH (m and [a1 b1]...[ak bk]) to (pL + pH × 256) bytes.

• a specifies the type of real-time command:

• b specifies enable/disable of real-time command processing

[Notes] ■ The printer processes each real-time command that is enabled upon receiving it.

a Real-time command type

1 DLE DC4 n m t (n=1): output a specified pulse in real-time

2 DLE DC4 n a b (n=2): execute power off

b Real-time command type

0, 48 Disable a real-time command specified by a.

1, 49 Enable a real-time command specified by a.

Miscellaneous commands

Page 463: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( D Ver. 6.0 p. 463

■ A real-time command specified as disabled is processed as an undefined code.

■ The setting of this command is effective until ESC @ is executed, the printer is reset, or the power is turned off.

■ (pL + pH × 256) must specify an odd number.

■ If you transmit a command for a bit image or defined data that contains the sequence DLE DC4, be sure to disable real-time command processing before transmitting the bit image or defined data command. Then the printer will process the sequence DLE DC4 as image data.

Program Example

PRINT #1, CHR$(&H1D);”(D”;CHR$(3);CHR$(0);CHR$(20);CHR$(2);CHR$(0); ← Set disabledPRINT #1, CHR$(&H1B);”✻”;CHR$(0);CHR$(9);CHR$(0);CHR$(240);CHR$(15);

PRINT #1, CHR$(16);CHR$(20);CHR$(2);CHR$(1);CHR$(8); ← Process as image dataPRINT #1, CHR$(15);CHR$(240);”END”;CHR$(&HA); ← Execute print and line feedPRINT #1, CHR$(&H1D);”(D”;CHR$(3);CHR$(0);CHR$(20);CHR$(2);CHR$(1); ← Set enabledPRINT #1, CHR$(16);CHR$(20);CHR$(2);CHR$(1);CHR$(8); ← Execute power off

Page 464: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 464

■ ■ ■ more■ ■ ■ moreGS ( E

EXECUTING COMMAND

SETTING COMMAND

[Name] User setup commands

[Format] ASCII GS ( E pL pH fn [parameters]Hex 1D 28 45 pL pH fn [parameters]Decimal 29 40 69 pL pH fn [parameters]

[Printers not featuring this command] TM-J8000, TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Controls the user setting modes. The table below explains the functions available in this command.• The value of fn specifies the function.

• pL and pH specify the number of bytes for the parameters following pH (fn and [a1 b1] ... [ak bk]) as (pL + (pH × 256)).

• The other parameters are explained under the respective functions.

[Notes] ■ The value of parameter fn determines the function number for this command. Command operation differs, depending on the function number.

■ User setting mode is a special mode to change settings for the printer’s built-in non-volatile memory.

■ To change a setting, you must change the printer into user setting mode, using Function 1.

■ The setting you specify is activated by sending a Function 2 command upon completion of making the setting.

fn Function

1 Function 1 Changes into the user setting mode.

2 Function 2 Ends user setting mode session. (Performs a software reset.)

3 Function 3 Changes the memory switch.

4 Function 4 Sends the host the value for the memory switch.

5 Function 5 Changes the customized setting values.

6 Function 6 Transmits the customized setting values.

Miscellaneous commands

Page 465: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 465

■ Be aware of the rules below for the user setting mode:

• The printer does not process character data.• The printer does not process commands other than this command and the GS I command.• The printer ignores real-time commands.• The printer does not send ASB status.

■ Function 6, the function used to transmit the current settings to the host, can be used at any time, without changing into the user setting mode.

Transmission differences for the interface and handshaking type:

■ Processing of data sent from the printer differs, depending on the interface specifications below:

• When DTR/DSR control is selected for a serial interface printer with the DIP switch, the “header to NUL” data is sent after the host confirms that it can receive data.

• When XON/XOFF control is selected for a serial interface printer with the DIP switch, the “header to NUL” data is sent without confirming whether or not the host can receive data.

• With a parallel interface printer, data sent (excluding ASB status) with this command (“header to NUL”) is temporarily stored in the printer send buffer, as with other data. When the host goes into Reverse mode, the printer then sends the data sequentially from the beginning of the send buffer. Send buffer capacity is 99 bytes. Data exceeding this amount is lost. Therefore, when using this command, promptly change into Reverse mode to start the data receive process.

■ The printer goes Busy immediately before sending the header, and it returns to Ready after sending NUL. (This excludes situations when printer goes to Busy status for other reasons.)

■ You cannot use ASB status and real-time commands while “header to NUL” data is being sent.

Program Example 1 (Set customized memory value)PRINT #1, CHR$(&H1D);"(E";CHR$(3);CHR$(0);CHR$(1);CHR$(73);CHR$(78); ← <Function 1>

PRINT #1, CHR$(&H1D);"(E";CHR$(7);CHR$(0);CHR$(5);CHR$(1);CHR$(2);CHR$(0);CHR$(2);CHR$(5);CHR$(0); ← <Function 5>

PRINT #1, CHR$(&H1D);"(E";CHR$(4);CHR$(0);CHR$(2);CHR$(79);CHR$(85);CHR$(84); ← <Function 2>

Program Example 2 (Read back customized memory value)PRINT #1, CHR$(&H1D);"(E";CHR$(2);CHR$(0);CHR$(6);CHR$(1); ← <Function 6>

Page 466: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 466

GS ( E pL pH fn d1 d2 <Function 1>

[Format] ASCII GS ( E pL pH fn d1 d2Hex 1D 28 45 03 00 01 49 4EDecimal 29 40 69 3 0 1 73 78

[Range] (pL + pH × 256) = 3 (pL = 3, pH = 0)fn = 1d1 = 73d2 = 78

[Description] This command changes the printer into the user setting mode.

[Notes] ■ If the printer is in standard mode, this command is valid only at the beginning of the line.■ If the printer is in page mode, this command is ignored.■ Do not use this command while defining macros, since macros cannot be included with this command.■ When the printer goes into the user setting mode, it sends a “mode change notice” back to the host.

■ The host can differentiate the “mode change notice” from other data the printer sends by the specific information in the send data block. When the header sent from the printer is 37H or 55 decimal, the data up to NUL, 00H or 0 decimal, is handled as one group, and can be identified using the following data:

However, consider the following requirement for data processing:• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the

“header to NUL” data string.

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 20H 32 1 byte

NUL 00H 0 1 byte

Send Data Hex Decimal

1st byte (header) 37H 55

2nd byte (identifier) 20H 32

Page 467: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 467

GS ( E pL pH fn d1 d2 d3 <Function 2>

[Format] ASCII GS ( E pL pH fn d1 d2 d3Hex 1D 28 45 04 00 02 4F 55 54Decimal 29 40 69 4 0 2 79 85 84

[Range] (pL + pH × 256) = 4 (pL = 4, pH = 0)fn = 2d1 = 79d2 = 85d3 = 84

[Description] Ends the user setting mode, and the printer performs a software reset.

[Notes] ■ This function is performed only when the printer is in user setting mode.

■ After the software reset, the printer goes into the power on status.

Page 468: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 468

■ ■ ■ more■ ■ ■ moreGS ( E pL pH fn [a1 b18...b11 ]...[ak nk8 nk1 ] <Function 3>

[Format] ASCII GS ( E pL pH fn [a1 b18...b11 ]...[ak nk8 nk1 ]Hex 1D 28 45 pL pH 03 [a1 b18...b11 ]...[ak nk8 nk1 ]Decimal 29 40 69 pL pH 3 [a1 b18...b11 ]...[ak nk8 nk1 ]

[Range] 10 ≤≤≤≤ (pL + pH ×××× 256) ≤≤≤≤ 65530 (0 ≤≤≤≤ pL ≤≤≤≤ 255, 0 ≤≤≤≤ pH ≤≤≤≤ 255: (pL + pH ×××× 256) = 9 ×××× k + 1)fn = 3a = 1, 8b = 48, 49, 501 ≤≤≤≤ k ≤≤≤≤ 7281

[Description] Changes the memory switch specified by a to the value specified by b.

• When b = 48, the applicable bit is turned Off.

• When b = 49, the applicable bit is turned On.

• When b = 50, the applicable bit is not changed (reserved).

• When a = 1, memory switch 1 is set as follows:

• Specifications other than memory switch 1 (a = 1) differ, depending on the printer model.

[Notes] ■ This function works only in user setting mode.

Bit Setting Value (b) Function8 50 Reserved

7 50 Reserved

6 50 Reserved

5 50 Reserved

4 50 Reserved

3 50 Reserved

2 50 Reserved

1 48 Does not transmit the power ON notice

49 Transmits the power ON notice when processing an initialization

Page 469: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 469

■ To activate the memory switch you set with this function, you must send a Function 2 command.

■ The value of the memory switch is specified from bit 8 to bit 1 by b18...b11. When b = 50, the status of a bit applied is not changed.

Example:

Transmission data that specifies memory switch 1, “Transmits the power ON notice” and does not change other settings:

ASCII GS ( E pL pH fn a b8 b7 b6 b5 b4 b3 b2 b1

Hex 1DH 28H 45H 0AH 00H 03H 01H 32H 32H 32H 32H 32H 32H 32H 31HDecimal 29 40 69 10 0 3 1 50 50 50 50 50 50 50 49

■ Specifies b = 50 for a reserved bit.

■ Explanation for memory switch 1 (a = 2): Under “[Range]”, “a” can only be 1 or 8.

• Power On notice specified by bit 1:

• The printer transmits the power on notice for the following processes:• Initializing by turning on the power by switch.• Initializing by hardware reset.• Initializing by software reset, such as by sending Function 2.• Initializing after the self test.

• With a serial interface, the printer transmits a 3-byte notice without confirming the host can receive data.• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the “header

to NUL” data string.• With a parallel interface, it is desirable for the host to be in a reverse idle state. However, because the host

computer cannot always be in the reverse idle state, it is necessary to enter Reverse Mode regularly to watch for a notice.

[Model-dependent variations] TM-H6000 TM-U675

Power ON Notice Hex Decimal Data Quantity

Header 3BH 59 1 byte

Identifier 31H 49 1 byte

NUL 00H 0 1 byte

Page 470: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 470

TM-H6000

• When a = 8, memory switch 8 is set as follows:

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0.

Bit Setting Value (b) Function

8 48 Unit open during printing: offline

49 Unit open during printing: recoverable error

7 50 Reserved

6 50 Reserved

5 50 Reserved

4 50 Reserved

3 48 Paper roll with 80 mm {3.15 inches) width used

49 Paper roll with 58 mm {2.28 inches) width used

2 50 Reserved

1 50 Reserved

Page 471: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 471

TM-U675

• When a = 8, memory switch 8 is set as follows:

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data in the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0.

Bit Setting Value (b) Function

8 48 Paper roll cover open during printing: offline

49 Paper roll cover open during printing: recoverable error

7 50 Reserved

6 50 Reserved

5 50 Reserved

4 50 Reserved

3 50 Reserved

2 50 Reserved

1 50 Reserved

Page 472: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 472

GS ( E pL pH fn a <Function 4>

[Format] ASCII GS ( E pL pH fn aHex 1D 28 45 02 00 04 aDecimal 29 40 69 2 0 4 a

[Range] (pL + pH × 256) = 2 (pL = 2, pH = 0)fn = 4a = 1, 8

[Description] The printer sends the host the value for the memory switch specified by parameter a.

[Notes] ■ This function works both in user setting mode and during normal printer operation.

■ The printer sends the “header to NUL” data shown below:

■ The value of the memory switch is transmitted from bit 8 to bit 1. 48 or 49 is transmitted for a bit of Reserved.

■ The host can differentiate the data for the memory switch from other send data by the specific information in the send data block. When the header sent from the printer is 37H or 55 decimal, the data up to NUL (00H or 0 decimal) is handled as one group and can be identified by the following data:

However, consider the following requirement for data processing:

• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the “header to NUL” data string.

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 21H 33 1 byte

Setting value 30H or 31H 48 or 49 8 byte

NUL 00H 0 1 byte

Send Data Hex Decimal

1st byte (header) 37H 55

2nd byte (identifier) 21H 33

Page 473: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 473

GS ( E pL pH fn [a1 n1L n1H ]...[ak nkL nkH ] <Function 5>

[Format] ASCII GS ( E pL pH fn [ a1 n1L n1H ] ... [ ak nkL nkH ]Hex 1D 28 45 pL pH 05 [ a1 n1L n1H ] ... [ ak nkL nkH ]Decimal 29 40 69 pL pH 5 [ a1 n1L n1H ] ... [ ak nkL nkH ]

[Range] 4 ≤≤≤≤ (pL + pH ×××× 256) ≤≤≤≤ 65533 (0 ≤≤≤≤ pL ≤≤≤≤ 255, 0 ≤≤≤≤ pH ≤≤≤≤ 255: (pL + pH ×××× 256) = 3 ×××× k + 1)fn = 5a = 1, 21 ≤≤≤≤ (nL + nH ×××× 256) ≤≤≤≤ 7 (1 ≤≤≤≤ pL ≤≤≤≤ 7, pH ==== 0)1 ≤≤≤≤ k ≤≤≤≤ 21844

[Description] Changes the customized value specified by parameter a to (nL + nH × 256).

• The setting unit specified by (nL + nH × 256) differs, depending on the printer model.

[Notes] ■ This function works only in user setting mode.

■ To activate the customized values you set with this function, you must send a Function 2 command.

■ When you change the (a = 1) or (a = 2) setting, the printer clears all data in the NV user memory and NV bit image memory.

■ If you attempt to set a combination of settings that is not possible, the NV bit image memory setting is reduced to an allowable value.

[Model-dependent variations] TM-H6000 TM-U675

a Customized Value

1 NV user memory capacity

2 NV bit image memory capacity

Page 474: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 474

TM-H6000

The printer may go BUSY during the changing of the settings. The printer does not process any data received while it is BUSY. Therefore, do not under any circumstances send data from the host at this time.

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0.

•••• NV user memory capacity settings

•••• NV bit image memory capacity settings

* Initial status (when shipped)

(nnnnLLLL + nnnnHHHH ×××× 256) Memory Capacity

1* 1 KB

2 64 KB

3 128 KB

4 192 KB

(nnnnLLLL + nnnnHHHH ×××× 256) Memory Capacity

1 None (0 bytes)

2 64 KB

3 128 KB

4 192 KB

5 256 KB

6 320 KB

7* 384 KB

•••• Memory combinations that can be specified:NV User Memory Capacity

NV Bit Image Memory Capacity

1 KB 384 KB or less

64 KB 256 KB or less

128 KB 128 KB or less

192 KB None (0 bytes)

Page 475: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 475

TM-U675

The printer may go BUSY during the changing of the settings. The printer does not process any data received while it is BUSY. Therefore, do not under any circumstances send data from the host at this time.

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0.

•••• NV user memory capacity settings

•••• NV bit image memory capacity settings

* Initial status (when shipped)

(nnnnLLLL + nnnnHHHH ×××× 256) Memory Capacity

1* 1 KB

2 64 KB

3 128 KB

4 192 KB

(nnnnLLLL + nnnnHHHH ×××× 256) Memory Capacity

1 None (0 bytes)

2 64 KB

3 128 KB

4 192 KB

5 256 KB

6 320 KB

7* 384 KB

•••• Memory combinations that can be specified:NV User Memory Capacity

NV Bit Image Memory Capacity

1 KB 384 KB or less

64 KB 256 KB or less

128 KB 128 KB or less

192 KB None (0 bytes)

Page 476: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 476

■ ■ ■ more■ ■ ■ moreGS ( E pL pH fn a <Function 6>

[Format] ASCII GS ( E pL pH fn aHex 1D 28 45 02 00 06 aDecimal 29 40 69 2 0 6 a

[Range] (pL + pH ×××× 256) = 2 (pL = 2, pH = 0)fn = 6a = 1, 2

[Description] The printer sends the host the customized value for the NV memory area specified by parameter a.

[Notes] ■ This function works both in user setting mode and during normal printer operation.

■ The printer sends the data below (“header to NUL”) with this function:

(*1) The value number in the table above is the same value as parameter a.(*2) The setting is determined by the value defined in Function 5.

a Customized Value

1 NV user memory capacity

2 NV bit image memory capacity

Send Data Hex Decimal Data Quantity

Header 37H 55 1 byte

Identifier 27H 39 1 byte

Value Number (*1) 31H or 32H 49 or 50 1 byte

Separation Code 1FH 31 1 byte

Setting (*2) 30H − 39H 48 − 57 1 − 5 bytes

NUL 00H 0 1 byte

Page 477: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( E Ver. 6.0 p. 477

■ Even if the combination of settings requested in Function 5 is not possible, the printer sends the settings made with Function 5. Please note that this will differ from the memory capacity used during actual operation.

■ Settings expressed as decimal numbers are converted to ASCII character data and sent from the most significant digit.

Example: When 120 bytes is being used, 120 is expressed with three bytes of data (decimal numbers = 49, 50, 48).

■ The host can differentiate the data for the customized memory setting from other data the printer sends by the specific information in the send data block. When the header sent from the printer is 37H or 55 decimal, the data up to NUL, 00H or 0 decimal, is handled as one group, and can be identified using the following data:

However, consider the following requirement for data processing:• When communication with the printer uses XON/XOFF control, the XOFF code may interrupt the

“header to NUL” data string.[Model-dependent variations] TM-H6000 TM-U675

TM-H6000

The settings sent with this function are 1 byte, as described below:

•••• Specification of NV user memory capacity (a = 1): 31H - 34H or 49 - 52 decimal

•••• Specification of NV bit image memory capacity (a = 2): 31H - 37H or 49 - 55 decimal

TM-U675

The settings sent with this function are 1 byte, as described below:

•••• Specification of NV user memory capacity (a = 1): 31H - 34H or 49 - 52 decimal

•••• Specification of NV bit image memory capacity (a = 2): 31H - 37H or 49 - 55 decimal

Send Data Hex Decimal

First byte (header) 37H 55

Second byte (identifier) 27H 39

Page 478: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( M Ver. 6.0 p. 478

■ ■ ■ more■ ■ ■ moreGS ( M

EXECUTING COMMAND

SETTING COMMAND

[Name] Customize printer control value(s)

[Format] ASCII GS ( M pL pH fn mHex 1D 28 4D pL pH fn mDecimal 29 40 77 pL pH fn m

[Printers not featuring this command] TM-J8000, TM-H5000II, TM-U375, TM-U925, TM-U325D, TM-U300C/D

[Description] Executes the functions shown below, using the function code defined by fn:

• pL, pH specifies (pL + pH × 256) as the number of bytes after pH (fn and m).

• fn specifies functions.

� m specifies a process of each function.�

[Notes] ■ Setting value means the values stored in the work area and they are set by commands such as line spacing, print area, or ASB transmission specification commands, are defined data such as user-defined data or 2-byte characters, and are the setting status such as Kanji mode. The values are different depending on the printer models. Refer to the Model-dependent information.

■ Work area means the area that stores the values and is cleared when the power is turned off. The printer’s actions are based on the values in the work area.

■ Archive area means non-volatile memory area that is used to accomplish the functions of this command. The values stored in the archive area are not cleared when power is turned off. The values in the archive area do not affect the printer operation.

fn Function

1, 49 Function 1 Saves the setting values in the work area to the archive area.

2, 50 Function 2 Loads the setting values stored in the archive area to the work area.

3, 51 Function 3 Specifies the setting values for the work area after the initialization process.

Miscellaneous commands

Page 479: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( M Ver. 6.0 p. 479

■ A default value for each command is stored in the archive area when the printer is shipped.

■ The values stored in the archive area are loaded to the work area when executing Function 2 or initializing with an autoload specified by Function 3 and affect the printer operation afterward.

■ The combination of Functions 2 and 3 can change the default value of each command.

[Model-dependent variations] TM-H6000 TM-U675

Program Example 1 Print Sample 1

AAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBB

CCCCCCCCCCCCCCCCCCCC

PRINT #1, CHR$(&H1D);"L";CHR$(24);CHR$(0);← Set left marginPRINT #1, CHR$(&H1D);"W";CHR$(104);CHR$(1);← Print area width (30 columns)PRINT #1, CHR$(&H1D);"(M";CHR$(2);CHR$(0);CHR$(1);CHR$(1);← <Function 1>PRINT #1, "AAAAAAAAAAAAAAAAAAAA"; CHR$(&HA);← Execute 20-column printingPRINT #1, CHR$(&H1D);"L";CHR$(0);CHR$(0);← Set left marginPRINT #1, CHR$(&H1D);"W";CHR$(120);CHR$(0);← Print area width (10 columns)PRINT #1, "BBBBBBBBBBBBBBBBBBBB"; CHR$(&HA);← Execute 20-column printingPRINT #1, CHR$(&H1D);"(M";CHR$(2);CHR$(0);CHR$(2);CHR$(1);← <Function 2>PRINT #1, "CCCCCCCCCCCCCCCCCCCC"; CHR$(&HC); ← Execute 20-column printing

Program Example 2 Print Sample 2

AAAAAAAAAAAAAAAAAAAA

BBBBBBBBBBBBBBBBBBBB

PRINT #1, CHR$(&H1D);"L";CHR$(24);CHR$(0);← Set left marginPRINT #1, CHR$(&H1D);"W";CHR$(104);CHR$(1);← Print area width (30 columns)PRINT #1, CHR$(&H1D);"(M";CHR$(2);CHR$(0);CHR$(1);CHR$(1);← <Function 1>PRINT #1, CHR$(&H1D);"(M";CHR$(2);CHR$(0);CHR$(3);CHR$(1);← <Function 3>PRINT #1, CHR$(&H1D);"L";CHR$(0);CHR$(0);← Set left marginPRINT #1, CHR$(&H1D);"W";CHR$(120);CHR$(0);← Print area width (10 columns)PRINT #1, "AAAAAAAAAAAAAAAAAAAA"; CHR$(&HA);← Execute 20-column printingPRINT #1, CHR$(&H1B);"@";← Initialize printerPRINT #1, "BBBBBBBBBBBBBBBBBBBB"; CHR$(&HA);← Execute 20-column printing

Page 480: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( M Ver. 6.0 p. 480

TM-U675

GS ( M affects the following commands:

Setting Value Command

Line spacing ESC 2, ESC 3

Print character ESC SP, ESC !, ESC –, ESC E, ESC G, ESC M, ESC R, ESC V, ESC t, ESC {, GS !

Print paper ESC f

Panel switch ESC c 5

Paper sensor ESC c 3, ESC c 4

Print position ESC D, ESC T, ESC a, GS L, GS W

Status FS ( e, GS ( B, GS a

Macro function GS :

Mechanism control ESC F, ESC U

Kanji control FS !, GS &, FS –, FS ., FS 2, FS C, FS S, FS W

MICR function FS ( f

Miscellaneous function GS ( D, GS E, GS P

Page 481: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( M Ver. 6.0 p. 481

TM-H6000

GS ( M affects the following commands:

Setting Value Command

Line spacing ESC 2, ESC 3

Print character ESC SP, ESC !, ESC –, ESC E, ESC G, ESC M, ESC R, ESC V, ESC t, ESC {, GS !, GS B, GS b

Print paper ESC f

Panel switch ESC c 5

Paper sensor ESC c 3, ESC c 4

Print position ESC D, ESC T, ESC a, GS L, GS W

Status FS ( e, GS ( B, GS a

Bar code GS H, GS f, GS h, GS w

Macro function GS :

Mechanism control ESC F, ESC U

Kanji control FS !, GS &, FS –, FS ., FS 2, FS C, FS S, FS W

MICR function FS ( f

Miscellaneous function GS ( D, GS E, GS P

Page 482: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( M Ver. 6.0 p. 482

GS ( M pL pH fn m <Function 1>

[Format] ASC II GS ( M pL pH fn mHex 1D 28 4D 02 00 fn mDecimal 29 40 77 2 0 fn m

[Range] TM-U675, TM-H6000: (ppppLLLL + ppppHHHH ×××× 256) = 2, (ppppLLLL = 2, ppppH H H H = 0), fnfnfnfn = 1, 49, mmmm = 1, 49

[Description] Saves the setting values of commands stored in the work area to the archive area specified by m.

[Notes] ■ The values that have been already stored in the archive area specified by m are cleared by this command.■ The values in the work area are not changed.■ The values saved in the archive area are loaded to the work area by the following.

• Executing function 2 with the archive area specified.• Initializing when an autoload process has been specified by function 3.

■ The values affected by this command are different depending on the printer models. Refer to the Model-dependent variations in the first part of this command description for details.

■ When multiple applications use the archive area at the same time, if this command is executed, the values saved by other applications are deleted. Be sure to take this into account when using this command.

[Model-dependent variations] TM-H6000 TM-U675

TM-H6000The printer may be in BUSY condition when storing data and will not receive any data. In this case, be sure not to transmit data from the host. Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS ( M, GS g 0GS ( M, GS g 0GS ( M, GS g 0GS ( M, GS g 0.

TM-U675The printer may be in BUSY condition when storing data and will not receive any data. In this case, be sure not to transmit data from the host. Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS ( M, GS g 0GS ( M, GS g 0GS ( M, GS g 0GS ( M, GS g 0.

Page 483: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( M Ver. 6.0 p. 483

GS ( M pL pH fn m <Function 2>

[Format] ASC II GS ( M pL pH fn mHex 1D 28 4D 02 00 fn mDecimal 29 40 77 2 0 fn m

[Range] TM-U675, TM-H6000: (ppppLLLL + ppppHHHH ×××× 256) = 2, (ppppLLLL = 2, ppppH H H H = 0), fnfnfnfn = 2, 50, mmmm = 0,1, 48, 49

[Description] Loads the values stored in the archive area specified by m to the work area.

When m = 0, 48, the default value described in this guide is loaded.

When m ≠ 0, 48, the value saved in the archive area specified by m is loaded.

[Notes] ■ This function is effective at the beginning of a line in standard mode.

■ This function cannot be included in a macro. Do not use this function when executing a macro.

■ The value in the work area is set to the default value by the following.

• Executing this function by specifying m = 0, 48.• Executing function 2 with the condition that the archive area that has not executed function 1 is

specified.• Initializing when an autoload process has been canceled.

■ The values in the work area that are not affected by this command are not changed. ■ The values in the archive area are not changed.■ The values affected by this command are different depending on the printer models. Refer to the Model-

dependent variations in the Function 1 part of this command description for details.

Page 484: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( M Ver. 6.0 p. 484

GS ( M pL pH fn m <Function 3>

[Format] ASC II GS ( M pL pH fn mHex 1D 28 4D 02 00 fn mDecimal 29 40 77 2 0 fn m

[Range] TM-U675, TM-H6000: (ppppLLLL + ppppHHHH ×××× 256) = 2, (ppppLLLL = 2, ppppH H H H = 0), fnfnfnfn = 3, 51, mmmm = 0,1, 48, 49

[Default] m = 0

[Description] Specifies select/cancel an autoload process when initializing.

When m = 0, 48, the autoload process is selected.

When m ≠ 0, 48, the autoload process for the values saved in the archive area specified by m.

[Notes] ■ This function does not change the values in the work area and archive area.

■ The setting of this function affects the following initializations.

• Turning on the power.• Resetting the hardware by using a reset terminal.• Executing ESC @.• Executing a software reset.

■ In initializing process when the autoload process is canceled (m = 0, 48), the default value described in this guide is loaded in the work area.

■ The specification of this function is maintained after turning off the power.

■ In autoload processing, the values of the commands that are in the work area and are not affected by this function and the values in the archive area are not changed.

■ The values affected by autoload processing of this function are different depending on the printer models. Refer to the Model-dependent variations of this command description for details.

[Model-dependent variations] TM-H6000 TM-U675

Page 485: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS ( M Ver. 6.0 p. 485

TM-H6000

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS ( M, GS g 0GS ( M, GS g 0GS ( M, GS g 0GS ( M, GS g 0.

TM-U675

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS ( M, GS g 0GS ( M, GS g 0GS ( M, GS g 0GS ( M, GS g 0.

Page 486: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS E Ver. 6.0 p. 486

■ ■ ■ more■ ■ ■ moreGS E

SETTING COMMAND

[Name] Select head control method

[Format] ASCII GS E nHex 1D 45 nDecimal 29 69 n

[Range] TM-H6000, TM-U375, TM-U925, TM-U300C/D, TM-U675: 0 ≤ ≤ ≤ ≤ nnnn ≤ ≤ ≤ ≤ 255; TM-J8000: nnnn = 0, 20

[Default] TM-U375, TM-U675: For paper roll: nnnn = 1For cut sheet: nnnn = 0

TM-U925: For paper roll: when DIP switch 2-4 is Off, nnnn = 1when DIP switch 2-4 is On, nnnn = 17For slip paper: nnnn = 16

TM-U300C/D: nnnn = 1TM-H6000, TM-J8000: nnnn = 0

[Printers not featuring this command] TM-H5000II, TM-U325D

[Description] Selects the print speed and head energizing time, using n as follows:

Bit Off/On Hex Decimal Function

0 Off 00 0 Head energizing time: copy.

... how to usethis table

On 01 1 Head energizing time: normal.

1 Off 00 0 Reserved.

2 Off 00 0 Print quality: economy.

On 04 4 Print quality: fine.

3 Off 00 0 Reserved.

4 Off 00 0 Printing speed: high.

On 10 16 Printing speed: low.

5-7 Off 00 0 Reserved.

Miscellaneous commands

Page 487: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS E Ver. 6.0 p. 487

[Notes] ■ When standard mode is selected, this command is enabled only when processed at the beginning of the line.

■ This command is available for the paper type selected by ESC c 0. The head control method can be selected independently for paper roll, slip, and validation paper.

■ 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-U375 TM-U925 TM-U300C/D TM-J8000 TM-H6000TM-U675

TM-U375

Bits 2 and 4 are not supported.

When both the paper roll and cut sheet are selected as the paper type set by ESC c 0ESC c 0ESC c 0ESC c 0, the head energizing time for cut sheets is enabled.

TM-U925

Bit 2 is not supported.

In this printer, high printing speed and copy head energizing time cannot be set simultaneously. nnnn is used as follows:

Program Example for all printers

PRINT #1,CHR$(&H1D);"E";CHR$(16); ← Select printing speed to Low

nnnn Printing speed Head energizing time

1 High Normal

16 Low Copy

17 Low Normal

Page 488: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS E Ver. 6.0 p. 488

TM-U300C/D

Bits 2 and 4 are not supported.

TM-J8000

Head control method can be selected as follows:

When economy printing is selected by this command, the printer does not correctly process vertical dots; therefore, depending on the pattern of the image data, there may be no printing result from GS Q 0 or GS v 0. Fine printing is always selected when printing a bar code.

TM-H6000

Bit 2 and 4 are not supported.

The command specifies the print head (serial impact dot head) control method for a slip (face).

TM-U675

Bit 2 and Bit 4 are not supported.

nnnn Control Method

0 Economy printing

20 Fine printing

Page 489: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 489

■ ■ ■ more■ ■ ■ moreGS I

EXECUTING COMMAND

[Name] Transmit printer ID

[Format] ASCII GS I nHex 1D 49 nDecimal 29 73 n

[Range] TM-H5000II: 1 ≤ n ≤≤≤≤ 3, 49 ≤≤≤≤ n ≤≤≤≤ 51, 65 ≤≤≤≤ n ≤≤≤≤ 69TM-H6000, TM-U675: 1 ≤ ≤ ≤ ≤ n ≤≤≤≤ 3, 49 ≤≤≤≤ n ≤≤≤≤ 51, 65 ≤≤≤≤ n ≤≤≤≤ 69, n = 112TM-J8000: 1 ≤ n ≤≤≤≤ 3, 49 ≤≤≤≤ n ≤≤≤≤ 51, 65 ≤≤≤≤ n ≤≤≤≤ 67TM-U375, TM-U925, TM-U325D: 1 ≤≤≤≤ n ≤≤≤≤ 3, 49 ≤≤≤≤ n ≤≤≤≤ 51

[Default] None

[Printers not featuring this command] TM-U300C/D

[Description] Transmits 1 byte of printer ID using n as follows:

Transmits specified printer information, as follows:

n Printer ID Specification

1, 49 Printer model ID Printer model

2, 50 Type ID Printer type

3, 51 Version ID Firmware version

n Type of printer information Specification

65 Firmware version Indicates firmware version

66 Manufacturer EPSON

67 Printer name Indicates printer name

68 Serial number Indicates serial number of a product

69 Type of additional fonts Japanese Kanji: JAPANESE JISChina Kanji: CHINA GB2312Taiwan Kanji: TAIWAN BIG-5Thai characters: THAI 3PASS

Miscellaneous commands

Page 490: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 490

■ ■ ■ more■ ■ ■ moreTransmits specified printer information (model-dependent information), as follows:

[Notes] ■ When printer ID transmission is specified, the printer transmits 1-byte data.■ When printer information transmission is specified, the printer transmits a character string data [Header ~

NUL].■ With a parallel interface, the printer ID and printer information transmitted from the printer is stored in

the transmission buffer of the printer temporarily and when the host enters Reverse Mode, data is transmitted in order from the beginning of the transmission buffer. The transmission buffer is 99 bytes; therefore, data that exceeds 99 bytes is ignored. When using this command, the host should enter the Reverse Mode immediately to receive status.

Notes for Printer ID:■ Type ID to be transmitted is as follows:

n Type of printer information Specification

112 Refer to Model-dependent information Refer to Model-dependent information

Bit Off/On Hex Decimal Function

0 Off 00 0 Two-byte character code not supported.

... how to usethis table

On 01 1 Two-byte character code supported

1 Off 00 0 Autocutter not installed.

On 02 2 Autocutter installed.

2 Off 00 0 DIP switch (connection of customer display) is Off.

On 04 4 DIP switch (connection of customer display) is On.

3 Off 00 0 Without MICR reader.

On 08 8 With MICR reader.

4 Off 00 0 Fixed.

5 — — — Reserved.

6 Off 00 0 Endorsement printing not supported.

On 40 64 Endorsement printing supported.

7 Off 00 0 Not used. Fixed to Off.

Page 491: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 491

■ ■ ■ more■ ■ ■ more• With a parallel interface model, bit 2 is fixed to Off.

■ Printer model ID (when1 ≤ n ≤ 3, 49 ≤ n ≤ 51) consists of 1-byte data.

■ Printer model ID (when n = 1 or 49) differs depending the printer model.

■ Each version ID corresponds to a firmware version.

■ When DTR/DSR control (handshaking) is selected by DIP switch 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.

■ When XON/XOFF control (handshaking) is selected by DIP switch with a serial interface, the printer transmits the ID data without confirming whether the host computer can receive data.

■ The printer ID can be differentiated from other transmission data by bits 4 and 7. After outputting GS I to the printer, if the data transmitted from the printer is “0xx0xxxx” (x = 0 or 1), the host should process the data as the printer ID.

Notes for Printer Information:■ When DTR/DSR control (handshaking) is selected by DIP switch 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.

■ When XON/XOFF control (handshaking) is selected by DIP switch with a serial interface, the printer transmits the ID data without confirming whether the host computer can receive data.

■ Printer information (when 65 ≤ n ≤ 69, n = 112) consists of [Header + printer information + NUL].

• Header: Hex = 5FH / Decimal = 95/number of bytes: 1• Printer information: The character string varies, depending on the specification for each printer. The

number of bytes is 1 ~ 80 bytes.• NUL: Hex = 00H / Decimal = 0/number of bytes: 1

■ If the printer information cannot be transmitted by some cause, the printer transmits 2-byte code of [Header + NUL].

■ A firmware version can be checked by self-test printing. The self test can be executed by GS ( A or panel switch operation while the power is turned on.

■ The printer becomes BUSY immediately before transmitting a header and recovers to READY after transmitting a NUL (except when the printer is busy for other reason).

Page 492: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 492

■ With a serial interface, when DTR/DSR control (handshaking) is selected by DIP switch, the printer transmits [Header~NUL] to the host after confirming that the host is ready to receive data.

■ With a serial interface, when XON/XOFF control (handshaking) is selected by DIP switch, the printer transmits [Header ~ NUL] to the host without confirming that the host is ready to receive data.

■ The printer information can be differentiated by the header of the block data from other transmission data. After outputting GS I, if the data transmitted from the printer is [Hex = 5FH/Decimal = 95], process data up to NUL [Hex = 00H/Decimal = 0] as the printer ID. When differentiating, there is one exception: when the host communicates with the printer by XON/XOFF control, the XOFF code might interrupt [Header���NUL].

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-U325D TM-J8000TM-H6000 TM-U675

Program Example for all printers

PRINT #1, CHR$(&H1D);"I";CHR$(1);← Transmits printer ID

Page 493: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 493

TM-H5000II

This printer supports the printer ID and printer information.

Type of additional fonts (n = 69) is only for TM-H5000IIM/TM-H5000IIPM.

Handshaking for a serial interface is selected by DIP switch 1-3.

Connection of customer display for a serial interface is selected by DIP switch 2-2.

•••• Printer model ID (n = 1, 49)

Hex: 0FH / Decimal: 15

•••• Type ID (n = 2, 50)

Bit 1 is fixed to On (autocutter installed).

Printer name (when n = 67)

•••• Printer name is TM-H5000II

TM-U375

This printer supports only the printer ID (1 ≤≤≤≤ n ≤≤≤≤ 3, 49 ≤≤≤≤ n ≤≤≤≤ 51).Handshaking for a serial interface is selected by DIP switch 1-3.Connection of a customer display for a serial interface is selected by DIP switch 2-1.•••• Printer model ID (n = 1, 49)Hex: 0AH / Decimal: 10•••• Type ID (n = 2, 50)Bit 1 is fixed to Off (autocutter not installed).Bit 3 is fixed to Off (without MICR reader).

Page 494: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 494

TM-U925

This printer supports only the printer ID (1 ≤≤≤≤ n ≤≤≤≤ 3, 49 ≤≤≤≤ n ≤≤≤≤ 51).Handshaking for a serial interface is selected by DIP switch 1-8.Connection of a customer display for a serial interface is selected by DIP switch 1-6.•••• Printer model ID (n = 1, 49)Hex: 0CH / Decimal: 12•••• Type ID (n = 2, 50)Bit 1 is fixed to On (autocutter installed).

TM-U325D

This printer supports only the printer ID (1 ≤≤≤≤ n ≤≤≤≤ 3, 49 ≤≤≤≤ n ≤≤≤≤ 51).Handshaking for a serial interface is selected by DIP switch 1-3.•••• Printer model ID (n = 1, 49): Hex: 22 / Decimal: 34•••• Type ID (n = 2, 50)

Bit 1 is fixed to Off (autocutter not installed).Bit 2 is fixed to Off (DIP switch [connection of customer display] is Off).Bit 3 is fixed to Off (without MICR reader).

TM-J8000

Handshaking for a serial interface is selected by DIP switch 1-3.Customer display (DM-D) connection is selected by DIP switch 2-2.•••• Printer ID (n = 1, 49): Hex: 23H / Decimal: 35•••• Type ID (n = 2, 50)

Bit 1 is [1 (autocutter installed)]•••• Printer model (n = 67)

Printer model: TM-J8000

Page 495: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 495

■ ■ ■ more■ ■ ■ moreTM-H6000

Handshaking for a serial interface is selected by DIP switch 1-3.Customer display (DM-D) connection is selected by DIP switch 2-2.•••• Printer ID (n = 1, 49): Hex: 24H / Decimal: 36•••• Printer model (n = 67)

Printer model: TM-H6000•••• For model-dependent information (n = 112), the printer transmits DIP switches information.

The transmission data consists of 6-byte data [Header + Printer information (4-byte) + NUL].The first byte of Printer Information:

Bit Off/On Hex Decimal Function

0 Off 00 0 DIP switch 1-1 is Off

On 01 1 DIP switch 1-1 is On

1 Off 00 0 DIP switch 1-2 is Off

On 02 2 DIP switch 1-2 is On

2 Off 00 0 DIP switch 1-3 is Off

On 04 4 DIP switch 1-3 is On

3 Off 00 0 DIP switch 1-4 is Off

On 08 8 DIP switch 1-4 is On

4, 5 Off 00 0 Reserved

6 On 40 64 Fixed to Off

7 Off 00 0 Fixed to Off

Page 496: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 496

■ ■ ■ more■ ■ ■ moreThe second byte of Printer Information:

Bit Off/On Hex Decimal Function

0 Off 00 0 DIP switch 1-5 is Off

On 01 1 DIP switch 1-5 is On

1 Off 00 0 DIP switch 1-6 is Off

On 02 2 DIP switch 1-6 is On

2 Off 00 0 DIP switch 1-7 is Off

On 04 4 DIP switch 1-7 is On

3 Off 00 0 DIP switch 1-8 is Off

On 08 8 DIP switch 1-8 is On

4, 5 Off 00 0 Reserved

6 On 40 64 Fixed to On

7 Off 00 0 Fixed to Off

Page 497: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 497

The third byte of Printer Information:

The fourth byte of Printer Information:

Bit Off/On Hex Decimal Function

0 Off 00 0 DIP switch 2-1 is Off

On 01 1 DIP switch 2-1 is On

1 Off 00 0 DIP switch 2-2 is Off

On 02 2 DIP switch 2-2 is On

2 Off 00 0 DIP switch 2-3 is Off

On 04 4 DIP switch 2-3 is On

3 Off 00 0 DIP switch 2-4 is Off

On 08 8 DIP switch 2-4 is On

4, 5 Off 00 0 Reserved

6 On 40 64 Fixed to Off

7 Off 00 0 Fixed to Off

Bit Off/On Hex Decimal Function

0 Off 00 0 DIP switch 2-5 is Off

On 01 1 DIP switch 2-5 is On

1�5 Off 00 0 Reserved

6 On 40 64 Fixed to On

7 Off 00 0 Fixed to Off

Page 498: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 498

■ ■ ■ more■ ■ ■ moreTM-U675

Handshaking for a serial interface is selected by DIP switch 1-3.Customer display (DM-D) connection is selected by DIP switch 2-2.•••• Printer ID (n = 1, 49): Hex: 25H / Decimal: 37•••• Printer model (n = 67)

Printer model: TM-U675•••• For model-dependent information (n = 112), the printer transmits DIP switches information.

The transmission data consists of 6-byte data [Header + Printer information (4-byte) + NUL].The first byte of Printer Information:

Bit Off/On Hex Decimal Function

0 Off 00 0 DIP switch 1-1 is Off

On 01 1 DIP switch 1-1 is On

1 Off 00 0 DIP switch 1-2 is Off

On 02 2 DIP switch 1-2 is On

2 Off 00 0 DIP switch 1-3 is Off

On 04 4 DIP switch 1-3 is On

3 Off 00 0 DIP switch 1-4 is Off

On 08 8 DIP switch 1-4 is On

4, 5 Off 00 0 Reserved

6 On 40 64 Fixed to Off

7 Off 00 0 Fixed to Off

Page 499: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 499

■ ■ ■ more■ ■ ■ moreThe second byte of Printer Information:

Bit Off/On Hex Decimal Function

0 Off 00 0 DIP switch 1-5 is Off

On 01 1 DIP switch 1-5 is On

1 Off 00 0 DIP switch 1-6 is Off

On 02 2 DIP switch 1-6 is On

2 Off 00 0 DIP switch 1-7 is Off

On 04 4 DIP switch 1-7 is On

3 Off 00 0 DIP switch 1-8 is Off

On 08 8 DIP switch 1-8 is On

4, 5 Off 00 0 Reserved

6 On 40 64 Fixed to On

7 Off 00 0 Fixed to Off

Page 500: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS I Ver. 6.0 p. 500

The third byte of Printer Information:

The fourth byte of Printer Information:

Bit Off/On Hex Decimal Function

0 Off 00 0 DIP switch 2-1 is Off

On 01 1 DIP switch 2-1 is On

1 Off 00 0 DIP switch 2-2 is Off

On 02 2 DIP switch 2-2 is On

2 Off 00 0 DIP switch 2-3 is Off

On 04 4 DIP switch 2-3 is On

3 Off 00 0 DIP switch 2-4 is Off

On 08 8 DIP switch 2-4 is On

4, 5 Off 00 0 Reserved

6 On 40 64 Fixed to Off

7 Off 00 0 Fixed to Off

Bit Off/On Hex Decimal Function

0 Off 00 0 DIP switch 2-5 is Off

On 01 1 DIP switch 2-5 is On

1�5 Off 00 0 Reserved

6 On 40 64 Fixed to On

7 Off 00 0 Fixed to Off

Page 501: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS P Ver. 6.0 p. 501

■ ■ ■ more■ ■ ■ moreGS P

SETTING COMMAND

[Name] Set horizontal and vertical motion units

[Format] ASCII GS P x yHex 1D 50 x yDecimal 29 80 x y

[Range] 0 ≤ x ≤ 2550 ≤ y ≤ 255

[Default] TM-H5000II: For paper roll: x = 180, y = 360For slip paper: x = 150, y = 144

TM-H6000: For paper roll: x = 180, y = 360For slip paper (face): x = 160, y = 144

TM-J8000: x = 360, y = 360TM-U375, TM-U675: x = 160, y = 144TM-U925: x = 150, y = 144

[Printers not featuring this command] TM-U325D, TM-U300C/D

[Description] Sets the horizontal and vertical motion units to 25.4/x mm {1/x inches} and 25.4/y mm {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.

[Notes] ■ The horizontal direction is perpendicular to the paper feed direction and the vertical direction is the paper feed direction.

■ The horizontal and vertical motion units indicate the minimum pitch used for calculating the values of related commands (shown on the next screen).

■ In standard mode, the following commands use x or y.

• Commands using x: ESC SP, ESC $, ESC \, FS S, GS L, and GS W• Commands using y: ESC 3, ESC J, ESC K and GS V

Miscellaneous commands

Page 502: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS P Ver. 6.0 p. 502

■ 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, ESC \, and FS S• Commands using y: ESC 3, ESC J, ESC W, GS $, GS V, and GS \

■ 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 \, FS S, and GS V

■ The calculated result from combining this command with others is truncated to the minimum value of the mechanical pitch.

■ This command does not affect the current setting values.

[Model-dependent variations] TM-H5000II TM-U375 TM-U925 TM-J8000TM-H6000 TM-U675

Program Example for all printers Print Sample

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); AAAAA

PRINT #1, CHR$(&H1B);"3";CHR$(30); ← Set line spacing BBBBB

PRINT #1, "AAAAA"; CHR$(&HA); CCCCC 30/180-inch line spacing

PRINT #1, "BBBBB"; CHR$(&HA);

PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(90); DDDDD

PRINT #1, CHR$(&H1B);"3";CHR$(30); ← Set line spacing 30/90-inch line spacing

PRINT #1, "CCCCC"; CHR$(&HA); EEEEE

PRINT #1, "DDDDD"; CHR$(&HA);

PRINT #1, "EEEEE"; CHR$(&HA);

Page 503: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS P Ver. 6.0 p. 503

TM-H5000II

This command sets the motion units for the paper type selected by ESC c 1. The horizontal and vertical motion units can be set independently for paper roll and slip paper.

The default values for the paper roll equal a normal dot pitch horizontally and a half dot pitch vertically. The default values for a slip equal a half dot pitch horizontally and a half dot pitch vertically.

TM-U375

The default values equal a half dot pitch horizontally and a half dot pitch vertically.

TM-U925

The default values equal a half dot pitch horizontally and a half dot pitch vertically.

TM-J8000

Default values equal a normal dot pitch in both vertical and horizontal directions.

TM-H6000

This command sets the motion units for the paper type selected by ESC c 1. The value set for a slip affects printing on the face of the slip. The horizontal and vertical motion units can be set independently for paper roll and slip paper (face).

The default values for the paper roll equal a normal dot pitch horizontally and a half dot pitch vertically. The default values for the slip (face) equal a half dot pitch horizontally and a half dot pitch vertically.

TM-U675

The default values equal a half dot pitch horizontally and a half dot pitch vertically.

Page 504: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS g 0 Ver. 6.0 p. 504

■ ■ ■ more■ ■ ■ moreGS g 0

SETTING COMMAND

[Name] Initialize maintenance counter

[Format] ASC II GS g 0 m nL nH Hex 1D 67 30 m nL nH Decimal 29 103 48 m nL nH

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Range] m = 0, 0 ≤ (nL + nH × 256) ≤ 65535TM-H6000, TM-U675: mmmm = 0, 10 ≤ ≤ ≤ ≤ nnnnLLLL ≤ ≤ ≤ ≤ 70, nnnnHHHH = 0

[Description] Sets the maintenance counter specified by nL and nH to 0.• nL and nH specify a resettable maintenance counter number as (nL + nH × 256).

[Notes] ■ In standard mode, this command is effective only when processed in the beginning of a line. ■ If the counter specified by (nL + nH × 256) is not supported, this command is ignored.■ Do not use this command while a macro is being defined, because the command cannot be included in the

macro. ■ There are two kinds of maintenance counters: resettable counters and accumulation counters. A resettable

counter is a maintenance counter that can be initialized, and an accumulation counter indicates the counter value from when the printer starts operation. An accumulation counter cannot be initialized.

■ When a counter reaches its maximum value, its value is reset to 0 in the next updating process. Units and maximum values of counters differ depending on the printer model and function. Refer to the model-dependent variations for details.

Counter Number Counter Specifications

10 ~ 19 Serial impact head

20 ~ 29 Thermal head

30 ~ 39 Ink jet head

40 ~ 49 Shuttle head

50 ~ 59 Devices that conform to the normal specification

60 ~ 69 Optional devices

70 ~ 79 Time

Miscellaneous commands

Page 505: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS g 0 Ver. 6.0 p. 505

■ The maintenance counter value can be transmitted by GS g 2.

■ The maintenance counter value can be used for establishing the time for replacing consumed parts or cleaning.

■ Types of counters differ depending on the printer models.

[Model-dependent variations] TM-H5000II TM-H6000 TM-U675

TM-H5000II

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0.For the types of maintenance counter, see the Model-dependent variations for the GS g 2 command.

TM-H6000

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0. Refer to the Model-dependent variations of the GS g 2 command for types of maintenance counters.

TM-U675

Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: FS qFS qFS qFS q, GS ( CGS ( CGS ( CGS ( C, GS ( EGS ( EGS ( EGS ( E, GS g 0GS g 0GS g 0GS g 0. Refer to the Model-dependent variations of the GS g 2GS g 2GS g 2GS g 2 command for types of maintenance counters.

Program Example

PRINT #1, CHR$(&H1D);”g0”;CHR$(0);CHR$(11);CHR$(0); ← Initializes print character counter

Page 506: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS g 2 Ver. 6.0 p. 506

■ ■ ■ more■ ■ ■ moreGS g 2

EXECUTING COMMAND

[Name] Transmit maintenance counter

[Format] ASC II GS g 2 m nL nH Hex 1D 67 32 m nL nH Decimal 29 103 50 m nL nH

[Printers not featuring this command] TM-U375, TM-U925, TM-U325D, TM-U300C/D, TM-J8000

[Range] m = 0, 0 ≤ (nL + nH × 256) ≤ 65535TM-H6000, TM-U675: mmmm = 0, 10 ≤ ≤ ≤ ≤ nnnnLLLL ≤ ≤ ≤ ≤ 198, , , , nnnnHHHH = 0

[Description] Transmits the value of the counter specified by the number.• nL and nH specify a maintenance counter number as (nL + nH × 256).

[Notes] ■ There are two kinds of maintenance counters: resettable counters and accumulation counters. A resettable counter is a maintenance counter that can be initialized by GS g 0, and an accumulation counter indicates the counter value from when the printer starts operation.

■ When a counter reaches its maximum value, its value is reset to 0 in the next updating process. Units and maximum values of counters differ depending on the printer model and function. Refer to the model-dependent variations for details.

■ If the counter specified by (nL + nH × 256) is not supported, this command is ignored.

Counter Number Counter Specifications

10 ~ 19 Serial impact head

20 ~ 29 Thermal head

30 ~ 39 Ink jet head

40 ~ 49 Shuttle head

50 ~ 59 Devices that conform to the normal specification

60 ~ 69 Option devices

70 ~ 79 Time

Miscellaneous commands

Page 507: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS g 2 Ver. 6.0 p. 507

■ The maintenance counter value consists of [Header + data + NUL], as follows:• Header: Hexadecimal = 5FH/Decimal = 95• Data: Counter value• NUL: Hexadecimal = 00H/Decimal = 0

■ When the counter values are transmitted, the printer converts them to character codes corresponding to the decimal value, and transmits from the most significant bit. Example: When the counter value is 120, the transmission data for “120” is 3 bytes consisting of 49, 50, and 48.

■ The printer becomes BUSY immediately before transmitting a header and recovers to READY after transmitting a NUL (unless there are other causes of the printer being BUSY).

■ With a serial interface, when DTR/DSR control (handshaking) is selected by DIP switch, the printer transmits [Header~ NUL] to the host after confirming that the host is ready to receive data.

■ With a serial interface, when XON/XOFF control (handshaking) is selected by DIP switch, the printer transmits [Header~ NUL] to the host without confirming that the host is ready to receive data.

■ When transmitting data with this command, ASB status and real-time commands cannot be used.■ The resettable maintenance counter can be initialized by GS g 0.■ The maintenance counters built in the printer are standard; therefore, their values will be different

depending on the timing of occurring errors or turning off the power.■ The maintenance counter can be used for establishing the time for replacing consumed parts or cleaning.■ Maintenance counter data can be differentiated from other transmission data by the header of the block

data. After outputting GS g 2 to the printer, if the data transmitted from the printer is [Hex=5FH/Decimal=95], the host should process the data up to NUL [Hex=00H/Decimal=0] as maintenance counter data. There is an exception, described below:• When the host is communicating with the printer by XON/XOFF control, the XOFF code might interrupt

[Header ~ NUL].■ Types of the counters differ, depending on the printer models.

[Model-dependent variations] TM-H5000II TM-H6000 TM-U675

Program Example

PRINT #1, CHR$(&H1D);”g2”;CHR$(0);CHR$(11);CHR$(0); ← Transmit a counter value of print characters

Page 508: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS g 2 Ver. 6.0 p. 508

TM-H5000II

The units and maximum values of the counters are as follows:

Note: Commas used in the maximum values in the table above are not included in the transmission data.

Number Counter Counting method Unit Maximum value

10,138 The number of paper feed lines (for slip)

Counts a paper feed of 4.23 mm {1/6 inch} as one line (+1)

Lines 178,956,970

11,139 The number of print characters (for slip)

Counts 6 head energizing strokes as one character (+1)

Characters 715,827,882

20,148 The number of paper feed lines (for paper roll)

Counts a paper feed of 4.23 mm {1/6 inch} as one line (+1)

Lines 143,165,576

21,149 The number of times of head energizing strokes (for paper roll)

Counts a head energizing stroke of the thermal head (+1)

Times 4,294,967,295

50,178 The number of autocutter operations Counts an autocutter operation (+1) Times 4,294,967,295

60,188 The number of times reading check paper

Counts the times check paper is read (+1)

Times 4,294,967,295

70,198 Period of printer operation Counts the number of hours power has been on

Hours 71,582,788

Page 509: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS g 2 Ver. 6.0 p. 509

TM-H6000The units and maximum values of the counters are as follows:

Note: Commas used in the maximum values in the table above are not included in the transmission data.

Number Counter Counting method Unit Maximum value

10,138 The number of paper feed lines (for both sides of a slip)

Counts a paper feed of 4.23 mm {1/6 inch} as one line (both for face and back) (+1)

Lines 178,956,970

11,139 The number of print characters (for the face of a slip)

Counts 6 head energizing strokes of a serial impact dot head as one character (+1)

Characters 715,827,882

20,148 The number of paper feed lines (for paper roll)

Counts a paper feed of 4.23 mm {1/6 inch} as one line (+1)

Lines 143,165,576

21,149 The number of head energizing strokes (for paper roll)

Counts a head energizing stroke of the thermal head (+1)

Times 4,294,967,295

40,168 The number of head round-trips (for the back of a slip)

Counts a head round-trip of the shuttle head as one character (+1)

Times 4,294,967,295

40,169 The number of print characters (for the back of a slip)

Counts a character printed by the shuttle head (+1)

Characters 4,294,967,295

50,178 The number of autocutter operations

Counts an autocutter operation (+1) Times 4,294,967,295

60,188 The number of times reading check paper

Counts the times check paper is read (+1) Times 4,294,967,295

70,198 Period of printer operation Counts the number of hours the power has been on

Hours 71,582,788

Page 510: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Miscellaneous commands GS g 2 Ver. 6.0 p. 510

TM-U675

The units and maximum values of the counters are as follows:

Note: Commas used in the maximum values in the table above are not included in the transmission data.

Number Counter Counting method Unit Maximum value

10,138 The number of paper feed lines (for slip)

Counts a paper feed of 4.23 mm {1/6 inch} as one line (+1)

Lines 178,956,970

11,139 The number of print characters

Counts 6 head energizing strokes as one character (+1)

Characters 715,827,882

40,16841,169

(Reserved) No counts — —

50,178 The number of autocutter operations

Counts an autocutter operation (+1) Times 4,294,967,295

60,188 The number of times reading check paper

Counts the times check paper is read (+1) Times 4,294,967,295

70,198 Period of printer operation Counts the number of hours the power has been on

Hours 71,582,788

Page 511: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands Ver. 6.0 p. 511

Kanji commands

Command Name

FS ! Set print mode(s) for Kanji charactersFS & Select Kanji character modeFS – Turn underline mode on/off for Kanji charactersFS . Cancel Kanji character modeFS 2 Define user-defined Kanji charactersFS C Select Kanji character code systemFS S Set Kanji character spacing

FS W Turn quadruple-size mode on/off for Kanji characters

KANJI COMMANDS

Page 512: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS ! Ver. 6.0 p. 512

■ ■ ■ more■ ■ ■ moreFS !

SETTING COMMAND

[Name] Set print mode(s) for Kanji characters

[Format] ASCII FS ! nHex 1C 21 nDecimal 28 33 n

[Printers not featuring this command] TM-J8000, TM-U925, TM-U325D

0 ≤ n ≤ 255

[Default] n = 0

[Description] Sets the print mode for Kanji characters collectively, using n as follows:

[Notes] ■ Settings of this command affect Kanji and user-defined characters.

■ Settings of this command are effective until any of the following commands is executed, ESC @ is executed, the printer is rest, or the power is turned off.

• Character size (bits 2 and 3): FS W, GS ! • Underline (bit 7): FS –

■ When a double-height mode is specified, a character is enlarged based on a baseline of the character.

Bit Function Binary Hexadecimal Decimal

0 Reserved Off 00 0

1 Reserved Off 00 0

2 Double-width mode is Off 0ff 00 0

Double-width mode is On On 04 4

3 Double-height mode is Off Off 00 0

Double-height mode is On On 08 8

4~6 Reserved Off 00 0

7 Kanji underline mode is Off Off 00 0

Kanji underline mode is On On 80 128

Kanji commands

Page 513: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS ! Ver. 6.0 p. 513

■ When a double-width mode is specified, a character is enlarged based on the left side of the character.

■ When both double-width and double-height modes are specified, quadruple-size characters are printed.

■ When double-height mode is selected in standard mode, a character is enlarged in the paper feed direction and when double-width mode is selected, a character is enlarged in the direction which is perpendicular to the paper feed direction. Therefore, when 90° clockwise-rotation is selected, the relationship between directions of enlargement of double-height and double-width is opposite from normal direction.

■ When double-height mode is selected in page mode, height size is enlarged and when double-width mode is selected in page mode, width size is enlarged.

■ When Kanji underline mode is specified, the width of the underline set by FS – is added. Even if the character size is changed, the width is not changed.

■ Even if Kanji underline mode is specified, 90° clockwise-rotation characters, white/black reverse characters, and spaces skipped by HT, ESC $, or ESC \ are not underlined.

[Model-dependent variations] TM-H6000

TM-H6000

This command affects only printing on roll paper and the face of a slip.

Program ExamplePRINT #1, CHR$(&H1C);”C”;CHR$(0); ← Select JIS code system

PRINT #1, CHR$(&H1C);”&”; ← Specify Kanji mode

PRINT #1, CHR$(&H1C);”!”;CHR$(0);

PRINT #1, CHR$(&H24);CHR$(&H22);CHR$(&H24);CHR$(&H22);

PRINT #1, CHR$(&H1C);”!”;CHR$(4);

PRINT #1, CHR$(&H24);CHR$(&H24);CHR$(&H24);CHR$(&H24);

PRINT #1, CHR$(&H1C);”!”;CHR$(8);

PRINT #1, CHR$(&H24);CHR$(&H26);CHR$(&H24);CHR$(&H26);

PRINT #1, CHR$(&H1C);”!”;CHR$(12);

PRINT #1, CHR$(&H24);CHR$(&H28);CHR$(&H24);CHR$(&H28);

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1C);”.”; ← Cancel Kanji mode

Print Sample

Page 514: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS & Ver. 6.0 p. 514

■ ■ ■ more■ ■ ■ moreFS &

SETTING COMMAND

[Name] Select Kanji character mode

[Format] ASCII FS &Hex 1C 26Decimal 28 38

[Printers not featuring this command] TM-J8000, TM-U925, TM-U325D

[Description] Select Kanji character mode.

[Notes] ■ This command is effective only when Japanese Kanji, Chinese Kanji, and Taiwanese Kanji, and Korean Kanji models are selected.

■ Settings of this command is effective until FS . is executed, ESC @ is executed, the printer is reset, or the power is turned off.

■ Kanji codes are processed in order of the first byte and the second byte.

■ Notes for Japanese Kanji model:

• Settings of this command affect a character code processing only when JIS code system is selected by FS C.

• If Kanji mode is specified when JIS code system is selected, the printer processes a character code as a 2-byte code.

• Kanji mode is canceled at default.

Kanji commands

Page 515: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS & Ver. 6.0 p. 515

■ Notes for Chinese Kanji model:• When Kanji mode is selected, the printer processes a character code which corresponds to the first byte

of Kanji code, and then processes a consecutive byte as the second byte of Kanji code. Therefore, when Kanji code is specified, an ASCII code character which corresponds to the first byte of Kanji code cannot be printed.

• Kanji mode is selected at default.■ Notes for Taiwanese Kanji model:

• When Kanji mode is selected, the printer processes a character code which corresponds to the first byte of Kanji code, and then processes a consecutive byte as the second byte of Kanji code. Therefore, when Kanji code is specified, an ASCII code character which corresponds to the first byte of Kanji code cannot be printed.

• Kanji mode is selected at default.■ Notes for Korean Kanji model:

• When Kanji mode is selected, the printer processes a character code which corresponds to the first byte of Kanji code, and then processes a consecutive byte as the second byte of Kanji code. Therefore, when Kanji code is specified, an ASCII code character which corresponds to the first byte of Kanji code cannot be printed.

• Kanji mode is selected at default.[Model-dependent variations] TM-H6000 TM-U300C/D

TM-H6000

This command affects only printing on roll paper and the face of a slip.

TM-U300C/D

When a validation is selected as the print sheet, Kanji characters cannot be printed.

Program Example

PRINT #1, CHR$(&H1C);”C”;CHR$(0); ← Select JIS code system

PRINT #1, CHR$(&H1C);”&”; ← Specify Kanji mode

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A); CHR$(&HA);

Print Sample

Page 516: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS – Ver. 6.0 p. 516

■ ■ ■ more■ ■ ■ moreFS –

SETTING COMMAND

[Name] Turn underline mode on/off for Kanji characters

[Format] ASCII FS – nHex 1C 2D nDecimal 28 45 n

[Printers not featuring this command] TM-J8000, TM-U925, TM-U325D

[Range] TM-H5000II, TM-H6000, TM-U675: 0 ≤≤≤≤ n ≤ ≤ ≤ ≤ 2, 48 ≤≤≤≤ n ≤ ≤ ≤ ≤ 50TM-U375: n = 0, 1, 48, 49TM-U300C/D: n = 0, 1

[Default] n = 0

[Description] Turns underline mode for Kanji characters on or off, based on the following values of n:

[Notes] ■ Settings of this command affect Kanji characters and user-defined characters.

■ Even if Kanji underline mode is specified, 90° clockwise-rotation characters, white/black reverse characters, and spaces skipped by HT, ESC $, or ESC \ are not underlined.

■ When a character size is changed, an underline width is not changed.

■ When underline mode is canceled, following characters are not underlined. However, an underline width set right before the mode is canceled is remained.

■ Settings of this command are effective until FS ! is executed, ESC @ is executed, the printer is reset, or the power is turned off.

■ Some printer models support Kanji underline mode with 2-dot width.

n Function

0, 48 Turns off underline mode for Kanji characters

1, 49 Turns on underline mode for Kanji characters (1-dot thick)

2, 50 Turns on underline mode for Kanji characters (2-dot thick)

Kanji commands

Page 517: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS – Ver. 6.0 p. 517

[Model-dependent variations] TM-H6000 TM-H5000II TM-U675

TM-H6000

This command affects only printing on roll paper and the face of a slip.

When the face of a slip is selected:

TM-H5000II

When n =1, 2, 49, or 50 with a slip selected, Kanji underline with 1-dot width is printed.

TM-U675

When n =1, 2, 49, or 50, Kanji underline with 1-dot width is printed.

Program ExamplePRINT #1, CHR$(&H1C);”C”;CHR$(0); ← Select JIS code system

PRINT #1, CHR$(&H1C);”&”;

PRINT #1, CHR$(&H1C);”–”;CHR$(1); ← Select underline mode

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A);CHR$(&HA);

PRINT #1, CHR$(&H1C);”–”;CHR$(0); ← Cancel underline mode

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A);CHR$(&HA);

PRINT #1, CHR$(&H1C);”.”; ← Cancel Kanji mode

Print Sample

← 1-dot width underline added

← No underline

nnnn Function

0, 48 Turns off underline mode for Kanji characters

1, 2, 49, 50 Turns on underline mode for Kanji characters (1-dot thick)

Page 518: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS . Ver. 6.0 p. 518

■ ■ ■ more■ ■ ■ moreFS .

SETTING COMMAND

[Name] Cancel Kanji character mode

[Format] ASCII FS .Hex 1C 2EDecimal 28 46

[Printers not featuring this command] TM-J8000, TM-U925, TM-U325D

[Description] Cancels Kanji character mode.

[Notes] ■ This command is effective only when Japanese Kanji, Chinese Kanji, and Taiwanese Kanji, and Korean Kanji models are selected.

■ Settings of this command are effective until FS & is executed, ESC @ is executed, the printer is reset, or the power is turned off.

■ Notes for Japanese Kanji model:

• Settings of this command affect character code processing only when JIS code system is selected by FS C.

� When JIS code system is selected, if Kanji mode is canceled, the printer processes a character code as a 1-byte code of alphanumeric katakana characters.

• Kanji mode is canceled at default.■ Notes for Chinese Kanji model:

• If Kanji mode is canceled, the printer processes a character code as a 1-byte code of alphanumeric katakana characters.

• Kanji mode is selected at default.

Kanji commands

Page 519: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS . Ver. 6.0 p. 519

■ Notes for Taiwanese Kanji model:

• If Kanji mode is canceled, the printer processes a character code as a 1-byte code of alphanumeric katakana characters.

• Kanji mode is selected at default.■ Notes for Korean Kanji model:

• If Kanji mode is canceled, the printer processes a character code as a 1-byte code of alphanumeric katakana characters.

• Kanji mode is selected at default.[Model-dependent variations] TM-H6000

TM-H6000

This command affects only printing on roll paper and the face of a slip.

Program ExamplePRINT #1, CHR$(&H1C);”C”;CHR$(0); ← Select JIS code system

PRINT #1, CHR$(&H1C);”&”; ← Specify Kanji mode

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A); CHR$(&HA);

PRINT #1, CHR$(&H1C);”.”; ← Cancel Kanji mode

PRINT #1, “kanji”; CHR$(&HA);

Print Sample

Page 520: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS 2 Ver. 6.0 p. 520

■ ■ ■ more■ ■ ■ moreFS 2

SETTING COMMAND

[Name] Define user-defined Kanji characters

[Format] ASCII FS 2 c1 c2 d1...dkHex 1C 32 c1 c2 d1...dkDecimal 28 50 c1 c2 d1...dk

[Printers not featuring this command] TM-J8000, TM-U925, TM-U325D

[Range] The ranges of c1 and c2 differ depending on specifications and the character code system used.

• Japanese Kanji (JIS code): c1 = 77H, 21H ≤ c2 ≤ 7EH• Japanese Kanji (SHIFT JIS code): c1 = ECH, 40H ≤ c2 ≤ 7EH, 80H ≤ c2 ≤ 9EH• Chinese Kanji: c1 = FEH, A1H ≤ c2 ≤ FEH• Taiwanese Kanji: c1 = FEH, A1H ≤ c2 ≤ FEH• Korean Kanji: c1 = FEH, A1H ≤ c2 ≤ FEH

0 ≤ d ≤ 255

TM-H5000II TM-H6000: kkkk = 72 (paper roll, face for TM-H6000); kkkk = 32 (slip)TM-U675, TM-U375, TM-U300C/D: kkkk = 32

[Description] Defines user-defined Kanji characters for the character codes specified by c1 and c2.

• c1 indicates the first byte of a character code for a user-defined character.• c2 indicates the second byte of a character code for a user-defined character.• d indicates defined data.• k indicates the maximum number of defined data. k is a parameter for an explanation; therefore, it

does not need to be transmitted.[Notes] ■ This command is effective only for Japanese Kanji, Chinese Kanji, Taiwanese Kanji, or Korean Kanji

specification.

■ The printer models that have 16 × 16 dot-configuration need 32-byte data, k = 32 (2 bytes in vertical × 16 dots in horizontal) for defined data. The printer models that have 24 × 24 dot-configuration need 72-byte data, k = 72 (3 bytes in vertical × 24 dots in horizontal).

Kanji commands

Page 521: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS 2 Ver. 6.0 p. 521

■ ■ ■ more■ ■ ■ more■ The printer processes k byte data of d1...dk as defined data. The defined data (d) sets a corresponding bit

to 1 to print a dot or to 0 not to print a dot.

■ If the printer has multiple print heads that have different dot density, the user-defined character is defined for the sheet selected by ESC c 1.

A user-defined character can be defined for each print head.

■ The number of characters to be defined differ depending on the printer models.

■ Defined data is effective until it is redefined, ESC @ is executed, the printer is reset, or the power is turned off.

■ User-defined characters are not defined and space is printed at the default.

■ The relationship between the defined data and a print result is as follows:

Example of defining a user-defined character for the printer model which has 16 × 16 dots Kanji configuration:

d1 d3 d5 ... d27 d29 d31

d2 d4 d6 ... d28 d30 d32

Page 522: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS 2 Ver. 6.0 p. 522

[Model-dependent variations] TM-H6000 TM-U675 TM-H5000II TM-U375 TM-U300C/D

Program Example

PRINT #1, CHR$(&H1C);”C”; CHR$(0): ← Select JIS code system

PRINT #1, CHR$(&H1C);”2”;

PRINT #1, CHR$(&H77);CHR$(&H21);

FOR k = 1 To 32

READ d: PRINT #1, CHR$(d);

NEXT k

PRINT #1, CHR$(&H1C);”&”; ← Specify Kanji mode

PRINT #1, CHR$(&H77);CHR$(&H21);

PRINT #1, CHR$(&H33);CHR$(&H30);

PRINT #1, CHR$(&H3B);CHR$(&H7A);CHR$(&HA);

PRINT #1, CHR$(&H3B);CHR$(&H7A);CHR$(&HA);

PRINT #1, CHR$(&H1C);”.”; ← Cancel Kanji mode

DATA &H00, &H00, &H00, &H00, &H01, &HE0, &H07, &HF0

DATA &H0F, &HF0, &H1F, &HF2, &H3F, &HE2, &H7F, &HFE

DATA &H7F, &HFE, &H3F, &HE2, &H1F, &HF2, &H0F, &HF0

DATA &H07, &HF0, &H01, &HE0, &H00, &H00, &H00, &H00

Print Sample

Page 523: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS 2 Ver. 6.0 p. 523

TM-H6000

The user-defined characters can be defined for all the character codes in a range. User-defined character pattern is defined for a sheet selected by ESC c 1. When slip is selected as the print sheet, the user-defined character is defined for the face of a slip. The back of the slip does not support Kanji. The user-defined character pattern can be set for roll paper and a slip (face) independently. When a slip is selected, horizontal adjacent dots cannot be specified as print data.

This command affects only printing on roll paper and the face of a slip.

TM-H5000II

User-defined characters can be defined for all the character codes in a range.

User-defined character pattern is defined for a sheet selected by ESC c 1. The user-defined character pattern can be set for roll paper and a slip independently. When a slip is selected, horizontal adjacent dots cannot be specified as print data.

TM-U375

A user-defined character for one character can be defined.

If a user-defined character is already defined, defined character code can be redefined, however, user-defined characters cannot be defined to new character codes. Horizontal adjacent dots cannot be specified as print data.

TM-U300C/D

A user-defined character for one character can be defined.

If a user-defined character is already defined, defined character code can be redefined, however, user-defined characters cannot be defined to new character codes. Horizontal adjacent dots cannot be specified as print data.

TM-U675

The user-defined characters can be defined for all the character codes in a range.

For the user-defined characters, horizontal adjacent dots cannot be specified as print data.

Page 524: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS C Ver. 6.0 p. 524

■ ■ ■ more■ ■ ■ moreFS C

SETTING COMMAND

[Name] Select Kanji character code system

[Format] ASCII FS C nHex 1C 43 nDecimal 28 67 n

[Printers not featuring this command] TM-J8000, TM-U925, TM-U325D

[Range] TM-H5000II, TM-H6000, TM-U675, TM-U375: n = 0, 1, 48, 49TM-U300C/D: n = 0, 1

n = 0

[Description] Selects a Kanji character code system for the Japanese Kanji specification, based on the following values of n:

[Notes] ■ This command is effective only with the Japanese Kanji models.

■ The command is effective until ESC @ is executed, the printer is reset, or the power is turned off.

■ When JIS code system is selected, Kanji mode should be specified by FS & to print Kanji characters.

■ When SHIFT JIS code system is selected, if the printer processes a character code which corresponds to the first byte of the Kanji code, the printer processes a consecutive byte as the second byte of the Kanji code. Therefore, when this code system is selected, ASCII code which corresponds to the first byte of the Kanji code cannot be printed.

■ Kanji code processes the first byte and the second byte in order.

n Kanji

0, 48 JIS code

1, 49 SHIFT JIS code

Kanji commands

Page 525: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS C Ver. 6.0 p. 525

[Model-dependent variations] TM-H6000 TM-U300C/D

TM-H6000

This command affects only printing on roll paper and the face of a slip.

TM-U300C/D

When a validation is selected as the print sheet, Kanji cannot be printed.

Program Example

PRINT #1, CHR$(&H1C);”C”;CHR$(0); ← Select JIS code system

PRINT #1, CHR$(&H1C);”&”; ← Specify Kanji mode

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A); CHR$(&HA);

PRINT #1, CHR$(&H1C);”.”; ← Cancel Kanji mode

PRINT #1, CHR$(&H1C);”C”;CHR$(1); ← Select SHIFT JIS code system

PRINT #1, CHR$(&H8A);CHR$(&HBF);

PRINT #1, CHR$(&H8E);CHR$(&H9A); CHR$(&HA);

Print Sample

← Print using JIS code

← Print using SHIFT JIS code

Page 526: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS S Ver. 6.0 p. 526

■ ■ ■ more■ ■ ■ moreFS S

SETTING COMMAND

[Name] Set Kanji character spacing

[Format] ASCII FS S n1 n2Hex 1C 53 n1 n2Decimal 28 83 n1 n2

[Printers not featuring this command] TM-J8000, TM-U925, TM-U325D

[Range] TM-H6000, TM-U675, TM-H5000II, TM-U375: 0 ≤≤≤≤ n1 ≤ ≤ ≤ ≤ 255, 0 ≤≤≤≤ n2 ≤ ≤ ≤ ≤ 255TM-U300C/D: 0 ≤≤≤≤ n1 ≤ ≤ ≤ ≤ 32, 0 ≤≤≤≤ n2 ≤ ≤ ≤ ≤ 32

[Default] TM-H6000: n1n1n1n1 = 0, n2n2n2n2 = 0 (paper roll); n1; n1; n1; n1 = 0, n2n2n2n2 = 2 (slip, face side)TM-H5000II: n1 = 0, n2 = 0 (paper roll); n1 = 0, n2 = 2 (slip)TM-U675, TM-U375, TM-U300C/D: n1 = 0, n2 = 2

[Description] Sets left- and right-side Kanji character spacing n1 and n2, respectively.• Specify the left-side character spacing to [n1 × horizontal or vertical motion units].• Specify the right-side character spacing to [n2 × horizontal or vertical motion units].

[Notes] ■ Settings of this command affect Kanji characters and user-defined characters.■ When a character size is set to N times as large as a normal size, both right- and left-side character spacings

are also set to N times as large as a normal size.■ In standard mode, the horizontal motion unit (perpendicular to the paper feed direction) is used.■ In page mode, the horizontal or vertical motion unit differs depending on the starting position set by

ESC T.• When the starting position is set to the upper left or lower right, the horizontal motion unit

(perpendicular to the paper feed direction) is used.• When the starting position is set to the upper right or lower left, the vertical motion unit (paper feed

direction) is used.■ Different character spacing can be set for standard mode and page mode. When this command is set in

standard mode, character spacing for Kanji printed in standard mode is set and when this command is set in page mode, character spacing for Kanji printed in page mode is set.

■ If the horizontal or vertical motion unit is changed after setting the character spacing, the spacing between Kanji characters is not changed.

Kanji commands

Page 527: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS S Ver. 6.0 p. 527

■ Kanji character spacing set is effective until ESC @ is executed, the printer is reset, or the power is turned off.

■ This command is used to change a spacing between Kanji characters.

[Model-dependent variations] TM-H6000 TM-U675 TM-H5000II TM-U375 TM-U300C/D

TM-H6000

This command affects only printing on roll paper and the face of a slip.The horizontal and vertical motion units are set by GS P.

TM-U675

The horizontal and vertical motion units are set by GS P.

TM-H5000II

The horizontal and vertical motion units are set by GS P.

TM-U375

The horizontal and vertical motion units are set by GS P.

TM-U300C/D

The horizontal motion unit is approximately 0.159 mm {1/160 inch}. This is equivalent to a half dot pitch (minimum mechanical pitch).

Program ExamplePRINT #1, CHR$(&H1D);”P”;CHR$(180);CHR$(180);

PRINT #1, CHR$(&H1C);”C”; CHR$(0): ← Select JIS code system

PRINT #1, CHR$(&H1C);”&”; ← Specify Kanji mode

PRINT #1, CHR$(&H1C);”S”;CHR$(0);CHR$(0);

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A);CHR$(&HA);

PRINT #1, CHR$(&H1C);”S”;CHR$(8);CHR$(8);

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A);CHR$(&HA);

PRINT #1, CHR$(&H1C);”.”; ← Cancel Kanji mode

Print Sample← Left- and right-side character spacing: 0 mm

← Left- and right-side character spacing: approx. 1.129 mm {8/180"}

Page 528: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS W Ver. 6.0 p. 528

FS WSETTING COMMAND

[Name] Turn quadruple-size mode on/off for Kanji characters

[Format] ASCII FS W nHex 1C 57 nDecimal 28 87 n

[Printers not featuring this command] TM-J8000, TM-U925, TM-U325D

[Range] 0 ≤ n ≤ 255

[Default] n = 0

[Description] Turn quadruple-size mode on or off for Kanji characters.

• When the LSB of n is 0, quadruple-size mode for Kanji characters is turned off and normal size is specified.

• When the LSB of n is 1, quadruple-size mode for Kanji characters is turned on.[Notes] ■ Settings of this command affect Kanji characters and user-defined characters.

■ When a double-height mode is specified, a character is enlarged based on a baseline of the character and when a double-width mode is specified, a character is enlarged based on the left side of the character.

■ Settings of this command are effective until FS ! is executed, GS ! is executed, ESC @ is executed, the printer is reset, or the power is turned off.

[Model-dependent variations] TM-H6000

Program ExamplePRINT #1, CHR$(&H1C);”C”;CHR$(0); ← Select JIS code system

PRINT #1, CHR$(&H1C);”&”;

PRINT #1, CHR$(&H1C);”W”;CHR$(0); ← Cancel quadruple-size mode

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A);CHR$(&HA);

PRINT #1, CHR$(&H1C);”W”;CHR$(1); ← Specify quadruple-size mode

PRINT #1, CHR$(&H34);CHR$(&H41);

PRINT #1, CHR$(&H3B);CHR$(&H7A);CHR$(&HA);

PRINT #1, CHR$(&H1C);”.”;

Print Sample

← Normal size

← Quadruple size

Kanji commands

Page 529: Epson Programming Guide

C O N F I D E N T I A L

Paper roll/cut sheet Kanji commands FS W Ver. 6.0 p. 529

TM-H6000

This command affects only printing on roll paper and the face of a slip.