hjbleier
I know this is almost impossible but is there a plan to allow debugging of the project where you can see the code running live, whether on LD or ST, or a mix of any of the IEC languages. I know this is a whole different system that actually runs on the raspberry pi. It takes the project and runs it thru MatIEC and then converts it to c and compiles it in gnu c. But do you think one day it maybe possible, I have seen videos of beremiz doing this but I know there are all sorts of plugins and stuff to do it. This would be huge for very complicated projects to see the flow and find errors, plus it is pretty cool to watch the project just execute code and watch how everything flows in the logic.

Thanks. You got a very awesome project going here I love following the new progress here. Keep up the good work!
Quote 0 0
thiagoralves
I think about it every day. I agree that online debugging is a must in PLC software. I already know how to do it, but I don't have the time to do it yet. Unfortunately this open source project is developed in my spare time, which is not much. 

I'm planning to make a list of all the new functionality I want to add to OpenPLC and then post it on GitHub, to see if anyone wants to help me code them.
Quote 0 0
moss
Then it will be a real PLC [biggrin]
Very good project
Quote 0 0
skv
Is it not better to add your target to Beremiz, that already has online debugging/monitoring functionality, than implement all by yourself from scratch? This will be a lot of work to do, because you'll have integrate this some way into PLCOpen Editor.
Quote 0 0
thiagoralves
Because Beremiz is much more complicated than PLCopen Editor. As hjbleier said, it requires "all sorts of plugins and stuff to do it". I just couldn't find a simple "install and use" solution with Beremiz, and therefore I'm looking for something simpler. In fact, I might be wrong with this but, I believe that adding OpenPLC target to Beremiz will be more complicated that just adding a simple debug support to PLCopen Editor using a python Modbus library to talk to the running instance of the OpenPLC.
Quote 0 0
skv
Beremiz isn't that much complicated. It doesn't required all sort of plugins. You can use Beremiz without any extensions as virtual PLC without any problem, but it useless. Extensions make Beremiz flexible (implementation of different protocols, custom targets and custom libraries). FYI Online Debug isn't actually any extension, this is part of core functionality.

IMHO to add new target is easier than put Modbus Master into PLCopen Editor. And you certainly have a lot of spare time,
if you are going to maintain it on your own. =)

The main disadvantage of Beremiz is lack of documentation and lack of out-of-the-box support for popular makers platforms like Beaglebone Black, Raspberry Pi, Arduino.
This makes life for newcomers much harder. Most Beremiz documentation is in Russian. =/
Actually this is not impossible problem to solve. Just nobody tried to do this.
Quote 0 0