EvilNick
Hello All
 
I just got into automation from IT and find it fascinating. Right now I work in a rockwell studio 5000 environment using ladder. I dont find it super hard to learn but to get better I find its always good to start doing home projects. Thought I should start smaller this is something Ive wanted to build for a while and logic works perfefct for it. A zoned home sprinler system using openplc and a rasp pi. Editor is on windows 11 if that makes a diff. 
 
I have some reading on openplc but havent gotten through it all yet of course. Today i started to actually start doing simple ladder programs and learning the interface but after running a test simulation once i keep getting this error. It seems anything I simulate runs the first time then I get this. could it just be a bad install or is there some kind of driver I need to pick to keep running the simulations? Ive tried to search the error but come up empty. 
 
This is simply even on a single rung with one contact and one output at the end of the rail. Thanks in advance!
 
Error in ST/IL/SFC code generator :
No body defined in "program0" POU
PLC code generation failed !
 
Reply 0 0
thiagoralves
I wonder if you have defined something in your project by mistake that is causing this error. Have you tried starting from a fresh new project? Compiling any of the included examples work? 

My other guess would be your antivirus blocking / deleting something on OpenPLC 
Reply 1 0
EvilNick
I wonder if you have defined something in your project by mistake that is causing this error. Have you tried starting from a fresh new project? Compiling any of the included examples work? 

My other guess would be your antivirus blocking / deleting something on OpenPLC 
So I figured it out....... not sure if its meant to act like this or its just a glitchy thing. You apparently cant put the circuit from rail to rail then drop contact and coils on after. You have to drop all your C&C (music factory?) down then run the rail line from bit to bit UUUUUUUUUUUUUUUUGH! lol Im a dummy and hours wasted but now you know! 
 
Upcoming DC collections - Page 793 - CollectedEditions.com
Reply 0 0
Reply