BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

User guide to using RSLinx w/ Delphi? What Commands?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Kelly
Guest





PostPosted: Wed Dec 10, 2003 8:43 pm    Post subject: User guide to using RSLinx w/ Delphi? What Commands? Reply with quote



I'm pretty new at this. I can't find any Delphi help for
communicating through RSLinx. Is there any good user guides on what
commands to use and such?

Thanks
Back to top
Tony J Hopkijnson
Guest





PostPosted: Wed Dec 10, 2003 11:03 pm    Post subject: Re: User guide to using RSLinx w/ Delphi? What Commands? Reply with quote



If you are using DDE I can help by digging out some examples I wrote
about six, seven years ago, for linking a delphi client through RSLINX
to an Allen Bradley PLC. if you've moved to OLEPC, I'll be stuck
though I understand from the guys who continued where I left off they
tried this and dropped as it was very flakey and now use a third party
product to achieve the communications.

Post back if you haven't got anywhere and I'll see if I can put you on
to a man who can and has.

Back to top
Kelly
Guest





PostPosted: Thu Dec 11, 2003 2:42 pm    Post subject: Re: User guide to using RSLinx w/ Delphi? What Commands? Reply with quote



Tony J Hopkijnson <myname (AT) hotmail (DOT) com> wrote

Quote:
If you are using DDE I can help by digging out some examples I wrote
about six, seven years ago, for linking a delphi client through RSLINX
to an Allen Bradley PLC. if you've moved to OLEPC, I'll be stuck
though I understand from the guys who continued where I left off they
tried this and dropped as it was very flakey and now use a third party
product to achieve the communications.

Post back if you haven't got anywhere and I'll see if I can put you on
to a man who can and has.

I'm using DDE. Commands like LinkMode, poke, etc.., These are
commands to talk to RSTools activeX components are to talk to
RSLinx? Is RSLinx just behind the scenes? Where's a good place
to find information on RSTools and RSLinx?

Back to top
Tony J Hopkinson
Guest





PostPosted: Thu Dec 11, 2003 6:57 pm    Post subject: Re: User guide to using RSLinx w/ Delphi? What Commands? Reply with quote

On 11 Dec 2003 06:42:59 -0800, [email]kcoffey (AT) uss (DOT) com[/email] (Kelly) wrote:

Quote:
Tony J Hopkijnson <myname (AT) hotmail (DOT) com> wrote

If you are using DDE I can help by digging out some examples I wrote
about six, seven years ago, for linking a delphi client through RSLINX
to an Allen Bradley PLC. if you've moved to OLEPC, I'll be stuck
though I understand from the guys who continued where I left off they
tried this and dropped as it was very flakey and now use a third party
product to achieve the communications.

Post back if you haven't got anywhere and I'll see if I can put you on
to a man who can and has.

I'm using DDE. Commands like LinkMode, poke, etc.., These are
commands to talk to RSTools activeX components are to talk to
RSLinx? Is RSLinx just behind the scenes? Where's a good place
to find information on RSTools and RSLinx?

If you find any info on it all your lucky, with delphi little or no
chance unless you bump into a fella who's dome it before.
Since you are using DDE, I'll dig some examples out. I'll have to hook
them back off CD and maybe sanitize them a bit.

As far as RSLinx goes. It's basically a program to convert AB's
proprietry network, or data highway traffic into some thing that can
be accessed through windows Originally DDE and then later COM.
Essentially once you've connected it up you can then access plc memory
locations by setting up a 'conversation' . You choose the plc, specify
the address start and number of locations (not bytes) and a topic
name. In DDE mode then RSLinx should (fingers xed a bit with dde) send
you a windoes dde message with the content of those addresses each
time some thing changes. Equally you can write to the topic and those
values will magically appear in the plc.

Anything (123 or Excel are good for verifying) that can talk via dde
can then talk to the plc simply by making RSLinx the sever and the
topic name defined in rslinx the ddeItem.

I'll zip up some code and post it into the attatchments group when I
get a minute. There may even be some comments in it !.
Code was written in Delphi 4, running under NT 4 with RSLinx 2.0, I
vaguely remember.

The code itself will be for a link between a buffer of product
information from a plc used in manufacturing system. The data was
used to then create/update entries in the production database
implemented in SQL Server (6.0) at the time.

Have a peruse of the code and a play, I'll try a and comment some of
the strategies for making sure you don't miss changes

P.S. I have n't used them for a while so they may have improved but
the dde components you got with delphi were incredibly flaky.


Back to top
Tony J Hopkinson
Guest





PostPosted: Thu Dec 11, 2003 10:36 pm    Post subject: Re: User guide to using RSLinx w/ Delphi? What Commands? Reply with quote

Code in Borland.public.attatchments

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.