Specifications

TH230/TH230+ Programmers Guide
159
GS ^
Function: Execute macro
Code ASCII: GS ^ r t m
Code HEX:
0x1D 0x5E r t m
Range: 1 ≤ r ≤ 255
0 ≤ t ≤ 255
m = 0, 1
Default: None
Description: Executes a macro r times while waiting t × 100 msec for each macro
execution, using the mode specified by m as follows:
• When m = 0, the macro executes r times continuously at the interval
specified by t.
• When m = 1, the printer waits for the period specified by t, blinks the
Paper LED, and then waits for the Paper feed button to be pressed. After this
button is pressed, the printer executes the macro once. The printer repeats
this operation r times.
Notes:
Macro function is useful to print the same data repeatedly. To define a
macro definition, send GS : just before and after the data desired to be
repeated. And then execute macro by using GS ^ to print the same data
repeatedly. Macro function eliminates the need for sending all the print
data every time.
If a macro is not defined or if r is 0, this command is ignored.
Even if the panel buttons are disabled by ESC c 5, paper feed button will
be enabled temporarily while printer is waiting for the button to be
pressed (m = 1). However, paper can not be fed if the paper feed button
is pressed.
If this command is processed while a macro is being defined, the printer
cancels macro definition and clears the definition.
This command can not be contained in the macro. Do not use this
command when the macro is defined.
When m = 1, the Paper LED indicator blinks during a macro waiting state.
See GS : for a state-machine!
If the printer is in Sleep Mode the first wait time is extended by the
wake-up time for state “Sleep Mode 1” and (if necessary) the power
wake-up time for state “Printing Mode”.