
Thermal Printer Technical Manual
40
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 exceeds 2048
bytes, excess data is not stored.
[Reference]
GS ^
GS ^ r t m Execute macro
[Name]
Execute macro
[Format]
ASCII
GS
^
r t m
Hex
1D
5E
r
t m
Decimal
29
94
r t m
[Range]
0 ≤ r ≤ 255
0 ≤ t ≤ 255
m = 0, 1
[Description]
Execute macro
· r specifies the number of times to execute the macro.
· t specifies the waiting time for executing the macro.
· m specifies macro executing mode.
When the LSB of m = 0,the macro executes r times continuously at the interval specified by t.
When the LSB of m = 1,after waiting for the period specified by t, the PAPER OUT LED indicators
blink and the printer waits for the FEED button to be pressed. After the button is pressed, the
printer executes the macro once. The printer repeats the operation r times.
[Notes]
The waiting time is t × 100ms for every macro execution.
If this command is received while a macro is being defined, the macro definition is aborted and
the definition is cleared.
If the macro is not defined or if r is 0, nothing is executed.
When the macro is executed (m = 1), paper always cannot be fed by using the FEED button.
[Reference]
GS :
①GS V m ②GS V m n Select cut mode and cut paper
[Name]
Select cut mode and cut paper
[Format]
①ASCII GS
V
m
Hex
1D
56
m
Decimal
29
86
m
②.ASCII
GS
V
m n
Hex
1D
56
m n
Decimal
29
86
m n
[Range]
②
[Description]
Select a mode for cutting paper and executes paper cutting. The value of m selects
the mode as follows:
m
Cut paper mode
①
0, 48
Full cut