Your comments
Any update? I cannot connect to kepserverex yet. Could you please indicate me a tested OPCUA server compatible with Siemens PLC? Perhaps Siemens OPCUA server?
Thank you in advance!
Using the following link https://github.com/ErnestoSolanes/Project4Testing.git you can clone the unity project and hereServer is the server config that you can open with Kepserverex https://www.kepserverexopc.com/. The server is configured to communicate via TCP/IP to a Siemens PLC.
Thank you for the help in advanced!
Sure. Let me simplify the unity project and I'll share it together with the server file.
Thank you for the help!
Thank you for the reply.
I tried what you said but the same connection issue appears :(.
Anything more I could try?
Thank you in advance!
After adding the GAME4AUTOMATION definition, the Create Signals tag has listed as shows the following image. However, when I try to import the nodes, the following error appears:
"OpcException: The operation could not complete because the client is not connected to the server.
Opc.UaFx.Client.OpcClient.DenyIfNotConnected () (at <57347b42bf0a478bfdd00d22c94151bd>:0)
Opc.UaFx.Client.OpcClient+x.MoveNext () (at <57347b42bf0a478bfdd00d22c94151bd>:0)
System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) (at <1e18c5a6594041c9844bfd0b6618ee4a>:0)
System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <1e18c5a6594041c9844bfd0b6618ee4a>:0)
Opc.UaFx.Client.OpcClient.BrowseNode (Opc.UaFx.OpcBrowseNode command) (at <57347b42bf0a478bfdd00d22c94151bd>:0)
Opc.UaFx.Client.OpcClient.BrowseNode (Opc.UaFx.OpcNodeId nodeId) (at <57347b42bf0a478bfdd00d22c94151bd>:0)
game4automation.OPCUAConnection.GetAllSubNodes (System.String nodeid) (at :0)
game4automation.OPCUA_Interface.GetAllSubnodes (System.String nodeid) (at Assets/game4automation/private/Interfaces/OPCUA4Unity/OPCUA_Interface.cs:226)
game4automation.OPCUA_Interface.ImportNodes () (at Assets/game4automation/private/Interfaces/OPCUA4Unity/OPCUA_Interface.cs:252)
game4automation.OPCUAInterfaceEditor.OnInspectorGUI () (at Assets/game4automation/private/Interfaces/OPCUA4Unity/private/Editor/OPCUAInterfaceEditor.cs:20)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.b__0 () (at <5cf6bb2c14f1476f9cd6b153e70ca8b2>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)"
I can communicate with the OPC server with the client OPCWatch:
Any idea of what I'm doing wrong?
Thank you in advance!
I've got Game4Automation Digital Twin Professional 2020 and Game4Automation Simulation.
The problem is that the 2020 version of OPCUA is not working (see https://forum.game4automation.com/en/communities/1/topics/376-opcua-interface-error-in-activating-session) and I'm using the 2019 version of Game4Automation Professional.
I don't remember to get errors the first time I installed the packages (I removed the json because it was already installed by another package).
I'm going to add the GAME4AUTOMATION in the compiler definitions. and see what happens.
Thank you!
By the way, just in case it helps, the OPCUAInterface component does not have the option "Create signals":
Thank you for the help. However, looks like I'm missing something else.
In the player settings, the compiler is defined as GAME4AUTOMATION_PROFESSIONAL:
Whe I import the nodes through the OPCUAInterface component, the PLC scripts you refered are not set automatically. If I add them manually, I can link the nodes in the Driver_Simple component but, when I start the simulation, looks like there is not communication between the PLCOutput script and the OPCUA node:
In addition, the script is desabled as you can see in the image before.
Any idea of what am I doing wrong.
Thank you in advance!
Customer support service by UserEcho
Any update? I cannot connect to kepserverex yet. Could you please indicate me a tested OPCUA server compatible with Siemens PLC? Perhaps Siemens OPCUA server?
Thank you in advance!