Teilen Sie Ihre Erfahrunge und Wünsche mit uns und anderen Usern!
S7 interface problem
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 ?
You are welcome, please give us a good rating in the Unity asset store if you are happy with our solution - thanks!
Tracking Pulses
Hello there,
I have been messing around with a behaviour interface to add tracking pulses to a drive. It has suddenly dawned on me that you may already have such functionality tucked away somewhere, please let me know before I re-invent the wheel ;)
No we don't send out pulses so far on a drive. But it should be simple to add. I only see a problem if drive is to fast. Pulses could be needed faster than communication cycle is.
Student Access
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
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
OPCUA and WebGl
Hi,
is it possible to run the OPCUA Interface inside a webgl app? I tried with Unity 2018.4.15 and 2019.2.17 and always got a "Memory index out of range" error in Chrome and Edge.
Thanks,
Steffen
No WebGL is not supported - sorry. I also think that communicating in a Web application over OPCUA might also be not wished from the security point of view.
Universal Robots integration
we are working a lot with universal robots (UR3, UR5, UR10). Will there be an integration for these robots in Game4Automation Professional? If so, when?
Best regards,
Mike
Augmented Reality with Siemens
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?
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
Hi Jeff,
you will need the Professional version because all the "advanced" interfaces are part of Professional (like the needed Shared Memory Interface to PLCConnect).
Currently the PLCConnect developers are developing a "special" Game4Automation Interface what will be a "special" PLCConnect Interface on the Game4Automation Professional side. But the current version and standard Shared Memory should also work.
I will get you a PLCConnet trial and some documentation on it. It might take until end of this week. Could you please send me your full contact data to info@game4automation.com.
Thanks and best regards
Thomas
Writing to PLC inputs
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?
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;
}
}
}
AutomationML
Hello,
I appreciate the direction of where the development of G4A is going. I am wondering if there are any plans to fully implement and support AutomationML. It is one of the designated open standards for I4.0 data exchange protocol. There is already support for the cadenas catalogue which uses AutomationML, but that only includes the import of CAD (COLLADA) files if I'm not mistaken. So, are there any plans for also supporting/directly importing AML files that also integrate topology (CAEX), kinematics, behaviour and logic (PLCOpen XML)?
The focus in our research project changed, AML is not needed any more, so an official AutomationML interface is not planned any more. In general I am missing very much the availability of AML exporters for common CAD systems. As soon we see, that there affordable standard exporters available (besides the very special solutions for automotive) we will change our mind. But you are free to develop your own importer - it should be not to much work because reading in XML and Collada into Unity should be very easy.
LicenseException
Hi all,
since the last update I get an LicenseException when building for Android. I only get the error on the device not in the editor.
"LicenseException: The supplied license is not longer supported for this version. You need to renew your support subscription to use this version of the OPC UA Framework Advanced."
I use the OPCUA4Unity asset from the asset store. Since I get this error on already shipped devices I realy need a quick solution. Thank you!
Customer support service by UserEcho