CHAPTER 8 ESC/POS MODE (INTERFACE COMMANDS)
B-EP
Series
8-81
8.10.56 MACRO EXECUTE COMMAND
[GS] ^
Function
Executes a defined macro.
Format [GS]
^n1n2n3
Term
ASCII: GS ^
Hex: 1Dh 5Eh
[Parameter]
n1: No. of times macro is executed
0
≤
n1
≤
255 (00h
≤
n1
≤
FFh)
n2: Waiting time when macro is executed 0
≤
n2
≤
255 (00h
≤
n2
≤
FFh)
Waiting time of n2
×
100 msec every time a macro is executed
n3: Mode to execute a macro
0
≤
n3
≤
1 (00h
≤
n3
≤
01h)
0: A macro is executed n1 times at interval of time specified by n2.
1: After a lapse of time specified by n2, the STATUS LED (green) blinks and waits
for the [FEED] key to be pressed. Once the [FEED] key is pressed, a macro
is executed once. This is repeated n1 times.
Explanation
(1) If this command is included while the macro is being defined, the macro definition
will be aborted, and cleared.
(2) Nothing will be done with no macro defined or with n1 = 0.
(3) The [FEED] key is inoperable during the specified waiting time when a macro is
executed.
Reference
Macro Definition Start/End Command ([GS] :)