Teilen Sie Ihre Erfahrunge und Wünsche mit uns und anderen Usern!
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?
I was trying to connect a custom Game4Automation Scene to a PLC through OPCUA Interface.
I followed the instructions from this tutorial:
The OPCUAInterface is updating the nodes correctly:
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).
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!
See the connection via OPCwatch
When I try to import the nodes into UNITY see the errors. And I already tried ANONYMOUS SECURITUY POLICY 0.1 AND 2.
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.
What kind of OCUA Server are you using. Is there any possiblity that we test and debug with the same server?
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:
You can see the Inputs and Outputs.
When trying to import these Nodes into Unity with the G4A Framework im getting
In the "PLCOutputBool.cs", when changing from
The import finishes with no more errors.
But now looking into Unitys Hierarchy, no In-/Outputs where generated.(No Dropdown available at the Input & Ouput Gameobject)
Even then whole "PLC_1" Node is missing in Unity.
can you share your PLCSIM-Advanced project (PLCSIMAdvanced 3.0)? Can be a simlified one with just the inputs and outputs.
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?
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.
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.
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?
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?
Please try the current G4A professional beta on our download page https://game4automation.com/download/customers/ we did some changes on the OPCUA side.
Please also check this thread - maybe it is related to the security policy ID. In the new beta there is an additional setting for Security Policy ID - please try to change this to 1 (instead of a 0).
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?
Please try both - latest OPCUA4Unity and the version before. We replaced the full OPCUA basis library in latest release.
Customer support service by UserEcho