Specifications

Programmer’s Guide Model 181 Series 180 Software Commands
TransAct Technologies
09/26/2000 Page 5 - 39
GS ^
r t m
[EI]
[Name] Execute macro
[Format] ASCII GS ^
rtm
Hex 1D 5E
rtm
Decimal 29 94
rtm
[Range] 0
r
255
0
t
255
m
=
See below
[Description] Executes a macro.
r
specifies the number of times to execute the macro. When Bit 1 of
m
is set,
r
is
ignored and the macro is executed infinitely.
t
specifies the waiting time for executing the macro; it is
t
100 msec for every macro
execution.
m
specifies macro executing mode.
When the LSB of
m
= 0:
The macro executes r times continuously with interval specified by
t
.
When the LSB of
m
= 1:
After waiting for the period specified by
t
, the printer remains idle and waits for the
FEED button to be pressed. After the button is pressed, the printer executes the macro
once. The printer repeats this operation
r
times.
When Bit 5 of
m
is set, the current macro definition is saved into the printers non-
volatile eeprom memory as a startup macro without executing it. This macro
definition will be executed upon power-up using the parameters specified by this
command. If the printer is powered-up into
self-test
mode, the macro definition will
not be executed. A saved macro definition can be deleted with the GS _ command.
NOTE: Creating a startup macro reduces the eeprom storage area by 2048 bytes for
the duration of that macro and erases the previous contents of the eeprom buffer. Any
user defined characters sets or bit-images must be redefined after creating a startup
macro.
Definition of Mode byte
m
:
Bit Off/On Hex Decimal Function
0 Off 00 0 Macro executes
r
times continuously with the interval
specified by
t
.
On 01 1 FEED button controlled operation with time interval
t
.
1-4 - - - Undefined
5 On 20 32 Value given by
r
is ignored and macro is run
infinitely.
6 On 40 64 Save startup macro definition to eeprom memory
without executing.
7 - - - Undefined.