marcoc60
Hello,
I'm new to OpenPLC, and cannot understand why I'm getting the following error "Contact "in2" in POU "program0" must be connected."
How can I connect in2 to the transition?
Thank you very much in advance!
Best regards.
Marco
Quote 0 0
thiagoralves
You gotta make sure that there is a wire connecting your elements. Drag your in2 contact around and you'll see that there isn't a wire connecting it to the power rail, and the wire that goes on its right side is not fully connected to the transition.
Quote 0 0
marcoc60
Dear Thiago,
thank you very much for your quick answer.I really missed to use a wire to connect some elements!
Since Sunday I have another problem I cannot understand!
When I start the simulation, the Editor loops in the compilation phase, and I have to kill it!
2020-03-17 08_23_36-OpenPLC Editor - mioTestSFC (Not Responding).png  It seems like python is running the iec2c process.
2020-03-17 08_24_44-OpenPLC Editor - mioTestSFC (Not Responding).png  Interestingly, when I simulate a SFC program you posted on this forum, (SFC Test), it compiles and runs without problems! It seems there is still a problem in my project, but I cannot understand where.
I attach my program, thank you very much in advance for any hints!
Best regards.
Marco
Quote 0 0
marcoc60
Dear Thiago,
it seems the problem is in transition0.
If a substitute transition0 with a contact directly connected to the transition it works.
Can you understand what am I doing wrong in transition0 and why the compiler enters a loop without signalling any errors?
Thank you very much for your time and best regards.
Marco
Quote 0 0
thiagoralves
Your transition0 is an infinite loop, as the contact is not activating anything. That's why the compiler gets stuck in there forever. You should put a coil associated with transition0 after the contact in1. This means that when in1 becomes active, it will activate transition0, therefore activating the change of step of your main program.
Quote 0 0
marcoc60
I got the concept.
Thank you very much for your patience!
Best regards.
Marco
Quote 0 0