thiagoralves
Hey OpenPLC family, I’m super excited to share something we’ve been working hard on – the brand-new OpenPLC Editor! We’ve rebuilt almost everything from scratch, except the already trusted compiler, still powered by Beremiz + MatIEC. Here’s what’s new:
  • A better Ladder Editor, way more intuitive and easier to use. Trust me, you’re going to love it!!
  • Much cleaner interface. We’ve ironed out the clunky bits to make it smoother and more user-friendly 🙂
  • Lots of small improvements that add up to a much better experience overall.
Check out the video below for a quick peek! This is still a work in progress, but we’re getting closer to making it available to everyone. As always, I’d love to hear your thoughts – drop a comment and let me know what you think. Your feedback really makes all the difference! Thanks for being part of the OpenPLC journey. Let’s keep building amazing things together.
 
 
For instructions on how to test the dev build, see the post below
Reply 16 0
fg71
One thing I thought, when I watch your video it looks like 1 rung take the almost the hole screen in height.
It would be useful to be able to see the previous rung and its contact and coils when we create the next rung.
That way we do not need to scroll the view or trying to remember what we did in the previous step when it visible to us.
 
To give you a idea what I mean I create a simple example in Codesys there I have 4 rung and all are visible on 14" Laptop.
 
[203128%2F9080123%2Fmceclip0]
 
 
 
Maybe when you record the video you decided to lower the screen resolution to make it more clear.
 
Other feature that is very useful is to include a comment box above network of 1 or more rungs. I believe Siemens Tia Portal have this so a user could include useful information of 1 or more rungs. Maybe that feature is already enabled.
Reply 1 0
thiagoralves
Since everything is made out of web elements, it is possible to allow the user to zoom in/out according to their preference.
Reply 1 0
fg71
That is great, maybe in the settings above dark mode 😉
 
It looks very good, I'm very happy 🙂
Reply 1 0
thiagoralves
For all of you that are eager to test the new editor, I'm posting here instructions on how to download and run the developer build.
 
DISCLAIMER: Keep in mind that this is a developer version. As such, it may contain bugs, unexpected crashes, and missing functionality. Updates are also VERY frequent on the development branch, so things that are somewhat working may stop working during those changes.
 
1. Requirements
To run the developer version you will need to install:
2. Install LXML
If you are on Windows, open Command Prompt and type:
python -m pip install lxml
For macOS and Linux, open Terminal and type:
python3 -m pip install lxml
3. Download (or clone) OpenPLC Editor source code
Go to https://github.com/Autonomy-Logic/openplc-editor and download the entire source code from the main branch. If you're using Git, you can clone it using the command
git clone https://github.com/Autonomy-Logic/openplc-editor
4. Install project dependencies
Open Terminal (or Command Prompt on Windows), go to the folder where you downloaded/cloned the editor source code, and then type:
npm install
This will install all dependencies for the project and may take a while (it takes about 5-10 minutes on my computer). You only need to do this once.
 
5. Run
To launch the new editor, on Terminal (or Command Prompt on Windows), go to the folder where you downloaded/cloned the editor source code, and then type:
npm run start:dev
 
Keep in mind that the next time you need to run the editor again, you just need to repeat step 5. No need to install dependencies again.
Reply 2 0
fg71
Running in Windows 11 Pro on Lenovo T14s , the upstart time was little slow. 😉
 
[203128%2F9080986%2Fmceclip0]
Reply 1 0
thiagoralves
Yes, as I said, this is a dev build. It will be slow, especially with all the debugging plugs turned on. The final production build will definitely be faster.
Reply 0 0
streatstyle
In the final version will the coils be on the far right side like in normal plc programs or is it perspective based meaning it only moves as far over as needed.
 
Also would be better if when you are on the contact you just placed if you click another contact it will place it to the right of which ever contact is highlighted instead of having to drag each one out one by one.
 
Another cool feature would be if when you named the contact it made the variable or you could right click and have an option to create variable
Reply 1 0
Alextremo
Good improvement, I really would like to see the rungs closer, like ldmicro, for more sightness, It is just an idea.
Reply 1 0
thiagoralves
Those are all great points guys, thanks! Some of those points are already in the pipeline for the final version, like coil placement and automatic variable creation (that already works on blocks by the way). Keep bringing ideas!!!
Reply 0 0
fg71
Do we really need right rail when every valid rung need to have coil as output.
The new Ladder Diagram in Codesys do not and I have seen other PLC IDE that skip the right rail.
 
And having 2 coils or more in serie shouldn't be valid I think that is possible in OpenPLC Editor.
The correct should be parallell coils, in other words a single coil from left rail to right rail if you follow the rung.
I think the first rung is wrong and very confusing.
 
[203128%2F9082796%2Fmceclip0]
Reply 0 0
streatstyle
Flags would be a good addition so you can flag rungs and quickly get to them for troubleshooting purposes also maybe a tag/variable monitor screen to quickly see what state the inputs and outputs are in.
And maybe like a cross reference like Allen Bradley does
Reply 0 0
clintux
Wow...! even runs on a 10+ year old Macbook air. I too initially found the coils in series thing bizarre. It seemed to arrive with 61131. Now I'm used to it. More to the point I think it allows people new to PLC's and LD in particular to write programs that don't function as expected. I have seen several examples of contacts after coils in a rung which compiles, to who knows what. BUT I think flexibility is utmost, especially in an editor targeting so many platforms. We just need to give guidance to PLC newcomers around good technique.
Reply 0 0
streatstyle
Wow...! even runs on a 10+ year old Macbook air. I too initially found the coils in series thing bizarre. It seemed to arrive with 61131. Now I'm used to it. More to the point I think it allows people new to PLC's and LD in particular to write programs that don't function as expected. I have seen several examples of contacts after coils in a rung which compiles, to who knows what. BUT I think flexibility is utmost, especially in an editor targeting so many platforms. We just need to give guidance to PLC newcomers around good technique.
Logix. 5000 software lets you do that and it's perfectly normal to do so. Remember an OTL instruction goes to your specified output data table and writes a 1. If the preceding condition is false it does nothing. So it is perfectly normal to have them in series it just does the execution from left to right. So in Essenes you can trigger all your output latches on one rung as opposed to using multiple rungs or branching your output
Reply 0 0
fg71
My point was a valid concept doesn't mean its a good approach. Readability of the code/program is important. And to explain why some PLC IDE
always put the coil to far right doesn't make any sense if it allow a coil to be in serie. In Codesys its not allowed to have coils in serie. If you select
a coil and make a new one the second coil become parallel to the selected one. There is no connection point on the right side of coil in Codesys.
I believe Mitsubishi melsec PLC IDE do the same thing. In reality all PLC vendors do not strictly follow the specification of IEC-61131 and instead
follow a good praxis what make sense or not. In my world a coil is a output and not input to other coil.
 
The documentation from Codesys say it clearly it only allow coil to be parallel, you could read it here.
 
And that is why many PLC IDE have decided to skip the right rail because it doesn't do anything useful. In the end a coil will always be the far right element.
Reply 0 0
Reply