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

0
Answered

Grip scripts teleports mu to a different location

Matteo 4 months ago in Game4Automation Starter and Professional updated by Thomas 3 months ago 1

Hi I'm having an issue with the grip script which I placed on a rotary arm on the automatic machine I'm designing, when the PLCOutputBool I use to pick the designated mu goes to true the MU that should be picked up and placed immediately teleports to a different location. My grip works just fine, but the mu will be moved on the location where it was teleported instead of attached to the gripper. I will include some pictures to better explain the issue.
In the first picture the green arrow points to the gripper and the red one to the mu.
In the second one, you can see how the mu (red arrow) is teleported to a different location immediately just as the signal linked to "Signal Pick" is true.

The pivots of the sensor linked to "part to grip", of the gripper and the pivot of the rotary arm correctly set. The Pivot of the game object representing all the automatic machine (highest in the hierarchy) is located also on the red arrow in the secon picture.

How do I fix this issue?

Thanks




Answer
Thomas 3 months ago

Sorry for my late response.

Grip should work. Please check how we did it in our dem model.

You can upload  your model via https://game4automation.com/send and I will check what is missing in your project.

0
Fixed

Interface to SIMIT via SHM unstable

David 5 months ago in Game4Automation Starter and Professional updated by Thomas 4 months ago 3

Hello,

with my coupling between SIMIT and G4A the connection always breaks down.

I suppose it is due to a timeout at G4A. Because there is a high simulation load at SIMIT at the time of interruption. I can use the "Import Signals" button to reestablish the connection, but the connection does not persist.

Can I activate a cyclic reconnect if the connection is not established?

Thanks in advance

David

Answer
Thomas 4 months ago

There will be a value in the next release which will allow to configure the "no responding" time which will set the interface to disconnected. 

0
Completed

reading from plc not possible

Willem Van Der Gaag 6 months ago in Game4Automation Starter and Professional updated by Thomas 4 months ago 7

I have added the a sensor from my PLC but as soon as i start running my program it writes a value. I would like to read the current value and not write anything. This is what my sensor looks like when it is added: Many thanks!

Answer
Thomas 4 months ago

OK but usually PLC Inputs should only be written by Unity and not read.

You could manually create your table using excel (in the form TIA Portal is creating the tables) or you could manually create the IOs in Unity. Please delete the spaces in the names so it should for example be "I5.0" and not "I    5.0"). Maybe this is also an issue.

0
Under review

Compile Problems with demogame4automation

SCT FPG 6 months ago in Game4Automation Starter and Professional updated by Thomas 4 months ago 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:

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:

Do you have some Idea what is going on?

Answer
Thomas 4 months ago

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

0
Answered

S7 TCP Interface DB access

Wombo 6 months ago in Game4Automation Starter and Professional updated 5 months ago 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.

Answer
Thomas 5 months ago

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

0
Answered

S7 interface problem

D.St 9 months ago in Game4Automation Starter and Professional updated by Thomas 9 months ago 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:

Any suggestions ?

Answer
Thomas 9 months ago

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

0
Answered

Student Access

kai.grundmann 10 months ago in Game4Automation Starter and Professional updated by Thomas 10 months ago 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

Answer
Thomas 10 months ago

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
Answered

Augmented Reality with Siemens

Ivan 1 year ago in Game4Automation Starter and Professional updated by Thomas 10 months ago 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?

Answer
Thomas 10 months ago

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
Answered

Writing to PLC inputs

leevi.parssinen 1 year ago in Game4Automation Starter and Professional updated by Thomas 1 year ago 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?

Answer
Thomas 1 year ago

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
Answered

Problems importing into a project

leevi.parssinen 1 year ago in Game4Automation Starter and Professional updated by Thomas 1 year ago 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!

Answer
Thomas 1 year ago

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