Owner manual
35
Banner Engineering Corp. •Minneapolis,U.S.A.
www.bannerengineering.com•Tel:763.544.3164
P/N64118rev.B
A.2.1 ASCII Format Data Transmission
TherearetwowaystouseASCIIformattorepresentdata.Theoneuseddependsupon
whichmeasurementmodesareselected.
For ALL measurement mode,eachdatabyteispresentedinaneight-bitASCIIformat
thatconveysthestatusoffourconsecutivechannels(fourconsecutivebeams).Each
subsequentbyteconveysthestatusofthenextfourchannels,untilthestatusofevery
channelisreported.TheallowabledatavaluesforAllmeasurementmodeareASCII
numbers0to9andASCIIlettersAtoF.Inthetable,a‘0’representsanunblocked
beamchannel,and‘1’representsablockedchannel.
Forexample,assumethata64-channelsystemhasbeenconfiguredfortheAll
measurementSerialtransmissionoption.Channels1through4areblocked,asis
channel63.Theserialstringstartswith0x1c,andtheID(assumean‘A’)followedby
16ASCIIvaluesandterminatedwith0x0A.Thestringwouldappear:
0x1c, ‘A’, ‘F’, ‘0’,’0’, ‘0’,’0’, ‘0’,’0’, ‘0’,’0’, ‘0’,’0’, ‘0’,’0’, ‘0’,’0’, ‘0’,’4’, 0x0a
Thestringshowsthatbeams1through4areblocked,asisbeam63.Allotherbeams
areunblocked.Iftheuserhadrequestedsuppressionoftheheader,then0x1c,‘A’,and
the0x0awouldhavebeendeleted.
For transmitting Measurement mode data,usethreeASCIIbytestorepresenteach
measurementmode.Forexample,ifMeas1isFBB,Meas2isLBB,themeasuredvalues
are6and120,andthecontrollerIDisB,thedatastringisasfollows:
0x1c ‘B’, ‘0’, ‘0’, ‘6’, ‘1’, ‘2’, ‘0’, 0x0a
AswithALLmode,theheaderandcleardatacouldbesuppressed.Forcleardata
suppression,thecontrolmodulesendsthestatusofaclearconditiononlyonthefirst
“clear”scan.Afterthat,thecontrolmodulewillcontinuetoscanbutwillnottransmit
datauntilthesensorisagainblocked.
A.2.2 Binary Format Data Transmission
SimilartoASCIIformat,binaryformatmaybeusedtorepresentdataintwoways.One
methodinvolvestheAllDatatransmissionmode;theother,Measurementmode.
For All Data transmission mode,thecontrolmodulerepresentsthestatusofeight
consecutivedatachannelsforeachbyte.Eachbitofeachbyteisdirectlyrelatedtothe
statusofanindividualchannel.Thefirstdatabyterepresentschannels1through8;the
seconddatabyterepresentschannels9through16.Thebitpatternforthefirstand
seconddatabytesisasshowninFigureA-3.
Foreachbitposition,1representsablockedbeamand0representsanunblocked
beam.
Forexample,fora64-channelsystemwithbeams1-6blocked,beam43blockedand
beams62-64blocked,thedatatransmittedfromcontrolmodule‘A’isasfollows:
0x1c, ‘A’, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x07, 0x0A
Thisstringwouldhavethestartbyte,controllerID,followedbytheeightdatabytes
andterminatedwiththe0x0A.Theheaderbytesmaybesuppressedifnecessary.
Appendix A: Data Transmission
Banner Engineering Corp. •Minneapolis,U.S.A.
www.bannerengineering.com•Tel:763.544.3164
Figure A-2. ASCII data values
Definitions for ASCII Data Values
FortheALLmeasurementmode
Character Ch 4 Ch3 Ch2 Ch1
F 1 1 1 1
E 1 1 1 0
D 1 1 0 1
C 1 1 0 0
B 1 0 1 1
A 1 0 1 0
9 1 0 0 1
8 1 0 0 0
7 0 1 1 1
6 0 1 1 0
5 0 1 0 1
4 0 1 0 0
3 0 0 1 1
2 0 0 1 0
1 0 0 0 1
0 0 0 0 0
First Data Byte Second Data Byte
Channel
Bit
Position Channel
Bit
Position
1 7 9 7
2 6 10 6
3 5 11 5
4 4 12 4
5 3 13 3
6 2 14 2
7 1 15 1
8 0 16 0
Figure A-3. Binary data values