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

Post Processing error when Integrating third party asset with game4automation
I have been facing a problem importing the game4automation asset (https://assetstore.unity.com/packages/tools/utilities/game4automation-digital-twin-starter-2020-139866#description) into a scene I made using an asset called CityGen3D (https://assetstore.unity.com/packages/tools/terrain/citygen3d-162468#description).
When I create a blank new project and use the game4automation asset without my own scene, it works perfectly fine. However, when I try importing the asset into my scene, I keep encountering a 'PostProcessing' error. If I double click on the error, it leads me to the code that contains some stuff about postprocessing (see second image attached). I am not sure what is causing this. May you be able to provide me some assistance? Please see attached images for the error.


Hi,
because your additional assets in the project are using Unity Postprocessing you need to put this into the Game4Automation.base Assembly definitions:
There is also some information about this here in the documentation:
https://game4automation.com/documentation/current/game4automation.html

Problems in OPCUA4Unity Output
Servus, I'm using OPAUA Interface for my first Program, but there are some problems with communication when i write int and float format variables in my PLCs. In Figure 3 and 4 I try to write INT values to "robotArmSuccess" but in OPC Server the corresponding values are not changed. Then I read Demo of OPCUA and modify my Program with the function WriteNodeValue(NodeId, value) , it did not work in PLC Server, according to figure 1 and 2 . Could you please give me some Guidance for this situation?
Figure 1

Figure 2
Figure 3

Figure 4

Dies ist eine Frage zur Änderung der Farbe des Konveyor-Teils.
Hallo. Ich benutze Game4Automation Simulation gut. Ich möchte wissen, wie man die Farbe eines Conveyor-Teils ändern kann.

You just need to drag and drop a material with the wished color on the mesh of the frame.

Driver_Simple script does not accept OPC UA variable nodes
Dear developers,
I was trying to connect a custom Game4Automation Scene to a PLC through OPCUA Interface.
I followed the instructions from this tutorial:

The OPCUAInterface is updating the nodes correctly:
However, when I tried to link a bool variable node from the OPCUAInterface to the Driver_Simple interface dragging it and droping it into the forward variable, it wasn't accepted (the forbiden symbol appeared).
If I use the PLC signal component I'm able to link the component without problems.
I'm using Unity 2021.3.2f1 Editor and the game4automation-Professional-2019.13 package (OPCUAInterface is not working in the latest version of G4A, see https://forum.game4automation.com/en/communities/1/topics/376-opcua-interface-error-in-activating-session).
Any idea of what am I doing wrong?
Thank you in advance!

Hi Ernesto,
I am able to connect and to import the signals (even if I am not able to connect to the PLC because I don't have same setup).
Don't know where the problem is. Just for beeing sure I will send you again the latest code of the interface via mail. Please also check in Kepserver if you enabled anonymous login.

I can connect through OPCWATCH but when I try through G4A it doesn't work
See the connection via OPCwatch

When I try to import the nodes into UNITY see the errors. And I already tried ANONYMOUS SECURITUY POLICY 0.1 AND 2.


Bibliothek
Ich habe eine weile mit eine anderen Simulation System gearbeitet. Daher folgende Fragen
Kann man in Game4Automation sich eine Bibliothek anlegen und sich die Erstellung einer Szene (fuer Kunden) automatisieren.
Bei dem anderen System kann via einer I/O Liste und einen externen Tool Marcos ausgewählt und die Verlinkung zu diesen erzeugt werden.

... and if you need a pulse encoder - sending pules every xxx millimeters, this will be available in one of the next releases. If you are a customer and purchased a professional version - please send us an email to info@game4automation.com with your Invoice and we can send you a beta of the pulse encoder.

ABB Word mapping
Hello,
A small time ago we had a conversation about adding bytes into the device mapping of ABB, now i needs words (16bits).
We are trying to get the Word option to work as well, we have changed the code to the following:
Only thing we are not sure about is the line with accessor.Write(posheader, (byte) 10).
Is this correct or should we change it?
Sorry for the formatting, couldn't find the code button.
if (signal.OriginDataType.ToUpper() == "BYTE")
{
if (signal.GetType() == typeof(PLCInputInt) || signal.GetType() == typeof(PLCOutputInt))
{
if (lastbit)
posmemory = posmemory + 1;
bit = 0;
shm.bit = 0;
lastbit = false;
signal.Comment = $"M{posmemory}";
accessor.Write(posheader, (byte) 8);
shm.type = SIGNALTYPE.BYTE;
posmemory = posmemory + 1;
}
}
else if (signal.OriginDataType.ToUpper() == "WORD")
{
if (signal.GetType() == typeof(PLCInputInt) || signal.GetType() == typeof(PLCOutputInt))
{
if (lastbit)
posmemory = posmemory + 1;
bit = 0;
shm.bit = 0;
lastbit = false;
signal.Comment = $"M{posmemory}";
accessor.Write(posheader, (byte) 10);
shm.type = SIGNALTYPE.WORD;
posmemory = posmemory + 2;
}
}
else
{ if (signal.GetType() == typeof(PLCInputInt) || signal.GetType() == typeof(PLCOutputInt))
{
if (lastbit)
posmemory = posmemory + 1;
bit = 0;
shm.bit = 0;
lastbit = false;
signal.Comment = $"M{posmemory}";
accessor.Write(posheader, (byte) 10);
shm.type = SIGNALTYPE.INT;
posmemory = posmemory + 4;
}
}
Sorry if you saw my answer on the last message, but i thought it would be good to make a new topic!

I will add this in one of the next release. For Words you need to write a 9 as Type ID.

OPCUA problems - doesnt Import any In-/Outputs
Hey there,
first of all - the example Project provided with the Unified Automation OPCUA Server is working fine.
Im using the latest Release of G4A which is 2020.16-beta-1123 and Unity Version 2020.3.19
The PLC is created in TIA Portal v17 which sends it to PLCSimAdvanced v4.0.
(Yes(!) i know i could use the PLCSimAdvanced Interface, but for now i have to stick to the OPCUA Interface)
This is what OPC Watch looks like when connected to my PLC which has an OPCUA Server:
You can see the Inputs and Outputs.
When trying to import these Nodes into Unity with the G4A Framework im getting
In the "PLCOutputBool.cs", when changing from
to
The import finishes with no more errors.
But now looking into Unitys Hierarchy, no In-/Outputs where generated.(No Dropdown available at the Input & Ouput Gameobject)
Even then whole "PLC_1" Node is missing in Unity.

It is solved @Robin: thanks a lot for your help.
It will be included in release 2022.12.
For everybody having same issue before - please integrate this into OPCUA_Interface.cs:

Problems with Transformation of Chains
Hello,
I created a chain with chain elements and it is working fine. Now I tried to make a copy and turn it around 90°Z. Some of the chain elements are now moving in a wrong direction, but not reproduceable. Even if I create a new spline and replace all scripts, it is not working corrrectly. Shifting along the axes works, but turning is not possible.
Does someone know a trick?
Customer support service by UserEcho