Chapter 5: Programming commands
110
A776 (B780) Programming Guide
A776-PG00001 D 07/13
Macros
These commands are used to select and perform a user-defined sequence of printer operations.
Select or cancel macro definition
ASCII
GS :
Hexadecimal
1D 3A
Decimal
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
GS ^
r t m
Hexadecimal
1D 5E
r t m
Decimal
29 94
r t m
Value of
r:
The number of times to execute the macro.
Value of
t:
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
×
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.
Exceptions
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.
Continued . . .
Содержание A776 ColorPOS
Страница 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 160: ...Appendix B Resident Character Sets 148 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 737 Greek...
Страница 161: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 149 Code page 850 Multilingual...
Страница 162: ...Appendix B Resident Character Sets 150 A776 B780 Programming Guide A776 PG00001 D 07 13 Code Page 852 Slavic...
Страница 163: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 151 Code Page 857 Turkish...
Страница 164: ...Appendix B Resident Character Sets 152 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 858 with Eurosymbol...
Страница 165: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 153 Code page 860 Portugese...
Страница 166: ...Appendix B Resident Character Sets 154 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 862 Hebrew...
Страница 167: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 155 Code page 863 French Canadian...
Страница 168: ...Appendix B Resident Character Sets 156 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 865 Nordic...
Страница 169: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 157 Code page 866 Cyrillic...
Страница 170: ...Appendix B Resident Character Sets 158 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 1251 Cyrillic...
Страница 171: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 159 Code page 1252 Windows Latin 1...
Страница 172: ...Code page 1255 Hebrew...
Страница 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Страница 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 179: ......
Страница 180: ...A776 PG00001 Rev D 07 2013...