EasyManua.ls Logo

BRONKHORST FlowDDE - DDE COMMUNICATION BY CLIENTS; BASIC PARAMETER COMMUNICATION; SPECIAL OPTIONS

Default Icon
19 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BRONKHORST®
Page16FlowDDE  9.17.067
5 DDECOMMUNICATIONBYCLIENTS
5.1 BASICPARAMETERCOMMUNICATION
ClientapplicationscommunicatetotheFlowDDEserverbyusingDDEmessages.Beforemessagescanbeexchanged,a
DDE link had to be made. A DDE link consists of three parts: the server, the topic and an item. For separation the
characters'|'and'!'maybeused,soaDDE
linkine.g.MicrosoftExcelbecomesServer|Topic!Item.
ForstandardinstrumentparametersandtheFlowDDEserver,theseare:
Server: FlowDDEorFlowDDE2
Topic: C(X) forchannelX
Item: P(Y) forparameterY
AnexampleofaDDElinkinaMicrosoftExcelcellis=FlowDDE|’C(1)’!’P(8)’toread
parameter8ofchannel1.
5.2 SPECIALOPTIONS
5.2.1 Channel0
Specialcommands canbesenttoFlowDDEbymeansofthecommandchannel0,C(0).Thischannelisnotrelatedto
anyFLOWBUSinstrument,butisforFlowDDEcontrolonly.Channel0containsP(0),P(1)andP(2)itemsonly.
P(0)isthecommandparameter.Writeanumberto
P(0)willtriggerFlowDDEtoreadallparametervaluesfromoneor
morechannelsandupdatetheparametervaluesattheDDElevel.Toreadasmalleramountofparameters,parameter
groupscanberead.Whichparametersareinwhichgroupcanbefoundintheparameterlist.
C(0)!P(0)=
X readvaluesofallparametersofchannelX
C(0)!P(0)=X.Y readvaluesofallparametersingroupYofchannelX
C(0)!P(0)=‐1 readvaluesofallparametersofallchannels
OtherspecialactionscanbetriggeredbyP(0):
C(0)!P(0)=‐2 opena
logfile,readallparametervaluesonallchannels,andclosethefile.
C(0)!P(0)=‐3 bringthemainwindowtothefront
C(0)!P(0)=‐4 bringtheFLOWBUSconfigurationwindowtothefront
C(0)!P(0)=‐6 bringthePolltimewindowtothefront
C(0)!P(0)=‐7 bringtheSystemsettingswindowtothefront
C(0)!P(0)=‐8 restartthecommunication
C(0)!P(0)=‐9 terminateFlowDDE
C(0)!P(0)=‐10 minimizeFlowDDE
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
containthestatus/errormessage.
P(2)isthewritestatusinformationchannel.WhenaclientapplicationsendsdatatoFlowDDEandFlowDDEsendsthe
valuestotheFLOWBUS,anystatus/errormessageswillbe
sendtothisparameter.Whenthevalueofthisparameter
is0,everythingisOK,otherwisewillcontainthestatus/errormessage.
5.2.2 Parameter0
Similar to theway parameter 0 ofchannel0canbeused to read parameters fromanychannel,parameter0 of any
channelcanbeusedtoreadparametersfromthatchannel:
C(X)!P(0)=Y readvalueofparameterYofchannelX
C(X)!P(0)=YZ readvalues
ofparametersYtoZofchannelX
C(X)!P(0)=GROUPY readvaluesofallparametersingroupYofchannelX
C(X)!P(0)=ALL readvaluesofallparametersofchannelX