Sign in to follow this  
Followers 0
Guest trn_psycho

allen bradley.net

10 posts in this topic

Are there any examples on how to use c# or vb.net to connect to an AB PLC? Currently I've been using vb6 to do so, but am being forced to "upgrade" everything to .net. I'm not seeing anywhere in the program to allow me to link to the topics like I did in classic VB.

Share this post


Link to post
Share on other sites
I know that you can't use DDE with VB.net. You must use OPC. I believe that RsLinx SDK gives you samples and some developer help. I have never seen any of this though so I don't know the details Edited by TWControls

Share this post


Link to post
Share on other sites
See this post: http://www.plctalk.net/qanda/showthread.php?t=10339

Share this post


Link to post
Share on other sites
Thanks for the link. Are there additional drivers in the RsLinx SDK that are required for OPC or is it just documentation on how to do it. Or I guess can you use RsLinx OEM with OPC?

Share this post


Link to post
Share on other sites
RsLinx OEM will work just fine with OPC. I have used Linx OEM, Pro, and Gateway for OPC communication developed with Visual Basic 6, there does not seem to be any difference between them. As far as SDK goes I have never used it but yes I believe it does come with some additional documentation on development, but no extra drivers....

Share this post


Link to post
Share on other sites
So how do you figure out how to do RsLinx to Vb.net over OPC. Are there any sample anywhere?

Share this post


Link to post
Share on other sites
I am not too farmiliar with VB.net as I have not yet made the jump, but I will post some simple code I would use for OPC and VB6 and maybe some .NET users out there will see if it can be modified slightly for use with .NET and repost the changed code?? I have been very curious as to the differences there might be. Thanks to anyone who gives this a try Here is the code.. OPC.txt Edited by TechJunki

Share this post


Link to post
Share on other sites
Thanks TechJunki. I will play with it tommorrow. Till now I have only used DDE

Share this post


Link to post
Share on other sites
Feel free to E-Mail or post any questions with the code..

Share this post


Link to post
Share on other sites
Two month ago I spent a day to code a little vb application that read/write a integer to a slc 5/03 via OPC. I first try to do it with VB.net... But I found on AB.com that VB.NET is not supported with RsLinx prior to 2.50. I was working with Rslinx 2.41, so I switch back to VB6 and everything works fine. So be sure to use RsLinx 2.50 to test your VB.NET

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0