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

0
Answered

Application name on OPC UA port is not supported

Elio 1 year ago in OPCUA4Unity updated by Support 1 year ago 5

Hello,

I am trying to connect a CS9 controller from Stäubli, but the OPC UA server is published on the following address: 

opc.tcp://172.XXX.XXX.XXX:4880/Staubli

This last "/Staubli" data can not be written in the Port field or any other in OPC UA script, so the connection can not be stablished... It is not possible to modify the address in the controller, so I would like to know how can I define this address to properly connnect my server.

Answer
Support 1 year ago

This feature will be included in the next release (2021.14) which will be available about 17.02.2023

0
Answered

how to handle for the bad status of a node

eternalism 1 year ago in OPCUA4Unity updated by Support 1 year ago 5

hi,

i am making a app watching Devices through the "KEPServer for OPC".

so, i made subscribe multiple nodes.

then i expected my app work similar with "OPC Watch".

the result i did test, some nodes was often get bad status.

If any of the nodes is in a bad status, your plugin only disconnects from a server without handling any after works.

Or, If some nodes is bad status at starting app and first connection, the App was get "Not Answer".

On the contrary, the OPC Watch is continue updating under the same circumstance stably.

Currently,

i make reconnecting when disconnected and trying to subscribe after checking that connection of a Bad nodes each seconds via ReadValue Method.

it seem to be not good way, i think...

what is the best strategy for handle a Bad status of node?

0
Answered

OPCUA update variables on connect

Edu 1 year ago in OPCUA4Unity updated by Support 1 year ago 3

Hello

I am working on a project to work with realvirtual as HMI with OPCUA4Unity communicating with plc omron.

Reading and writing work perfectly while everything is connected.

The problem is that whenever the unity application connects the values used to write from unity to the plc are overwritten by 0 instead of being updated with the values from the plc in the first place.

0
Fixed

OPCUA plc input script don´t write to server opcua and plc

Edu 1 year ago in OPCUA4Unity updated by Support 1 year ago 13

Hello

I have managed to connect opcua4unity with the kepware server.

opcua4unity <-> kepserver <-> cp1l(omron) and opcwatch.

opcwatch connects perfectly with kepserver, reads and writes without problems.

opcua4unity connect ok, import nodes ok and read ok, but don't write values to server and plc.

attached photos.


Image 753

Image 754

I have also tried write value=on and subscribe value=off, but it doesn't work either.

Thank you.

Answer
Support 1 year ago

The issue is solved and will be released today in realvirtual.io Professional 2021.10.

0
Answered

[Question] OPC-UA Realtime Interface Graphic Stuttering Issue

Reverse Kim 2 years ago in OPCUA4Unity updated by Support 2 years ago 2
Youtube video


Hi, I bought realvirtual,io for interface with Factory Robot to build Digital Twin


I followed realvirtual.io Youtube Guideline and build up Robot and Drive and successfully interface with our OPC-UA Server


but, there are some Graphical Issue in Robot.


the Drive Follow Position Module can get Tag Data, but some Robot motions skip in the Field.

How can I solve those Issue? Please Help.

0
Answered

Problems in OPCUA4Unity Output

Janik Tian 2 years ago in OPCUA4Unity updated by Support 2 years ago 4

Servus, I'm using OPAUA Interface for my first Program, but there are some problems with communication when i write int and float format variables in my PLCs.  In Figure 3 and 4 I try to write INT values to "robotArmSuccess" but in OPC Server the corresponding values are not changed. Then I read Demo of OPCUA and modify my Program with the function WriteNodeValue(NodeId, value) , it did not work in PLC Server, according to figure 1 and 2 . Could you please give me some Guidance for this situation?  

Image 595

Figure 1

Image 596

Figure 2

Image 593

Figure 3

Image 594

Figure 4

0
Answered

Driver_Simple script does not accept OPC UA variable nodes

Ernesto 2 years ago in OPCUA4Unity updated 2 years ago 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!

Answer
Support 2 years ago

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 2 years ago in OPCUA4Unity updated 2 years ago 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 2 years ago in OPCUA4Unity updated by Support 1 month ago 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

Answer
Support 1 month ago

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
Answered

OPCUA with 2020.15 Doesn't Import Arrays

Neil 2 years ago in OPCUA4Unity updated by Support 2 years ago 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?

Answer
Support 2 years ago

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.