thiagoralves
Big news for the OpenPLC community: Function Block Diagram (FBD) support has officially landed in the new OpenPLC Editor! With this release, 4 out of the 5 IEC 61131-3 languages are now fully supported in OpenPLC Editor v4

What's new in v4.0.2-beta?
• Function Block Diagram (FBD) Editor: fully featured editor with blocks, variables, connectors and autocomplete on a clean and intuitive interface to build logic visually
• Tooltips for sidebar buttons
• Performance boost for element modals
• Bug fixes in Ladder Diagram variable handling
• Better variable name validation to prevent errors
• Support for InOut variables in Functions and Function Blocks

This update brings us one step closer to full IEC 61131-3 support in the new editor, and we couldn’t have done it without your feedback!

As always, your input is invaluable. Please test it out and let us know what you think.

Download the new version here: https://github.com/Autonomy-Logic/openplc-editor/releases/tag/v4.0.2-beta

Thank you for helping build the future of open automation!
Reply 2 0
streatstyle
Big news for the OpenPLC community: Function Block Diagram (FBD) support has officially landed in the new OpenPLC Editor! With this release, 4 out of the 5 IEC 61131-3 languages are now fully supported in OpenPLC Editor v4

What's new in v4.0.2-beta?
• Function Block Diagram (FBD) Editor: fully featured editor with blocks, variables, connectors and autocomplete on a clean and intuitive interface to build logic visually
• Tooltips for sidebar buttons
• Performance boost for element modals
• Bug fixes in Ladder Diagram variable handling
• Better variable name validation to prevent errors
• Support for InOut variables in Functions and Function Blocks

This update brings us one step closer to full IEC 61131-3 support in the new editor, and we couldn’t have done it without your feedback!

As always, your input is invaluable. Please test it out and let us know what you think.

Download the new version here: https://github.com/Autonomy-Logic/openplc-editor/releases/tag/v4.0.2-beta

Thank you for helping build the future of open automation!
hey Thiago I was messing with the new beta in Ld, and I was just doing some simple stuff when I added a ton instruction, I can't use the variable is there something thats changed about that like I know in siemens you have to use Q.whatever the var is or is this just a bug
Reply 0 0
thiagoralves
The syntax highlighting might not recognize it, but you can use TON.Q just fine in contacts and other elements. Just make sure you use the name of your particular block (i.e. TON0) instead of just the function name.
Reply 0 0
streatstyle
The syntax highlighting might not recognize it, but you can use TON.Q just fine in contacts and other elements. Just make sure you use the name of your particular block (i.e. TON0) instead of just the function name.
I guess what I'm really trying to do is access the preset, accumulate, and done time bits like you can in other plc programs is that possible?
Reply 0 0
richw
How come when I start a FBD project I am not able to add contacts and coils? was able to do it in previous version.
Reply 0 0
FutureHorizon
Hi Thiago,
Great progress! Looks amazing! I have done a quick testing, but will do some more later, perhaps today.
 
I noticed that right-click does not give an option to insert variables or blocks.
 
The new block properties dialog looks great. And the pop-up that shows info on IO types is also helpful.
 
Has the Instruction List language not been discontinued in the newest version of the IEC61131 standard?
 
Are there any plans for implementing object oriented structured text? Like they've done in Codesys. I realize that there are other higher priorities with v4, but is it on the map?
Reply 0 0
thiagoralves
I guess what I'm really trying to do is access the preset, accumulate, and done time bits like you can in other plc programs is that possible?
If your TON block is called TON0, then just do:
TON0.PT for preset
TON0.ET for accumulate
TON0.Q for done
 
If you just want to add a value directly to the block itself, just click for example on PT and start typing.
Reply 0 0
thiagoralves
How come when I start a FBD project I am not able to add contacts and coils? was able to do it in previous version.
FBD does not have contacts or coils. Those elements are just for LD. Previous version also didn’t allow contacts and coils on FBD.
Reply 0 0
thiagoralves
I noticed that right-click does not give an option to insert variables or blocks.
We are avoiding using right click on this version to make it more touch and tablet friendly. To add elements you simply drag them from the sidebar to the diagram
Has the Instruction List language not been discontinued in the newest version of the IEC61131 standard?
I believe it had, but we will keep it since some people still use it.
Are there any plans for implementing object oriented structured text? Like they've done in Codesys. I realize that there are other higher priorities with v4, but is it on the map?
This is a HUGE change that has more to do with the compiler (MatIEC) than the editor. MatIEC is still on v2 of the standard, with some v3 additions. At this time we just use the compiler, we’re not contributing much to it. But as we evolve, in believe that there will be a time when we will be participating more actively in the MatIEC development and perhaps help it evolve to the newest IEC standard.
Reply 0 0
PeBi
Note by admin: machine translated from German to English
 
Unfortunately, I cannot store variables on the interface and connect them to a function or function block ??? for example:

[203128%2F9285708%2Fmceclip0]
Reply 0 0
thiagoralves
Unfortunately, I cannot store variables on the interface and connect them to a function or function block ??? for example:
Just drag the elements from the left sidebar to the diagram. You can drag a variable block and connect it to the function block.
Reply 0 0
PeBi
Dank, jetzt hab ich es auch verstanden. 😉😉😉
Reply 0 0
FutureHorizon
I am working (slowly, but progressing) on a PLC hardware platform based on the RPi with a handful of IO modules to go with OpenPLC and I am at a stage where I think there is a need for an interface for configuring the OI modules. I think this feature should be part an integrated of the IDE and not a standalone program. Therefore, this requires some coordinating and agreement on interfaces and how this could/should work, if it is to be a successful integration with OpenPLC.
 
Do you have any thoughts about this? I think we should have a discussion about it, as I am not sure the best solution is to create a separate piece of software, though probably easier to maintain. Maybe it could be launched from within OpenPLC?
Reply 0 0
thiagoralves
The strategy that vendors have adopted so far (which I also recommend) is to create function blocks to address your specific IO modules. Take for example the P1AM platform. The library has a folder called "P1AM" with all the blocks required to interface with P1AM expansion modules:
Screenshot 2025-04-21 at 5.40.34 PM.png
 
Writing programs for the P1AM requires the user to insert those blocks to configure the backplane and IO. The blocks can be hidden in the first ladder rungs (if using ladder) or written in a separate program with global variables. Therefore, the entire IO and backplane configuration are actually part of the project code, which makes it very versatile and easy to handle. Here is an example
Screenshot 2025-04-21 at 5.45.28 PM.png
 
Once you add the blocks, you can tie program variables (like input1, output2, etc in this example) to the blocks input and output pins. This is your IO and tag configuration. Once they are tied to the block, you can use the variables normally in the program as they will reflect the state of the IO points in the actual hardware.
Reply 0 0
mrea
Hi @thiagoralves when can we expect Arduino support in the new editor?

I have changed my PC from Win to Linux ( Ubuntu 25.10 ) and can't install the old editor due to pyhon3.9 not supported via deadsnake etc

The beta appimage worked straight away on my system.

Thanks!
Reply 0 0
Reply