thiagoralves
Hello OpenPLC Community!
 
I just released a new YouTube video giving a tour of the new OpenPLC Editor v4. In this video I cover the design of a "hypothetical" irrigation system. The idea is not to actually build an irrigation system, but to demonstrate the multi-language capabilities of the new editor and how well it integrates FBD, IL, ST and LD together. If you want to check it out, here is the link:
 
Happy coding!
Reply 7 0
richw
👍
Reply 0 0
FutureHorizon
Great presentation, Thiago! The editor really looks great with this React framework. And yes, FBD is king ;-)
 
Am I mistaken or does it not compile yet? I realize that it is still in beta.
 
Something else I noticed, there is no plcopen xml IMPORT function? Not in the new or the old editor. How can I share function blocks if I cannot import an export?
 
As a side note, I am trying to program an ESP32 that communcates with max31865 on SPI, but I am not sure if this is even possible. Do I need to program is in arduino and make a modbus device or can I actually interface the SPI bus from OpenPLC editor? It would be nice with functionblocks for various ICs like MAX31865, PCF8475 and so on. But what is the process normally?
Reply 0 0
thiagoralves
Great presentation, Thiago! The editor really looks great with this React framework. And yes, FBD is king ;-)
Thanks! React was indeed a much better choice to build this than wxPython. It was hard to rewrite everything from scratch, but it is definitely worth the hassle! Long live to FBD 🙂
 
Am I mistaken or does it not compile yet? I realize that it is still in beta
Yes, it does compile. It just can’t compile to Arduino targets at the moment, only to the Linux (and Windows) runtime.

Something else I noticed, there is no plcopen xml IMPORT function? Not in the new or the old editor. How can I share function blocks if I cannot import an export?
The new editor can export to plcopen but not import from it. Sharing function blocks will be possible once the Library functionality is finished. You will be able to share and install library files that contains custom blocks created by users, similar to how CODESYS does it.
 
As a side note, I am trying to program an ESP32 that communcates with max31865 on SPI, but I am not sure if this is even possible. Do I need to program is in arduino and make a modbus device or can I actually interface the SPI bus from OpenPLC editor? It would be nice with functionblocks for various ICs like MAX31865, PCF8475 and so on. But what is the process normally?
SPI, I2C and other similar buses are too low level to be addressed in a PLC language. Currently the best alternative is to write a driver for your custom platform that makes the external IO available at %QX, %IX etc locations. Besides that, you can also write an Arduino Extension to interface the hardware in your own program.
 
Reply 0 0
gajananvk
Good to see its editor is upgrading. Thanks you for sharing great news.  
buy the way is there any plan to upgrade runtime also in near future?
Reply 1 0
thiagoralves
Good to see its editor is upgrading. Thanks you for sharing great news.  
buy the way is there any plan to upgrade runtime also in near future?
Yes, after the editor rewrite is finished we will start working on the runtime rewrite
Reply 0 0
KevinLi
That's really cool, thank you very much for your work!👍
Reply 1 0
MichaelWilt
Desde la primera vez que descargué la versión 4 beta, lo encontré excelente con muchas mejoras. El entorno es bastante atractivo, moderno y las actualizaciones que se han realizado están super geniales, le da más flexibilidad y practicidad al arrastrar y soltar. Entiendo que llegar a una versión estable de Open PLC v4 tomará su tiempo, por ello continúo haciendo desarrollo con OpenPLC estable, y practicando con las extensiones de Arduino para complementar con librerías o hardware que manejan protocolos SPI, I2C, entre otros. Un proyecto particular que estoy avanzando es en el desarrollo de en un servidor web para el ESP32 que tenga toda la estructura base para que sea utilizable, adaptable y personalizable por nosotros según la necesidad de la aplicación e independientemente del entorno de programación (Arduino / OpenPLC), en la primera etapa tenía que asegurarme que sea funcional en el entorno de Arduino e ir experimentando con la estructura para la comunicación, ahora iniciaré el segundo paso para integrar la demo con OpenPLC 😉 Muy pronto estaré compartiendo avances y resultados de la integración de este servidor web con el entorno de OpenPLC.
 
Muchas gracias @thiagoralves, por el valioso aporte que has realizado con OpenPLC junto a tu equipo, espero más adelante poder sumarme a su equipo y aportar desde Lima-Perú, con mejoras y complementos como librerías, etc. ¡¡Excelente día para todos!! 😎
Reply 1 0
Reply