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 ( E   <Function 3>


[Name]

Change the memory switch

[Format]

ASCII
   
GS
  
(
  
E
  
pL
  
pH
  
fn
  
[a1 b18 ... b11]
  
...
  
[ak nk8 ... nk1]
Hex
1D
28
45
pL
pH
03
[a1 b18 ... b11]
...
[ak nk8 ... nk1]
Decimal
29
40
69
pL
pH
3
[a1 b18 ... b11]
...
[ak nk8 ... nk1]

[Range]

(pL + pH × 256) = 10 – 65530   (However, (pL + pH × 256) = 9 × k + 1)
fn = 3
b = 48, 49, 50
k = 1 – 7281
a: different depending on the printers

[Default]

different depending on the printers

[Description]

Changes the memory switch Msw specified by a to the values specified by b.
b
Function
48
Set to OFF
49
Set to ON
50
Does not change the memory switch
Set the bit for [Reserved] to (b = 50)
  • Msw1 (a = 1) is set as follows:
  • Msw
    Function
    Setting value (b)
    48 (OFF)
    49 (ON)
    1-1
    Transmission of Power-on notice
    Disabled
    Enabled
    1-2
    Receive buffer capacity
    Large
    Small
    1-3
    Condition for BUSY
    Receive buffer full or Offline
    Receive buffer full
    1-4
    Data processing for receive error
    Replaced with "?"
    Ignored
    1-5
    Automatic line feed
    Disabled
    Enabled
    1-6
    DM-D connection
    Not connected
    Connected
    1-7
    #6 pin of RS-232
    Not used
    Used for reset signal
    1-8
    #25 pin of RS-232
    Not used
    Used for reset signal
    • [Msw1-2]: The receive buffer capacity differs, depending on the printer model.
    • [Msw1-4], [Msw1-6], [Msw1-7], [Msw1-8]: Valid only for serial interface
    • [Msw1-5]: Valid only for parallel interface
  • Msw2 (a = 2) is set as follows:
  • Msw
    Function
    Setting value (b)
    48 (OFF)
    49 (ON)
    2-1
    (Reserved)
    Fixed to ON (Changing is prohibited)
    2-2
    Autocutter function
    Disabled
    Enabled
    2-3
    Character code system for the simplified Chinese model
    GB18030
    GB2312
    2-4 – 2-8
    (Reserved)
  • Functions of Msw3 – Msw8 (a = 3 – 8) are different, depending on the printer models.

[Notes]

  • This function works only in the user setting mode.
  • The value of the memory switch is specified from bit 8 to bit 1 by b18 ... b11. When b = 50, the status of the bit applied is not changed.
  • Example:
  • Transmission data that specifies Msw1, "Transmits the Power-on notice" and does not change other settings.
    [Format]  
    ASCII
       
    GS
      
    (
      
    E
      
    pL
      
    pH
      
    fn
      
    a
      
    b8
      
    b7
      
    b6
      
    b5
      
    b4
      
    b3
      
    b2
      
    b1
    Hex
    1D
    28
    45
    0A
    00
    03
    01
    32
    32
    32
    32
    32
    32
    32
    31
    Decimal
    29
    40
    69
    10
    0
    3
    1
    50
    50
    50
    50
    50
    50
    50
    49
  • Specifies b = 50 or depends on each model for a reserved bit.
  • Memory switches set are valid until the following operations are executed. They are not initialized by power off or ESC @.
    • Execution of this function.
    • Execution of memory switch setting mode by panel operation when the power is turned on (supported by some printer models.)

[Explanation for Msw1 (a = 1)]

  • Power-on notice specified by [Msw1-1]:
  • Power-on notice
    Hex
    Decimal
    Number of bytes
    Header
    3Bh
    59
    1 byte
    Identifier
    31h
    49
    1 byte
    NUL
    00h
    0
    1 byte
  • The printer transmits the Power-on notice for the following processes:
    • Initializing by turning on the power by switch.
    • Initializing by hardware reset.
    • Initializing by software reset, such as by transmitting Function 2.
    • Initializing after the self test.
  • With a serial interface, when communication with the printer uses XON/XOFF control, the XOFF code may interrupt the "Header to NUL" data string.
  • With a parallel interface, it is desirable for the host to be in a reverse idle state; however, because the host computer cannot always be in the reverse idle state, it is necessary to enter reverse mode regularly to watch for a power-on notice.

[Explanation for Msw2 (a = 2)]

  • The number of characters can be printed depends on the [Msw2-3] setting as shown in the following table.
  • Character code system
    Number of characters
    GB2312
    7,580
    GB18030
    28,553
 

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