
Chapter 3: Programming Commands 107
Macros
Thesecommandsareusedtoselectandperformauser-denedsequenceofprinteroperations.
Select or cancel macro denition
ASCII GS :
Hexadecimal 1D 3A
Decimal 29 58
Startsorendsmacrodenition.Macrodenitionbeginswhenthiscommandisreceivedduringnormaloperationandends
whenthiscommandisreceivedduringmacrodenition.Themacrodenitioniscleared,duringdenitionofthemacro
whentheexecutemacro(1D5E)commandisreceived.
Normalprintingoccurswhilethemacroisdened.Whenthepoweristurnedonthemacroisnotdened.
Thedenedcontentsofthemacroarenotclearedbytheinitializeprinter(1B40),thus,theinitializeprinter(1B40)
commandmaybeusedaspartofthemacrodenition.
Iftheprinterreceivesasecondselectorcancelmacrodenition(1D3A)commandimmediatelyafterpreviouslyreceiving
aselectorcancelmacrodenition(1D3A)theprinterremainsinthemacroundenedstate.
Formulas
Thecontentsofthemacrocanbedenedupto2048bytes.
Exceptions
Ifthemacrodenitionexceeds2048bytes,excessdataisnotstored.
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.
Executesamacro.Afterwaitingforaspeciedperiodtheprinterwaitsforthepaperfeedbuttontobepressed.Afterthe
buttonispressed,theprinterexecutesthemacroonce.Theprinterrepeatsthisoperationthenumberofspeciedtimes.
Whenthemacroisexecutedbypressingthepaperfeedbutton(m=1),papercannotbefedbyusingthepaperfeedbutton.
Formulas
The waiting time is tx100msforeverymacroexecution.
m speciesmacroexecutingmodewhentheLSB(leastsignicantbit)m=0
Themacroexecutesr timescontinuouslyattheintervalspeciedby t whentheLSB(leastsignicantbit)ofm=1.
Exceptions
Ifthiscommandisreceivedwhileamacroisbeingdened,themacrodenitionisabortedandthedenitioniscleared.
Ifthemacroisnotdenedorifris0,nothingisexecuted.
Comentarios a estos manuales