×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How can i connect to a PLC using VB.NET?

How can i connect to a PLC using VB.NET?

How can i connect to a PLC using VB.NET?

(OP)
In the past i have previously used VB6 and DDE with RSLinx, but with the release of VB.NET DDE has been dropped.

Any suggestions?

RE: How can i connect to a PLC using VB.NET?

Newer vesions of RSLinx is an OPC Complient Server. You can connect using an OPC Client OCX.

RE: How can i connect to a PLC using VB.NET?

I've used VB.NET as an OPC Client to RSLinx.

.NET has a problem with OPC because COM Interop can't handle the interface.

IMO the best way is to use COM objects that make the OPC calls and then expose an Interop freindly interface to .NET
This is the approach taken by Kineticart and is the one I've used. Their OPC client is extremely good value.  See www.kineticart.co.uk.

There is also a 'pure .NET. method as discussed in the following article:

"OPC and .NET with COM Interoperability" http://www.codeproject.com/dotnet/opcdotnet.asp

Email me if you want to know more

RE: How can i connect to a PLC using VB.NET?

OPCWare Client Developer (http://www.opcware.com/OPCWare.html) includes a VB.NET sample project. That ActiveX packs plenty of power, and is definitely the fastest way to get your OPC client applications developed.

RE: How can i connect to a PLC using VB.NET?

The OPC Data componant and OPC Web Client are .Net componants that have been used in a number of industrial applications.  See http://www.opcdata.net/

They also have lots of example code!

RE: How can i connect to a PLC using VB.NET?

I have used a .ocx from Autoamted Solutions that will talk to the most popular of AB products via Ethernet, KTX or DF-1. I think its a superior product because i can control the timing and programming methodolgy that works best for the project. Otherwise you have of conform to AB gudilines of OPC or DDE.

RE: How can i connect to a PLC using VB.NET?

I've the above referenced OCX control from Automated Solution many times and it's always been very fast and very reliable. I recommend it very highly, not only because of it's abilities but also because of it's price!!

RE: How can i connect to a PLC using VB.NET?

I have read alot about this, one piece of information that seems to be missing is how do you have the plc initialize the communication to the pc.  Such as we want to log to a sql server, but the logging is random.

These are the two ways that i know of but would like to know if there is any better.

1. Timer on pc in vb.net app checking plc for a bit that indicates a log entry needs to be made.

2. IO card in PC interfaces to IO on plc, but you still need a timer to check that IO since there is no real event for IO cards.

Any suggestions?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now