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

0
Answered

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

Andrea 3 months ago in General Questions updated by Support 4 weeks 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

IK Limits

OferZ 3 months ago updated by Support 4 weeks ago 3

I'm working on some digital twin of a 6 axis arm robot and would like to use the IK.
I actually have something that's currently working fine, but we've found out that some of the joints are reverse and that one of them needs an offset. However - once I fix all that the IK breaks.
I saw in the documentation that there are some strict limitations.
I just wanted to understand where am I still free to play around, and if it's possible to fix the IK somehow:
1. Can I reverse the joint's direction (the bottom two are fine but the rest need reversing)?
2. Can I add an offset so that when the 3rd joint is at 0 angle the robot will be at 90 degrees?

3. If not - is there some recommended method to convert the values so that they would fit the real values?

0
Not a bug

Pink Module

DX Eastfound 3 months ago in realvirtual.io Starter and Professional updated by Support 3 months ago 1

Dear Sir/Madam,

When i open the sample demo and i found the demo has became pink color.

I tried to reinstall the unity and it is still the same. 

Can you help to advice on it? Thanks

Image 1298

0
Completed

Add Box Collider on on curve safeguard

DX Eastfound 3 months ago in realvirtual.io Starter and Professional updated by Support 3 months ago 3

Hi there,


May I know how do i add box collider on a curve safeguard so that i can ensure my carton box move within the conveyor?

Thanks.

Image 1297

0
Planned

About the problem of reconnecting the s7plc to the caton

ZhangFengMing 4 months ago updated by Support 3 months ago 1

Hello, I have a question. If there are a lot of devices with a lot of IP, the PLC that is not turned on will be reconnected over time, and reconnecting the PLC over time will cause the program to stall, which will greatly affect the use. May I ask how to solve the problem of reconnecting over and over?

Answer
Support 3 months ago

Hi, there would be changes in the code needed. Currently we don't assume that devices are off and on during simulation. The source code is open you would need to change the way how reconnection is done - maybe by using the new Awaitable System in Unity6

0
Answered

Questions about the use of s7 PLC

ZhangFengMing 4 months ago updated by Support 4 weeks ago 2

When using S7Interface, some S7Interface can connect to many points, and some S7Interface will be disconnected if the number of connections is too large, please see the picture, as if: Negotiated Pdu Lenght is related to this value. May I ask how Negotiated Pdu Lenght is set? Why is it 480 or 240? If Negotiated Pdu Lenght is 240, too many signals cannot be connected.
There is also a question about: how to use the Area Read Write Mode, if I need to read 56 points from the PLC's DB block and write 12 points, how should I fill in the configuration.

Looking forward to your reply very much!

Image 1294

Image 1295Image 1296

Answer
Support 4 weeks ago

Hi, I can't tell you in detail why the negotiated Pdu lenght is like that. We use Sharp7 as a basis library for the S7 communication. I think this defines the length of the telegrams but it does not defines the number of the signals. If needed multiple telegrams are send for covering all signals. On AreaReadWrite Mode you sould enter min and max adress - so if your DB is 100.X to 140.X you should enter 100 and 140.

0
Answered

VR Headset and HMI

Luis Mielemeier 4 months ago in realvirtual.io Starter and Professional updated by Support 4 months ago 1

Hello, I have a question: Is it possible to display the HMI components on a VR headset with XR Origin?

Answer
Support 4 months ago

Hi, this is possible but you might need to do changes in Unity canvas or other things. All we do is source code open so you can adopt it to your needs.

0
Answered

Ethernet IP not connecting, Allen Bradley PLC

Kjell Arne Vebenstad 4 months ago in General Questions updated by Support 4 weeks 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

Enquiry About the twin pack bottlecapper

Mohit 4 months ago in OPCUA4Unity updated by Support 4 weeks ago 2

Hello,

I'm interested in purchasing the OPCUA4UNITY package, but I don't have access to any Siemens TIA Portal-connected devices. Could you please inform me how I can utilize this package without a physical PLC? Additionally, does this package include the TwinBottleCapper, or would that need to be acquired separately?

Thank you!

0
Answered

Bag is not moving with RGV

Kantale 4 months ago updated by Support 4 weeks ago 2

A693 - Windows, Mac, Linux - Unity 2022.3.3....mp4

I want to move the bag which is shown in project with RGV. But unable to do it. When i am giving forward command to RGV, RGV is moving forward but the bag is not moving with RGV. Last time you had shared a link for reference (https://doc.realvirtual.io/components-and-scripts/motion/transportsurface#transport-surfaces-and-unity-physics).

But i couldn't get it. Please suggest the solution step by step.