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
saifudaullah
Modbus is enabled on your project for v4. We only let this section there for compatibility with the old runtime. On v4 you can use Modbus by clicking on the blue + button on the project tree and selecting server (for Modbus slave) or remote io (for Modbus master).
I can only see modbus TCP in the list of remote I/O. In v3 we have capability to connect arduino to raspberry pi as slave I/O. do we have it for v4?
Reply 0 0
thiagoralves
@FutureHorizon
The error is in your C/C++ block, but the screenshot shows only your Python block
Reply 0 0
thiagoralves
I can only see modbus TCP in the list of remote I/O. In v3 we have capability to connect arduino to raspberry pi as slave I/O. do we have it for v4?
Yes. In v3 the connection was done through Modbus as well. You can use any Modbus sketch for your Arduino board or program an Arduino board with a blank PLC program with all IO points enabled on the pin map and with Modbus tcp enabled
Reply 0 0
malasa37
I'll be waiting for the offline simulation update so I can make changes to the source code and customize it to my liking in the new OpenPLC. I'm writing this because my comment is at the top. Hopefully, we'll see this update soon. Merry Christmas everyone!
Reply 0 0
saifudaullah
Yes. In v3 the connection was done through Modbus as well. You can use any Modbus sketch for your Arduino board or program an Arduino board with a blank PLC program with all IO points enabled on the pin map and with Modbus tcp enabled
Do you have any tutorial that i can refer to? In v4, we don’t have any ui to add arduino as modbus slave. Or do you mean raspberry pi will automatically detect arduino as slave when connect to it through usb port? my arduino is uno 3, so it doesn't have tcp connection.
Reply 0 0
thiagoralves
The runtime v4 does not support Modbus RTU (serial). If you want to connect an Arduino board to the runtime over the usb cable (serial) you should use the v3 runtime. The v4 editor is compatible with both v3 and v4 runtime
Reply 0 0
saifudaullah
The runtime v4 does not support Modbus RTU (serial). If you want to connect an Arduino board to the runtime over the usb cable (serial) you should use the v3 runtime. The v4 editor is compatible with both v3 and v4 runtime
Thank you so much for the clarification !
Reply 1 0
mrea
The runtime v4 does not support Modbus RTU (serial). If you want to connect an Arduino board to the runtime over the usb cable (serial) you should use the v3 runtime. The v4 editor is compatible with both v3 and v4 runtime
Will it support Modbus RTU in the future? A lot of devices still come with RTU by default such as VFDs/Softstarts etc
Reply 1 0
thiagoralves
We are focusing more on Ethernet-based protocols (like EtherCAT, EtherNet/IP, etc) since we believe that’s the future. In any case, there are several serial-Ethernet converters that can be used to allow v4 to talk to these older equipment
Reply 0 0
mrea
We are focusing more on Ethernet-based protocols (like EtherCAT, EtherNet/IP, etc) since we believe that’s the future. In any case, there are several serial-Ethernet converters that can be used to allow v4 to talk to these older equipment
I understand Ethernet protocols are the future, but a lot of brand new devices still come with RS485, I do a lot of pump station stuff with CodeSys currently and we may only have a few VFDs and to add EtherNet protocol to VFD is very expensive, I have used ModbusTCP/RTU converters in the past with mixed results.

I think supporting serial and modbus RTU is still important as it isn't going away anytime soon. For larger jobs with the budget I do use EtherCat and Ethernet/IP. Was going to give v4 editor and runtime a go in my next pump station install around March/April next year hoping openPLC is in a good stable position  
Reply 2 0
thiagoralves
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.
Reply 1 0
lordos
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.
 
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.
Dear Thiagoralves!
Personally, I do everything I can to avoid docker. I may be old, but if there is only one way, I would rather install it on a raw computer and Linux. I would not be very happy if I were forced to docker. I would rather install a realtime kernel and use it as an intermediate layer that is only helpful for those who would rather not have anything to do with the plc world. I understand that the general public needs a lot of simplification, but I think and this is a completely private opinion that such a serious and complex system is not for everyone.
By the way, I really hope that in addition to codesys, this project will also be an option for embedded systems for CPUs.
I wish you all the best and a happy new year, and thank you for the hard work of the team!
Reply 1 0
saifudaullah
Dear Thiagoralves!
Personally, I do everything I can to avoid docker. I may be old, but if there is only one way, I would rather install it on a raw computer and Linux. I would not be very happy if I were forced to docker. I would rather install a realtime kernel and use it as an intermediate layer that is only helpful for those who would rather not have anything to do with the plc world. I understand that the general public needs a lot of simplification, but I think and this is a completely private opinion that such a serious and complex system is not for everyone.
By the way, I really hope that in addition to codesys, this project will also be an option for embedded systems for CPUs.
I wish you all the best and a happy new year, and thank you for the hard work of the team!
I strongly agrees with this opinion. Normally for control system, we will always try to eliminate point of failures. In this case, if runtime is in docker, it will be like this:

operating system (windows/linux) -> docker container -> runtime

It will be really a hassle to troubleshoot why runtime suddenly crashed in the future..
Reply 0 0
thiagoralves
Docker is the backbone of half of the internet (if not more). Servers running non-stop for years rely on that. I understand the resistance for change on the automation world, but there are several benefits for using docker, especially with the more powerful multicore edge devices coming out recently. With it users can run multiple PLC instances, all in real-time as docker uses the same host kernel for containers. You should give our Autonomy Edge solution a spin ( edge.autonomylogic.com ) and see how you like it. We made the process so simple that you won’t even notice that docker is running on the background. All you have to do is run one single command on terminal to install our orchestrator agent. The UI on Edge will guide you through the process.

In any case for those that still don’t want to use docker, v4 can also run natively. We just want to make the whole experience (native vs docker) the same for users. So if we decide to enable serial ports on the runtime, I wanted to be able to do the same thing with the dockerized version.
Reply 1 0
liuxy
Hello, in the previous V3 version, it was possible to write C++ files under webserver/core/hardware_layers to drive the board's GPIOs. How can this be done in V4?
Or, in V4, is it no longer possible to use the mainboard's own GPIOs, and instead, only external Modbus devices can be driven through the Remote Devices configuration?
 
Reply 0 0
Reply