FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
04-16-2021 04:22 PM
Hello together,
has someone ever tried to connect a Siemens PLC to a virtual CtrlX via the OPCUA_Client function block in Siemens TIA Portal?
In the configuration of the client I can set up a connection to the CtrlX (only in TIA portal, not with hardware) but I can't connect the PLC via this function block. For the connection the function block uses the connection information of the configuration. For me it's weird because in the configuration it's possible to have access to the data layer but within the function block I always get the error message 8005_0000 within the subfunction OPC_UA_Connect (see screenshot).
Would be so grateful if someone could help me with this issue! 🙂
Solved! Go to Solution.
04-19-2021 12:52 PM - edited 04-19-2021 12:55 PM
Hello,
the statusCode OpcUA_BadCommunicationError normally occurs, when the connection fails at all. If you want to connect to OPC UA Server on virtual ctrlX from another network host there are many things you should keep in mind (e.g. Port Forwarding, Firewall), since the virtual ctrlX is running in a virtual machine.
The usual configuration which works is:
After the 2 steps you should get at least a connection. Of course other issues can occurs, but you will get another StatusCode, which can help you to slove the issue.