TH210
Programmer’s Guide
99
Macros
These commands are used to select and perform a user-defined sequence of printer operations.
Select or cancel macro definition
ASCII
Hexadecimal
Decimal
GS :
1D 3A
29 58
Starts or ends macro definition. Macro definition begins when this command is received during
normal operation and ends when this command is received during macro definition. The macro
definition is cleared, during definition of the macro when the execute macro (1D 5E) command is
received.
Normal printing occurs while the macro is defined. When the power is turned on the macro is not
defined.
The defined contents of the macro are not cleared by the initialize printer (1B 40), thus, the
initialize printer (1B 40) command may be used as part of the macro definition.
If the printer receives a second select or cancel macro definition (1D 3A) command immediately
after previously receiving a select or cancel macro definition (1D 3A) the printer remains in the
macro undefined state.
Formulas
The contents of the macro can be defined up to 2048 bytes.
Exceptions
If the macro definition exceeds 2048 bytes, excess data is not stored.
Execute macro
ASCII
Hexadecimal
Decimal
Value of
r
:
Value of
t
:
GS ^
r t m
1D 5E
r t m
29 94
r t m
The number of times to execute the macro.
The waiting time for executing the macro.
Executes a macro. After waiting for a specified period the printer waits for the paper feed button
to be pressed. After the button is pressed, the printer executes the macro once. The printer
repeats this operation the number of specified times.
When the macro is executed by pressing the paper feed button (m = 1), paper cannot be fed by
using the paper feed button.
Formulas
The waiting time is t x 100 ms for every macro execution.
m specifies macro executing mode when the LSB (least significant bit) m = 0
The macro executes r times continuously at the interval specified by t when the LSB (least
significant bit) of m = 1.
Содержание TH210
Страница 1: ...TH210 Thermal Printer Programmer s Guide December 2015 ...
Страница 123: ...TH210 Programmer s Guide 119 Character code table Page 1 PC850 Multilingual Latin I ...
Страница 124: ...TH210 Programmer s Guide 120 Character code table Page 2 PC852 Latin II ...
Страница 125: ...TH210 Programmer s Guide 121 Character code table Page 3 PC860 Portuguese ...
Страница 126: ...TH210 Programmer s Guide 122 Character code table Page 4 PC863 Canadian French ...
Страница 127: ...TH210 Programmer s Guide 123 Character code table Page 5 PC865 Nordic ...
Страница 128: ...TH210 Programmer s Guide 124 Character code table Page 6 PC858 Multilingual I Euro ...
Страница 129: ...TH210 Programmer s Guide 125 Character code table Page 7 PC866 Russian ...
Страница 130: ...TH210 Programmer s Guide 126 Character code table Page 8 WPC1252 Latin I ...
Страница 131: ...TH210 Programmer s Guide 127 Character code table Page 9 PC862 Hebrew ...
Страница 132: ...TH210 Programmer s Guide 128 Character code table Page 10 PC737 Greek ...
Страница 133: ...TH210 Programmer s Guide 129 Character code table Page 11 PC874 Thai ...
Страница 134: ...TH210 Programmer s Guide 130 Character code table Page 12 PC857 Turkish ...
Страница 135: ...TH210 Programmer s Guide 131 Character code table Page 13 WPC1251 Cyrillic ...
Страница 136: ...TH210 Programmer s Guide 132 Character code table Page 14 WPC1255 Hebrew ...
Страница 137: ...TH210 Programmer s Guide 133 Character code table Page 15 KZ_1048 Kazakh ...
Страница 138: ...TH210 Programmer s Guide 134 Character code table Page 16 WPC1254 Turkish ...
Страница 139: ...TH210 Programmer s Guide 135 Character code table Page 17 WPC1250 Central Europe ...
Страница 140: ...TH210 Programmer s Guide 136 Character code table Page 18 WPC28591 Latin 1 ...
Страница 141: ...TH210 Programmer s Guide 137 Character code table Page 19 WPC28592 Latin 2 ...
Страница 142: ...TH210 Programmer s Guide 138 Character code table Page 20 WPC28599 Turkish ...
Страница 143: ...TH210 Programmer s Guide 139 Character code table Page 21 WPC28605 Latin 9 ...
Страница 144: ...TH210 Programmer s Guide 140 Character code table Page 22 PC864 Arabic ...
Страница 145: ...TH210 Programmer s Guide 141 Character code table Page 23 PC720 Arabic ...
Страница 146: ...TH210 Programmer s Guide 142 Character code table Page 24 WPC1256 Arabic ...
Страница 147: ...TH210 Programmer s Guide 143 Character code table Page 25 WPC28596 Arabic ...
Страница 148: ...TH210 Programmer s Guide 144 Character code table Page 26 KATAKANA Asia ...
Страница 149: ...TH210 Programmer s Guide 145 Character code table Page 27 PC775 Baltic ...
Страница 150: ...TH210 Programmer s Guide 146 Character code table Page 28 WPC1257 Baltic ...
Страница 151: ...TH210 Programmer s Guide 147 Character code table Page 29 WP28594 Baltic ...