thiagoralves
Big news for the OpenPLC community!
The long-awaited Arduino support has arrived in the new OpenPLC Editor v4.0.6-beta 🎉

You can now design your logic in OpenPLC and compile + upload directly to Arduino boards straight from the IDE. This includes support for popular platforms such as RP2040, ESP32, ESP8266, STM32, and more.

This feature has been one of the most requested since the launch of the new v4 Editor, and it opens the door for students, makers, and professionals to bring their automation ideas to life on low-cost, widely available hardware.

In addition to Arduino support, v4.0.6-beta also brings:
- Fixes for Variable Table text format
- Improved updates for User Function Blocks
- Enhanced autocomplete in Structured Text

Download the release here: https://github.com/Autonomy-Logic/openplc-editor/releases

This is a huge step forward for making industrial automation more accessible and open-source. Can't wait to see what the community builds with it!
Reply 7 0
thiagoralves
OpenPLC does not flash a board with the old bootloader. You need to update the bootloader or use a different board
Reply 0 0
toams
hi,
 
Running the AppImage on recent ubuntu based distro fails with following error:
[130119:1019/125957.028330:FATAL:setuid_sandbox_host.cc(163)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_OpenPLQRvbsn/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)
I did some googling and it seems to be a common problem for elektron apps running as an AppImage
Turns out ubuntu changed some things to improve security of running sandboxed applications.
 
This can easily be worked around by disabling the sandboxing system-wide:
 
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
This of course is not a good idea security-wise. And has to be disabled again after each reboot.
The correct way to fix this issue is to create an apparmor.d profile. See: https://ubuntu.com/tutorials/beginning-apparmor-profile-development
 
However personally I think its better to create a flatpak instead of an appimage. That shouldnt have this sandboxxing problem, and if published on flathub.org the OpenPLC editor will become available at the package manager of many linux distributions.
 
Until this is solved I will be using the workaround.
Reply 1 0
thiagoralves
Thanks for pointing this out. We’ll investigate if there is an easy way to fix this for the next release
Reply 0 0
l1s9v88
I flashed the optiboot bootloader in the Arduino Nano. Now the board is flashing. I declared a variable b with the address %QX0.3. But I can't change the address in the pin mapping. Why is that?
Reply 0 0
thiagoralves
I flashed the optiboot bootloader in the Arduino Nano. Now the board is flashing. I declared a variable b with the address %QX0.3. But I can't change the address in the pin mapping. Why is that?
Addresses are given by the editor, not the user. If you want to have your variable b control pin 13, then you need to locate variable b at %QX0.0
Reply 0 0
l1s9v88
As I understand it, addresses in OpenPLC are hardcoded. For all NANO
Digital inputs
D2 - IX%0.0
D3 - IX%0.1 D4 - IX%0.2
D5 - IX%0.3 D6 - IX%0.4
 
Digital outputs
D7 - QX%0.0
D8 - QX%0.1
D10 - QX%0.2
D11 - QX%0.3
D12 - QX%0.4
D13 - QX%0.5
 
To turn on the L LED on the board, I need to write the variable "b" to %QX0.3. In the pin map, I enter unused pins 3-5. Then I add pin 13. It is assigned the address QX%0.3. This is the only way it works. You can use QX%0.5 instead of %QX0.3 in the variables and pin map – it will also work. Accordingly, you need to enter unused pins 3-7. The description lists two pin maps: Nano Every and Uno, Leonardo, Nano, Micro, Zero. Do both maps work? Try it yourself. I'm attaching the project.
Reply 0 0
thiagoralves
As I understand it, addresses in OpenPLC are hardcoded. For all NANO
Digital inputs
D2 - IX%0.0
D3 - IX%0.1 D4 - IX%0.2
D5 - IX%0.3 D6 - IX%0.4
 
Digital outputs
D7 - QX%0.0
D8 - QX%0.1
D10 - QX%0.2
D11 - QX%0.3
D12 - QX%0.4
D13 - QX%0.5
 
To turn on the L LED on the board, I need to write the variable "b" to %QX0.3. In the pin map, I enter unused pins 3-5. Then I add pin 13. It is assigned the address QX%0.3. This is the only way it works. You can use QX%0.5 instead of %QX0.3 in the variables and pin map – it will also work. Accordingly, you need to enter unused pins 3-7. The description lists two pin maps: Nano Every and Uno, Leonardo, Nano, Micro, Zero. Do both maps work? Try it yourself. I'm attaching the project.
Nope. That's for OpenPLC Editor v3. On v4 there are no hardcoded pins. You define the pins you want to use, the editor gives you the addresses, and you use them in your program. That's it. You don't even need to remember the addresses if you give them a name.
Reply 0 0
l1s9v88
Now it's clear. First, you need to enter the required pins in the pin map. The resulting addresses in the "Address" column are something like a local variable that is then used in the program. Are there any plans to implement a simulator for FBD and LAD in the OpenPLC Editor?
Reply 0 0
thiagoralves
Now it's clear. First, you need to enter the required pins in the pin map. The resulting addresses in the "Address" column are something like a local variable that is then used in the program. Are there any plans to implement a simulator for FBD and LAD in the OpenPLC Editor?
We probably won’t bring simulator to v4, but you will be able to run and debug in real-time the program running at your target (Arduino platform or Linux/Windows softPLC). It is already working at the development branch:
ea0d3ab0-408b-4548-bc6e-a911fc0bbc2d.jpeg
Reply 0 0
ladmanj
Thanks for pointing this out. We’ll investigate if there is an easy way to fix this for the next release
Hi Thiago, did Your investigation found any systematic solution to the problem with the AppImage and "The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now."?
Reply 0 0
thiagoralves
First result on Google:
 
Reply 0 0
ladmanj
First result on Google:
 
OK, but that isn't anything more than toams posted on Oct 19, 2025.
 
I would rather give the permissions to openplc editor specifically, instead of switching the protection off for the whole system ...
Reply 0 0
thiagoralves
I don’t think there is anything else that can be done about it. That’s Ubuntu’s design choice. I’ll investigate some more but I’m not up for changing the whole image format just because of Ubuntu….

If you guys know better, please advise. I’m open for suggestions
Reply 0 0
Reply