Timotej Matuš
Hey guys I was working on my garage door program for past 2 weeks with 0 knowledge and I am losing my mind over it can you help me make LD program . I made garage doors that work as follows :the motor is connected to 2 relays - 1.goes up 2. goes down . I also have a sensor at the top and bottom that when pressed stops the motor. there is also a switch that actually turns on the garage door . The program works so that when the garege door is stopped by the sensor down and the button is pressed , the motor goes up until the doors touches the upper sensor and when the motor is stopped by the sensor up and the button is pressed , the motor goes down until the lower sensor is activated . Thanks for helping
 
Reply 0 0
thiagoralves
If you're new to ladder logic, perhaps it would be easier to simply describe your problem to ChatGPT and ask it to build a program in Structured Text for you (ChatGPT or any other LLM AI is not good with graphical programming languages). OpenPLC supports Structured Text as well, so you can simply copy/paste ChatGPT solution to a program or function block and be good to go. The only catch is that variables defined in the ChatGPT text output need to be manually defined in the variable table on OpenPLC Editor. You should only copy the code content over, not the variable declarations.
Reply 0 0
Timotej Matuš
Thanks I will try that
Reply 0 0
ulidi
Have you got a solution from an AI System or should we work together with human intelligence? We can make it together. But pay attention there is more to do than only to code a programm.
Reply 0 0
Reply