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

0
Wird überprüft

Compile Problems with demogame4automation

SCT FPG vor 5 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 5 Jahren 4

Hello I recently purchased the game4automation asset to test the features that it offers but I´m having problem with the demo compilation.. 

I followed the guide but unfortunately due to the new versions of unity, some steps are different. 

Those are some of the errors that i get when I try to run the demo:

Image 221

And for example when I configure the "build project settings" I cannot find the called "scripting runtime version" and maybe that's the reason.. I just can configure following:

Image 222

Do you have some Idea what is going on?

Antwort
Support vor 5 Jahren

It should work with some minor changes which you would need to do on your own. Officially, we only support latest LTS releases.

0
Beantwortet

S7 TCP Interface DB access

Wombo vor 5 Jahren in realvirtual.io Starter and Professional aktualisiert vor 5 Jahren 12

Is it possible to direct access variables which are stored in DBs with the Siemens TCP Interface? The problem there is, that in the TIA variable table only M,Q and I are allowed, but the actual style of programming a Siemens CPU is to store global data in DBs. Merker are not used anymore. I dont want to reorganize the variables of the project for the simulation.

Antwort
Support vor 5 Jahren

Hi, did you checked the Beta. Is everything working fine for you?

0
Beantwortet

S7 interface problem

D St vor 5 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 5 Jahren 3

Hello,

I was following the youtube tutorial on how to connect Unity with S7 controller (in my case 1500).


After I successfully checked the connection and added PLCTags sdf file, made a fast test scene but when I Play it I have the following messages cycling:

Image 200

Image 201

Image 199

Any suggestions ?

Antwort
Support vor 5 Jahren

You are welcome, please give us a good rating in the Unity asset store if you are happy with our solution - thanks!

0
Beantwortet

Student Access

kai grundmann vor 5 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 5 Jahren 2

Dear Thomas


I am currently working as a student at the Corporate University of Baden-Württemberg on my bachelor thesis on machine simulation and automation.

G4A is helping me a lot with my thesis. I find it very intuitive and easy to use. Furthermore, your Youtube tutorials are very helpful in learning the basics of G4A.

I was wondering whether professional licenses will be available for students in the near future?

I am looking forward to your feedback.


With kind regards

Kai Grundmann

Antwort
Support vor 5 Jahren

Thanks a lot for the positive feedback. We are not planning to do that. The Starter version is meant for for free usage. In very rare cases we are developing things together with universities, companies or students in bachelor thesis and in this case we are suppling for free licenses based on special test contracts.

Best regards

Thomas

0
Beantwortet

Augmented Reality with Siemens

Ivan vor 5 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 5 Jahren 2

Hi, I am interested in connecting a SIEMENS PLC to content in Augmented Reality with Unity in a Android mobile phone. How can I do it with Game4Automation?

Antwort
Support vor 5 Jahren

Hi,

best would be to do it with Game4Automation Professional and the included OPCUA interface.

With the OPCUA interface, you can get the data from the PLC and with the standard Unity UI and AR functions, you could display it on your android phone. Like in this example:

Best regards

Thomas

0
Beantwortet

Writing to PLC inputs

leevi parssinen vor 6 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 6 Jahren 2

Hi,

If i have PLC connected and imported signals...how would i approach writing for example a velocity of a rigid body into the value of a PLC signal under TwinCATInterface?

Antwort
Support vor 6 Jahren

Hi Leve,

I assume that you are having PLCInputs and PLCOutputs in your project after importing from TwinCAT:


Now you can write to the PLCInput with 

PLCInput.Value = YourValue;



You should write your own behavior scripts and attach this to the Gameobject with the rigid-body where you want to measure the velocity.


Here is a simple example of a behavior script (it is the Sensor_standard script from the Game4Auomation Framework).

This script is sending a "High" to the PLC when the sensor is occupied.

namespace game4automation
{
  [RequireComponent(typeof(Sensor))]
//! The Sensor_Standard component is providing the Sensor behavior and connection to the PLC inputs and outputs.
public class Sensor_Standard : BehaviorInterface
{

  [Header("Settings")] public bool NormallyClosed = false; //!< Defines if sensor signal is *true* if occupied (*NormallyClosed=false*) of if signal is *false* if occupied (*NormallyClosed=true*)
  [Header("Interface Connection")] public PLCInputBool Occupied; //! Boolean PLC input for the Sensor signal.

private Sensor Sensor;
private bool _isOccupiedNotNull;

// Use this for initialization
void Start()
{
_isOccupiedNotNull = Occupied != null;
Sensor = GetComponent<Sensor>();
}

// Update is called once per frame
  void Update()
{
bool occupied = false;

// Set Behavior Outputs
if (NormallyClosed)
{
occupied = !Sensor.Occupied;
}
else
{
occupied = Sensor.Occupied;
}

// Set external PLC Outputs
if (_isOccupiedNotNull)
Occupied.Value = occupied;

}
}
}

0
Beantwortet

Problems importing into a project

leevi parssinen vor 6 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 6 Jahren 2

Hi!

So my problem is that when i try to import the asset package into my existing project, it will import it but the Game4Automation tab will only have the Part4Cad in it. Also tried to make a new project by adding the asset first and then exporting and importing my old project, but this had the problem that colliders won't work anymore.

And one more question! (sorry I'm new to unity)

I can get the signals from my TwinCat via ADS, but how do you link the imported signals for example to a game objects Y-axis value?

Hopefully you could help me!

Antwort
Support vor 6 Jahren

For anyone experiencing similar issues.

Problem was that the compile settings were not set correctly:

https://game4automation.com/documentation/current/compilerdefines.html

, that collision layers were not set correctly:

https://game4automation.com/documentation/current/physics.html

and that Prostprocessing was not included in the Assembly Definitions:

https://game4automation.com/documentation/current/game4automation.html

https://game4automation.com/documentation/current/assemblydefinitions.html

0
Abgelehnt

Whats error : null texture passed to gui.drawtexture. It happens in game4automation.QuickToogle

Juliano Cortes vor 6 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 6 Jahren 3

How fix this:

null texture passed to GUI.DrawTexture
UnityEngine.GUI:DrawTexture(Rect, Texture, ScaleMode)
game4automation.QuickToggle.Editor.QuickToggle:DrawHierarchyItem(Int32, Rect) (at Assets/game4automation/private/Editor/QuickToggle/Editor/QuickToggle.cs:390)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Antwort
Support vor 6 Jahren

Hi,

we don't know this error. Could you upload your project? I will send you via email a link for uploading.

0
Beantwortet

Unity project version compability issue

leevi parssinen vor 6 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 6 Jahren 1

Hi! I have an issue with my project working with game4automation professional that we just purchased. So we have a Game/project working on unitys 2019 version and i tried to import the g4a asset in it ,but the toolbar only has the Parts4Cad option. on 2018 empty project it works perfectly, but i am not so experienced with unity and was wondering if the asset works at all with 2019 versions (most important ones TwinCat ADS or the OPCUA) OR if there is a way to downgrade projects unity version

Antwort
Support vor 6 Jahren

Hi,

usually it should also work with 2019. But we recommend to use LTS (Long Term Stable) releases because Unity is sometimes changing to fast for industrial use cases. We develop and test in 2018.4. On our build server we also try to compile and build with 2019, but it is more risky that we miss something in 2019. So I would recommend to only use 2019 if you really need it.

I just checked latest release and 2019 and it works on my computer without problems. The main menu is available and the demo model is working as expected.

You should also check that you are using .Net4. compatibility level - even if this should be not an issue with the main menu. But some interfaces might not compile without .Net40

There seems to be an issue / collision with anything what is already in your 2019 project. I don't know what. Could you please check the Console log for some more information.

0
Beantwortet

Licence question

Leevi Pärssinen vor 6 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 6 Jahren 2

If i would buy the Professional version for schools account, would it be tied to that account and could be used on other projects after i'm done with mine? 

Antwort
Support vor 6 Jahren

Hi,

the license is tied to the organization who purchased the Asset. There seems to be no official way to transfer a license to another organization (e.g. from school to you personal) if you purchased on the Unity Asset Store.


You could purchase the license directly from us. For doing so please just fill out this form (Button "Request a quote" and you will get an offer: https://game4automation.com/en/buy


We could allow you the transfer if needed later on based on a simple mail you are sending to us.


Best regards

Thomas