Select your printer model
Parameters are refined by the selected printer.
- EU-m30
- TM-J2000
- TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30III
- TM-m30III-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-T100
- TM-U220
- TM-U220II
- TM-U230
GS ( E
[Name]
Set 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]
|
[Description]
Controls the user setting modes.
-
Function code fn specifies the function.
-
fnFunction No.Function name1Change into the user setting mode2End the user setting mode session3Change the memory switch4Transmit the settings of the memory switch5Set the customized setting values6Transmit the customized setting values7Copy the user-defined page8Define the data (column format) for the character code page9Define the data (raster format) for the character code page10Delete the data for the character code page11Set the communication item for the serial interface12Transmit the communication item for the serial interface13Set the configuration item for the Bluetooth interface14Transmit the configuration item for the Bluetooth interface15Set conditions for USB interface communication16Transmit conditions for USB interface communication48Delete the paper layout49Set the paper layout50Transmit the paper layout information99Set internal buzzer patterns100Transmit internal buzzer patterns
-
pL and pH specify the number of bytes following fn as (pL + pH × 256).
-
The [parameters] are described in each function.
[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>.
-
Execute <Function 2> of this command after making the setting. The setting value is effective after executing the software reset of <Function 2>.
-
Note 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 does not process Real-time commands.
-
Even if the ASB function is enabled, the printer does not transmit the ASB status.
-
-
Functions 4, 6, 12, 14, 16, 50 and 100, the functions used to transmit the current settings to the host, can be used at any time, without changing into the user setting mode.
-
Data is written to the non-volatile memory by Functions 3, 5, 7, 11, 13, 15, 48, 49 and 99. Note the following when using those functions:
-
-
Do not turn off the power or reset the printer from the interface when the relevant functions are being executed.
-
The printer might be BUSY. In this case, be sure not to transmit a command from the host because the printer will not receive the data.
-
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: GS ( A (part of functions), GS ( C (part of functions), GS ( E (part of functions), GS ( L / GS 8 L (part of functions), GS ( M (part of functions), GS g 0, FS g 1 [obsolete command] , FS q [obsolete command] .
-
[Notes for transmission process]
-
Data is transmitted by Functions 1, 4, 6, 12, 14, 16, 50, 98 and 100. When you use these functions, obey the following rules.
-
-
When the host PC transmits the function data, transmit the next data after receiving the corresponding data from the printer.
-
With a serial interface printer, be sure to use this function when the host can receive data.
-
With a parallel interface printer, data transmitted (excluding ASB status) with this command ("Header to NUL") is temporarily stored in the printer transmit buffer, as with other data. When the host goes into reverse mode, the printer then transmits the data sequentially from the beginning of the transmit buffer. Transmit 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.
-
When communication with the printer uses XON/XOFF control with serial interface, the XOFF code may interrupt the "Header to NUL" data string.
-
The transmission information for each function can be identified to other transmission data according to specific data of the transmission data block. When the header transmitted by the printer is [hex = 37h / Decimal = 55], treat NUL [hex = 00h / Decimal = 0] as a data group and identify it according to the combination of the header and the identifier.
-
[Notes for ESC/POS Handshaking Protocol]
-
Use ESC/POS Handshaking Protocol below for Functions 14 (a=65) .
-
StepHost processPrinter process1Send GS ( E <Function 14> .Start processing of Function 14.2Receive data from printer.Send device data.3Send response code. (∗1)Continue processing (∗2) (∗3) according to response.
-
(∗1) Response code
-
ASCIIHexDecimalRequestACK066Send next data.NAK1521Resend previously sent data.CAN1824Cancel send process.
-
(∗2) Processing according to response (unsent data exists, identified by send data set "Identification status")
-
Response codeProcessingACKStart send processing for next data.NAKResend previously sent data.CANEnd processing for this command.
-
(∗3) Processing according to response (no unsent data, identified by send data set "Identification status")
-
Response codeProcessingACK, CANEnd processing for this command.NAKResend previously sent data.
-
Processing the codes except for ACK, NAK, and CAN performs the same processing as CAN.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
ESC/POS® includes patented or patent pending commands. The contents must not be disclosed
to third parties.
- Introduction
- Command Lists
- Commands in Code Order
- Applicable printers
- Command List by Model
- EU-m30
- TM-J2000, TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T100
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-U220
- TM-U220II
- TM-U230
- Obsolete Commands
- Commands Arranged by Function
- Print Commands
- Line Spacing Commands
- Character Commands
- Printing Paper Commands
- Label and black mark control
- Print Position Commands
- Paper Sensor Commands
- Mechanism Control Commands
- Bit Image Commands
- Bit Image
- GS ( L / GS 8 L
- GS D
- Graphics
- NV Graphics
- Download Graphics
- Panel Button Commands
- Status Commands
- Barcode Commands
- Two-dimensional Code Commands
- GS ( k
- PDF417
- QR Code
- MaxiCode
- 2-dimensional GS1 DataBar
- Composite Symbology
- Aztec Code
- DataMatrix
- Macro Function Commands
- Kanji Commands
- Miscellaneous Commands
- DLE ENQ
- DLE DC4 <fn=1>
- DLE DC4 <fn=2>
- DLE DC4 <fn=3>
- DLE DC4 <fn=7>
- DLE DC4 <fn=8>
- ESC ( Y
- ESC =
- ESC @
- ESC L
- ESC S
- ESC p
- GS ( A
- GS ( D
- GS I
- GS P
- GS g 0
- GS g 2
- GS z 0
- Response or status transmission
- Print control methods
- Beeper tone control
- Graphics drawing
- Receipt enhancement control
- Page mode control
- Customize Commands
- User setup
- GS ( E
- GS ( E <fn=1>
- GS ( E <fn=2>
- GS ( E <fn=3>
- GS ( E <fn=4>
- GS ( E <fn=5>
- GS ( E <fn=6>
- GS ( E <fn=7>
- GS ( E <fn=8>
- GS ( E <fn=9>
- GS ( E <fn=10>
- GS ( E <fn=11>
- GS ( E <fn=12>
- GS ( E <fn=13>
- GS ( E <fn=14>
- GS ( E <fn=15>
- GS ( E <fn=16>
- GS ( E <fn=48>
- GS ( E <fn=49>
- GS ( E <fn=50>
- GS ( E <fn=51>
- GS ( E <fn=52>
- GS ( E <fn=99>
- GS ( E <fn=100>
- Printer customization
- NV user memory
- User setup
- Counter Printing Commands
- Programming Examples
- Appendixes