Teilen Sie Ihre Erfahrunge und Wünsche mit uns und anderen Usern!
Exception: Exception of type 'System.Exception' was thrown. LibUA.MemoryBufferExtensions.Decode (LibUA.Core.MemoryBuffer mem, LibUA.Core.NodeId& id) (at Assets/game4automation/private/Interfaces/OPCUA4Unity/private/LibUA/MemoryBufferExtensions.cs:1865) Li
We found the issue with Prosys.
I'm having problems to connect to a remote OPC UA server using the OPCUA Interface Component.
I followed the "Connection troubleshouting" guidelines provided in "/game4automation/Documentation/opcua.html".
Configuring the OPC Server with "No security certificates and passwords" I could connect OPC Watch with the server (see Image):
However, when I tried connecting through the Unity OPCUA Interface:
I get the following error message:
OPCUA Interface - Error in activating session [BadUnknownResponse]
game4automation.OPCUA_Interface:Connect () (at Assets/game4automation/private/Interfaces/OPCUA4Unity/OPCUA_Interface.cs:179)
game4automation.OPCUA_Interface:EditorImportNodes () (at Assets/game4automation/private/Interfaces/OPCUA4Unity/OPCUA_Interface.cs:246)
game4automation.OPCUAInterfaceEditor:OnInspectorGUI () (at Assets/game4automation/private/Interfaces/OPCUA4Unity/private/Editor/OPCUAInterfaceEditor.cs:20)
As it can be seen in the last image, I'm using Unity 2021.3.2f1 Editor with Game4Automation Digital Twin Professional 2020.
Any idea of what I'm missing?
Thank you in advanced.
Which version of robodk is compatible with game4automation opc ua or game4automation professional. I ask, because I want to communicate robodk 4.0 with game4automation professional.
I was wondering when will OPC UA for Unity 2019 will be supported?
With kind regards,
Stan (Developer at Siemens)
Hi, we have no tutorial about that.Even if Unity 2019 is not officially supported yet, you should be able to get it running. What is your problem. What kind of error messages do you have?
Every time a node I'm subscribed to is read as null, the client disconnects. The type of the node I'm trying to read is a float if that matters.
OPCUA Interface - Subscription with ClientHandle 78 Value Changed ns=2;s=NodeA Value [25,1]
OPCUA Interface - Subscription with ClientHandle 80 Value Changed ns=2;s=NodeB Value [140305,5]
OPCUA Interface - Subscription with ClientHandle 80 Value Changed ns=2;s=NodeB Value [140207,5]
OPCUA Interface - Subscription with ClientHandle 88 Value Changed ns=2;s=NodeC Value [NULL]
OPCUA Interface - Client Disconnected
This happens with any node, whenever a value is written as [NULL]
Any help would be appreciated about how to make it so that the program doesn't crash.
WebGL 浏览器报 OPCUA Interface - Connection Error Could not resolve host，错误，哪位大佬知道？
I am using OPCUA4UNITY. When I try out the demo scene with the OPC UA C++ Demo Server, I get this error when trying to read nodes. Importing nodes seem to work fine.
And for some nodes (DateTime in this case) I get this error. None of them seems to work.
Using Unity version 2022.3.0
When connecting the OPCUA_Interface with a PLC I lose connection with the PLC after a certain amount of time. One kicks me out after 2 min, another after 15 min (2 different connections).
The interface seems not to notice the disconnect because the value of isConnected in the interface stays on true but if I check the connected clients to the PLC the interface is gone (which was there on startup).
Reading a value after the disconnect on node level gives me the status value: Connection error
I import the nodes with the editor button but remove all nodes I dont need. And I dont continuously get new values on the nodes I keep. I can have the same values (no changes) for long periods of time.
Does the Interface only keeps the connection alive if the values continuously update or is something else going wrong?
Yes I understand but the used Library gives us no direct information about disconnection events. And I don't know exactly in your case who is closing the communication when nothing happens - is it the client or the server. I am closing this issue because for the moment we don't have a better solution.
When loading the nodes from a asyncua server with an organizes refrence the loading ends in an infinity loop. I have the organizes refrence assigned to an object (against the standard), i dont know if this is the problem. When i use the client in the documentation to test the connection the client is working properly.
Customer support service by UserEcho