luxinterior
I discovered openplc a few days ago.
So far I have been making complicated web pages with lists and checkboxes to allow the user to "program" (or rather configure) my devices.
OpenPLC would be a great alternative solution, much more professional, but I need a "push" because I don't understand how to use it with my firmware,
For example, I have a device on ESP32 that sends notifications on telegram, has its own web server, an ftp server and a thousand other things common to all these devices.
I have not yet found a clear explanation of how to use openplc with my fw.
In the case of the ESP32, I use freertos, so it would be "easy" to give openplc a task that takes care of the whole openplc world.
Is this possible?
Other thing I would like the task to be able to run my program by loading it from a file, I transfer everything to SPIFFS or SD memory and then I start the task specifying the program to run.
I just need a starting point where I can start learning.
Reply 0 0
thiagoralves
OpenPLC on microcontrollers was not designed to run alongside other firmwares. The OpenPLC runtime runs barebones on microcontrollers. There is no underlying OS to share the CPU resources with. Integrating it into an OS like FreeRTOS might not be a very straightforward task, and possibly not worth the time for what you’re trying to use it for.
 
Perhaps you’ve misread what OpenPLC is all about. It is not a generic configurator for devices. It is actually an industrial controller for industrial automation, like machines that go in factories. I believe that there are other projects out there more suitable for what you’re trying to accomplish.
 
However, if you think that OpenPLC is what you need (maybe I misread your project), then consider looking into OpenPLC Runtime for Linux. Since it runs on top of Linux, you can easily integrate that with other programs running on user space.
Reply 0 0
Reply