mendesgeo
Hello, are there any planning in using OpenPLC compiler from OpenPlcEditor instead of the traditional ladder editor? It would be very nice if we could deploy native code from OpenPlcEditor. Thanks
Quote 0 0
thiagoralves
What do you mean by "using OpenPLC compiler from OpenPLC Editor instead of the traditional ladder editor"? If you mean to upload native Structured Text (ST) to the OpenPLC via the web interface, that's totally possible. You don't need to write your ladder code using the provided PLCopen Editor. You can just write ST code on notepad or any other text editor and upload that to the OpenPLC using the web interface. The compiler that compiles ST code into machine code doesn't run on the PLCopen Editor. Instead, it runs locally on the device that is running the OpenPLC.
Quote 2 0
mendesgeo
I meant, to deploy you st file in the target without the need of a host. I saw that in ladser editor it generated a cose that ia compiled and deployed directly to Arduíno.

As you editor is fully complete it would be very useful to use open PLC editor to do that instead of the ladser editor that is similar do ldMicro
Quote 0 0
thiagoralves
PLCopen Editor can't generate native code for the arduino yet. That's why it needs a "host", or in other words, a more capable machine to process the logic and send the inputs and outputs to the arduino board. In the future, I believe it might be possible to generate native code to the arduino, however it might only run on the newer 32-bit ARM arduinos.

The old OpenPLC Ladder Editor (similar to ldmicro) can generate code directly to arduino because it is much simpler than the new editor. If you want to download that, it is still available here: http://www.openplcproject.com/#!OpenPLC-is-having-a-new-brother-the-OpenPLC-Mini/c1r22/64E8D308-1B83-41CA-B5F6-68B20E6CF47A

Quote 1 0
mendesgeo
Thank you a lot. Obrigado amigo. Final questions that could be useful to others:

*All the standart blocks in ladder are implemmented and can be executed without any problem for the host? Including PID block?.

*in the future the configuration files could have any name? Now, if i change the configuration to other name than config0 and generate the st file and upload it. the compilation fails because the server is looking for config0 instead of my configuration. Could be ways to make this dynamic? Perhaps, if i edit the source to compile all the files with .c extension in core folder?

I tested ldmicro and seems very complete. But for now i will use the raspberry pi as the host to control an Arduíno. I just need to test its boot time so the PLC can boot within 5 seconds.

Thanks for everthing, your work is definitelly making the world a better place to iot and electronics.
Quote 0 0
thiagoralves
mendesgeo wrote:
All the standart blocks in ladder are implemmented and can be executed without any problem for the host? Including PID block?

I haven't tested all blocks with all platforms, but I believe it should just work fine.

mendesgeo wrote:
in the future the configuration files could have any name? Now, if i change the configuration to other name than config0 and generate the st file and upload it. the compilation fails because the server is looking for config0 instead of my configuration. Could be ways to make this dynamic? Perhaps, if i edit the source to compile all the files with .c extension in core folder?.

The files must be compiled in a defined sequence to work properly. Compiling all the .c files on the folder won't work. I might add some mechanism to have the configuration name to be dynamic later, but this is not my priority right now
Quote 1 0
mendesgeo
Thank you very much, the combo OpenPLC + ScadaBR on raspberry seems to be the way to go!
Quote 1 0
thiagoralves
I haven't heard about ScadaBR. This seems to be a very nice project, also created by a Brazilian! This makes me proud... [wink]
Quote 1 0
mendesgeo

Yes xD. with your OpenPlc and ScadaBr (webserver) running together on the Rasp (Thanks for your modbus implementation), it allow the possibility of anyone beeing able to make a Industry standard Iot PLC. Now we can turn on the raspberry with the ladder program. Compile it or view and configure the supervisory system, all online in any web browser just with the rasp. 

Quote 0 0