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
[203128%2F9617117%2Fmceclip0]


I have started testing and I am currently modifying the source code to suit my needs. I had made significant progress in the older version, specifically:
  1. I expanded the virtual memory (MW) for ESP32 from 20 to 150, increasing the number of read and write points.
  2. Since TX0 and RX0 share the same lines as the CP2102, I moved the Modbus RTU to TX2 and RX2.
  3. With these and a few other minor adjustments, I created my own hardware: WNG-PLCV1.0.
Today, I can see that the OpenPLC team has done an amazing job. It works incredibly fast now, and I’ve encountered almost no issues. I am still figuring out where to add the virtual memory points in this new version, but I’ll solve that as I continue using it. I’ve been working with FBD (Function Block Diagram) and haven't had any problems; I plan to check the Ladder logic side next.
Regarding the RS485 EN pin: you might notice it is set to 1 in the screenshot. To save pins, I used TX0 (Pin 1) for the EN signal, and my tests show it works perfectly.
I haven't officially released V1.0 of my custom PLC yet, but I will share more information soon. For V1.1, I am planning to add more I/Os and Ethernet support. I am also considering adding two RS485 ports—one dedicated as a Slave and the other as a Master. I had come a long way with the old version, but I absolutely love this new interface, speed, and quality. The old UI was quite tedious, but this is excellent. Great job, and best regards!
Thank you so much for your kind words! You can check the README documentation and wiki at the OpenPLC Editor repository for more information on how to modify and build ( https://github.com/autonomy-logic/openplc-editor )
Reply 0 0
malasa37
So far, these are the things I couldn’t find or may have overlooked. I’ve been working very intensively lately.
  1. Will an offline simulation mode be coming soon, or do I definitely need to install it during runtime?

Reply 0 0
thiagoralves
[ 92%] Building C object core/src/CMakeFiles/plc_main.dir/plc_app/debug_handler.c.o
/home/service/openplc-runtime/core/src/plc_app/unix_socket.c: In function ‘unix_socket_thread’:
/home/service/openplc-runtime/core/src/plc_app/unix_socket.c:206:5: error: too many arguments to function ‘clo
se_unix_socket’; expected 0, have 1
206 |     close_unix_socket(server_fd);
     |     ^~~~~~~~~~~~~~~~~ ~~~~~~~~~
Sorry about that. Some distros are pickier about function declarations. We pushed a fix for this. Update your repo with git pull (or clone again) and try again. Let me know if it works for you.
Reply 0 0
thiagoralves
1) In FBD, the ability to move connection lines between blocks would be nice, to provide more clarity on where connections go, as the can overlap with no option to separate them.
This is not easy to do with the library we used to draw the diagram. But I can definitely see the need for this. We will put this on our improvement list.
Regarding python functionality, is there some documentation on how to use it or does it follow the concepts of the psm?
If wanting to use python libraries, do they have to be copied to a specific location or can the system modules be used?
We are working hard to bring documentation up to speed. Python functionality is pretty straightforward and works with both runtimes v3 and v4. To use Python, just create a function block and pick “Python” as the language. It works the same way as any other block. You can add variables to the block at the variables table on top of the code window. Variables of class input will be shown as input to the block and variables of class output will be shown as output. The block comes with two functions predefined: one that is executed when the block is called the first time and another that is called periodically. You can use any Python library that is available on your system (the runtime uses system’s Python to run the block).
Another missing feature would be an plcopenxml and codesys xml importer. Only an exporter is available, but I am not sure what use it is when there is no importfunction? Or what, did I miss something?
That’s also not straightforward as different IDEs interpret PLCopen XML differently. It is on our todo list, but might not come soon
Reply 0 0
thiagoralves
So far, these are the things I couldn’t find or may have overlooked. I’ve been working very intensively lately.
  1. Will an offline simulation mode be coming soon, or do I definitely need to install it during runtime?

Yes, an offline simulation will come. The challenge is that it will need to run entirely in JavaScript so that it runs on the browser editor as well
Reply 0 0
thiagoralves
Hi, will there no longer be an option to download the old version?
Previous version is available at old.autonomylogic.com. Just beware that v3 is not being maintained anymore and won’t get updates
Reply 0 0
FutureHorizon
Hi Thiago,
 
Regarding the Python functionality, I was thinking how to use libraries. If I create a library to get data from some hardware, I suppose I would have to place it in the venv? I'm not certain how to do this in this environment.
 
I thought the idea of PLCOpenXML was just that the format should always be the same.
 
I am currently attempting to run the V4 runtime on a PI, but it does not seem to run properly. I cannot access the web-interface in my browser.
It install ok and starts when I start it, but I get a 404 error on port 8443. I also don't find anything on 8080.
Tried on both wifi and ethernet
[203128%2F9617941%2Fmceclip0]
Reply 0 0
thiagoralves
The Python blocks use the Python libraries available in your system, not on venv. If you can run your code with python3 my_script.py, then it will work on the Python blocks as well.
 
The v4 runtime does not have a web interface. You don’t have to use the browser for anything. You only need the editor, and that’s it. Once the runtime is running, open the v4 editor and connect to it from the devices configuration screen (on the project tree go to devices -> configuration -> pick OpenPLC Runtime v4 from the list).
Reply 0 0
FutureHorizon
Ok, I'll experiment with the python feature.
 
Well, that explains my v4 runtime issue. Thanks! :-)
Reply 0 0
FutureHorizon
After downloading to the PLC, I am not able to see and variable changes and if I stop the PLC and go offline from the PLC I still cannot change ant variable declarations or resource configurations. I have to close the editor before it is again possible to edit variables or resources.
Is this a bug or as per design?
Reply 0 0
FutureHorizon
I've got online data now!
 
But the issue of editing variables and configuration without restarting the editor persists.
Reply 0 0
thiagoralves
I've got online data now!
 
But the issue of editing variables and configuration without restarting the editor persists.
It seems you’re in debug mode. While in debug mode you can’t make any changes to your program. You start/stop debug mode by clicking on the debug icon on the left sidebar
Reply 1 0
FutureHorizon
You are right, that was the issue.
 
I am not sure how the inputs and outputs couple in to a python or CPP program from the PLC code.
Maybe a short video that explains this for youtube could be beneficial, if it does not take too much time?
 
I really like it so far!
Reply 0 0
thiagoralves
I’m planning to make a few videos after the holidays. For variables on Python blocks, just declare them as input or output on the variable table at the top. Then you can use them normally on your Python code. Local variables that you don’t want to share with the plc program don’t need to be declared at the variables table and can be declared just in the Python code just fine. If you are modifying the value of a shared variable from Python code, make sure you use the keyword “global” before the variable name otherwise Python interpreter might create a new variable with the same name for the local context. For example, if you have a count variable declared on the variable table at the top, to modify the value of count from the Python side you should do this from the loop function:
global count
count = 3
 
Reply 0 0
FutureHorizon
I get this error in IN1 and IN2
[203128%2F9618107%2Fmceclip0]
[203128%2F9618108%2Fmceclip0]
Reply 0 0
Reply