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

0
Fixed

help for reading values from opcua server

Yulong Ding 5 years ago in OPCUA4Unity updated by Support 5 years ago 5

I bought the OPCUA4UNITY asset recently, then I set up a simple opcua server with python-opcua (code is here). It’s able to connect the server, import the nodes, but there is no data showing in the inspector when I click the “Update Node” button.

I tried to debug in VS. It seems the "Value" property of opcNode is missing.

Then I used OPC watch, the value can be read.

Image 32

I also tried other opcua servers, like UA-.NETStandard has the same problem and another problem is it cannot import all the nodes in unity.

For “OPC UA C++ Demo Server V1.7.0” server, value can be read correctly, but it cannot import all the nodes in unity.

I have struggled several days, please help me, thanks a lot!

Answer
Support 5 years ago

I have found the problem. It will be included in the next release. I will send you a patch via mail!

0
Answered

Display NodeID value as text in Unity

allenlimofficial 5 years ago in OPCUA4Unity updated by Support 5 years ago 3

Image 21

Hello. I have since bought your OPCUA4Unity, and followed your tutorials in the YouTube video. I wish to refer to your Text with Delegate text. I tried doing the same thing but i am unable to output anything to my game. I am able to type in the "Text From OPCUA Node" and it comes out in the game. May I know how did you connect the script to the string that you wanted for display? 


In my case, I wish to reference it to the "Value". I have tested running your OPCUA_Node and Interface and they work well (sweet!) but as we know it does not show up in the game scene. So I hope you may advise me on what are the steps needed. Thank you!

Answer
Support 5 years ago

Hi,

a few questions from my side to understand the problem.

Did you checked the NodeID you want to display the text from with an OPC UA Browser (you can find several in the internet).

Is the text displaying if you use an OPCUA_Node Script - the text should be sown under value?

If both things can be answered yes the communication is correct and it is just a programming issue on your side.

What I am wondering about is, that your NodeID is called "Counter1". It seems more that it is not of type string. Maype you missed to convert the integer to a string?

Best regards

Thomas

0
Answered

Questions Regarding Compatibility Between Versions

Allen 5 years ago in General Questions updated by Support 5 years ago 4

Hi there,


I am a student who wants to use your product for my project to connect my Android Augmented Reality app made from Unity to read the values from a Siemens PLC in real time. In short, I wish to be able to have something like this in my app from your photos.


Image 12


I am slightly confused as the PLC I want to connect to is covered in the starter pack. However, I am more familiar with using OPC UA client to connect to the servers. As this is a proof of concept for education, I may not have the capital for the OPCUA4unity. Would the Game4Automation Starter be able to achieve my objective? If not, would there be a educational license for the OPCUA4Unity?


I hope to hear from you soon. Thank you!

Allen


Answer
Support 5 years ago

Yes sure this is possible. The ip adress is just a property and you can start the connect at any time by script if you want. You will need to build a GUI based on Unitys UI system to let the user put in the IP adresse and then you can start the connection via script. 

Answer
Support 5 years ago

Hallo, OPC UA müsste eine Möglichkeit sein. Bosch Rexroth bietet diese Schnittstelle sicher an. Grundsätzlich kann man auch alles selbst ergänzen, wenn Bosch Rexroth eine .Net API anbietet. Unsere Schnittstellen sind Sourcecodeoffen, beispielsweise die zur S7, man kann diese als Vorlage nehmen. Gerne können wir auch unterstützen bei der Entwicklung einer Bosch-Rexroth Schnittstelle. Sie im Standard anzubieten ist aktuell noch nicht geplant da der Bedarf (noch) nicht groß genug ist. Gruß 

Thomas

0
Answered

Ist auch eine Linux-Untersützung geplant (oder vorhanden)?

sonicdee 5 years ago in General Questions updated by Support 5 years ago 2

... ^^

Answer
Support 5 years ago

Zu unterscheiden ist auch die Editor Version und die Build Version. Man kann z.B. von dem Editor auf viele Zielplattformen compilieren (PC, MAX, Linux, IOS, Androis usw). D.h. mit dem compilierten "Digitalen Zwilling" geht Linux auf jeden Fall. Ob der Editor auch mit Linux in der notwendigen Version geht (siehe oben) wäre zu testen. Im Prinzip müsste es aber gehen.

Ich selbst hier kann leider aktuell nicht das aktuelle Game4Automation auf Linux testen - ein Feedback, ob es geht, wäre sehr interessant.

0
Answered

What is the difference to other tools?

Michael 5 years ago in General Questions updated by Support 3 years ago 2

Hi,

there are other tools on the market like NX Mechatronics Concept Designer or Industral Physics - what are the differences to these tools?

Answer
Support 3 years ago

Hi Jeff,

I know NX MCD very well (for example, we did a Simit coupling for the first time before Siemens did it themselves, and we also implemented and sold NX MCD to several customers as a Siemens partner). Nowadays we are completely out of the Siemens business and I don't know the latest developments of NX MCD, but I'll try to give you my opinion about the differences.

This is comparable to NX MCD:

- Import CAD data (via Step or other formats with PIXYZ).
- Define kinematics, kinematic groups, ....
- Define drives (in G4A there are more detailed drive behaviors and you could implement your own with C#, then you wouldn't need Simit).
- Connect the drives and sensors with Simit or PLCSim-Advanced or OPCUA or TwinCAT....
- You have the choice to use Simit or to model the behavior of the sensors and drives in Unity
- Define movements, gears, CAMS
- Moving goods based on forces, transport surfaces and gravity.

What does not work with G4A:

- Measure forces (because of PhysX limitations).
- Moving drives with forces (which mostly doesn't make sense because we need to guarantee the position of kinematic chains, which doesn't work stably based on physics due to a certain spring behavior of the solver) - in G4A we can guarantee the final positions
- Use as CAD system (design is always imported via Step or PIXYZ).

What works in G4A and not in NX MCD

- Distribute your Digital Twin as a fully functional executable to anyone in the world without paying license fees to anyone.
- Distribute it across WebGL, Android, IOS, Linux (one Digital Twin, multiple distribution platforms).
- Create your own UI functions, buttons.
- Use all available Unity features, asset store solutions ....
- Integrate any type of VR, AR with any type of user interaction.
- Render in real-time high quality with live shadows, reflections, real materials....
- Move more than 800 things on transport surfaces (in my time, MCD lost performance very quickly)
- Open source code, documented and freely available C# API.

Best regards

Thomas

0
Answered

Wie erhalte ich Game4Automation und wie kann ich es testen?

Paul986 5 years ago in General Questions updated by Support 5 years ago 2
Answer
Support 5 years ago

Game4Automation ist  nun über den Unity Asset Store erhältlich.

Mehr zu den Versionen und der Link auf den Store findet sich hier: https://game4automation.com/kaufen

0
Answered

Welche Unity Version benötige ich

Paul986 5 years ago in General Questions updated by Support 5 years ago 1
Answer
Support 5 years ago

Im allgemeinen für den kommerziellen Einsatz durch Unternehmen wird eine kommerzielle Version benötigt werden. Siehe hierzu https://store.unity.com. 

0
Answered

Wie kann ich meine Steuerung (SPS) mit Game4Automation verbinden

Paul986 5 years ago in General Questions updated by Support 5 years ago 1
Answer
Support 5 years ago

Im Beta release soll mindestes eine Schnittstelle zu Simit sowie zu PLCSimAdvanced enthalten sein. Eventuell auch schon über TCP-IP zu Siemens Hardware. Simit ist ein etabliertes System für Verhaltensmodelle und Virtuelle Inbetriebnahme. Simit selbst kann dann wieder über Profibus und Profinet an Siemens Hardware angebunden werden. Der Vorteil über Simit ist, dass die Feldbuskonfiguration aus Step7 oder TIA-Portal eingelesen wird. Allerdings wird für die Feldbuskommunikation über Simt eine Hardware (Simulation Unit) benötigt die echtzeitfähig Profibus oder Profinet beherrscht. Simit liegt bei ca. 2000€ in der benötigten kleinsten Version sowie die Feldbushardware bei ca. 40000€. PLCSimAdvanced oder die TCP-IP Schnittstelle werden dagegen keine zusätzlichen Kosten verursachen

0
Answered

Welche Kosten sind mit Game4Automation verbunden

Paul986 5 years ago in General Questions updated by Support 5 years ago 1
Answer
Support 5 years ago
Game4Automation ist im Sourcecode offen. Es ist nicht mehr ganz kostenlos, wir haben uns entschieden es über den Unity Asset Store zu vertreiben. Wir denken, dass es so mehr Nutzern zugänglich sein wird und der Kauf- und Updateprozess sich besser in Unity integriert. Die Starter Edition enthält lediglich die Siemens S7 TCP-IP Schnittstelle und kostet aber nur 25$ (inklusive aller künftigen Asset-Store Updates dieses Assets). Dies ist sicherlich ein fairer Preis fürs Anwender die nur eine S7-Schnittstelle benötigen oder es nur testen mächten. Alternativ gibt es für 450$ die Professional Version. Hier sind auch alle künftigen Updates enthalten. Zu beachten ist bei beiden Versionen, dass die Preise je Arbeitsplatz / Entwickler gelten. In der Professional Version sind aktuell die Schnittstellen PLCSim-Advanced, Simit sowie OPC UA enthalten. Ach alle künftigen neue entwickelten Schnittstellen kommen in die Professional Version.