Teilen Sie Ihre Erfahrunge und Wünsche mit uns und anderen Usern!

+1
Under review

OPCUA Interface - Error in activating session

Ernesto 2 years ago in OPCUA4Unity updated by Support 2 years ago 30

Dear all,

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):


Image 576


However, when I tried connecting through the Unity OPCUA Interface:


Image 577


I get the following error message:

OPCUA Interface - Error in activating session [BadUnknownResponse]
UnityEngine.Debug:LogError (object)
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)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


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.

Answer
Support 2 years ago

Hi, I checked. I found an issue with reconnection, that is why I am attaching here a new script. This will be included in next release.

OPCUA_Interface.cs

The disconnect problem and the PLCOutputBool can't be reproduced here on my computer with Simit.

+1
Answered

Robodk version with game4automation professional or game4automation OPC UA

efrensilveyra 3 years ago in OPCUA4Unity updated by Support 3 years ago 1

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.

+1
Answered

When will Unity 2019 be supported?

Stan 4 years ago in OPCUA4Unity updated by Support 4 years ago 5

Hello,


I was wondering when will OPC UA for Unity 2019 will be supported?

With kind regards,

Stan (Developer at Siemens)

Answer
Support 4 years ago

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?

0
Answered

are method calling available?

mojer 6 days ago in OPCUA4Unity updated by Support yesterday at 7:05 a.m. 1

Hi,

I was wondering if It is possible to call methods of a OPCUA server from the unity Side and how it can be done.

Thanks in advances

0
Completed

Can UPCUA4Unity achieve PLC data synchronization well?

jinzi-unity 2 weeks ago in OPCUA4Unity updated by Zi Jin 1 week ago 6

Dear author, I want to buy your upcua4Unity, but I want to ask you a question. I need to collect data into Unity3d via KepServerEX's UPCUA protocol. I see OPCUAInterface and OPCUA_Node in the API. When the number of OPCUA_Nodes I need increases to 100+ or even 1000+, I can easily iterate the addresses corresponding to the PLC with low latency. Digital increment? Can you give me some better advice?

0
Not a bug

Reading a NULL value causes disconnection

Ege 3 months ago in OPCUA4Unity updated by Support 2 months ago 2

Hello,

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.

Thank you.

0
Completed

OPCUA Interface - Connection Error Could not resolve host

704985424 7 months ago in OPCUA4Unity updated 7 months ago 2

WebGL 浏览器报 OPCUA Interface - Connection Error Could not resolve host,错误,哪位大佬知道?

0
Fixed

Error in creating new Subscription in Demo Scene (OPCUA4UNITY)

Ege 7 months ago in OPCUA4Unity updated by Support 5 months ago 2

Hello,

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.

Image 980

And for some nodes (DateTime in this case) I get this error. None of them seems to work.

Image 981

Using Unity version 2022.3.0

0
Under review

OPCUA - ROBODK

Matvienko Matvey 7 months ago in OPCUA4Unity updated by Support 7 months ago 3

Hello!

When I'm trying to connect to RoboDK with OPCUA - getting this message.
How to solve this problem?

Image 978