3. PRINTER FUNCTIONS
SMICE-PS
64
3-
[Reference]
GS L, GS P
[Example]
m
t
r
^
S
G
m
t
r
^
S
G
m
t
r
^
S
G
m
t
r
^
S
G
m
t
r
^
S
G
[Name]
Execute macro
[Format]
ASCII
GS
^
r
t
m
Hex
1D
5E
r
t
m
Decimal
29
94
r
t
m
[Range]
0
≤
r, t
≤
255
0
≤
m
≤
1
[Description]
Executes a macro.
• r specifies the number of times to execute the macro.
• t specifies the waiting time for executing the macro.
The waiting time is t
×
100 msec. for each macro execution.
• m specifies macro executing mode:
When the LSB of m = 0, the macro is executed r times con-
tinuously at the interval specified by t.
When the LSB of m = 1, after waiting for the period specified
by t, the LED indicator blinks 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]
• This command has an interval of (t
×
100 msec.) after a
macro is executed by t.
• 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 by pressing the FEED button
(m=1), the paper cannot be fed using the FEED button.
[Default]
[Reference]
GS :
[Example]