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

0
Beantwortet

Driver_Simple script does not accept OPC UA variable nodes

Ernesto vor 3 Jahren in OPCUA4Unity aktualisiert vor 2 Jahren 17

Dear developers,

I was trying to connect a custom Game4Automation Scene to a PLC through OPCUA Interface.


I followed the instructions from this tutorial:

Youtube video


The OPCUAInterface is updating the nodes correctly:


Image 582

However, when I tried to link a bool variable node from the OPCUAInterface to the Driver_Simple interface dragging it and droping it into the forward variable, it wasn't accepted (the forbiden symbol appeared).

Image 583

If I use the PLC signal component I'm able to link the component without problems.

I'm using Unity 2021.3.2f1 Editor and the game4automation-Professional-2019.13 package (OPCUAInterface is not working in the latest version of G4A, see https://forum.game4automation.com/en/communities/1/topics/376-opcua-interface-error-in-activating-session).

Any idea of what am I doing wrong?

Thank you in advance!

Antwort
Support vor 2 Jahren

Hi Ernesto,


I am able to connect and to import the signals (even if I am not able to connect to the PLC because I don't have same setup).


Don't know where the problem is. Just for beeing sure I will send you again the latest code of the interface via mail. Please also check in Kepserver if you enabled anonymous login.


0

I can connect through OPCWATCH but when I try through G4A it doesn't work

Juliano Cortes vor 3 Jahren in OPCUA4Unity aktualisiert vor 3 Jahren 1
See the connection via OPCwatch
Image 578

When I try to import the nodes into UNITY see the errors. And I already tried ANONYMOUS SECURITUY POLICY 0.1 AND 2.
Image 579

0
Fixed

OPCUA problems - doesnt Import any In-/Outputs

AndreS2 vor 3 Jahren in OPCUA4Unity aktualisiert von Support vor 9 Monaten 8

Hey there,

first of all - the example Project provided with the Unified Automation OPCUA Server is working fine. 

Im using the latest Release of G4A which is 2020.16-beta-1123 and Unity Version 2020.3.19

The PLC is created in TIA Portal v17 which sends it to PLCSimAdvanced v4.0.

(Yes(!) i know i could use the PLCSimAdvanced Interface, but for now i have to stick to the OPCUA Interface)

This is what OPC Watch looks like when connected to my PLC which has an OPCUA Server:

Image 565



You can see the Inputs and Outputs. 

When trying to import these Nodes into Unity with the G4A Framework im getting

Image 566


In the "PLCOutputBool.cs", when changing from

Image 567


to

Image 568

The import finishes with no more errors.

Image 569

But now looking into Unitys Hierarchy, no In-/Outputs where generated.(No Dropdown available at the Input & Ouput Gameobject)

Image 570


Even then whole "PLC_1" Node is missing in Unity.

Image 571

Antwort
Support vor 9 Monaten

It is solved @Robin: thanks a lot for your help.

It will be included in release 2022.12.

For everybody having same issue before - please integrate this into OPCUA_Interface.cs:

Image 1081

0
Beantwortet

OPCUA with 2020.15 Doesn't Import Arrays

Neil vor 3 Jahren in OPCUA4Unity aktualisiert von Support vor 3 Jahren 2

Hello. I have setup an OPCUA Client without issue on several versions of Unity (2019.4.18f1, 2020.3.25f1) with game4automation 2020.13. 


I now seem to have an issue Importing array nodes after an update to game4automation 2020.15. 

The nodes import, but the arrays are only a single gameobject without a list of value, instead of a hierarchy array of game objects that it does with 2020.13. 

Is this a known issue, or does it work differently with arrays now? Possibly because of the OPCUA change in 2020.14?

Antwort
Support vor 3 Jahren

Yes, arrays are not supported currently. We will add this in one of the next releases. If you need it at this moment you should go back to the old version.

0
Gestartet

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

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

Antwort
Support vor 3 Jahren

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
Beantwortet

Error in opening secure channel [BadEncodingLimitsExceeded]

Juliano Cortes vor 3 Jahren in OPCUA4Unity aktualisiert von Support vor 10 Monaten 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

Antwort
Support vor 10 Monaten
0
Wird überprüft

OPC UA connection with Rexroth ctrlX

benedikt mayenberger vor 3 Jahren in OPCUA4Unity aktualisiert vor 3 Jahren 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

Antwort
Support vor 3 Jahren

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

0
Beantwortet

Importing Nodes and performance

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

Antwort
Support vor 3 Jahren

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
Fertiggestellt

Hello Thomas,I want to connect to RobotStudio。

Stupiddog vor 3 Jahren in OPCUA4Unity aktualisiert vor 3 Jahren 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!
Antwort
Support vor 3 Jahren

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 vor 3 Jahren in OPCUA4Unity 0

Hi everyone!

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

Regards!