Us15
Hi I would like to create a washing machine ladder logic based off the following but am really struggling as I'm new to plc programming
Any help would be appreciated
 
[203128%2F8192583%2Fmceclip0]
Reply 0 0
jesawyers63
I would go to youtube.com and search for PLC Programming for Beginners.  There are many videos that will show you some basics to get you started.  You should start with videos that show basics of Ladder Logic programming.
 
First thing PLC programming is to understand the process you are trying to automate.  Draw on a piece of paper a washing machine (a square box) and place all the sensors and controls on the diagram.  Identify inputs and outputs.
 
After reviewing videos, post more in this topic and we can help you out.
 
 
Reply 0 0
MHAWrench
You mean something like this?
 
Reply 0 0
hughjack
 
The instructor probably wants you to create a state diagram first. Here is something from ChatGPT.
Screen Shot 2023-05-21 at 11.04.39 AM.png
Reply 0 0
hughjack
Here is some ST you can convert to ladder.
Screen Shot 2023-05-21 at 11.07.33 AM.pngScreen Shot 2023-05-21 at 11.07.46 AM.png
Reply 0 0
Us15
No he wants this plc to be created using the open plc software
hughjack wrote:
 
The instructor probably wants you to create a state diagram first. Here is something from ChatGPT.
Screen Shot 2023-05-21 at 11.04.39 AM.png
Reply 0 0
MHAWrench
So how does chatGPT help one create a 'ladder diagram' when it does not seem to show a  seal-in, latch, or timer loops? Or what instructions are needed for openPLC on the rungs
Reply 0 0
hughjack
The ladder diagram results are crude, because they are graphical, but that should improve in the next couple of years. Anything that is text-defined works better. When it writes code it tends towards simpler and easier-to-read structures. But, you can add special requests for timers and more advanced methods.
 
---> The trick is to use ChatGPT like an assistant. Don't ask it for the whole program, the results are rarely complete, and the code will need major modifications. A better approach is to ask for the pieces you need. You need to spend more time thinking to get good results, but less time writing and debugging code. Overall it will take less time and cut out some tedious work. 
 
I have attached more images to give you some ideas of how to work with it. 
 
Disclaimer: Do not trust the results. Review the code critically. Test carefully too.
 
 
Screen Shot 2023-05-22 at 10.47.00 AM.png
 
Screen Shot 2023-05-22 at 10.48.31 AM.png
Screen Shot 2023-05-22 at 10.55.55 AM.png
Screen Shot 2023-05-22 at 10.57.10 AM.png
Screen Shot 2023-05-22 at 10.57.20 AM.png
Screen Shot 2023-05-22 at 10.58.39 AM.png
Screen Shot 2023-05-22 at 11.10.33 AM.png
Screen Shot 2023-05-22 at 11.11.34 AM.png
Screen Shot 2023-05-22 at 11.13.45 AM.png
Screen Shot 2023-05-22 at 11.14.58 AM.png
Screen Shot 2023-05-22 at 11.15.47 AM.png
 
Screen Shot 2023-05-22 at 11.21.47 AM.png
Reply 0 0
Us15
I've got it upto point C but I don't understand how the upper level sensor would know when chamber is filled and connect it so that once it knows that the supply pump is off
Reply 0 0
Reply