P/N 43298 rev. E 39
Banner Engineering Corp. •Minneapolis,MNU.S.A.
www.bannerengineering.com•Tel:763.544.3164
MINI-ARRAY
®
InstructionManual
Appendix
Host Mode Command
TheMINI-ARRAYcontrollercancommunicatewithacomputerorPLCviaeitheran
RS-232connection(allmodels)orRS-485connection(discrete-outputmodels).See
hookupinformationinSection3.4.Thehostcanrespondtooutputfromthecontroller
whenthecontrollerisprogrammedforeithertheContinuousorGatecontrolmode
(seeSection5.5.6).
Alternately,thehostcancontrolsensorscanning.WhentheHostcontrolmodeis
selected,thehostcomputerorcontrollerinitiatesscansusingacommandstring.The
commandstringisathree-bytemessage,consistingof:
Controlbytewithdecimalvalue248
ControllerID(oneof16ASCIIlettersAthroughO,asspecifiedinthePSF)
Scaninitiationbyte(ASCIIletterS)
Thecommandstringisfurtherdefined,asfollows:
unsignedcharmsg[3];/*declarethreebyteunsignedcharacterarrayusingC
language*/
msg[0]=248;/*controlbyte*/
msg[1]=65;/*assumethecontrollerIDistheletterA*/
msg[2]=83;/*scaninitiationbytewhichistheASCIIletterS*/
Thehosttransmitsthisthree-bytemessageatthedefinedbaudrate.Theformatisone
startbit,onestopbit,evenparity,andeightdatabits.Whenthismessageisreceived
bytheMINI-ARRAYcontroller,thecontrollerinitiatesascan,andthenupdatesits
outputsasrequired.TheMINI-ARRAYcontrollerthenwaitsforthenextcommand
string.
Serial Data Format
Theprogrammedmeasurementmodeormodesdeterminethetypeofinformationthat
istransmitted.Forexample,ifMeas1issetforFBBandMeas2issetforLBB,thenthe
datatransmittedtothehostcontainsthevaluesofthefirstandlastbeamblocked.
TheALLmeasurementmodeprovidesthestatusofallbeamstothehost.TheVHS
modedoesnotprovideserialoutputdata.
Inadditiontomeasurementmodeinformation,thedatatransmissionalsocontainsa
startstringandaterminationbyte.Thestartstringconsistsoftwounsignedcharacter
bytes:
Hexvalue1C
ThecontrollerIDvalue
TheterminationbyteistheASCIIcharacterforalinefeed(hexvalue0A).Thesethree
bytesarecollectivelycalledtheHeader.
Appendix. Host Mode Command and Serial Data Format