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?
Any suggestions?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Contact USThanks. We have received your request and will respond promptly. Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines |
How can i connect to a PLC using VB.NET?
|
RE: How can i connect to a PLC using VB.NET?
RE: How can i connect to a PLC using VB.NET?
.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?
RE: How can i connect to a PLC using VB.NET?
They also have lots of example code!
RE: How can i connect to a PLC using VB.NET?
RE: How can i connect to a PLC using VB.NET?
RE: How can i connect to a PLC using VB.NET?
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?