Owner manual
P/N64118rev.B
Appendix A: Data Transmission
36
Banner Engineering Corp. •Minneapolis,U.S.A.
www.bannerengineering.com•Tel:763.544.3164
For Measurement mode analysis,thebinaryformatusestwodatabytesforeach
measurementmode.(Ifwehaveonemeasurementmode,thentherearetwodata
bytes.Fortwomeasurementmodes,therearefourdatabytes.)
Forexample,assumethatcontrolmodule‘B’isconfiguredforonemeasurementmode
(FBB),andthevalueis78.Thestringfromthecontrolmoduleisasfollows:
0x1c, ‘B’, 0x00, 0x4E, 0x0A.(atotaloffivebytes)
or
0x00, 0x4E(atotaloftwobyteswithSuppressHeaderoption)
Nowassumethatcontrolmodule‘B’isconfiguredforFBBandLBBwithvaluesof74
and303,respectively.Thestringfromthecontrolmoduleisasfollows:
0x1c,’B’, 0x00, 0x4A, 0x01, 0x2F, 0x0A(atotalofsevenbytes)
or
0x00, 0x4A, 0x01, 0x2F(atotaloffourbyteswithSuppressHeaderoption)
A.3 Max Meas Mode Command String
MaxMeasModecausesthecontrolmoduletoretainthemaximummeasurement
valuesforagivenobject.Thesevaluesaretransmittedeitherimmediatelyafterthe
controlmoduleisclearedorwhenpromptedbytheHost.TheMaxMeasMode
CommandStringisafour-bytestringthatappearsasfollows:
• Controlbytewithdecimalvalue248
• ControllerID(oneof15ASCIIlettersAthroughO,asspecifiedinthePSF)
• MaxMeasCommandTransmit(ASCIIletterT).
• Terminationbytewithdecimalvalue13
Thecommandstringisfurtherdefined:
/*the below C code will define an array called msg which will contain the Max Meas Mode
Command String*/
unsigned char msg[4]; /*declare four byte unsigned character array using C language */
msg[0]=248; /*control byte */
msg[1]=65; /*assume the controller ID is the letter A */
msg[2]=84; /*assume initiation byte which is the ASCII letter T */
msg[3]=13; /*termination byte */
Whenthehostsendsthisstring,thecontrolmodulesendsthemaximumvaluesstored
fromthepreviousscannedobject.Ifthesensorispresentlyscanninganobjectwhen
themessageissent,thecontrolmodulewillgivethemaximumvaluesforthepresent
object.