• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 918
  • Last Modified:

OPC tools and help vb.net?

Hello,
I am interesting in learning all I can about OPC and vb.net.  Does the net framework provide any classes for building OPC clients?  I have visited plenty of sites and there are  a lot of tools to choose from.  I am having a hard time deciding which ones are the best.  So far I have visited the OPC Foundation which requires a 600 dollar membership fee.  Matrikon, which has plenty of tools, but they dont provide support for costum developing.  The best one I have found so far is Metadynamics, they have provide me with a handy dll file that contains all the com and wrappers to read, write to opc servers, the problem with them is they cost 200 dollars for every machine; that I wish to install an app on, that can get spendy.  Mainly I am just looking for some experienced developers who have used OPC before and know what the best tools are for developing custom apps in vb.net.
0
tentavarious
Asked:
tentavarious
  • 6
  • 4
1 Solution
 
Mikal613Commented:
0
 
tentavariousAuthor Commented:
I should have been more clear in my question,  I was actually looking for more of a opinion on a good tool.  What a developer from this site may have used in the past and is cheap and efficent.
0
 
tentavariousAuthor Commented:
I actually referenced these two com objects,I am not real sure what they do, any ideas?

Imports OpcEnumLib.OpcServerListClass
Imports OpcTimeDLL.OpcServerClass
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Mikal613Commented:
now do a Dim blah as Op  and as you wite youll see the opc options...
0
 
tentavariousAuthor Commented:
i found this block of c# code, when I reference the class there is no method for server.connect
 Dim server2 As OpcTimeDLL.OpcServer
        server2 = New OpcTimeDLL.OpcServer
server2.connect ' this wont work


server = new OPCServerClass();
server.Connect( "?????????????", null );

// this cast fails:
// OPCGroupsClass ogrps = (OPCGroupsClass) server.OPCGroups;

object tmpg = server.OPCGroups;
OPCGroupsClass ogrps = (OPCGroupsClass) Marshal.CreateWrapperOfType( tmpg, typeof(OPCGroupsClass) );
tmpg = null;

int ct = ogrps.Count;
OPCGroupClass og = (OPCGroupClass) ogrps.Add( "MyNewGroup" );
ct = ogrps.Count;
int ur = og.UpdateRate;

0
 
Mikal613Commented:
0
 
tentavariousAuthor Commented:
Looks like this would work, but i cannot find the dll file to reference in my project
Imports EASYOPCDALib
I downloaded the files and this is not a part of the download.
0
 
tentavariousAuthor Commented:
Have you done opc communication before?  If so how did you do it?
0
 
Mikal613Commented:
never did it but i like the learning part :)

http://www.opclabs.com/easyopc/Release/EasyOPC-DA%202.01.exe
0
 
tentavariousAuthor Commented:
Yep, thats the same package.  I went through every folder and I couldnt find the dll file.  I did a system search for the file name and found nothing.  The package doesnt contain any vb.net examples just vb and c++ no .net examples.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now