Symphorien
Hi,
 
I have a problem with the monitoring on the RunTime.
 
I made a code on OpenPLC Editor that you can see on the picture.

But when I upload the file .st on the RunTime and that I start running the plc, I can’t see anything on the monitoring. I tried with different codes so many times, but it didn’t worked.
 
Just to know that my OpenPLC Editor and OpenPLC Runtime are on 2 separates Virtual Machines. I don’t know if it has a role to play in the bug.

Thank you.
image.jpg
Reply 0 0
thiagoralves
I have the impression that you're not connected to the runtime, but just running a simulation instead. How did you get to this screen?
Reply 0 0
Symphorien
Thank you, I found the solution 5min after I sent the message. There was a problem when I download my file .st but it’s ok now.
 
But I have another problem now. I can’t arrive to force a value on the monitoring of OpenPLC Runtime. I juste made a classic code of a light that can be activited when a button is on. But when I want to force the light to be True, it doesn’t work. I drop screens below.
 
My final ambition is to virtualize a PLC thanks to OpenPLC, and using Scada Br to supervise all. I want to simulate sensors and actuators thanks to python, and especially with pymodbus. My idea is to send a message by a sensor from python to open plc. Open plc read the message and send back a message for the actuator. And so the actuator simulated on python can read the message.

Do you think it’s possible ?

Because I already tried it with no significant results on an easy scenario, in which the couple sensor/actuator were simulated in the same code python.
 
Thank you for your time,
Symphorien.image.jpgimage.jpg
Reply 0 0
thiagoralves
There is no %MX locations on OpenPLC. Also, to force a variable you need to use the debugger on the editor. You cannot force variables on monitoring. All you can do on monitoring is make write requests
Reply 0 0
Write a reply...
Reply