LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to connect with OPC Server opc.sinumerik.machineswitch using DS_Open

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

 

0 Kudos
Message 1 of 3
(5,453 Views)

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

0 Kudos
Message 2 of 3
(5,408 Views)

Hi Ulrich,

thanks a lot for your suggestions, which I will definetely try out.

 

Regards,

Ronald

0 Kudos
Message 3 of 3
(5,406 Views)