
Chapter 3: Programming Commands84
Unsolicited status mode
Select or cancel unsolicited status mode (USM)
ASCII: GS a n
Hexadecimal: 1D 61 n
Decimal: 29 97 n
Value of n: 0 turns mode o; any non-zero value turns mode on
Default: 0 (USM disabled)
Enablesordisablesautomaticreturnof4statusbyteswheneveroneormoreofthelistedchangesoccurs.Thiscommand
isabatchmodecommand;thatis,itisprocessedafterallpriordataintheinputbufferhasbeenprocessed.Theremaybe
atimelagbetweentheprinterreceivingthiscommandandenablingunsolicitedstatusmode(USM),dependingonthe
pending input buffer contents.
Ifanimmediatereturnofprinterstatusisdesired,thenanyoftheotherstatuscommandsshouldbeissuedfollowingthis
command.Oncethismodeisactivated,theprinterautomaticallytransmits4statusbyteswheneveranyoftheconditions
change.IfanRS-232Cconnectionwithhardwareowcontrolisused,allfourstatusbyteswillbetransmittedwithout
checkingDSR.
ThiscommandisaPOSversionofgeneralprinterunsolicitedstatusfunctions;itusesthesamecommandcodeasolder
versionsofthePOScommand,“automaticstatusback(ASB)”buthasthefollowingdifferences:
• Theparameternisanon/offswitch;itdoesnotselecttriggersubset
• Thereisnoimmediatereturnwhenthismodeisturnedon
• All4statusbytesarealwaysreturned
AchangeinanyofthefollowingconditionswilltriggertheUSMresponse:
• CashDrawer
• ReceiptCover
• KnifeError
• Out-of-RangePrintheadTemperature
• Out-of-RangeVoltage
• PaperExhaustStatus
Related information
WhenUnsolicitedStatusModeisenabledusingthiscommand,thestatustransmittedbyothercommandsandtheUSM
statusaredifferentiatedaccordingtotheinformationfoundinRecognizingDatafromtheprinter,whichfollowstheUSM
return description.
Thestatusbytestobetransmittedaredescribedinthefollowingfourtables.
Byte 1 = printer information
Byte 2 = error information
Byte 3 = paper sensor information
Byte 4 = paper sensor information
Comentarios a estos manuales