Manual FlowDDE PDF
Manual FlowDDE PDF
FlowDDE
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.
BRONKHORST®
Disclaimer
The information in this manual has been reviewed and is believed to be wholly reliable. No responsibility, however, is
assumed for inaccuracies. The material in this manual is for information purposes only.
Copyright
All rights reserved. This documentation is protected by copyright.
Subject to technical and optical changes as well as printing errors. The information contained in this document is
subject to change at any time without prior notification. Bronkhorst® reserves the right to modify or improve its
products and modify the contents without being obliged to inform any particular persons or organizations. The device
specifications and the contents of the package may deviate from what is stated in this document.
Symbols
Important information. Discarding this information could cause injuries to people or damage to the
Instrument or installation.
Helpful information. This information will facilitate the use of this instrument.
Additional info available on the internet or from your local sales representative.
Table of contents
1 GENERAL PRODUCT INFORMATION ................................................................................................. 4
1.1 INTRODUCTION ................................................................................................................................................ 4
1.2 REFERENCES TO OTHER APPLICABLE DOCUMENTS ..................................................................................................... 4
1.2.1 Manuals and user guides ............................................................................................................................ 4
1.2.2 Technical drawings ..................................................................................................................................... 4
1.2.3 Software tooling.......................................................................................................................................... 4
1.3 SUPPORTED INSTRUMENTS ................................................................................................................................. 5
1.4 SYSTEM REQUIREMENTS..................................................................................................................................... 5
1.5 INSTALLATION AND START UP .............................................................................................................................. 5
1.5.1 Start up options........................................................................................................................................... 5
2 INTERFACES..................................................................................................................................... 6
2.1 RS232/FLOW-BUS INTERFACE ......................................................................................................................... 6
2.1.1 D-connector for RS232 ................................................................................................................................ 6
2.2 RS232 ON MULTIBUS INSTRUMENT ...................................................................................................................... 7
2.2.1 Applications, e.g. EL-FLOW ......................................................................................................................... 7
3 PARAMETER INFORMATION ............................................................................................................ 9
4 OPERATION ................................................................................................................................... 11
4.1 BASIC: COMMUNICATION TO INSTRUMENTS AND SERVING CLIENT APPLICATIONS ............................................................11
4.1.1 Communication settings ........................................................................................................................... 11
4.1.2 Open communication ................................................................................................................................ 12
4.1.3 Close communication ................................................................................................................................ 12
4.2 CONFIGURATION .............................................................................................................................................12
4.3 SETTINGS ......................................................................................................................................................13
4.3.1 Poll time .................................................................................................................................................... 13
4.3.2 System settings ......................................................................................................................................... 13
4.3.3 Simulation mode ....................................................................................................................................... 14
4.4 VIEW AND EDIT PARAMETERS .............................................................................................................................14
4.4.1 View parameters and values ..................................................................................................................... 14
4.4.2 Edit parameters ........................................................................................................................................ 15
4.5 TEST COMMUNICATION ....................................................................................................................................15
4.5.1 Test FLOW-BUS and DDE........................................................................................................................... 15
4.5.2 Test ProPar ................................................................................................................................................ 16
4.6 SERVICE LOG ..................................................................................................................................................16
5 DDE COMMUNICATION BY CLIENTS ............................................................................................... 17
5.1 BASIC PARAMETER COMMUNICATION ..................................................................................................................17
5.2 SPECIAL OPTIONS ............................................................................................................................................17
5.2.1 Channel 0 .................................................................................................................................................. 17
5.2.2 Parameter 0 .............................................................................................................................................. 17
5.2.3 Server topic ............................................................................................................................................... 18
6 FLOWDDE TECHNICAL DETAILS ...................................................................................................... 19
7 SERVICE ........................................................................................................................................ 20
FlowDDE is a Dynamic Data Exchange (DDE) server, an easy connection between Windows applications and digital
Bronkhorst® instruments. DDE provides a basic level of interprocess communication between Windows applications.
By using DDE commands, sent by software to FlowDDE, data can be sent to or requested from digital instruments.
FlowDDE handles all communication to the instruments and provides the data to applications.
Examples of applications with DDE communication are Microsoft Excel and LabVIEW (National Instruments). Several
Bronkhorst® applications require FlowDDE for communication to the instrument(s), e.g. FlowPlot and FlowView.
The digit grouping symbol of currency must always differ from the number’s decimal symbol. Having
equal symbols is not valid (not just in this situation, but also in other situations) and will probably cause
other problems as well. See Microsoft’s KB198098.
To avoid communication errors, it is advised to use a serial (RS232) port with hardware buffer overrun
detection. Few USB-RS232 converters have this feature, but e.g. the Digitus part no. DA-70156 has.
Start FlowDDE through the Start menu: Start >> (All) Programs >> Bronkhorst >> FlowDDE V4.67.
C:\Program Files is a system folder and is followed by (x86) on 64-bit Windows versions and may differ
on non-English Windows versions.
2 INTERFACES
The female RS232 (x) (sub miniature 9-pin) D-connector has the following pin configuration:
Serial RS232 communication on a multibus instrument with RS232 can be treated as a FLOW-BUS system with one
instrument and a FLOW-BUS/RS232 interface. In case a FLOW-BUS fieldbus connection is present, other instruments
connected to the FLOW-BUS can be communicated with as well.
EL-FLOW Select ®
Power
Supply
FLOW
EL-FLOW Select ®
FLOW
EL-FLOW Select ®
Power
Supply
FLOW
For proper cable installation please consult the applicable hook-up diagram mentioned in paragraph
1.2.2
By default, the interface offers communication at a baud rate of 38400 baud. On instruments that offer
the possibility to change the RS232 baud rate, the baud rate may be configured differently. See the
technical documentation of your instrument which baud rates are supported.
3 PARAMETER INFORMATION
FLOW-BUS is used for parameter value exchange between instruments and operation modules (keyboard or PC-
interface). 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.
Changing parameter values is possible when a parameter is not read-only and not secured. The range
and type of parameters are described in the tables. When parameter values are out of range they will
be either 'clipped' on the nearest value allowed or you will get an error message: 'parameter value
error'.
The node address is the node address of the instrument on the FLOW-BUS. RS232 interfaces accept node address 128.
When sending messages to node address 128, the message will always be accepted, regardless the true node address
of the instrument on the bus.
The process can be found in the parameter table or has to be determined when nothing is filled in. In that case, the
process number most often is 1, but on devices with e.g. multiple sensor channels, the process will be 1 for the first
channel, 2 for the second, and so on up to 32. On these modules also process 33, 65 and 65 are multiplied in this way.
It is important to know that not all parameters are available on all (FLOW-BUS) instruments.
For more details about parameters and their use see also the technical documentation of your
instrument. The Bronkhorst® software application FlowDDE also gives an overview of which parameters
are available on which devices.
4 OPERATION
4.1 BASIC: COMMUNICATION TO INSTRUMENTS AND SERVING CLIENT APPLICATIONS
Once FlowDDE has been started, the main window will appear. It consists of a menu bar, an information line and a
messages section.
In the messages section the general procedure to start serving client applications with the FlowDDE server is described
in four steps:
1. Connect an instrument to a COM port of the PC
2. Set the communication settings
3. Start the communication
4. Wait until FlowDDE is ready
Using the information of chapter 2 and/or the hook-up diagram, physically connect the instrument to the COM port of
the PC.
At Interface, the COM port and the baud rate can be selected. For
most interfaces, the default baud rate is 38400.
From the menu, click Communication >> Open communication or press F3. Now FlowDDE will try to make a
connection to the FLOW-BUS interface. Once a connection is established, FlowDDE will initialize the interface when
needed and scan the connected FLOW-BUS when present. When the FLOW-BUS configuration is different than the
previous configuration, FlowDDE shows a warning. To all connected instruments a channel number is assigned and for
each channel the applicable parameter DDE items are created. These parameter DDE items are to be used by client
applications.
After all DDE items are created, FlowDDE starts polling several parameters from all instruments periodically. The DDE
values of these parameters are updated after each poll, so clients don’t need to actively refresh these before using.
From now on, FlowDDE is ready for any client. FlowDDE can be minimized and acts as silently as a server until the
communication is closed.
4.2 CONFIGURATION
When communication is opened and FlowDDE has scanned the FLOW-BUS system, the FLOW-BUS configuration can
be viewed: FLOW-BUS >> Configuration or F5.
On the left hand side, all instruments connected to the FLOW-BUS are shown, ordered by their assigned channel. In
this example, two digital controllers (channel 1 and 2) and one RS232/FLOW-BUS interface with 4 real-time channels
(channel 3 to 6) are connected.
On the right hand side, the top frame is meant to add legacy modules to the FLOW-BUS. To add such a module,
connect the module to the FLOW-BUS, press Search and follow on-screen instructions.
At Device information information about the selected channel in the list on the left hand side is shown. Node shows
the current node address of the instrument. The node address of an instrument can be changed by pressing Change
and entering the new node address. For multi-channel devices, e.g. an RS232/FLOW-BUS interface, the process of the
channel is shown at Process.
The checkbox Poll indicates that selected parameters – those marked Poll in the parameter list – from this channel are
polled by FlowDDE when the communication is open.
Any comments about the instrument can be entered in the Info field. These comments are stored between FlowDDE
sessions as long as the FLOW-BUS configuration is not changed.
The configuration window allows basic testing of a selected instrument. The Measure is polled and a Setpoint can be
written at Operation test.
4.3 SETTINGS
To optimize FlowDDE for your application or to control resources, the behaviour of FlowDDE can be configured. The
settings are divided into two categories: poll time and system settings.
The poll time can be changed at Server >> Poll time. The window at the right hand side
pops up. It contains three settings:
• Poll time: the time between two poll requests.
• Batch of channels: the number of channels that are polled at once. The next poll time the next batch is
polled. This prevents high CPU loads due to many channels being polled, but reduces the actual poll time per
channel as the total number of channels is divided by the batch of channels.
• Real-time poll time: the poll time for the real time channels in case an RS232/FLOW-BUS interface box is
used with real-time polling enabled. This requires special configuration, used by e.g. FlowPlot.
• Show date, time, msec. in main window of FlowDDE for each line.
Several advanced settings are available for troubleshooting purposes. Some applications do not support enabling
these settings. If you experience problems, disable these options:
• Enable indirect polling: each FLOW-BUS instrument keeps track of which parameters are changed by itself or
any other instrument. Parameter 81 shows the process in which a parameter is changed. When this option is
enabled, FlowDDE reads parameter 81 and polls the processes that are changed, so applications don’t need
to poll the parameters themselves. Note: this option slows down communication, as much more data is read
from the FLOW-BUS.
• Enable communication to unavailable parameters: DDE items are created for parameters above number 237
when the instrument does not contain the parameter. Close and open the communication after changing this
setting.
• Ignore database restrictions: FlowDDE doesn’t generate errors based on the parameter information in its
database (see chapter 3 and 6), but reads and writes all command to the instrument. When the instrument
returns an error, that error is shown.
In simulation mode only DDE-communication with a virtual system stored in the database is possible. This can be used
when you don’t have a FLOW-BUS system available. Parameter values can be read and write through DDE by your
client. Only controllers are simulated in this mode. Sending a setpoint will result in the same value for measure after a
few seconds.
Simulation start-up:
- Start-up FLOWDDE.EXE, by clicking the icon
- Select [Server][Simulate]
- Wait until message "Simulation=ON"
- Start-up your client application
Disable standard polling temporarily stops FlowDDE from polling the selected parameters and only the read actions in
this test form (or any client) are performed on the instrument.
For standard instrument parameters and the FlowDDE server, these are:
• Server: FlowDDE or FlowDDE2
• Topic: C(X) for channel X
• Item: P(Y) for parameter Y
An example of a DDE link in a Microsoft Excel cell is =FlowDDE|’C(1)’!’P(8)’ to read parameter 8 of channel 1.
P(0) is the command parameter. Write a number to P(0) will trigger FlowDDE to read all parameter values from one or
more channels and update the parameter values at the DDE level. To read a smaller amount of parameters, parameter
groups can be read. Which parameters are in which group can be found in the parameter list.
• C(0)!P(0) = X read values of all parameters of channel X
• C(0)!P(0) = X.Y read values of all parameters in group Y of channel X
• C(0)!P(0) = -1 read values of all parameters of all channels
P(1) is the read status information channel. When FlowDDE is reading data from the FLOW-BUS, all status/error
messages will be send to this parameter. When the value of this parameter is 0, everything is OK, otherwise will
contain the status/error message.
P(2) is the write status information channel. When a client application sends data to FlowDDE and FlowDDE sends the
values to the FLOW-BUS, any status/error messages will be send to this parameter. When the value of this parameter
is 0, everything is OK, otherwise will contain the status/error message.
5.2.2 Parameter 0
Similar to the way parameter 0 of channel 0 can be used to read parameters from any channel, parameter 0 of any
channel can be used to read parameters from that channel:
• C(X)!P(0) = Y read value of parameter Y of channel X
• C(X)!P(0) = Y-Z read values of parameters Y to Z of channel X
• C(X)!P(0) = GROUPY read values of all parameters in group Y of channel X
• C(X)!P(0) = ALL read values of all parameters of channel X
In the following diagram, the communication from a DDE client to the instrument is schematically drawn. The
FlowDDE application makes use of the Flowb32.dll and the parameter database.
DDE client
DDE messages
Included in the
FlowDDE application FlowDDE installation
calls to DLL
Flowb32.dll FlowDDE
parameter database
ProPar (binary)
RS232/FLOW-BUS interface
or multibus instrument
A DDE client communicates to FlowDDE using DDE messages. FlowDDE uses the parameter database for parameter
information and the Flowb32.dll to perform the low level communication to the FLOW-BUS. The Flowb32.dll has
methods to easily send or request a parameter value to a certain node, process and parameter and to get the
answers. From the calls to these methods, it constructs the required FLOW-BUS messages in the binary ProPar
protocol, sends these messages and receives and interprets the answers from the instruments.
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:
[email protected]
For after-sales questions, our Customer Service Department is available with help and guidance. To contact CSD by e-
mail:
[email protected]
No matter the time zone, our experts within the Support Group are available to answer your request immediately or
ensure appropriate further action. Our experts can be reached at:
+31 859 02 18 66