The text of a manual · part 12 of 14
TM-T85/T85P Thermal Line Printer Operator's Manual: Chapter 5 Commands, pages 89 to 98
Pages 89 to 98 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 89
[Notes]
[Default]
• When the panel buttons are disabled, none of them are usable when the printer cover is closed. • In this printer, the panel button is the PAPER FEED button. • When the printer cover is open, the PAPER FEED button is enabled regardless of the settings of this command. • In the macro ready mode, the PAPER FEED button is enabled regardless of the settings of this command; however, the paper can not be fed by using this button. n=0
ESC d n Print and feed n lines ASCII ESC d n Hex 1B 64 n Decimal 27 100 n [Range] 0 ≤ n ≤ 255 [Description] Prints the data in the print buffer and feeds n lines. [Notes] • This command sets the print starting position to the beginning of the line. • This command does not affect the line spacing set by ESC 2 or ESC 3. • The maximum paper feed amount is 40 inches. If the paper feed amount (nx line spacing) of more than 40 inches is specified, the printer feeds the paper only 40 inches.
[Name] [Format]
ESC i [Name] [Format]
Execute partial cut (one point left uncut) ASCII ESC i Hex 1B 69 Decimal 27 105 [Description] Executes a partial cut with one point left uncut. [Notes] • In standard mode, this command is enabled only when input at the beginning of a line. • This command and GS V 1 cut paper in the same way. [Reference] GS V
ESC p m t1 t2 [Name] [Format]
[Range]
Generate pulse ASCII ESC Hex 1B Decimal 27 m = 0, 1, 48, 49 p 70 112 m t1 t2 m t1 t2 m t1 t2
Commands 5-31
Page 90
0 ≤ t1 ≤ t2 ≤ 255 [Description] Outputs the pulse specified by t1 and t2 to connector pin m as follows: m
Connector pin
0, 48
Drawer kick-out connector pin 2
1, 49
Drawer kick-out connector pin 5
[Notes]
• The pulse ON time is [t1 ✕ 2 ms] and the OFF time is [t2 ✕ 2 ms]. • If t2 < t1, the OFF time is [t1 ✕ 2 ms]
ESC t n [Name] [Format]
Select character code table ASCII ESC t n Hex 1B 74 n Decimal 27 116 n [Range] 0 ≤ n ≤ 5, n = 255 [Description] Selects a page n from the character code table. n
Page
0
0 (PC437 [U.S.A., Standard Europe])
1
1 (Katakana)
2
2 (PC850 [Multilingual])
3
3 (PC860 [Portuguese])
4
4 (PC863 [Canadian-French])
5
5 (PC865 [Nordic])
255
Space page
[Default] [Reference] n=0 Character Code Tables
ESC u n [Name] [Format]
[Range]
5-32 Commands
Transmit peripheral device status ASCII ESC u n Hex 1B 75 n Decimal 27 117 n n = 0, 48
Page 91
[Description] Transmits the status of connector pin n, using n as follows: n
Connector pin
0, 48
Drawer kick-out connector pin 3
[Notes]
Bit
• 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 keeps waiting until the host is ready. When XON/XOFF control is selected, the printer transmits only 1 byte without checking the DSR signal. • This command is executed when the data is processed in the receive buffer. Therefore, there may be a time lag between receiving the command and transmitting the status, depending on the receive buffer status. • When Auto Status Back (ASB) is enabled using GS a, the status transmitted by ESC u and the ASB status must be differentiated. • When the connector is not used, the value of bit 0 is always 1. • The status to be transmitted is shown in the table below. Off/On
Hex
Decimal
Function
Off
00
0
Level of pin 3 is Low.
On
01
1
Level of pin 3 is High.
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.
0
[Reference]
DLE EOT, GS a, GS r
ESC v [Name] [Format]
Transmit paper sensor status ASCII ESC V Hex 1B 76 Decimal 27 118 [Description] Transmits the current paper sensor status.
Commands 5-33
Page 92
[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 checking the DSR signal. • This command is executed when the data is processed in the receive buffer. Therefore, there may be a time lag between receiving the command and transmitting the status, depending on the receive buffer status. • When Auto Status Back (ASB) is enabled using GS a, the status transmitted by ESC v and the ASB status must be differentiated. • The status to be transmitted is shown in the table below:
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Paper roll near-end sensor. Paper is present.
1
On
03
3
Paper roll near-end sensor. Paper is not present.
2
Off
00
0
Paper roll end sensor. Paper is present.
3
On
(0C)
(12)
Paper roll end sensor. Paper is not present.
4
Off
00
0
Not used. Fixed to Off.
5
-
-
-
Undefined.
6
-
-
-
Undefined.
7
Off
00
0
Not used. Fixed to Off.
Bits 2and 3:
[Reference]
When the paper roll end sensor detects a paper end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 do not transmit the status of paper end. DLE EOT, GS a, GS r
ESC { n [Name] [Format]
Turns on/off upside-down printing mode ASCII ESC { n Hex 1B 7B n Decimal 27 123 n [Range] 0 ≤ n ≤ 255 [Description] Turns upside-down printing mode on or off.
5-34 Commands
Page 93
[Notes]
[Default] [Example]
• 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. • This command is enabled only when input at the beginning of a line. • When this command is input in page mode, the printer performs only internal flag operations. • This command does not affect printing in page mode. • In upside-down printing mode, the printer rotates the line to be printed by 180° and then prints it. n=0
When upside-down printing mode is off
When upside-down printing mode is on
A B C D E F G
A B C D E F G
0 1 2 3 4 5 6
0 1 2 3 4 5 6 Paper feed direction
GS ! n [Name] [Format]
Select character size ASCII GS ! n Hex 1D 21 n Decimal 29 33 n [Range] 0 ≤ n ≤ 255 (1 ≤ vertical number of times ≤ 8,1≤horizontal number of times ≤8) [Description] Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7, as follows: Bit
Off/On
Hex
Decimal
Function
0
Character height selection. See Table 2.
1 2 3 4
Character width selection. See Table 1.
5 6 7
Commands 5-35
Page 94
Table 1 Character Width Selection
Table 2 Character Height Selection
Hex
Decimal
Width
Hex
Decimal
Height
00
0
1 (normal)
00
0
1 (normal)
10
16
2 (double-width)
01
1
2 (double-hight)
20
32
3
02
2
3
30
48
4
03
3
4
40
64
5
04
4
5
50
80
6
05
5
6
60
96
7
06
6
7
70
112
8
07
7
8
[Notes]
[Default] [Reference]
• This command is effective for all characters (except for HRI characters). • It n is outside of the defined range, this command is ignored. • In standard mode, the vertical derection is the paper feed direction, and the horizontal derection is perpendicular to the paper feed direction. However, when character orientation changes in 90° clockwise-rotation mode, the relationship between vertical and horizontal directions is reversed. • In page mode, vertical and horizontal directions are based on the character orientation. • When characters are enlarged with different sizes on one line, all the characters on the line are aligned at the baseline. • The ESC ! command can also turn double-width and doubleheight modes on or off. However, the setting of the last received command is effective. n=0 ESC !
G S $ nL nH [Name] [Format]
Set absolute vertical print position in page mode ASCII GS $ nL nH Hex 1D 24 nL nH Decimal 29 36 nL nH [Range] 0 ≤ nL, nH ≤ 255 [Description] • Sets the absolute vertical print starting position for buffer character data in page mode. • This command sets the absolute print position to [(nL + nH ✕ 256) ✕ (vertical or horizontal motion unit)] inches. [Notes] • This command is effective only in page mode. • If the [(nL + nH ✕ 256) ✕ (vertical or horizontal motion unit)] exceeds the specified printing area, this command is ignored.
5-36 Commands
Page 95
‘
[Reference]
• The horizontal starting buffer position does not move. • The reference starting position is that specified by ESC T. • This command operates as follows, depending on the starting position of the printing area specified by ESC T: ➀ When the starting position is set to the upper left or lower right, this command sets the absolute position in the vertical direction. ➁ When the starting position is set to the upper right or lower left, this command sets the absolute position in the horizontal direction. • The horizontal and vertical motion unit are specified by GS P. • The GS P command can change the horizpntal 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 P, GS \,
GS ✻ x y [d] x✕y✕8 [Name] [Format]
Define downloaded bit image ✻ ASCII GS x y [d] x ✕ y ✕ 8 Hex 1D 2A x y [d] x ✕ y ✕ 8 Decimal 29 42 x y [d] x ✕ y ✕ 8 [Range] 1 ≤ x ≤ 255 1 ≤ y ≤ 48 x ✕ y ≤ 1536 0 ≤ d ≤ 255 [Description] Defines a downloaded bit image using the dots specified by x and y. • x indicates the number of dots in the horizontal direction. • y indicates the number of dots in the verticall direction. • The number of dots is x ✕ 8 in the horizontal direction and y ✕ 8 in the vertical direction. • d indicates bit-image data. Set bit to 1 to print a dot and to 0 to not print a dot. [Notes] • If x ✕ y is outside of the specified range, the printer ignores this command. • A user-defined character and a downloaded bit image cannot be defined simultaneously. When this command is executed, the user-defined character is cleared. • After a downloaded bit image is defined, it is available uutil ESC @ or ESC & is executed; the printer is reset; or the power is turned off.
Commands 5-37
Page 96
• The figure below shows the relationship between the bit-image data and dots to be defined. x ✕ 8 dots d1 dy + 1
MSB dy ✕ 2 + 1 y ✕ 8 dots LSB dy dy ✕ 2
[Reference] dx ✕ y ✕ 8
GS /
GS / m [Name] [Format]
Print downloaded bit image ASCII GS / m Hex 1D 2F m Decimal 29 47 m [Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 [Description] Prints a downloaded bit image in mode m. The modes selectable by m are as follows: m
Mode
Dot density in vertical
Dot density in horizontal
0, 48
Normal
180 DPI
180 DPI
1, 49
Double-width
180 DPI
90 DPI
2, 50
Double-height
90 DPI
180 DPI
3, 51
Quadruple
90 DPI
90 DPI
[Notes]
5-38 Commands
• This command is ignored if a downloaded bit image has not been defined. • In standard mode, this command is effective only when the no data exists in the print buffer. • This command is not affected by print modes (emphasized, double-strike, underline, or character size, white/black reverse printing), except for upsidedown mode. • If a downloaded bit image exceeds the printing area, the excess data is not printed.
Page 97
[Reference]
• 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 GS / 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 normal mode (m=0, 48) and double heigh mode (m=2, 50), the printer prints one dot: for each bit of data in double width mode (m=1, 49) and quadruple mode (m=3, 51), the printer prints two dots. GS ✽
GS : [Name] [Format]
Start/end macro definition ASCII GS : Hex 1D 3A Decimal 29 58 [Description] Starts or ends macro definition. [Notes] • Macro definition starts when this command is received during normal operation. Macro definition ends when this command is received during macro definition. • When GS ^ is received during macro definition, the priter ends macro definition and clears the definition. • Macro is not defined when the power is turned on. • The defined contents of the macro are not cleared by ESC @. Therefore, ESC @ can be included in the contents of the macro definition. • If the printer receives GS : again immediately after previously receiving GS : the printer remains in the macro undefined state. • The contents of the macro can be defined up to 2048 bytes. If the macro definition exceed 2048 bytes, excess data is not stored. • While the macro is defined, normal printing is executed. [Reference] GS ^
GS B n [Name] [Format]
Turn white/black reverse printing mode ASCII GS B n Hex 1D 42 n Decimal 29 66 n [Range] 0 ≤ n ≤ 255 [Description] Turns on or off white/black reverse printing mode. • When the LSB of n is 0, white/black reverse mode is turned off.
Commands 5-39
Page 98
[Notes]
• When the LSB of n is 1, white/black reverse mode is turned on. • In white/black reverse printing mode, print dots and non-print dots are reversed. (Characters are printed in white on a black background.) • This command is available for built-in characters and user-defined characters. • When white/black reverse printing mode is on, it also applied to character spacing set by ESC SP. • This command does not affect bit image, downloaded bit image, bar code, HRI characters, and spacing skipped by HT, ESC $, and ESC \. • This command does not affect the space between lines. • White/black reverse mode has a higher priority than underline mode. Even if underline mode is on, it is disabled (but not canceled) when white/black reverse mode is selected. [Default] n=0
GS H n [Name] [Format]
Select printing position for HRI characters ASCII GS H n Hex 1D 48 n Decimal 29 72 n [Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 [Description] Selects the printing position of HRI characters when printing a bar code. n selects the printing position as follows: 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
[Note] [Default] [Reference]
• HRI indicates Human Readable Interpretation. HRI characters are printed using the font specified by GS f. n=0 GS f, GS K
GS I n [Name] [Format]
5-40 Commands
Transmit printer ID ASCII GS Hex 1D
I 49 n n