Re: [foxboro] C:B.P writing

Marcelo,

You can use DDEPoke directly within your VB code.  After you initiate the
connection with DDEInitiate and get a ChanneNum, you can poke with:

        DDEPoke ChannelNum, Item, Value

Where Item is Host/CBP and Value is the value you want.  Pokes take some
time and can impact loading, so space them apart.

Or you can use a DDE Control (Link) - have form linkmode set to 1

Establish the link:

        With Link
                .LinkMode = vbLinkNone
                .LinkTopic = strApp + "|" + strTopic  'aimdlink|objaccess
                .LinkItem = ""        
                .LinkMode = vbLinkManual
                openAWChannels = True
        End With
 
Do the Poke:

        With Link
                .Text = strValue          'put the value to be passed into
the text control
                .LinkItem = strObject     'the object is host/cbp
                .LinkPoke
        End With

Of course, you'll want to include error handling and retry logic as well.

Best Regards,
Janet H. Pyle
Invensys Process Systems
Houston, Texas

-----Original Message-----
From: MMiacca [mailto:miacca@xxxxxxxxxxxx]
Sent: Friday, May 30, 2003 2:14 PM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] C:B.P writing


Hi List,
            does anyone knows if it is possible to use an AIM Datalink
object (e.g. AIMDatalinkDFWSETS) to write to a C:B.P? I mean, without using
a Excel spreadsheet and Datapoke.  We are traying to use VB6.0 to simulate a
process loop and want to use the Datalink tools to read/write to C:B.P.
        TIA,
------------------------------------------------------
Mr. Marcelo M. Miacca
Control Division
INVAP SE
Bariloche - RIO NEGRO
ARGENTINA
www.invap.com.ar
-------------------------------------------------------

 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: