Hi, I would like to know what is the best way to write a code for establishing a connection between vb and plc? I just want to read data from plc by using vb....can anyone help me? Thank you
Kepware provides several VB 6 and VB.net code examples With its OPC Server. These are unsupported samples using the OPC Faoundations OPC DA 2.0 Automation Wrapper.
We also have a .Net development package called Client Ace which does have support.
You can also find examples of code at OPCConnect.com
Fred Loveless
Kepware Technologies
http://www.kepware,com
If you use an Omron Plc a good solution (and cheap) I think that is www.plclibrary.com. If you want something more sophisticated try with an Opc Server.
OPC using KepWare is the only practical way of doing it. I just finished a program that uses a PC as a human interface. It's cheaper than having to change touchscreen displays or multi function displays in an agressive environmnent. It takes some time to get used to the code, but KepWare has some examples that are easily adapted to single PLC applications.