There are some issues in using the existing Automation Wrapper (the easiest, no cost way to access an OPC server) from within the .NET languages by using the COM import functions. The OPC group broke some MS rules when they developed the COM interface and it will not import correctly. You can do it yourself if you understand how to write a custom mashalling class in C#. There is an article at
Of course this will cost some money, but from my experience it saves enough headaches to be worth it and the runtime distribution is free.
By the way, NorthernDynamics has a better debugged version of the OPC Automation Wrapper that works fine with VB 6.0 and VBA products. You can get it at
Dear Gianfranco (atikin
Please can you reply when you get the answer for your question
*****" Some one have an example in VB.NET
to write/read in a PLC using an OPCServer? "******
if you just want to be updated when someone posts in a thread that you havent posted in yourself, just add the thread to your subscribed threads:
Go to your own profile . There is a section called Subscribed threads . Select subscribe for the threads that interest you.