Escort 3004B CD Player User Manual


 
15 Ethernet interface
Page10
Validationregister:
Itallowsyoutocontrolthestatusregisterofthealarms:
Whenabitofthisregisterisequalto1,itmakesitpossiblethatthestatus1ofthebitofsamerank
ofthestatusregisterofalarmsleadstosettingto1the bit#0 ofthestatusregisterofservicerequest
(STB).
Writingintothisregisterismadebythe*SRQ_ENABLE<NRF>where<NRF>isthesumofthe
valuesofbinaryweightofthevalidationregister.
Readingthisregisterismadewith"SRQ_ENABLE?"
14.4.5.Usingthestructureofstatusdata
Beforeanyuse,you dbettersendtotherecordertheinstruction*CLSthatresetstozeroallthe
statusregisters.
Theusershouldfirstdeterminewhicheventshewantstodetectbyallowingtheminthevalidation
registers:
-withtheinstruction"SRQ_ENABLEn"foreventsrelatedtothealarmregisters
-withtheinstruction"*ESEn"foreventsrelatedtothestandardeventregisters
-withtheinstruction"*SREn"foreventsrelatedtotheservicerequestregister.
Example:
Programmingaservicerequestfor:astartorastopofpaper-printing,aninstructionerror,the
presenceofdataattheoutputoftherecorder,aremadewiththeinstructions:
SRQ_ENABLE3(Bit0and1at1)
*ESE32(Bit5at1)
*SRE49(Bit0,4and5at1)
InRS232,thecontrol system shouldregularlyreadtheservicerequestregisterwiththeinstruction
"*STB?". Theswitchingofthebit6(MSS)to1showsthatanauthorisedeventhasoccurred.
Thestatusbytethathasbeenreadmakesitpossibletodeterminethetypeofeventthathasoccurred.
Inthecaseofastandardorspecificevent,theassociatedstatusregistermustbereadwiththe
"*ESR?"or"SRQ_TYPE?"instructionstoknowpreciselywhicheventhas shownup.
Astandardeventhasoccurred. Theinstruction"*ESR?"issent:
Answerbytherecorder:160(Bit7and5to1)
Twoeventshavebeendetected(power-upandinstructionerror)butonlytheinstructionerror(only
authorisedeventinthevalidationregister)ledtotheservicerequest.