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

0
Answered

Is it possible to make an executable game-file linked to PLC?

Toni Niemi 3 years ago in realvirtual.io Starter and Professional updated by Martin 2 years ago 7

Hey! 

I have managed to get the OPC UA -connection working with while inside Unity Editor's Play-mode, but when I try to Build into an .exe, the OPC UA -connection no more works. Is there a solution to this?

Answer
Support 3 years ago

The Upgrade Message is always there - if you can use and add OPCUA and other Professional features you are having the professional version. Will let you know when the Beta is available. B

0
Answered

Is it possible to write to a Bool in DB with S7. e.g. PLCInputBool to DB43.DB145.0

Neil 3 years ago in realvirtual.io Starter and Professional updated 3 years ago 2

Hello. I'm thinking it isn't possible to write to a Bool in DB, but maybe I haven't tried the right format. Any tips? Thanks.

Answer
Support 3 years ago

Hello,

writing to DBs is described here and it should be possible what you like to do:

https://game4automation.com/documentation/current/s7tcpip.html#Reading-and-Writing-DBs


I think it should be DB43.DBX145.0


0
Not a bug

g4a duplicates Script

Benedikt Scholz 3 years ago in realvirtual.io Starter and Professional updated by Support 3 years ago 1

I am building some UI Elements to write PLCOutputFloats (bool, etc) from Input fields, toggles and buttons. 

Spontaneously I am getting errors because of ambigious names for these PLCOutput classes. 

Somehow g4a duplicates the classes so I get a PLCOutputBool1.cs

Can you explain what´s wrong?

Best regards

Benedikt

Image 335

Image 336

Answer
Support 3 years ago

G4A itself for sure not duplicates classes. Currently I don't know why this happens. Please delete the duplicated classes.

0
Not a bug

Import problem with Pixyz

Benedikt Scholz 3 years ago in realvirtual.io Starter and Professional updated by Support 3 years ago 1

The Import and update with the Pixyz Plugin does not work since updating to Unity 2019. The workaround you, Thomas, explained to me does not work. I can´t compare the Current and Update. The Problem is that the JT_Prop_Name does not appear in the Metada of the CAD-File. I get an error ".....is not unambigious". The Updater does not detect that the CAD-File changed during update. 

Pixyz said the plugins API will work with the next update which is going to be released around the end of February. 

Can you put that on your issue list so that it will work as soon as possible? The Updater is very important for us.

0
Fixed

Sensor "Limit Sensor To Tag" null Error

DAT 3 years ago in realvirtual.io Starter and Professional updated by Support 3 years ago 3

I have encountered a few error from sensor script:

The sensor script throws a null error when using the "Limit Sensor To Tag" function unless the parent object have a MU.

Even though I am using the "Limit Sensor To Tag" function the sensor still gets trigger by the parents objects of the object that have the tag. (Parents objects do have mesh collider attached)

Answer
Support 3 years ago

Hi Dat, I just checked. Objects wich are colliding with the Sensor must alway have the MU script on the same or in a level above the collider. This is the planned behaviour. I don't know in what combinatione exactly your problem comes up. Can you send me a simple example?

0
Answered

Unity Build Player Window error

Denis 3 years ago in realvirtual.io Starter and Professional updated by Support 3 years ago 8

Hello , I have errors when i trying to build player window , its works when i delete game4automation , and if i add game4automation and trying to compile i get some errors , I want to mention that I did not add the s7 interface, I did not add anything

Image 330

Answer
Support 3 years ago

Problem was solved by deleting Parts4Cad and Zip in Tools. Included ZIP is not compatible with UWP. We will change that in future.

0
Answered

S7 plc i want to show on scene value from the controller

Denis 3 years ago in realvirtual.io Starter and Professional updated 3 years ago 4

Hello , i want to show value from the controler as a text on scene , how i can do that?

Image 320

Answer
Support 3 years ago

Hello,

you need to do it with a little script that takes Signal.Value and which is putting this into a Unity UI text box.

0
Under review

S7 interface plc input write error CPU : Function not available

JO SG 3 years ago in realvirtual.io Starter and Professional updated by Support 3 years ago 6

Helo. Im trying to connect s7-1200 with game4automation. I saw the tutorial video and the https://game4automation.com/documentation/current/s7tcpip.html.

I followed all the process but still not working with this signs keep cycling.

Image 278

Image 277

I successfully checked the connection and added sdf file as well.

S7 interface plc input write error CPU : Function not available

I don't know how to solve this problem. Thank you.

Answer
Support 3 years ago

Hi, sorry for my late response. We needed first to support the open issues of our professional customers.

I checked your project but it seems that I don't have all data to be able to reproduce your problem. I would need your full S7 project. And you need to tell me which scene to open and what else to do to get the same problems as you do. Thanks.

0
Under review

Error opening game4automation project in a different PC

looi 3 years ago in realvirtual.io Starter and Professional updated by Support 3 years ago 5

I've started a project with the game4automation asset. I have a robot connected with the roboDK interface. When I try to open the project with another PC, It appears this error:

ArgumentNullException: Value cannot be null.
Parameter name: String
System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Int32.Parse (System.String s) (at <9577ac7a62ef43179789031239ba8798>:0)
game4automation.PLCOutputInt.SetValue (System.String value) (at [old PC Path]/PLCOutputInt.cs:58)
game4automation.RoboDKInterface.UpdateSignals () (at [old PC Path]/RoboDK/RoboDKInterface.cs:320)
game4automation.RoboDKInterface.CommunicationThreadUpdate () (at [old PC Path]/RoboDK/RoboDKInterface.cs:537)
game4automation.InterfaceThreadedBaseClass.CommunicationThread () (at [old PC Path]/InterfaceThreadedBaseClass.cs:50)
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Threading.ThreadHelper.ThreadStart () (at <9577ac7a62ef43179789031239ba8798>:0)
UnityEngine.<>c:b__0_0(Object, UnhandledExceptionEventArgs)

It seems like some paths from the old PC are still remembered by the asset. I have changed the RoboDK Application path and the RoboDK file path, but the error stays. Reinstalling the asset just works, but it is uncomfortable to do it every time I switch to another PC.

Answer
Support 3 years ago

If you changed the RoboDK pathes I don't know why it not opens. The code is always just using this path. Is your path somehow uncommon with special characters or empty spaces?

You might need to set some breakpoints in RoboDKInterface.cs and check what is going wrong. If you don't find the issue we should do a Zoom Session and I will check on your computer.

0
Answered

Grip scripts teleports mu to a different location

Matteo 3 years ago in realvirtual.io Starter and Professional updated by Support 3 years ago 1

Hi I'm having an issue with the grip script which I placed on a rotary arm on the automatic machine I'm designing, when the PLCOutputBool I use to pick the designated mu goes to true the MU that should be picked up and placed immediately teleports to a different location. My grip works just fine, but the mu will be moved on the location where it was teleported instead of attached to the gripper. I will include some pictures to better explain the issue.
In the first picture the green arrow points to the gripper and the red one to the mu.
In the second one, you can see how the mu (red arrow) is teleported to a different location immediately just as the signal linked to "Signal Pick" is true.

The pivots of the sensor linked to "part to grip", of the gripper and the pivot of the rotary arm correctly set. The Pivot of the game object representing all the automatic machine (highest in the hierarchy) is located also on the red arrow in the secon picture.

How do I fix this issue?

Thanks

Image 266

Image 267




Answer
Support 3 years ago

Sorry for my late response.

Grip should work. Please check how we did it in our dem model.

You can upload  your model via https://game4automation.com/send and I will check what is missing in your project.