02-24-2011 02:47 AM
Hi,
I want to connect to an Siemens OPC server type opc.sinumerik.machineswitch using DS_Open calls (CVI 6.0) to read few tags. Running my client software (as well as the NI- sample test client) locally on the same computer as the server the connection works and I can access the tags.
Running the client-software on a remote PC then the DS_Open call "hangs-up" (not even an error message). All the DCOM settings etc should be ok, since I can access the tags using the Siemens Client OPC-Scout as test client.
I have used the same calls in several previous applications and it works with other servers (Bachmann, WinCC), so I am pretty sure that I use the correct URLS etc.
What can be the reason for a specific incompatibility?
Any idea is highly appreciated.
Cheers,
Ronald
03-04-2011 03:03 AM
Hi Roland,
as experience shows, Remote DataSocket is hard to implement.
The best way to implement this communication is the following:
First of all, check the DCOM -Settings
Using OPC via DCOM with Windows XP
http://www.opcfoundation.org/DownloadFile.aspx?RI=326
Use the “NI-OPC Server” to create a tunnel between the Siemens OPC server and your PC.
Install the NI-OPC Server on your PC and use the “OPC DA Client Driver” to access the tags on the Siemens OPC server.
After that you can access the created tags in the NI-OPC Server with CVI and DataSocket.
Please download the NI OPC Servers Evaluation-Version to test communication.
NI OPC Servers
http://sine.ni.com/nips/cds/view/p/lang/en/nid/209059
Download NI OPC Servers Evaluation
https://lumen.ni.com/nicif/us/evalopc/content.xhtml
Regards
Ulrich
03-04-2011 03:14 AM
Hi Ulrich,
thanks a lot for your suggestions, which I will definetely try out.
Regards,
Ronald