thiagoralves
We’re getting ready to move from OpenPLC Editor 4.0.6-beta to 4.1.0, and this one is huge. We’re officially dropping the “beta”, and for good reason. OpenPLC Editor 4.1.0 brings a ton of new features that make it our most capable release yet. In fact, OpenPLC is doing things that even commercial PLC IDEs haven’t achieved yet. And we’re doing it completely open source and free for everyone!
 
Here's what's coming:
 
Python Function Blocks
Yes, Python! For the first time in a PLC IDE, you can write Function Blocks in Python alongside your IEC code. We’ve also built a full smart autocomplete and static analysis (powered by Pyright) right into the editor. Python blocks run asynchronously, so your PLC core keeps its real-time performance while you benefit from the power of Python for data, analytics, APIs, and more.
 
C/C++ Function Blocks with Arduino API support
Write your Function Blocks in C or C++ and, if you’re targeting Arduino, you can use the entire Arduino API (Serial.print(), digital I/O, everything). These blocks run natively inside the runtime core, with full real-time performance.
 
Built-in REST API integration
The OpenPLC Runtime v3 was upgraded and received a backport of the OpenPLC Runtime v4 REST API (the v4 runtime is not available to the public yet). This means you can now upload programs, start/stop the PLC, and view runtime logs directly from the editor. No need to export .st files or login on the browser anymore to make changes to your programs.
 
Real-Time Debugger
Visualize your PLC logic live with animated rungs, real-time variable watch, and live plotting of signal values. Works across all targets, from microcontrollers to Linux and Windows runtimes.
 
We’re incredibly proud of how far the OpenPLC ecosystem has come. This release takes it to another level, with a platform that rivals (and in some areas surpasses) commercial PLC systems. And it's all open. All free. Stay tuned!
 
Screenshot 2025-10-23 at 12.23.04 PM.png
 
Screenshot 2025-10-23 at 12.24.54 PM.png
 
Screenshot 2025-10-23 at 12.33.45 PM.png
 
Screenshot 2025-10-23 at 12.38.30 PM.png
 
Screenshot 2025-10-23 at 12.47.54 PM.png
Reply 14 0
thiagoralves
You can write C/C++ blocks on the PLC program. Just click on the blue + button, select function block and then pick C/C++ as the language.
 
Also, you can extend the runtime using the plugin system, which is better for IO drivers in my opinion. Here is the documentation: https://github.com/Autonomy-Logic/openplc-runtime/tree/main/core/src/drivers
Reply 0 0
liuxy
您可以在 PLC 程序中编写 C/C++代码块。只需点击蓝色“+”按钮,选择功能块,然后选择 C/C++作为编程语言即可。
 
此外,您可以使用插件系统扩展运行时,我认为这对 I/O 驱动程序来说更好。文档链接如下: https://github.com/Autonomy-Logic/openplc-runtime/tree/main/core/src/drivers
This plugin-based development approach is fantastic; it opens up endless possibilities, and I can integrate any features I want.
Reply 0 0
mrea
Fair point. Is there any other serial protocol worth noting besides Modbus? We may be able to bake something in. The main challenge is the docker-centered architecture. Serial ports can be a hassle with docker.
Modbus is the main one, but even having the ability to directly access the serial port would be a bonus as you could create FBs to handle different serial commands, for example a lot of scales and indicators I use are just plain ASCII commands etc

As for Serial with Docker, I have done it a few times now without any major issue, the only issue I had was if It's an USB to Serial device and you changed the USB port the ID/Name became different, but there are work around for that.
Reply 0 0
jbe
hi do you think if --sfc-- language is ready in the 4.1
 
tanks
Reply 1 0
jbe
We’re getting ready to move from OpenPLC Editor 4.0.6-beta to 4.1.0, and this one is huge. We’re officially dropping the “beta”, and for good reason. OpenPLC Editor 4.1.0 brings a ton of new features that make it our most capable release yet. In fact, OpenPLC is doing things that even commercial PLC IDEs haven’t achieved yet. And we’re doing it completely open source and free for everyone!
 
Here's what's coming:
 
Python Function Blocks
Yes, Python! For the first time in a PLC IDE, you can write Function Blocks in Python alongside your IEC code. We’ve also built a full smart autocomplete and static analysis (powered by Pyright) right into the editor. Python blocks run asynchronously, so your PLC core keeps its real-time performance while you benefit from the power of Python for data, analytics, APIs, and more.
 
C/C++ Function Blocks with Arduino API support
Write your Function Blocks in C or C++ and, if you’re targeting Arduino, you can use the entire Arduino API (Serial.print(), digital I/O, everything). These blocks run natively inside the runtime core, with full real-time performance.
 
Built-in REST API integration
The OpenPLC Runtime v3 was upgraded and received a backport of the OpenPLC Runtime v4 REST API (the v4 runtime is not available to the public yet). This means you can now upload programs, start/stop the PLC, and view runtime logs directly from the editor. No need to export .st files or login on the browser anymore to make changes to your programs.
 
Real-Time Debugger
Visualize your PLC logic live with animated rungs, real-time variable watch, and live plotting of signal values. Works across all targets, from microcontrollers to Linux and Windows runtimes.
 
We’re incredibly proud of how far the OpenPLC ecosystem has come. This release takes it to another level, with a platform that rivals (and in some areas surpasses) commercial PLC systems. And it's all open. All free. Stay tuned!
 
Screenshot 2025-10-23 at 12.23.04 PM.png
 
Screenshot 2025-10-23 at 12.24.54 PM.png
 
Screenshot 2025-10-23 at 12.33.45 PM.png
 
Screenshot 2025-10-23 at 12.38.30 PM.png
 
Screenshot 2025-10-23 at 12.47.54 PM.png
sfc is ready in this version ?
Reply 0 0
thiagoralves
sfc is ready in this version ?
No, SFC will take some time
Reply 1 0
malasa37
hello thiago.. is there improve about offline simülation
Reply 0 0
fbautistah
hello thiago.. is there improve about offline simülation
 
worked flawless with my Linux distro, also you could follow this:
Reply 0 0
plcwill
I'm getting this error messsage on Version 4.1.1
 
[4:33:19 AM]: src C:\Users\willi\OneDrive\Documents\OpenPLC Ver4 Programs\32 TA Blink\build\Arduino Mega\src
[4:33:19 AM]: lib C:\Users\willi\OneDrive\Documents\OpenPLC Ver4 Programs\32 TA Blink\build\Arduino Mega\src\lib
[4:33:19 AM]: AVR_PWM 1.2.0 C:\Users\willi\OneDrive\Documents\Arduino\libraries\AVR_PWM
[4:33:19 AM]: Used platform Version Path
[4:33:19 AM]: arduino:avr 1.8.6 C:\Users\willi\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
[4:33:19 AM]: Arduino program compiled successfully.
[4:33:19 AM]: Uploading program to board...
[4:33:29 AM]: Upload failed with code 1
[4:33:29 AM]: avrdude: can't open config file "C:\Users\willi\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf": No such file or directory
[4:33:29 AM]: avrdude: error reading system wide configuration file "C:\Users\willi\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
[4:33:29 AM]: Failed uploading: uploading error: exit status 1
 
Also updated the Arduino software
Reply 0 0
thiagoralves
Your Arduino installation is corrupted. Delete your Arduino15 folder (C:\Users\willi\AppData\Local\Arduino15\) and try again
Reply 0 0
plcwill
 
Your Arduino installation is corrupted. Delete your Arduino15 folder (C:\Users\willi\AppData\Local\Arduino15\) and try again
I did an re-installation of "Arduino AVR Boards" in the Arduino IDE boards manager and this corrected the problem.
Reply 0 0
enrparsan
No, SFC will take some time
I'm waiting for it, thank you.
Reply 0 0
streatstyle
Is there any way to branch around a whole string of inputs an example of what I'm talking about 1.png
Reply 0 0
thiagoralves
There isn't an easy way to do that yet. Easiest would be to rebuild the whole rung, or just add the branch on the first contact group and move around all the other elements to fit the correct layout (which is essentially rebuild the rung anyway).
Reply 1 0
Dawn00001
 
 
Reply 0 0
Reply