Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 13 of 14

TM-T85/T85P Thermal Line Printer Operator's Manual: Chapter 5 Commands, pages 99 to 108

Pages 99 to 108 of 115, from TM-T85/T85P Thermal Line Printer Operator's Manual

The original document is the PDF (2.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Epson TM-T85

Page 99

Decimal 29 73 n 1 ≤ n ≤ 3, 49 ≤ n ≤ 51 Transmits the printer ID specified by n as follows:

[Range] [Function] n

Printer ID

Specification

ID (hexadecimal)

1, 49

Printer model ID

TM-T85/T85P

08H

2, 50

Type ID

See table below.

3, 51

ROM version ID

Depends on ROM version n = 2, Type ID Bit

Off/On

Hex

Decimal

Function

0

Off

00

0

Two-byte character code not supported.

1

On

02

2

Auto-cutter equipped.

2

-

-

-

Undefined.

3

-

-

-

Undefined.

4

Off

00

0

Not used. Fixed to Off.

5

-

-

-

Undefined.

6

-

-

-

Undefined.

7

Off

00

0

Not used. Fixed to Off.

[Notes]

• When DTR/DSR control is selected, the printer transmits only 1 byte after confirming that the host is ready to receive data (DSR signal is SPACE). If the host computer is not ready to receive data (DSR signal is MARK), the printer waits until the host is ready. • When XON/XOFF control is selected, the printer transmits only 1 byte without confirming the condition of the DSR signal. • The printer ID is transmitted when the data in the receive buffer is developed. Therefore, there may be a time lag between receiving this command and transmitting the status, depending on the receive buffer status. • The ROM version may be changed. • When Auto Status Back (ASB) is enabled using GS a, the status transmitted by GS I and the ASB status must be differentiated.

GS L nL nH [Name] [Format]

Set left margin ASCII GS Hex 1D Decimal 29

L 4C 76 nL nH nL nH nL nH

Commands 5-41

Page 100

0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the left margin using nL and nH. • The left margin is set to [(nL + nH ✕ 256) ✕ horizontal motion unit)] inches. [Range]

Printable area

Left margin Printing area width

[Notes]

[Default] [Reference]

• This command is effective only at the beginning of a line. • If this command is input in page mode, the printer performs only internal flag operations. • This command does not affect printing in page mode. • If the setting exceeds the printable area,the maximum value of the printable area is used. • The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical motion unit does not affect the current left margin. • The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount. nL = 0, nH = 0 GS P, GS W

GS P x y [Name] [Format]

Set horizontal and vertical motion units ASCII GS P xy Hex 1D 50 xy Decimal 29 80 xy [Range] 0 ≤ x ≤ 255 0 ≤ y ≤ 255 [Description] Sets the horizontal and vertical motion units to 1/x inch and 1/y inches, respectively. When x and y are set to 0, the default setting of each value is used (x = 180, y = 360). [Notes] • The horizontal direction is perpendicular to the paper feed direction and the vertical direction is the paper feed direction. • In standard mode, the following commands use x or y, regardless character rotation (upside-down or 90°clockwise rotation): ESC SP, ESC $, ESC\, GS L, GS W ➀ Command using x:

5-42 Commands

Page 101

[Default] [Reference]

➁ Command using y: ESC 3, ESC J • In page mode, the following commands use x or y, depending on character orientation: ➀ When the print starting position is set to the upper left or lower right of the printing area using ESC T (data is buffered in the direction perpendicular to the paper feed direction): Command using x: ESC SP, ESC $, ESCW, ESC\ Command using y: ESC 3, ESC J, ESC W, GS $, GS\ ➁ When the print starting position is set to the upper right or lower left of the printing area usinhg ESC T (data is buffered in the paper feed direction): Command using x: ESC 3, ESC J , ESC W, GS $, GS\ Command using y: ESC SP, ESC $, ESC W, ESC\ • This command does not affect the previously specified values. • The calculated result from combining this command with others is turncated to the minimum value of the mechanical pitch or an exact multiple of that value. x = 180, y = 360 ESC SP, ESC $, ESC 3, ESC J, ESC W, ESC \, GS $, GS L, GS W, GS \

➀ GS V m ➁ GS V m n [Name] [Format]

Select cut mode and cut paper 1ASCII GS V m Hex 1D 56 m Decimal 29 86 m 2ASCII GS V m n Hex 1D 56 m n Decimal 29 86 m n [Range] 10 ≤ m ≤ 1, 48 ≤ m ≤ 49 265 ≤ m ≤ 66, 0 ≤ n ≤ 255 [Description] Selects a mode for cutting paper and executes paper cutting. The value of m selects the mode as follows: m

Print mode

0, 48

Full cut (cutting completely)

1, 49

Partial cut (one point left uncut)

65

Feeds paper for (cutting position + [n ✕ (vertical motion unit)]), and cuts the paper completely.

66

Feeds paper for (cutting position + [n✕ (vertical motion unit)]), and cuts the paper partially(one point left uncut).

[Note for ➀ and ➁]

Commands 5-43

Page 102

• In standard mode, this command is effective only at the beginning of a line. [Note for ➀] • When m = 1 or 49, this command operates the same way as ESC i. [Notes for ➁] • When n= 0, the printer feeds the paper to the cutting position and cuts it. • When n ≠ 0, the printer feeds the paper to (cutting position + [n ✕ vertical motion unit]) and cuts it. • The horizontal and vertical motion unit are specified by GS P. • The paper feed amount is calculated using the vertical motion unit (y). However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the mininmum horizontal movement amount. [Reference] ESC i

GS W nL nH [Name] [Format]

Set printing area width ASCII GS W nL nH Hex 1D 57 nL nH Decimal 29 87 nL nH [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the printing area width to the area specified by nL and nH. • The printing area width is set to [(nL + nH ✕ 256) ✕ horizontal motion unit] inches. Printable area

Left margin

[Notes]

Printing area width

• This command is effective only at the beginning of a line. • In page mode, the printer performs only internal flag operations. • This command does not affect the printing in page mode. • The maximum possible setting for the print range is the same as the maximum printable area in the horizontal position. Settings exceeding the maximum setting are rounded down to the maximum setting. • The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical motion unit does not affect the current printing area width. • The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount.

5-44 Commands

Page 103

• If the width set for the printing area is less than the width of one character, when the character data is developed, the following processing is performed: ➀ The set printing area width is extended to the right to accommodate one character. Printable area

A Extended to right Left margin Printing area width set by nL and nH

➁ If the printing area width cannot be extended sufficiently, the left margin is reduced to accommodate one character. Printable area

A Left margin

[Default] [Reference]

➁Reduce left margin

➀Extended to right

• When developing the bit image for a downloaded bit image, the following processes are performed if the width of the printing area is less than the width required by the data sent with the ESC ✻ or GS / command: ➀ The printing area width is extended to the right to accommodate the data. ➁ If the printing area is still insufficient at ➀, the left margin is reduced to accommodate the data. Thermal paper mode: nL = 128, nH = 1 Thermal label mode: nL = 112, nH = 2 GSL, GS P

GS \ nL nH [Name] [Format]

Set relative vertical print position in page mode ASCII GS \ nL nH Hex 1D 5C nL nH Decimal 29 92 nL nH [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the relative vertical print starting position from the current position in page mode.

Commands 5-45

Page 104

[Notes]

[Reference]

• This command sets the distance from the current position to [(nL + nH ✕ 256) ✕ vertical or horizontal motion unit] inches. • This command is ignored Unless page mode is selected. • When pitch N is specified to the movement downward: nL + nH ✕ 256 = N When pitch N is specified to the movement upward (the negative direction), use the complement of 65536. When pitch N is specified to the movement upward: nL + nH ✕ 256 = 65536 - N • Any setting that exceeds the specified printing area is ignored. • The reference position is that at which data development starts. • This command function as follows, depending on the print starting position set by ESC T: 1 When the starting position is set to the upper left or lower left of the printing area, the vertical motion unit (y) is used. 2 When the starting position is set to the upper right or lower left of the printing area, the horizontal motion unit (x) is used. • The horizontal and vertical motion unit are specifide by GS P. • The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount. ESC $,ESC T, ESC W, ESC \, GS $, GS P

GS ^ r t m [Name] [Format]

Execute macro ASCII GS ^ rtm Hex 1D 5E rtm Decimal 29 94 rtm [Range] 0 ≤ r ≤ 255 0 ≤ t ≤ 255 0≤m≤1 [Description] Executes a macro. • r specifies the number of times to execute the macro. • t specifies the waiting time for executing the macro. The waiting time is t ✕ 100 msec for every macro execution. • m specifies macro executing mode. • When the LSB m = 0: The macro executes r times continuously at the interval specified by t. • When the LSB of m = 1:

5-46 Commands

Page 105

[Notes]

[Reference]

After waiting for the period specified by t, the LED indicator blinks and the printer waits for the PAPER FEED button to be pressed. After the button is pressed, the printer executes the macro once. The printer repeats the operation r times. • If this command is received while a macro is being defined, the macro definition is aborted and the definition is cleared. • If the macro is not defined or if r is 0, nothing is executed. • When the macro is executed by pressing the PAPER FEED button (m = 1), paper can not be fed by using the PAPER FEED button. GS :

GS a n [Name] [Format]

Enable/Disable Automatic Status Back ASCII GS a n Hex 1D 61 n Decimal 29 97 n [Range] 0 ≤ n ≤ 255 [Description] Enables or disables ASB and specifies the status items to include, using n as follows: Bit

Off/On

Hex

Decimal

Status for ASB

Off

00

0

Drawer kick-out connector pin 3 status disabled.

On

01

1

Drawer kick-out connector pin 3 status enabled.

Off

00

0

Off-line status disabled.

On

02

2

Off-line status enabled.

Off

00

0

Error status disabled.

On

04

4

Error status enabled.

Off

00

0

Paper roll sensor status disabled.

On

08

8

Paper roll sensor status enabled.

4

-

-

-

Undefined.

5

-

-

-

Undefined.

6

-

-

-

Undefined.

7

-

-

-

Undefined.

0

1

2

3

Commands 5-47

Page 106

[Notes]

• If any of the status items in the table above are enabled, the printer transmits the status when this command is executed. The printer automatically transmits the status whenever the enabled status item changes. The disabled status items may change, in this case, because each status transmission represents the current status. • If all status items are disabled, the ASB function is also disabled. • The following four status bytes are transmitted without confirming whether the host is ready to receive data. The four status bytes must be consecutive, except for the XOFF code. • Since this command is executed sfter the data is processed in the receive buffer, there may be a time lag between data reception and status transmission. • When the printer is disabled by ESC =, this command is disabled but ASB is not disabled. • When using DLE EOT, ESC u, ESC v, GS I, or GS r, the status transmitted by these commands and ASB status must be differentiated. • The status to be transmitted are as follows: First byte (printer information) Bit

Off/On

Hex

Decimal

Status for ASB

0

Off

00

0

Not used. Fixed to Off.

1

Off

00

0

Not used. Fixed to Off.

Off

00

0

Drawer kick-out connector pin 3 is LOW

On

04

4

Drawer kick-out connector pin 3 is HIGH.

Off

00

0

On-line.

On

08

8

Off-line.

On

10

16

Not used. Fixed to On.

Off

00

0

Cover is closed.

On

20

32

Cover is open.

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.

Off

00

0

Not used. Fixed to Off.

2

3 4 5

6

7

5-48 Commands

Page 107

Second byte (error information) Bit

Off/On

Hex

Decimal

Status for ASB

0

-

-

-

Undefined.

1

-

-

-

Undefined.

2

-

-

-

Undefined.

Off

00

0

No auto-cutter error.

On

08

8

Auto-cutter error.

Off

00

0

Not used. Fixed to Off.

Off

00

0

No unrecoverable error.

On

20

32

Unrecoverable error.

Off

00

0

No automatically recoverable error.

On

40

64

Automatically recoverable error occurs.

Off

00

0

Not used. Fixed to Off.

3 4 5

6 7

Third byte (paper sensor information) Bi t

Off/On

Hex

Decimal

Status for ASB

0

Off

00

0

Paper roll near-end sensor. Paper adequate

1

On

03

3

Paper roll near-end sensor detects a paper nearend.

2

Off

00

0

Paper roll end sensor. Paper present.

3

On

0C

12

Paper roll end sensor detects a paper end.

4

Off

00

0

Not used. Fixed to Off.

5

-

-

-

Undefined.

6

-

-

-

Undefined.

7

Off

00

0

Not used. Fixed to Off.

Commands 5-49

Page 108

Forth byte (paper sensor information) Bit

Off/On

Hex

Decimal

Status for ASB

0

-

-

-

Undefined.

1

-

-

-

Undefined.

2

-

-

-

Undefined.

3

-

-

-

Undefined.

4

Off

00

0

Not used. Fixed to Off.

5

-

-

-

Undefined.

6

-

-

-

Undefined.

7

Off

00

0

Not used. Fixed to Off.

[Default]

[Reference] n = 0 when DIP SW 2-1 (serial interface) or DIP SW 1-3 (parallel interface) is off, n = 2 when DIP SW 2-1 (serial interface) or DIP SW 13 (parallel interface) is on. DLE EOT, ESC u, ESC v, GS r

GS b n [Name] [Format]

Turns smoothing mode on/off ASCII GS b n Hex 1D 62 n Decimal 29 98 n [Range] 0 ≤ n ≤ 255 [Description] Turns smoothing mode on or off. When LSB of n is 0, smoothing mode is turned off. When LSB of n is 1, smoothing mode is turned on. [Notes] • Smoothing mode is available for built-in, user-defined characters. • Even if smoothing mode is turned on, smoothing is not performed when either of character width or character height id the normal size. [Default] n=0 [Reference] ESC !, GS !

GS f n [Name] [Format]

[Range]

5-50 Commands

Select font for Human Readable Interpretation (HRI) characters ASCII GS f n Hex 1D 66 n Decimal 29 102 n 0 ≤ n ≤ 1, 48 ≤ n ≤ 49