REGO Thermal Printer Technical Manual
www.regotek.com
40
4
0
00
0
Not used.Fixed value is 0
5, 6
-
-
-
Undefined.
7
0
00
0
Not used.Fixed value is 0
[Notes]
The command to the parallel port printer is invalid.
This command is executed when the data in the receive buffer is developed. Therefore, there may
be a time lag between receiving this command and transmitting the status, depending on the
receive buffer status.
When sending this command, before receiving the returned status data, don't send other data.
GS : Start/end macro definition
[Name]
Start/end macro definition
[Format]
ASCII
GS
:
Hex
1D
3A
Decimal
29
58
[Description]
Start/end macro definition
[Notes]
Macro definition starts when this command is received during normal operation.
Macro definition ends when this command is received during macro definition.
When GS ^ is received during macro definition, the printer ends macro definition and clears the
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