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-T20X
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82X
  • TM-T83III
  • TM-T88IV
  • TM-T88V
  • TM-T88VI
  • TM-T88VII
  • TM-T90
  • TM-T100
  • TM-U220
  • TM-U220II
  • TM-U230

GS ( M


[Name]

Customize printer control value(s)

[Format]

ASCII
   
GS
  
(
  
M
  
pL
  
pH
  
fn
  
m
Hex
1D
28
4D
02
00
fn
m
Decimal
29
40
77
2
0
fn
m

[Description]

Customizes the printer control value(s).
  • Function code fn specifies the function.
  • fn
    Function No.
    Function name
    1, 49
    Save the setting values from the work area into the storage area
    2, 50
    Load the setting values stored in the storage area to the work area
    3, 51
    Select the setting values loaded to the work area after the initialization process
  • pL and pH specify the number of bytes following fn as (pL + pH × 256).
  • The m is described in each function.

[Notes]

  • The function of this command is determined by the function code (fn). Operation differs, depending on the functions.
  • Setting value means the values stored in the work area. They are set by commands such as line spacing, print area, or ASB function 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. See the model specific 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.
  • Storage area means non-volatile memory area that is used to accomplish the functions of this command. The values stored in the storage area are not cleared when power is turned off. The values in the storage area do not affect the printer operation.
  • A default value for each command is stored in the storage area when the printer is shipped.
  • The values stored in the storage area are loaded to the work area when GS ( M   <Function 2> is executed or when an autoload specified by GS ( M   <Function 3> is initialized. These values affect the printer's operation afterward.
  • The combination of GS ( M   <Function 1> and GS ( M   <Function 3> can change the default value of each command.
  • GS ( M   <Function 1> or GS ( M   <Function 3> processes writing in a non-volatile memory. Take the following into account when using the function.
    • 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 send 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] .
  • Note the rules below for the operating NV memory (store data / cancel data):
    • Paper feeding is disabled by the paper feed button.
    • The printer does not process Real-time commands.
    • Even if "ASB is enabled" is specified, the printer does not send ASB status.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top