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

0
Started

OPCUA4Unity can't connect to opcua server with username and password

penjami rantakangas 2 years ago in OPCUA4Unity updated by Support 2 years ago 5

Anonymous connection works fine, but when using a username and password, the console doesn't show any errors in creating the connection, but I am not able to read or write to nodes. Also the server doesn't acknowledge the connection. Even when using application certificates the connection doesn't work properly. Using OPC Watch or UaExpert I can easily connect to the server with the username and password.

Answer
Support 2 years ago

Unity is connecting successfully but afterwards no nodes are available when the connection is done with a username and password. Are there any special security settings on the nodes itself in the server which could prevent the reading when loggin in with a user?

0
Answered

Error in opening secure channel [BadEncodingLimitsExceeded]

Juliano Cortes 2 years ago in OPCUA4Unity updated by Support 2 months ago 3

I have this problem when I try connecting Prosys OPC UA server simulator: OPCUA Interface - Error in opening secure channel [BadEncodingLimitsExceeded]

I can connect with OPC watch like in game4automation documentation. Whats wrong?

Image 533

Image 534

Answer
Support 2 months ago
0
Under review

OPC UA connection with Rexroth ctrlX

benedikt mayenberger 2 years ago in OPCUA4Unity updated 2 years ago 6

Hi, we tried to create a simulation with G4A and OPCUA4Unity together with a Rexroth ctrlX as OPC UA server. But unfortunate the client doesn't want to connect. The ctrlX offers only secure Endpoints but the OPCUA4Unity doesn't accepts them. Is there a reason for that or could we configure the client to accept this?

Image 493

Image 494

Image 495

Answer
Support 2 years ago

Please try both - latest OPCUA4Unity and the version before. We replaced the full OPCUA basis library in latest release.

0
Answered

Importing Nodes and performance

TVSundt 2 years ago in OPCUA4Unity updated by Support 2 years ago 1

I just got started with OPCUA. I have a Siemens S7-1500 connected via ethernet cable. I can connect to it and read the nodes, but I can't import nodes via OPCUA Interface. I also did a test with GetAllSubnodes(topnodeid) and it found all 9 nodes it should.


My biggest issue however is using the data. If I use the recommended subscribe method, it is simply too slow (updates around 2 times a second). If I use the direct method I get the update speed, but fps tanks to unbearable with just 1 node.


How can I get better update rates with the delegate/subscribe method? (or any for that matter)


Unityversion: 2020.3.12f1 LTS

Answer
Support 2 years ago

Hi, OPCUA is by itself a very slow connection. It has much communication overhead and the S7 OPCUA server is also as far as I know limited to 100ms cycle time. If you need fast update rates you should use S7 TCP, this is much faster. So OPCUA is mainly usefull for HMI stuff but not for fast sensor and axis data.

0
Completed

Hello Thomas,I want to connect to RobotStudio。

Stupiddog 2 years ago in OPCUA4Unity updated 2 years ago 8
I watched your video(ABB RobotStudio with Unity and Game4Automation)it show you use OPCUA to connect,I want to use OPCUA too,but I don't how to do it,could you make a video show me how to do it?Thanks very much!
Answer
Support 2 years ago

This interface is working without Simit it is just using the Simit Interface on ABB Robot Studio side (G4A is acting like Simit)

0

KepserverEX 6 and OPCUA Interface of Game4Automation

efrensilveyra 3 years ago in OPCUA4Unity 0

Hi everyone!

Someone with experience connecting KepserverEX6 and OPCUA Interface of Game4Automation, and also writing and reading tags between them.

Regards!

0
Fixed

Subscribe problem using multiple OPCUA Interfaces

TedSwanseaUni 3 years ago in OPCUA4Unity updated 3 years ago 3

Our physical machine is made up of multiple OPCUA servers. 

In our Unity scene we have several OPCUA_Interface objects to connect to each server and a OPCUA Node connected to each interface.


If we use Read Value on the nodes we get the values we expect, however if we use the subscribe option we get the same value across all interfaces as if they are being overwritten somehow. We can get around it by using Read Value but it seems to come with a heavy performance cost. 


Is this a bug or is there another way to set this up?

Many thanks


 

Answer
Support 3 years ago

Hi Ted,

I am sending you a new DLL.

A new Beta (2020.02-beta-521) that is fixing this issue will be available soon on our download pages.

Best regards

Thomas

0
Fixed

OPC UA cannot import nodes

oli_ver142 3 years ago in OPCUA4Unity updated by Support 3 years ago 2

Für ein Projekt versuche ich die Nodes vom C++ Test Server von Unified Automation zu importieren. Die Verbindung funktioniert und OPC Watch zeigt den Server mit allen Nodes korrekt an. Wenn ich aber "Import Nodes" in Unity drücke, dann kommt eine Exception:

Image 383


In den Einstellungen habe ich eigentlich nichts verändert:

Image 384

Ich bitte um Hilfe.

Answer
Support 3 years ago

Es ist eine neue Beta im Downloadbereich (https://game4automation.com/download/customers/).

Dort ist das Importproblem behoben.

0
Answered

OPCUA4Unity接口是否可以部署在Hololens 2上?

903112780 3 years ago in OPCUA4Unity updated by florian badertscher 3 years ago 8

OPCUA4Unity接口是否可以部署在Hololens 2上?

Answer
Support 3 years ago

Sorry I can't read the question. But Hololens 2 is not supported.

Please check https://game4automation.com/documentation/current/opcua.html for more information about what platforms are currently supported.

0
Answered

OPCUA and custom types

acour 3 years ago in OPCUA4Unity updated by Stupiddog 3 years ago 13

Hi,

I'm currently learning how to use game4Automation for a project and I'd like to read custom data types from the OPCUA server.

In the demonstration server, there is a Work Order variable (ns2, s=Demo.WorkOrder.WorkOrderVariable) which contains a StatusComments array recognized as an ExtensionMethod by game4automation. This array can be read as a byte[] array, but is there any better way to do this? It is pretty messy and not easy at all to work with.

Thanks for your answer!

Answer
Support 3 years ago

Hi, I just checked your problem.

Currently I don't see an easy solution.


 You might check out the solutions of Traeger which gives you a more advanced access to OPCUA via C# (see https://docs.traeger.de/en/software/sdk/opc-ua/net/client.development.guide). 


If you want to switch to the solution of Trager we can refund you the money if you would like.