txrocks
I am back at trying to get my project buttoned up and ran into the "iec2c process exited with code 3221225477 error. I know in the past a "INIT" name can cause this. I have searched for the that name, searched for bad variables, anything showing up red. Then I did run across something I thought was weird. I opened my "HVAC_FB" to double check it, when I opened it up I had a bunch of function blocks that were red. The types were missing the underscores. All my type SR, TON, TOF, and SP_U_D blocks were all red. I went through them all and found the correct type in the system or user dropdown, now they are all back to black.
I do not have any global variables, I do not think I have any names that conflict with the compiler variables
 
What else should I be looking for to get this resolved ? I have restarted the editor, and restarted PC. The editor is 4.14
 
Screenshot 2026-05-13 082847.png
Reply 0 0
thiagoralves
Why did you run npm run on terminal? The build is self contained. It has everything you need. If you're on Windows, you should have just downloaded the .exe from the link I sent and ran that:
screenshot.png
Reply 0 0
thiagoralves
I think I was able to reproduce your problem. I got a Windows VM and downloaded the .exe from the build, and indeed it seems to be lacking the built-in compiler for some reason. Glad I tested that. Back to the drawing board... will be back with news as soon as I have them. Thanks for your patience 🙂
Reply 0 0
txrocks
I wound up in terminal after installing from the artifacts at an attempt to correct the error that I was getting. Thanks again for all the help!  
Reply 0 0
thiagoralves
Reply 1 0
txrocks
It runs!
I copied this project and removed the Sequent boards out of it. I can then work on all the logic below the Sequent boards and have a connector or a variable go to where the board was. If I make any changes in the new version I should be able to copy my main and other POU's and put them in the project that is under v4.14 ? The compiler output from the beta version is not compatible with the runtime on my end devices.
 
I will need to have figure out how to have both v4.14 and this beta release on my machine. I will copy my projects folder so I have one for each editor.  
 
I did have a DIV block that is on the output of a CTU block and I mistakenly connected it Q instead of CV. The error returns "no informations" it was great that it pointed me right to the block that was a problem and I was able to look at it for a second and see what the problem was. The other editor was allowing this by, and would have been caught during testing.  
I see lots of new things on the new editor that are really nice! It might just be my imagination, this editor seems to operate quicker. Clicking buttons and forcing values seems to happen faster, 4.14 seemed like it was sluggish sometimes.  
 
Thanks again for all the support!
[15-05-26 06:59:22]: Generate POU WELL


[15-05-26 06:59:22]: Error transpiling XML to ST: Error: xml2st process exited with code 1


[15-05-26 06:59:22]: Error compiling project: No informations found for "DIV" block


[15-05-26 06:59:22]: Stopping compilation process.


[15-05-26 06:59:22]: Compilation complete


[15-05-26 06:59:22]: Error transpiling XML to ST: Error: xml2st process exited with code 1
Error compiling project: No informations found for "DIV" block

Stopping compilation process.
 
Reply 0 0
thiagoralves
I'm happy to hear it is finally working! Yes, you are not imagining things, the new beta editor is a lot quicker than the v4.1.4. There has been a lot of improvements, bugfixes, and perfomance enhancements baked in the new editor. Not to mention that STruC++ itself is a lot better and compiles things faster thanks to caching. When you compile a large project like yours, it only compile what has been changed instead of compiling the whole project again every time.
 
For the Sequent blocks, perhaps the easiest way to get around that would be to create a library (yes, now you can create libraries in the editor) with stubs for all sequent blocks. Since your target is OpenPLC Runtime v3, it should be able to upload straight to it if the Sequent stubs are in place. By stub I mean empty blocks that contain just bogus code like "LocalVar := 3;", but with the same input and output declarations as the actual Sequent blocks. Since the compilation and execution on v3 actually happens on the target, the actual block code will come from the runtime v3 library, and not from what is in your editor.
 
You can create a library project the same way you create a PLC project. Just click on "New Project" at the welcome screen and select "Library" on the dialog that appears. Once you're done creating all blocks you can compile the library the same way you compile projects as well using the build button on the sidebar. It will generate an .stlib file that is what STruC++ consumes. Then going back to your PLC project you will notice a new "+ Manage Libraries..." button at the end of your library. Click on that, which will take you to the Library Manager that allows you to install .stlib files. Add your Sequent stubs .stlib there (system-wide) and also on your project on the "Project Libraries" tab. Then the stubs will show on your library along with all the other blocks.
 
As for projects on both versions, yes it should open on both the same way. I haven't played with v4.1.4 in a while so I don't know for sure, but all things we've added are incremental, so it shouldn't impact project loading from v4.1.4. In any case, it is always good to backup your things before experimenting with that.
Reply 1 0
txrocks
Thanks again!! Its great to have this open source and available like this, the Ag kids are going to do an automated chicken house using it this summer. We will post the project once it is up and going, I am going to put this one in the projects once I get it wrapped up.  
 
Since both editors install right from the installer and do not give an option for installing to a specific location, is there a recommended method to have both editors installed ?
Reply 0 0
thiagoralves
That's great. Let us know about the projects you're using OpenPLC with. We are starting to collect interesting use cases.
 
As for installing both editors at the same time, this can be tricky. You can try simply copying the editor to another folder after it was installed and see if it runs from there. In any case, since installation is so quick, you can just maintain both installers and use them as "portable apps".
Reply 0 0
txrocks
Sounds like if I get the libraries done correctly I can just run with the new Editor. Ill try that first. Then I just need 4.14 to send the program over, or send the .st through the network.
 
One of the big things I like about the OpenPLC setup is we can purchase a $20 ESP32 or a $100 RPI and add some pre built boards or add relays, leds, switches, sensors or other simple things to it. Some of these kids in the ag ( FFA / 4H ) can do mechanical things, straight code does not make sense to some of them. They pick up function blocks and ladder logic just like they are mechanical devices
Reply 0 0
txrocks
Ran across something interesting. On an existing function block I can do whatever I want to it. If I go create a new function block I can not add anything to it. variables, standard function blocks.....You drag it onto the workspace the red crossed out circle never goes away and it states "no rung found for editor"
 
I need to build my Sequent library blocks so I can work everything out of the new editor, is there a guide on building libraries up ?
 
Thanks!
Reply 0 0
thiagoralves
This may be a bug. Let me test it out better tomorrow. Can you describe the exact steps to reproduce this? Are you trying to build the blocks on a library project? What language are you using for the blocks?
Reply 0 0
txrocks
The bug I ran across is when I am editing an existing project. The "No rung for editor" shows up in FBD and it will not let you drop any blocks.  
I clicked the + button to create new, clicked function block, entered name "testblock1" selected FBD, I added a few input, output, and local variables. Then attempted to drop some blocks in the work section. The "no rung for editor" stays, and the red crossed out circle is at the cursor. I tried a bunch of different blocks with no luck.
 
It will not let you drop any coils or contacts in LD.
 
I can edit and drop new items onto an existing FB in LC and FBD. You can copy an existing function block and do what you need to it. It is only in the creation of a brand new one.  
 
Screenshot 2026-05-18 064543.png
 
 
 
The library blocks are a whole different item, I have no idea what I am doing here. These were going to be the hollow Sequent Blocks so I could have a spot in the new editor for connections. I made all my blocks in ST. Named all my connections, class, and type. I assume I need some statement in the ST code so the compiler has instructions on what to do.  
The not be able to add blocks in FBD, or coil / contacts in LD occurs in the library creation also.  
Reply 0 0
PeBi
Ich hatte dasselbe Problem.
Mit dem Build „Build and Release #30“ (https://github.com/Autonomy-Logic/openplc-editor/actions/runs/25931715652) tritt dieser Fehler bei mir jedoch
nicht mehr auf.
Reply 0 0
txrocks
Thanks PeBi,
 
I will go grab the new release!!
Reply 0 0
thiagoralves
Hi @txrocks as @PeBi already pointed out, this particular problem has already been solved on the latest build. For the library, all you have to do is create the blocks with the correct input and output variables (must have the exact same name as original Sequent blocks). Then you can simply add a dummy local variable on each block, name it whatever you want, like LocalVar0 for example, and then write one single line of code so the compiler is happy:
 
LocalVar0 := 42;
 
This is just so that the block is not "empty" as the compiler will not compile empty blocks. It can be anything. As long as the block has one line of code it will work. Just make sure that the dummy variable is local otherwise it will interfere with the block signature (input and output variables).
Reply 0 0
Reply