0
Answered

PLC Input an PLC Output are disabled when pressing play

wilbert blom 5 days ago in realvirtual.io Starter and Professional updated by Support 5 days ago 1

I use RealVirtual starter. I have added the S7Interface to my Unity project. I have created a softplc with OpenPLC with a very simple program 

Image 1315

When I run it it works: values become true. 

Image 1321





I compiled it to a runtime that also works.

Image 1316

I have switched on S7 protocol for the softPLC

Image 1320




I can connect from Unity to the softplc

Image 1317


I have added the two signals to Unity

Image 1318


Image 1319

When I press Play in Unity the connection is made to the softPLC butboth PLC scripts are disabled.

Why is this ?

Answered

Hi,

if you question is a bout the "disable" of the PLCInput and PLCOutput script this only disables the FixedUpdate functions because they are not needed. The Signals are more or less passive Gameobjects only holding the information of the signal values and the connection.

Hope this helps.

Best regards

Thomas