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

Answer

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. 

Completed

Hi Allen,

you are right. In the starter pack there is only the Siemens PLC included. You could do similar things than in the picture but you will need to do all the ar stuff (message boxes) with Unity yourself. In the next weeks Game4Automation Professional will include this. Also S7 communication is in comparison to OPC UA limited. No arrays, no strings, no subscription. But if you poll the variables and you are ok with basic data types like integer, float, boolean you can go with the starter pack.

Best regards

Thomas

Thank you for sharing Thomas!

Is it possible that my user decides which Siemens PLCs he wants to connect to?


I understand from your video (Siemens PLC and Unity for Virtual Commissioning) that I can type in an IP address myself in the Unity Editor, but the people who use my application in the future may not be connecting to the same PLC. Ideally speaking it would be great if there is such an interface, but I hope c# is able to achieve it too.

In other words, I wish to input my IP address only after the whole unity game has been built into an apk.


I hope you will bear with me as I am new to Unity and AR development.

Sincerely

Allen

Answer

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.