Listen to this Post
The OpenPLC Editor v4.0.1-beta has been released, bringing a host of new features, enhancements, and bug fixes to improve your experience. This update focuses on streamlining workflows, improving user interface elements, and resolving critical issues. Here are the key changes:
- Confirmation Dialog Before Exiting With Unsaved Changes
- Confirmation Dialog Before Deleting Large Items
- Auto-Create Variables for Function Blocks – Reduces manual work!
- Export to PLCopen XML – Export projects to open them in the old editor.
- Compiler Fixes – Resolves incorrect code generation in parallel logic cases.
- Enhanced Auto-Complete in Ladder Logic
- Code Completion & Suggestions in Structured Text and Instruction List Editors
- Return Type for User-Created Functions
- Bug Fixes for User Datatypes & Arrays
- Undo, Redo, Cut, Copy & Paste in Text Editors
- Visual Improvements – Icons, text alignment, scroll bars, and UI polish.
- Duplicate Rung Feature
- Improved Drag-and-Drop for Rungs
Download the update here: OpenPLC Editor v4.0.1-beta
You Should Know:
Here are some practical commands and codes to enhance your OpenPLC experience:
1. Exporting Projects to PLCopen XML
Use the following command to export your project:
openplc_editor --export project.xml
2. Automating Variable Creation
To auto-create variables in your function blocks, ensure your configuration file includes:
[Variables] auto_create = true
3. Compiler Debugging
If you encounter issues with code generation, use the debug flag:
openplc_compiler --debug project.st
4. Undo/Redo in Text Editors
Use keyboard shortcuts:
- Undo: `Ctrl + Z`
- Redo: `Ctrl + Y`
5. Drag-and-Drop Rungs
Ensure your workspace is optimized by enabling drag-and-drop in the settings:
[UI] drag_and_drop = enabled
6. Structured Text Code Completion
Enable auto-complete in the editor settings:
[Editor] auto_complete = true
7. Linux Command for OpenPLC Installation
To install OpenPLC on Linux, use:
sudo apt-get update sudo apt-get install openplc
8. Windows Command for OpenPLC Installation
Download the installer and run:
start openplc_editor_installer.exe
What Undercode Say:
The OpenPLC Editor v4.0.1-beta release is a significant step forward for industrial automation enthusiasts and professionals. With features like auto-create variables, enhanced code completion, and improved UI, this update simplifies complex tasks and boosts productivity. The addition of PLCopen XML export ensures compatibility with older systems, while compiler fixes address critical issues in parallel logic.
For those working with Linux or Windows, the provided commands streamline installation and debugging processes. Whether you’re automating workflows or debugging PLC code, these tools and updates make OpenPLC a robust choice for industrial automation.
Explore more at: OpenPLC Editor GitHub
This post is optimized for IT and cyber professionals, focusing on practical applications and commands.
References:
Reported By: Thiago Alves – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅



