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

0
Answered

How to use drive action in behavior subgraphs

MarkH 1 year ago in General Questions updated by Support 1 year ago 1

I want to use a Drive action on a behavior subgraph, but I don't know when and how to instantiate the drive. With drive on the blackboard of the subgraph, the drive will not be instantiated.


maingraph

Image 1304


subgraph

Image 1301


NullReferenceException: Object reference not set to an instance of an object

realvirtual.DriveToAction.OnStart () (at Assets/realvirtual/BehaviorGraph/DriveToAction.cs:27)

I have to override Axis in the main graph to create an instance of the drive:

Image 1303


But this is not what I want. I want to use the subgraph for a specific drive, without telling the subgraph all the time which drive. How can I create it?

0
Answered

Workflow for updating CAD model

MarkH 1 year ago in General Questions updated by Support 1 year ago 4

I have created a scene based on a prefab by importing a CAD model. I decorated this prefab by adding groups of objects and colliders. Furthermore I created a kinematic structure that references to the groups.

Later on my CAD model had some changes and I wanted to reimport the CAD model. After the reimport all groups and colliders are gone. And I was also not able to undo the reimport ...

Is this how it should work? What workflow should I use to reimport CAD models that prevents loosing groups and colliders?

0
Answered

S7 interface - no signal values even though address is correct and connection can be made

Andrea 1 year ago in General Questions updated by Support 1 year ago 6

I'm currently working on a project with a 1518TF-4 CPU which we activated on an IPC. I can establish a connection between Unity and the PLC but the signals then doesn't recieve any values and stay 0 or FALSE.

The signals I need access for are inside a DB. I've created the Signals in the S7 interface by hand and I made sure the address is correct. 
Example of a signal I created:

Image 1299

I also made sure, that all the settings specified here S7 TCP | realvirtual.io are done. So that there's full access and PUT/GET communication is allowed. I tried establishing a connection to signals inside a DB and Q signals. My only goal is to read signals, no need to write them. 

I've tried it with realvirtual 2022.19.6148 and 2022.15.5414. The Unity version I'm using is 2022.3.39. I also tried a simple test siemens project but that also didn't work. 

I know that it already worked at some point last year, but I can't figure out why it doesn't anymore. 

This is what my S7 config looks like: 

Image 1300

I've also tried all kinds of varieties of settings, so different values for max pdu length, with reverse high low bytes and more. 

I don't know if this has any relevance but I did notice that sometimes, when reverse high low bytes is activated, some Bool signals randomly jump between FALSE and TRUE, some Ints sometimes jump to 265 and back to 0 and Floats will do the same to 2.350989E-38.

Does anyone have an idea, why I cannot get the signal values in Unity? I've run out of ideas. 





0
Answered

Ethernet IP not connecting, Allen Bradley PLC

Kjell Arne Vebenstad 1 year ago in General Questions updated by Support 1 year ago 5

I just bought this software to use the Ethernet IP interface to a Allen Bradley, I am up and running in Visual studio using the same Ethernet and can get tags there, but I need it in Unity, please help.

0
Answered

Read the position of the free state drive or joint

Ahmo 1 year ago in General Questions updated by Support 1 year ago 5

Hello. I need a quick response if possible.

I am using the RealVirtual Professional version.

How can I achieve the desired goal in the image? Should I use a Joint or Drive?

For Drive, you have Drive_MeasureSpeedPosition, and that’s great.

Is it possible to disable the Drive so it can rotate freely?

Image 1277

0
Answered

Connection with the PLC is okay, but the values never update

Ahmo 1 year ago in General Questions updated by Support 1 year ago 1

Hello everyone, I’m new to this forum. In case anyone has a similar problem where the values never update, but the connection to the S7 PLC is successful. Here is how to solve this problem. I hope it will be helpful to someone.

Image 1274

0
Answered

Hello,RealVirtual.IO,How can I get NC Axes information by Twincat ADS(PRO)From ADS Port 501 directly

Dragon Yun 1 year ago in General Questions updated by Support 1 year ago 5

Hi,Dear developer,

I want to get TwinCAT3 NC Axes information by TwinCAT ADS From ADS Server Port=501。

It make me quickly get NC Axes symbol From Port 501,do not use any PLC program codeing,it is a very useful Method to get Axis information

But now,I can't connect to Port 501,the port has the only right value which is PLC Project port,such as TC3=851 ,TC2=801

Please give me some ideas about how to get axes information FROM NC PORT 501,thanks

Image 1246

Image 1247

Image 1248

0
Answered

Unity 6 support

jnthn. 1 year ago in General Questions updated by Support 1 year ago 1

Hello everyone,

is the most recent version of realvirtual compatible with Unity 6?

0
Answered

Best practice for hiding gameobjects in scene and game mode

MarkH 2 years ago in General Questions updated by Support 2 years ago 1

I converted a large CAD assembly of a machine to gameobjects. Many of these gameobjects, like the machine's enclosure, block the visibility of other gameobjects inside the machine.

I want to be able to change the visibility of these gameobjects and I want to learn what would be the best practice.

At the moment I created layers to group the gameobjects that I want to show/hide by showing/hiding the layer. This works for scene mode and also for game mode when I set the required culling mask on the camera. Would this be the best practice or would there a better way to do this?

The problem starts when I enable object selection in the realvirtual controller. All gameobjects will be visible in game mode when this option is enabled, without taking the culling mask into account. What should I do to only show the gameobject that I want in game mode?

0
Answered

Compile errors on MQTT interface

MarkH 2 years ago in General Questions updated by Ahmo 8 months ago 10

I wanted to do a fresh install of all the components:

- Unity Hub 3.9.1

- Unity 2022.3.49f1

- Realvirtual-Professional-2022.18

Up to this point everything is working fine.

I copy these folders into the assets directory

Image 1218

After adding REALVIRTUAL_BESTHTTP3 to the scripting define symbols I get compile errors:

Image 1220

After adding REALVIRTUAL_BESTMQTT3 to the scripting define symbols I get additional compile errors:

Image 1221

What did I do wrong and how can I fix it?