
BRONKHORST®
Page10RS232interface 9.17.027
3 FLOW‐BUSPROTOCOLDESCRIPTION
3.1 GENERAL
Onthe highest supported communication level, you may use DDE‐channels for Windows application‐programs with
thisfacility.Onalowercommunicationlevel,youcanusetheFLOWB32.DLL,forchangingparametervalues.
ToreadandwriteparametervaluesfromortoFLOW‐BUSdevicesdirectlythroughtheavailableinterfacesthere
isa
special protocol for messages between these devices. When operating a FLOW‐BUS system with a HOST computer,
youneedtoknowthismessageprotocolifyouchoosetodrivetheinterfacesdirectly.
When you use a type of RS232/FLOW‐BUS interface (baud rate up to 38K4) you may
first have to initialise the
interface.ThiscanbedonebymeansofsendingsomeASCII‐stringstotheinterfacethroughRS232.
Seealsoparagraph“InitialisingRS232/FLOW‐BUSinterface”
TherearetwodifferentcommunicationprotocolsforthePCandtheRS232HOST:
anASCIIprotocolforcommunicationthatiscompatiblewithexistingFLOW‐BUSapplications.
Thisprotocolservesonlyonemaster/slavedialogatatime.
anenhancedbinaryprotocolthatsupportsconcurrentsendingofmessagestodifferentnodes.Thisprotocol
containsamessage‐sequencenumberandservesmorethanonemaster/slavedialogsatatime.
TheRS232‐HOSTmoduleautomaticallyrecognisestheprotocolusedbythePCandadaptsitsbehaviourtothe
protocolin
use.Thetypeofprotocolisdeterminedbythefirstcharacterofamessage.
Thefirstcharacteris‘:’ (0x3A) existingtypeofmessage.
ThefirstcharacterisDLE (0x10) enhancedtypeofmessage.
ViatheFLOW‐BUSDLL(FLOWB32.DLL)thePCdetermineswhichprotocolisinuse.
Thecommunicationrelationisalwaysmaster(PC)andslave(HOST).TheHOSTwillalwaysrespondonarequestfrom
thePC.
3.2 INITIALISATIONOFLOCALHOSTINTERFACESONMULTIBUSINSTRUMENTS
WhenyouuseadigitalinstrumentwithRS232interface,baudrateisfixedon38K4baudandnospecialinitialisationis
needed.ThroughtheseriallineconnectedtoaCOM‐portofyourcomputerortoaPLCyouhavetocommunicatewith
theinstrumentusingtheFLOW‐BUSprotocol.
Eachinstrumenthasitsownnodeaddress(3...120).Ifyouwanttosend
amessage totheinstrumentyouhave toknowthisnodeaddress. However,if yousend a messagetonode address
128theinstrument willalwaysrespondto your message.On a point‐to‐pointconnection likeRS232
it is theeasiest
way to make the communication work under all circumstances (it is independent of the real node address of the
instrument).
Commentaires sur ces manuels