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

Using c# script to control logic
Hello,
I'm currently using c# scripts to control the logic of my scenes, but I'm having some problems.
My question is for the PLCOutputBool and PLCInputBool signal classes how the values change when the state changes.
For example, the PLCOutputBool class contains the Status property and the Value property, which in turn contains some value properties:
public StatusBool Status;
public struct StatusBool
{
public bool Connected;
public bool ValueOverride;
public bool Value;
[HideInInspector] public bool OldValue;
}
In your example script, I noticed that the value
under PLCOutputBool
is modified. However, during my debugging, I found that changing the Status.ValueOverride
is required to alter the signal value of my PLCOutputBool
.

Reading a NULL value causes disconnection
Hello,
Every time a node I'm subscribed to is read as null, the client disconnects. The type of the node I'm trying to read is a float if that matters.
OPCUA Interface - Subscription with ClientHandle 78 Value Changed ns=2;s=NodeA Value [25,1]
OPCUA Interface - Subscription with ClientHandle 80 Value Changed ns=2;s=NodeB Value [140305,5]
OPCUA Interface - Subscription with ClientHandle 80 Value Changed ns=2;s=NodeB Value [140207,5]
OPCUA Interface - Subscription with ClientHandle 88 Value Changed ns=2;s=NodeC Value [NULL]
OPCUA Interface - Client Disconnected
This happens with any node, whenever a value is written as [NULL]
Any help would be appreciated about how to make it so that the program doesn't crash.
Thank you.

OPC UA reconnects only once, Realvirtual professional
Good morning,
We are having problems with the OPC UA connection.
When the OPC server is turned off and on again the connection is reestablished correctly, but only once since startup, if the server disconnects a second time the connection is never reestablished.
How can we solve the problem?
Thank you.

How to prevent closing the build when pressing "Esc".
I'm wondering how to prevent closing my build when pressing "Esc". I think the function is somewhere inthe UI -> Toolbar Component of the realvirtual gameobject but I don't want to mess anything up by deleting files. Thanks in advance!

This function is in the 'realvirtualcontroller.cs' and cannot be controlled through the Inspector. If not desired, it can be commented out in the code by searching for 'KeyCode.Escape'. However, we do not recommend doing this.
Regards Christin

Can't import nodes of Beckhoff OPC UA Server in Unity Editor
Hello,
I recently purchased realvirtual for Unity and I am trying to get familiar with the demo application.
For future projects it is necessary to keep up OPC UA connections with Beckhoff TwinCat PLCs and Siemens PLCs.
For now I work with a Beckhoff PLCs that runs demo code and a OPC UA server on it.
Connecting to the OPC UA Server with OpcWatch or UaExpert is no issue (security = None)
My Unity configuration looks like this:
However trying to connect in the Unity Editor results in the following error message.
I tried applying standard setting and also connecting to a local python opc ua server without success.
Connecting to the PLC with the TwinCATInterface object however worked well (for future applications a wireless connection on android devices are mandatory).
Unity Version: 2022.3.14f1
realvirtual version: release 2022.07 07. September 2023
I hope I delivered sufficient information.
Thanks in advance.
BatuOx4S

Questions about using gripper
Hello
I am currently trying to mimic the example in DemoGripping Scene to use the gripper component, but when I set up the group component and added the kinematic component I found that the mesh is not aligning to my model, which is causing me to not be able to align the Sensor on the Finger to my MU

We will check this - it is a bug but it is only the Gizmo (you could turn it off) and it does not impacts any kind the function.

How to add custom UI
I would like to ask about how to add custom UI and buttons
I now want to try to add some custom buttons for my own functionality, but when I add a new Text text at the UI level under the game4automation object, I can't view his position in the edit screen. Usually I can view it in the edit screen and adjust his position and Canvas size, but now I can't see it in the realvirtual template project.
Can you tell me how I can get the UI object to show up in edit mode or how to implement a custom button to achieve the functionality I want for myself, I didn't find in the documentation how to do it.

Oh yes, sorry to mention that the layer also needs to be turned on.

Licence
Good morning
I have the OPCU4Unity license and I am currently working with the personal version of Unity.
I am developing a project for a client in his factory, my questions are the following:
- Can I implement this development in my client's factory with Unity Personal without licensing problems with Unity?
- If the entire project exceeds €100,000, even if the development in Unity is only a small part, should I change the license in Unity?
It is a private project that will never be in the appstore.
In your opinion, what do you think is the best way (in terms of licensing with Unity) to do industrial projects without having problems?
Thank you very much for your attention

Hello,
if you don't deliver our solution as source code but only as compliled applications you can do everything what you want.
Concerning Unity you should check Unity license conditions carefully but generally if you really earn money you need to use a Unity Professional license at least.
Best regards
Thomas

Twincat Verbindung erst im Build herstellen
Guten Morgen und frohes Neues!
Ich habe einen fertigen Build, die das Twin Cat Ads Interface nutzt. Ist es möglich, die PLC Net Id und Port Eingabe so zu konfigurieren, sodass man erst im Build selbst diese Daten wie eine Art Login angibt? Das Ziel ist hierbei, dass jemand mit dem Build allein und der Beckhoff Steuerung die Verbindung aufbauen kann ohne Zugriff auf Unity selber.

Conveyor Belt
Can real virtual be able to support a curved timing conveyor belt? How should I proceed with setting it up?
It has plates that go around the whole conveyor.
Customer support service by UserEcho