HP Value Serial/USB Receipt Printer II Uživatelský manuál Strana 107

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 155
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 106
Chapter 3: Programming Commands 107
Macros
Thesecommandsareusedtoselectandperformauser-denedsequenceofprinteroperations.
Select or cancel macro denition
ASCII GS :
Hexadecimal 1D 3A
Decimal 29 58
Startsorendsmacrodenition.Macrodenitionbeginswhenthiscommandisreceivedduringnormaloperationandends
whenthiscommandisreceivedduringmacrodenition.Themacrodenitioniscleared,duringdenitionofthemacro
whentheexecutemacro(1D5E)commandisreceived.
Normalprintingoccurswhilethemacroisdened.Whenthepoweristurnedonthemacroisnotdened.
Thedened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denition.
Iftheprinterreceivesasecondselectorcancelmacrodenition(1D3A)commandimmediatelyafterpreviouslyreceiving
aselectorcancelmacrodenition(1D3A)theprinterremainsinthemacroundenedstate.
Formulas
Thecontentsofthemacrocanbedenedupto2048bytes.
Exceptions
Ifthemacrodenition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specied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specied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 speciesmacroexecutingmodewhentheLSB(leastsignicantbit)m=0
Themacroexecutesr timescontinuouslyattheintervalspeciedby t whentheLSB(leastsignicantbit)ofm=1.
Exceptions
Ifthiscommandisreceivedwhileamacroisbeingdened,themacrodenitionisabortedandthedenitioniscleared.
Ifthemacroisnotdenedorifris0,nothingisexecuted.
Zobrazit stránku 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 154 155

Komentáře k této Příručce

Žádné komentáře