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

+1
Wird überprüft

OPCUA Interface - Error in activating session

Ernesto vor 3 Jahren in OPCUA4Unity aktualisiert von Support vor 2 Jahren 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.

Antwort
Support vor 2 Jahren

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
Beantwortet

Robodk version with game4automation professional or game4automation OPC UA

efrensilveyra vor 4 Jahren in OPCUA4Unity aktualisiert von Support vor 4 Jahren 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
Beantwortet

When will Unity 2019 be supported?

Stan vor 5 Jahren in OPCUA4Unity aktualisiert von Support vor 4 Jahren 5

Hello,


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

With kind regards,

Stan (Developer at Siemens)

Antwort
Support vor 4 Jahren

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
Beantwortet

OPCUA Node Connection Error

Pavian vor 2 Monaten in OPCUA4Unity aktualisiert von Support vor 2 Monaten 8

Hi, I'm trying to read and write value of nodes from OPCUA Server using realvirtual Pro 2022, and here is the situation:

1.OPCUA server connection works good, read and write also works good on OPC Watch.

Image 1198

2.In Unity Editor (2022LTS 3.45 + realvirtual Pro 2022), it also successfully Import all the 63 Objects of Top node 'ns=3;i=2269' (LNGDT_FI3080.PV)

Image 1199

3.However, there is no value has been properly imported for ALL of the nodes. (ex, IP_INPUT_VALUE)

Image 1200

4.I checked the Node ID in OPC watch for the same object (IP_INPUT_VALUE), and I see the different type of the Node ID; 

1) OPC Watch: ns=3;b=AAAAAAAAAADgCAAAAABZdMsDAAA= (Hexadecimal String)

2) Unity Editor:  ns=3;bs=0x0000000000000000E008000000005974CB030000 (ByteString)

Image 1201

5.So I changed the Node ID in Unity Editor from ByteString to Hexadecimal String, still doesn't work. Is there any way to fix this problem?

Image 1202

0
Fixed

Read Node not getting values for arrays

Mike Mar vor 3 Monaten in OPCUA4Unity aktualisiert vor 3 Monaten 5

Hello,

i´m using the OPCUA4Unity standalone package to communicate with my opc server.

Everything is setup correctly and i can connect to the server, import and read nodes.
Unfortunatly i cant get values for arrays though.

Example for the absolutePosition node:
The OPCUA_Node is recognizing that the node is an Array, but still wont fill in any actual values.

Image 1179


I doublechecked the values of the node using the OPCWatch tool:

Image 1180

I cant find anything related in the forums or the documentation.
How to handle arrays?


Kind regard

Mike 

0
Wird überprüft

UWP Deployment for Hololens 2 does not complete successfully Unity 2021.3.21f1

Dominik Zawalich vor 6 Monaten in OPCUA4Unity aktualisiert vor 6 Monaten 5

Hello, it seems like we are having an issue with the OPCUA4Unity asset that we want to use for our Hololens build. We created a new project and were able to create a build for the Hololens without any problems. We then imported the asset from the Asset Store and tried to build again, but to no avail. We didn't add the demo scene into the build, so the problem is not with the scene itself. The build settings match the attached screenshot.

After creating the build in Unity, we open the build folder in Visual Studio and launch the .sln file. We select the Release, ARM64 and Device options and start the process. However, the build process gets stuck at a certain point, as shown in the screenshot.

Image 1112

Image 1111

0
Beantwortet

are method calling available?

mojer vor 7 Monaten in OPCUA4Unity aktualisiert von Support vor 7 Monaten 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
Fertiggestellt

Can UPCUA4Unity achieve PLC data synchronization well?

jinzi-unity vor 8 Monaten in OPCUA4Unity aktualisiert von Zi Jin vor 7 Monaten 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 vor 10 Monaten in OPCUA4Unity aktualisiert von Support vor 10 Monaten 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.