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 10 of 14

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

Pages 69 to 78 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 69

ESC % n [Name] [Format]

Select/cancel user-defined character set ASCII ESC % n Hex 1B 25 n Decimal 27 37 n [Range] 0 ≤ n ≤ 255 [Description] Selects or cancels the user-defined character set. • When the Least Significant Bit (LSB) is 0, the user-defined character set is canceled. • When the LSB is 1, the user-defined character set is selected. [Notes] • When the user-defined character set is canceled, the internal character set is automatically selected. [Default] n=0 [Reference] ESC &, ESC ?

ESC & y c1 c2 [x1 d1...dy ✕ x1]...[xk d1...dy ✕ xk] [Name] [Format]

Define user-defined characters ASCII ESC & y c1 c2 [x1 d1...dy ✕ x1]...[xk d1...dy ✕ xk] Hex 1B 26 y c1 c2 [x1 d1...dy ✕ x1]...[xk d1...dy ✕ xk] Decimal 27 38 y c1 c2 [x1 d1...dy ✕ x1]...[xk d1...dy ✕ xk] [Range] y=3 32 ≤ c1 ≤ c2 ≤ 126 0 ≤ x ≤ 12 Font A (12 ✕ 24) 0 ≤ x ≤ 9 Font B (9 ✕ 24 ) 0 ≤ d1 ... dy ✕ xk ≤ 255 k=c2-c1+1 [Description] Defines user-defined characters. • y specifies the number of bytes in the vertical direction. • c1 specifies the beginning character code for the definition, and c2 specifies the final code. • x specifies the number of dots in the horizontal direction. • d is the dot data for the characters. The dot pattern is in the horizontal direction from the left side. Any remaining dots on the right side are blank. • The allowable character code range is from ASCII code 20H(32) to 7EH(126) (95 characters). • The data to define a user-defined character is (y x x) bytes. • Set a corresponding bit to 1 to print a dot or 0 to not print a dot. [Notes] • It is possible to define multiple characters for consecutive character codes. If only one character is desired, use c1 = c2 . • This command can define different user-defined character patterns by each fonts. To select a font, use ESC !

Commands 5-11

Page 70

[Default] [Reference] [Example]

• A user-defined character and a downloaded bit image cannot be defined simultaneously. When this command is executed, the downloaded bit image is cleared. • The user-defined character definition is cleared when: Esc@ is executed. GS ✽ is executed. ESC ? is executed. The printer is reset or the power is turnde off. The internal character set ESC %, ESC ? • When font A is selected.

12 dots d1 d4 d7 d 34

MSB d 35 d2 d5 24 dots d 36 d3 d6

LSB d1= <0F>H d4 = <30>H d7 = <40>H.... d2 = <03>H d5 = <80>H d8 = <40>H.... d3 = <00>H d6 = <00>H d9 = <20>H....

• When font B is selected. 9 dots d1 d4 d7 d2 d5 24 dots d3 d6 d 25

MSB d 26 d 27

LSB d1 = <03>H d4 = <01>H d7 = <02>H.... d2 = <FF>H d5 = <00>H d8 = <00>H.... d3 = <FF>H d6 = <20>H d9 = <10>H....

5-12 Commands

Page 71

ESC ✽ m nL n H [d]k [Name] [Format]

Select bit-image mode ✽ ASCII ESC m nL nH [d]k Hex 1B 2A m nL nH [d]k Decimal 27 42 m nL nH [d]k [Range] m = 0, 1, 32, 33 0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤ d ≤ 255 [Description] Selects a bit-image mode using m for the number of dots specified by nL and nH, as follows: Vertical Direction

Horizontal Direction (*1)

m

Mode

Number of Dots

Dot Density

Dot Density

Number of Data (K)

0

8-dot single-density

8

60 DPI

90 DPI nL + nH ✕ 256

1

8-dot double-density

8

60 DPI

180 DPI nL + nH ✕ 256

32

24-dot single-density

24

180 DPI

90 DPI

(nL + nH ✕ 256 )✕ 3

33

24-dot double-density

24

180 DPI

180 DPI

(nL + nH ✕ 256 )✕ 3

[Notes]

• The nL and nH indicate the number of dots of the bit image in the horizontal direction. The number of dots is calculated by nL + nH ✕ 256. • If the bit-image data input exceeds the number of dots to be printed on a line, the excess data is ignored. • d indicates the bit-image data. Set a corresponding bit to 1 to print a dot or to 0 to not print a dot. • If the values of m is out of the specified range, nL and data following are processed as normal data. • If the width of the printing area set by GS L and GS W less than the width required by the data sent with the ESC ✽ command, the following will be performed on the line in question (but the printing cannot exceed the maximum printable area): ➀ The width of the printing area is extended to the right to accommodate the amount of data. ➁ If step ➀ does not provide sufficient width for the data, the left margin is reduced to accommodate the data. For each bit of data in single-density mode, the printer prints two dots: for each bit of data in double-density mode, the printer prints one dot. This must be considered in calculating the amount of data that can be printed in one line.

Commands 5-13

Page 72

• After printing a bit image, the printer returns to normal data processing mode. • This command is not affected by print modes (emphasized, doublestrike, and underline, etc.), except upside-down mode.

5-14 Commands

Page 73

• The relationship between the image data and the dots to be printed is as follows: Bit-image data 8-dot bit image d1 d2 d3

MSB d1

Bit-image data d2 d3

Print data ❏ = 1 dot

LSB

Print data

24-dot bit image

Bit-image data d1 d2d3 d4d5d6 d7d8 d9

MSB d1 d2 d3

Bit-image data Print data ❏ = 1 dot

LSB

Single density

Double density

Commands 5-15

Page 74

ESC - n [Name] [Format]

Turn underline mode on/off ASCII ESC n Hex 1B 2D n Decimal 27 45 n [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Description] Turns underline mode on or off, based on the following values of n. 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)

[Notes]

[Default] [Reference]

• The printer can underline all characters (including right-side character spacing), but cannot underline the space set by HT. • The printer cannot underline 90° clockwise rotated characters and white/black inverted characters. • When underline mode id turned off by setting the value of n to 0 or 48, the following data is not underlined, and the underline thickness set before the mode is turned off does not change. The default underline thickness is 1 dot. • Changing the character size does not affect the current underline thickness. • Underline mode can also be turned on or off by using ESC !. Note, however, that the last received command is effective. n=0 ESC !

ESC 2 [Name] [Format]

Select 1/6-inch line spacing ASCII ESC 2 Hex 1B 32 Decimal 27 50 [Description] Selects 1/6-inch line spacing. [Note] The line spacing can be set independently in standard mode and in page mode. [Reference] ESC 3

ESC 3 n [Name] [Format]

5-16 Commands

Set line spacing ASCII ESC Hex 1B

3 33 n n

Page 75

Decimal 27 51 n [Range] 0 ≤ n ≤ 255 [Description] Sets the line spacing to [n x vertical or horizontal motion unit] inches. [Notes] • The line spacing can be set independently in standard mode and in page mode. • The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical motion unit does not affect the current line spacing. • The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum vertical movement amout, and it must be in even units of the minimum vertical movement amount. • In standard mode, the vertical motion unit (y) is used. • In page mode, this command functions as follows, depending on the starting position of the printable area: ➀ When the starting position is set to the upper left or lower right of the printable area using ESC T, the vertical motion unit (y) is used. ➁ When the starting position is set to the upper right or lower left of the print able area using ESC T, the horizontal motion unit (x) is used. • The maximum line spacing is 40 inches. When the setting value exceeds the maximum, it is converted to the maximum automatically. [Default] n = 60 (1/6 inch) [Reference] ESC 2, GS P

ESC = n [Name] [Format]

Set peripheral device ASCII ESC = n Hex 1B 3D n Decimal 27 61 n [Range] 0 ≤ n ≤ 255 [Description] Selects the device to which the host computer sends data, using n as follows: • Each bit of n is used as follows: Bit

Off/On

Hex

Decimal

Function

0

Off

00

0

Printer disabled.

On

01

1

Printer enabled.

-

-

-

Undefined.

1

Commands 5-17

Page 76

Bit

Off/On

Hex

Decimal

Function

2

-

-

-

Undefined.

3

-

-

-

Undefined.

4

-

-

-

Undefined.

5

-

-

-

Undefined.

6

-

-

-

Undefined.

7

-

-

-

Undefined.

[Notes]

[Default] [Reference]

• When the printer is disabled, it ignores all data except for errorrecovery commands (DLE ENQ 1, DLE ENQ 2) until it is enabled by this command. n=1 DLE ENQ

ESC ? n [Name] [Format]

Cancel user-defined characters ASCII ESC ? n Hex 1B 3F n Decimal 27 63 n [Range] 32 ≤ n ≤ 126 [Description] Cancels user-defined characters. [Notes] • This command cancels the pattern defined for the character code specified by n. After the user-defined characters is canceled, the corresponding pattern for the internal character is printed. • This command deletes the pattern defined for the specified code in the font selected by ESC ! • If a user-defined character has not been defined for the specified character code, the printer ignores this command. [Reference] ESC &, ESC %

ESC @ [Name] [Format]

Initialize printer ASCII ESC @ Hex 1B 40 Decimal 27 64 [Description] Clears the data in the print buffer and resets the printer mode 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.

5-18 Commands

Page 77

• The macro definition is not cleared.

ESC D [n] k NUL [Name] [Format]

Set horizontal tab positions ASCII ESC D [n] k NUL Hex 1B 44 [n] k 00 Decimal 27 68 [n] k 0 [Range] 1 ≤ n ≤ 255 0 ≤ k ≤ 32 [Description] Sets horizontal tab positions. • n specifies the column number for setting a horizontal tab position from the beginning of the line. • k indicates the total 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 set with twice the width of normal characters. • This command cancels the previous horizontal tab settings. • When setting n = 8, the print position is moved to column 9 by sending HT. • Up to 32 tab positions (k = 32) can be set. Data exceeding 32 tab positions is processed as normal data. • Transmit [n]k in ascending order and place a NUL code 0 at the end. • When [n]k is less than or equal to the preceding value [n]k-1, tab setting is finished and the following data is processed as normal data. • ESC D NUL cancels all horizontal tab positions. • When [n]k exceeds the number of characters printable on one line, the tab position set is equal to the maximum printable column plus 1. • The previously specified horizontal tab positions do not change, even if the character width changes. [Default] The default tab positions are at intervals of 8 characters (columns 9, 17, 25,...) for the font A (12 × 24). [Reference] HT

ESC E n [Name] [Format]

Turn emphasized mode on/off ASCII ESC E n Hex 1B 45 n Decimal 27 69 n [Range] 0 ≤ n ≤ 255 [Description] Turns emphasized mode on or off.

Commands 5-19

Page 78

[Notes]

[Default] [Reference]

• When the LSB of n is 0, emphasized mode is turned off. • When the LSB of n is 1, emphasized mode is turned on. • Bit image and downloaded bit image , and bar code cannot be emphasized. • ESC ! also turns on and off emphasized mode. However, the last received command is effective. n=0 ESC !

ESC G n [Name] [Format]

Turn on/off double-strike mode ASCII ESC G n Hex 1B 47 n Decimal 27 71 n [Range] 0 ≤ n ≤ 255 [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. [Notes] • Printer output is the same in double-strike mode and in emphasized mode. • Double-strike mode can not be used for the bit image, downloaded bit image, and bar code. [Default] n=0 [Reference] ESC E

ESC J n [Name] [Format]

Print and feed paper ASCII ESC J n Hex 1B 4A n Decimal 27 74 n [Range] 0 ≤ n ≤ 255 [Description] Prints the data in the print buffer and feeds the paper [n x vertical or horizontal motion unit] inches. [Notes] • After printing is completed, this command sets the print starting position to the beginning of the line. • The paper feed amount set by this command does not affect the values set by ESC 2 or ESC 3. • The horizontal and vertical motion unit are specified by GS P. • The GS P command can change the vertical (and horizontal) motion unit. However, the value cannot be less than the minimum vertical movement amount, and it must be in even units of the minimun vertical movement amount.

5-20 Commands