MORECHEMISTRY.COM::MORE CHEMISTRY ON THE WEB
Home | Member Area Links Events Publications Promotions
  refresh page

LabVIEW drivers - FLOWBUS (Bronkhorst) protocol

The FLOWBUS protocol explained

Understanding a protocol isn't allways easy. The FLOWBUS surely is such a protocol.

Principle

The principle of the FLOWBUS protocol is quite easy:

  • start communication
  • read process values
  • stop communication

    The underlaying communication principle is even simpler:

  • send a control command
  • read the response (if any)

    Control commands

    These are the control commands for RS232 communication, required to read process values.
    # Initialisation RS232 interface
    SEND               RECEIVE          COMMENT
    :050001000A49      :04000000xx      Init instruction for node 0 process 0
    :050001000101      :04000000xx      PNA (Primary Node Address) = 1
    :05000100027F      :04000000xx      SNA (Secondary Node Address) = 1
    :050001000302      :04000000xx      NNA (Next Node Address) = 1
    :050001000420      :04000000xx      LNA (Last Node Address) = 32 1 for 1 module?
    :050001000502      :04000000xx      BM (Bus Master) = 2 (default) or = 1 (temporary)
    :050001000A52      :04000000xx      Reset instruction for module
    
    # explanation of the abovementioned messages
    1  ':' start character
    2  05  Length
    3  01  Node address
    4  01  send parameter
    5  00  process number
    6  aa  initialisation step
    7  bb  parameter value
    8  \r
    9  \n
    
    # Stop communication on RS232 interface
    SEND               RECEIVE          COMMENT
    :050101001101      (nothing)        Close communication instruction
    
    # Read flow from process 1 node 1
    SEND                   RECEIVE               COMMENT
    :06010402200120\r\n    
    :0601010120hhll\r\d   hh high byte ll low byte
    
    # explanation of the abovementioned SEND message
    Nr Byte Description
    1  ':'
    2   06  Length (':', length byte and '\r\n' not included)
    3   01  Node 1
    4   04  ask for parameter
    5   02  Process number source (destination +1)
    6   20  Parameter number (=0: process value) and type (=2: integer)
    7   01  Process number destination
    8   20  Parameter number and type
    9   \r
    10  \n
    

    See also

    The flowbus protocol applied


    Bart Boshuizen, 2004/06/30


  • © copyright 2000-2008, morechemistry.com
    design by Bb.