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 ^


[Name]

Execute macro

[Format]

ASCII
   
GS
  
^
  
r
  
t
  
m
Hex
1D
5E
r
t
m
Decimal
29
94
r
t
m

[Range]

r = 1 – 255
t = 0 – 255
m = 0, 1

[Default]

None

[Description]

Executes the macro defined by GS :.
  • r specifies the number of executions.
  • t specifies the interval time to (t × 100 msec).
  • m specifies the execution mode.
  • m
    Mode
    Action
    0
    continuous execution
    The printer executes the macro specified times continuously at the specified interval.
    1
    execution by button
    The printer flashes the paper out LED (or Error LED) and waits for the paper feed button to be pressed, after elapsed the specified time. If the button is pressed, the printer executes the macro once. This operation is repeated the specified times.

[Notes]

  • If a macro is not defined, this command is ignored.
  • Even if the panel buttons are disabled by ESC c 5, the paper feed button will be enabled temporarily while the printer is waiting for the buttons to be pressed when execution mode by button (m = 1) is specified. However, paper cannot be fed if the paper feed button is pressed. When the paper feed button is pressed, if DLE ENQ (n = 0) is processed, the printer performs in the same way as if the button were pressed once.
  • The waiting status for the paper feed to be pressed can be checked by DLE EOT (n = 1: Printer status) or basic ASB status.
  • If this command is processed while a macro is being defined, the printer cancels macro definition and clears the definition.
  • Macro function is useful to print the same data repeatedly. To define a macro, send GS : just before and after the data desired to be repeated. And then send GS ^ to print the same data repeatedly, instead of sending the print data every time.
 

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