unable to connect opc ua sdk c++ sample client with Twincat

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
devaphani
Full Member
Full Member
Posts: 8
Joined: 12 Apr 2013, 10:12

unable to connect opc ua sdk c++ sample client with Twincat

Post by devaphani »

Hello ,
I am trying to develop OPC UA client with help of your tutorials . Initially I am trying to connect your demo sample client with Twincat opc ua server with port address :"opc.tcp://localhost:4840" but I am unable to connect it can you please help how to solve this .

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: unable to connect opc ua sdk c++ sample client with Twin

Post by Support Team »

Dear devaphani,

it seems, that you try to connect to a URL on your local machine (opc.tcp://localhost:4840). If you want to connect to a PLC, the URL given should be on some other machine (the PLC's hostname or IP-address) with the right port.

Best regards
Support Team

Post Reply