assist code?

Hi,

I would appreciate some help on how to write the code for duty and assist with pump arrangement.

The water level is controlled with an ultrasonic sensor and the duty and assist pumps will start when the water reaches a certain level. I want the pumps to operate on duty/assist arrangement and automatically alternate duty after each pumping event.

Can anyone help with this code please – I’ve tried everything but no joy?!

Thanks in advance…
 
First of all, a bit more information is needed, for example what PLC are you using this helps, also, give us more information like does the pump start when the level rises to a certain level then stop when falls below a level or is it the other way round (for example when level rises to 80% pump starts then stops when it falls to 20%)
perhaps post some code you already have, even if it does not work.
 
you want a start/stop circuit pattern to for (1) running the overall process, and (2) running one or both pumps at each level event, see this link: https://www.contactandcoil.com/patterns-of-ladder-logic-programming/startstop-circuit/

if there are only two pumps, you want an alternator or flip-flop circuit, triggered* by the end of a level event, search for "alternat" (no -e or -ator suffix) at this link: http://www.plcs.net/downloads/index.php?&direction=0&order=&directory=Allen_Bradley. If you later upgrade to more than two pumps, then you may want something like the Step pattern at the patterns site mentioned in the first paragraph.

* For the trigger at the end of a level event, you want a one-shot aka pulse or negative edge or positive edge or rising edge or falling edge; most PLCs have one or more of these, but they are also straightforward to build from contacts and coils.

If you are asking this question, I suspect you might be new to the PLC game, so I suggest spending some time at that "patterns of ladder logic" website. Even if you are not using ladder as your programming language, the patterns are used repeatedly. Also, @Ron Beaufort's PLC bootcamp videos (start here) are excellent for understanding how a PLC works, especially the scan cycle, and interacts with physical processes. All programs model some continuous process in the real world using a discrete scan cyle in the PLC, which scan cycle is repeated on a very short timeframe (1-100ms) as a proxy for continuous control. The primary design choice of the program is the level of fidelity of the model relative to the process. That level of fidelity is often set by the designed process-PLC interface i.e. the chosen instrumentation (PLC inputs) and controls (PLC outputs), so it is worth writing that down as a list; the rest of the model resides in the PLC code and in the PLC memory (usually called tags or variables). One use of tags is to implement state in the model; another use is to carry over the model and/or process state from one scan cycle to the next.
 

Similar Topics

Can someone please assist in this case https://www.plctalk.net/threads/implementing-sfc-to-winplc-project.144583/
0
Replies
468
Views
I've gotten to the learning curve where I can program a call for pump to come on at set point but I'm not sure how to turn the same pump off when...
1
Replies
703
Views
I have an old PLC (circa 2007) consisting of Telemecanique/Modicon/Schneider Electric devices. The system has developed errors and unfortunately...
2
Replies
1,429
Views
Does anybody use for remote tech support? Quick Assist, QA, comes with Windows 10 and 11 so it is "free" QA uses HTTPS for security but I wonder...
1
Replies
2,265
Views
Hi all, I have and upcoming project which i have very little experince with and was looking for some help to get me started. it is a vision...
0
Replies
1,367
Views
Top