Example VB.NET

atikin

Member
Join Date
Nov 2003
Posts
3
Some one have an example in VB.NET
to write/read in a PLC using an OPCServer?

Thanx
Gianfranco (atikin)
 
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

http://www.viscomvisual.com/dotnet/

Also, another very good OPC programmer's link is

http://www.opcconnect.com/

The easiest way is to use the .NET toolkit from MetaDynamics which follows the OPC specification for the automation wrapper. You can find info at

http://www.metadynamics.com/IndustrialAutomationGroup.htm#OpcClientXNet

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

http://www.opcexperts.com/Main/Products/AWDA/AWDA_Overview.htm

for no charge, other than stating it is a part of your program & give them credit.

Darren
 
Last edited:
VB.NET

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? "******

Thanks
sa
 
salih,

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. :)
 

Similar Topics

Looking for Socket TCP/IP communications program examples for Mitsubishi PLC iQ-R R04CPU using GX Works3, to compliment the Mitsubishi Ethernet...
Replies
1
Views
6,393
Hellow I am looking for an example of the Tag configuration or UDT to communicate ControlLogix via DeviceNet to a Mitsubishi FR-E-700 series...
Replies
4
Views
3,460
Hi! I need to communicate a compactlogix with some Modbus tcp devices. For this I´m using the Prosoft MVI69-MNET module. Does anyone have any...
Replies
2
Views
3,120
Hello sameone have Beckhoff PLC Siemens Sinamics V90 configuration example?
Replies
0
Views
99
Back
Top Bottom