Instruction manual RS232 interface with FLOW-BUS protocol for digital multibus Mass Flow / Pressure instruments Doc. no.: 9.17.027V Date: 22-10-2013 ATTENTION Please read this instruction manual carefully before installing and operating the instrument. Not following the guidelines could result in personal injury and/or damage to the equipment. Head Office: Nijverheidsstraat 1a, NL-7261 AK Ruurlo, The Netherlands, Tel. +31 573 458800, info@bronkhorst.
BRONKHORST® Disclaimer Even though care has been taken in the preparation and publication of the contents of this manual, we do not assume legal or other liability for any inaccuracy, mistake, mis-statement or any other error of whatsoever nature contained herein. The material in this manual is for information purposes only, and is subject to change without notice. Bronkhorst High-Tech B.V. July 2011 Symbols Important information.
BRONKHORST® Table of contents 1 GENERAL PRODUCT INFORMATION ................................................................................................. 4 1.1 INTRODUCTION ................................................................................................................................................ 4 1.2 MULTIBUS TYPES.............................................................................................................................................. 4 1.
BRONKHORST® 1 GENERAL PRODUCT INFORMATION 1.1 INTRODUCTION 1) This manual will explain how to communicate with a Bronkhorst instrument to your PC/PLC using RS232 serial communication. You have to write software yourself using the information of this document in order to be able to operate these instruments. Bronkhorst also offers software to easily operate digital instruments with your PC using Microsoft Windows.
BRONKHORST® 1.3 REFERENCES TO OTHER APPLICABLE DOCUMENTS Manuals and guides for digital instruments are modular. General instructions give information about the functioning and installation of instruments. Operational instructions explain the use of the digital instruments features and parameters. Field bus specific information explains the installation and use of the field bus installed on the instrument. 1.3.
BRONKHORST® 1.4 SHORT FORM START-UP All necessary settings for this module are already performed at Bronkhorst. To follow next steps carefully is the quickest way to get this module operational in your own system. START Connect PC / PLC to RS232 interface Check Power Initialization procedure Check settings communication port Start sending Make sure your PC or PLC is connected to the RS232 interface by means of the correct cable. • Multibus instruments need a special cable with T-connector.
BRONKHORST® 2 INTERFACES 2.1 RS232/FLOW-BUS INTERFACE The RS232/FLOW-BUS interface is an interface between the FLOW-BUS and the RS232 V24 serial (computer) port. It will either be supplied as a separate enclosed unit with a FLOW-BUS connector and a RS232 connector or as an integral 14TE module of your E-7000 readout and control system. The converter offers communication with a baud rate up to 38400 baud. Communication software support is available. Communication settings are: 38400, n, 8, 1. 2.1.
BRONKHORST® 2.2 RS232 ON MULTIBUS INSTRUMENT The RS232 interface on a Multibus instrument can be connected to any RS232 V24 serial (computer) port. Make sure to respect the hook-up diagram. Bronkhorst offers special cables for communication, separating the RS232 lines from the power and analog in- and output. On the 9-pin male D-sub connector of the instrument RX and TX are available on pin 6 and pin 1. RS232 communication is possible by: • 9-pin Sub D-connector (non IP65 applications, e.g.
BRONKHORST® 2.2.2 Facilities No handshaking facilities are used. On the side of the PC/PLC a nul-modem connector is needed. Communication settings are: 38400,n,8,1. Bronkhorst offers a special cable needed for communication. Communication software support is available. 2.2.
BRONKHORST® 3 FLOW-BUS PROTOCOL DESCRIPTION 3.1 GENERAL On the highest supported communication level, you may use DDE-channels for Windows application-programs with this facility. On a lower communication level, you can use the FLOWB32.DLL, for changing parameter values. To read and write parameter values from or to FLOW-BUS devices directly through the available interfaces there is a special protocol for messages between these devices.
BRONKHORST® 3.3 INTERFACE STRUCTURE 3.3.1 Basic datalink format The basic data link message format has the following fields: node message destination length data field length data data Data etc. In the FLOW-BUS environment the data field may contain up to 256 bytes of data. In the HOST application described here, the messages are according to PROPAR coding rules and the data field will contain a maximum of 64 bytes. 3.3.
BRONKHORST® 3.3.3 RS232 ASCII protocol An ASCII protocol is used on the existing RS232-HOST. To be compatible with existing driver software the ASCII protocol is available. A basic data link message is coded in ASCII as follows: : Byte : Len1, len2 node1, node2 data1, data2 CR length len1 len2 node node1 node2 data data1 data2 CR Explanation Initial character (semicolon) Length of message including the node address in bytes, so (len1, len2) is the basic message length +1.
BRONKHORST® 3.3.4 Enhanced binary protocol The enhanced protocol is binary coded. Control sequences are used to recognise the beginning and end of a message in a byte stream. A control sequence starts with a DLE byte (0x10) and is followed by a control byte. The following control sequences are defined: First byte DLE (0x10) DLE (0x10) DLE (0x10) DLE (0x10) Second byte STX (0x02) ETX (0x03) DLE (0x10) any other character Function Start of message End of message Data byte 0x10 Not allowed.
BRONKHORST® Value 1,2,8 3.4 Meaning general error COMMUNICATION MESSAGES Communication messages between FLOW-BUS interfaces and other devices consist of command strings with specific information. This command string is either ASCII (RS232) or BINARY. Basically the string contains several information bytes. Through RS232 these hexadecimal bytes are converted in ASCII (e.g.: byte value 0x0A is "0A" in ASCII and capital letters should be used).
BRONKHORST® 3.4.2 Parameter types Type Character Integer Float Long String Value 1 Byte Integer Float Long String length Id 00h 20h 40h 40h 60h Value 2 Bytes 1 2 4 4 X Parameter types Bits Range 00000000 0…255 00100000 0…65535 01000000 +-1.18e-38...+-3.39e+38 01000000 4 bytes 0... 4294967296 01100000 length needs to be specified Number of bytes per parameter type Value 3 Value 4 Value 5 Value 6 String The messages make use of bytes which are composed of data from several bytes.
BRONKHORST® 3.6 STATUS MESSAGE A write to a device with the command “01” will result in a status message. Below the possible returns are listed. Nr 0 1 2 3 4 5 6 7 Byte : 04 Node 00 Status Description Start character Fixed message length 4.
BRONKHORST® 3.7 SEND PARAMETERS To write to a device command codes “01”and “02”must be used. “01” will give as result a status message for error checking. Command “02” will give no reply from the device. In the table below the total command line is explained. Nr 0 1 2 3 Byte : Length Node 01 or 02 4 Process 5 Parameter 6 7 8 9 Value 1 Value 2 Value 3 Value 4 X Value x X+1 X+2 \r \n 3.
BRONKHORST® Nr 0 1 2 3 Byte : Length Node 02 4* Process 5* Parameter 6 7 8 9 Value 1 Value 2 Value 3 Value 4 X Value x X+1 X+2 \r \n Answer to the request Description start character Message length Node address Command write c Process chained cppppppp p Process number c Parameter chained cttnnnnn t Parameter type n Parameter index 0…31 Value for all types. For ‘strings’ this field contains the string length. Value for type ‘integer’, ‘float’ or ‘long’. Value for type ‘float’ or ‘long’.
BRONKHORST® 3.9 INITIALISING RS232/FLOW-BUS INTERFACE If you use a RS232/FLOW-BUS interface for communication (without the micro-switch and 2 LED’s), note that this module is not part of the (FLOW-BUS) token-ring network, directly at power-up. This means that it is always necessary to re-initialise the module when power has been interrupted! This is not the case when using an RS232/FLOW-BUS interface with micro-switch, red LED, green LED and RJ45 connector for FLOW-BUS.
BRONKHORST® Communication can be closed and interface can be disabled from FLOW-BUS token-ring traffic by sending the command below via the RS232 to the interface. Stop communication RS232 interface Send :050101001101\r\n Comment close communication instruction for interface module there will be no answer (because communication stops) second byte is actual node address for interface (here: 01) 3.10 EXAMPLES 3.10.1 Sending setpoint Send setpoint = 50% to node 3 process 1.
BRONKHORST® 3.10.2 Sending chained parameters Interface sends following parameters to module at node 3: Process 0: INIT MODE (10), 64 = soft init Process 1: POLYNOMIAL CONSTANT A (5), 0.0 Process 1: POLYNOMIAL CONSTANT B (6), 1.0 Process 1: POLYNOMIAL CONSTANT C (7), 0.0 Process 1: POLYNOMIAL CONSTANT D (8), 0.0 Process 0: INIT MODE (10), 82 = reset init mode.
BRONKHORST® 30 31 32 52 \r \n N 0A Parameter number (FBnr.) 10 01010010 Parameter value 82, reset init mode Carriage Return Line Feed Total String Nr 0 1 2 3 4 5 6 7 Init mode End :1D0301800A4081C500000000C63F800000C7000000004800000000000A52\r\n Byte : 04 03 00 00 1C \r \n Total String Answer by node 3 Description Start character Fixed message length 4. Node address Command status Status ok. Status ok, value points to end of send message.
BRONKHORST® 6 7 8 9 Value 3E80h = 16000 = 50% 3E 80 \r \n Carriage Return Line Feed Total String End :06030201213E80\r\n 3.10.
BRONKHORST® 21 01 22 7F 23 07 24 71 25 01 26 71 27 29 28 0A \n \r N 00000001 P T 01111111 P 00001110 C 01110001 T N 00000001 P T 01110001 P Total String 10 01 60 1F 07 00 60 11 01 60 11 Parameter index 16 (return) Process 1 Parameter type ‘string’ Parameter number (FBnr.) 31 – Capacity unit String length 7 Parameter not chained (return) Parameter type ‘string’ (return) Parameter index 17 (return) Process 1 Parameter type ‘string’ Parameter number (FBnr.
BRONKHORST® 46 F0 47 07 48-54 55 71 56 0A 57-66 C 80 Parameter chained 60 Parameter type ’string 11110000 T N 10 Parameter index 16 Length of the answer 7 Bytes 6D 6C 6E 2F 6D 69 6E Parameter value converted from hex to ASCII, the values do read : mln/min C 00 Parameter not chained 60 Parameter type ’string’ 01110001 T N 11 Parameter index 17 Length of the answer 10 Bytes 4E 32 20 20 20 20 20 20 20 20 Parameter value converted from hex to ASCII, the values do read: N2 Total String Parameter inde
BRONKHORST® T N 6 7 8 9 3E 80 \r \n 20 Parameter type ‘integer’ 01 Parameter index 1 measure Value 3E80h = 16000 = 50% Carriage Return Line Feed Total String End :06030201213E80\r\n 3.10.
BRONKHORST® 4 DUAL INTERFACE OPERATION When operating a controller (reading measured value and sending setpoint) for proper operation it is important that the controller gets its setpoint from the right source. Setpoints may come from different sources: analog input, field bus interface or RS232 or may be overruled by close valve or open valve (purge) commands. Therefore it is important to know what the setpoint source of the controller is.
BRONKHORST® 5 PARAMETER INFORMATION FLOW-BUS is used for parameter value exchange between instruments and operation modules (keyboard or PCinterface). Parameter information consists of several properties for behaviour within the FLOW-BUS system. In the ‘parameter properties’ table you will find a list of parameters and their properties. In the ‘parameter values’ table, the values are described more detailed. This list consists mostly of parameters for mode settings.
BRONKHORST® (FlowDDE) Parameter numbers: All parameter information is referenced to the parameter number. This is a unique number for a parameter to avoid redundancy. These numbers are needed for DDE communication only. For communication with FLOW-BUS through other ways than DDE: directly via RS232 ASCII-strings or via C-libraries (DOS or Windows), use the parameter numbers for the FLOW-BUS modules (in column FBnr of table Parameter properties).
BRONKHORST® 6 TROUBLESHOOTING 6.1 LED INDICATIONS LED indications can be very useful in case of problems with the instrument. The green LED is normally used for instrument status indication, like normal operation or special function mode. For DeviceNet it is also possible to show that the instrument is in abort state and idle state. The red LED is normally used to for error/warning indication (how longer the flash, how greater the trouble).
BRONKHORST® 7 SERVICE For current information on Bronkhorst and service addresses please visit our website: http://www.bronkhorst.com Do you have any questions about our products? Our Sales Department will gladly assist you selecting the right product for your application. Contact sales by e-mail: sales@bronkhorst.com For after-sales questions, our Customer Service Department is available with help and guidance. To contact CSD by email: support@bronkhorst.
BRONKHORST® 8 APPENDIX 8.1 PARAMETER VALUES TABLE See Below 8.2 PARAMETER PROPERTIES TABLE See Below Page 32 RS232 interface 9.17.
Parameter values table FlowDDE database version V3.
FlowDDE database version V3.
FlowDDE database version V3.
FlowDDE database version V3.
FlowDDE database version V3.
Parameter properties table FlowDDE database version V3.
FlowDDE database version V3.
FlowDDE database version V3.
FlowDDE database version V3.
FlowDDE database version V3.