Electrical Questions? Ask an Electrician Online.
Welcome. My name is ***** ***** would be glad to assist.
When Y0 or Y1 coils are on, what are they controlling?
Is there feedback of any type from the items being turned on or off?
If you can give some details of the actual sequence taking place once Y0 or Y1 is turned on, it may help to determine best way to try and get the alternation.
Let me know and we can continue,
Please clarify the floats.
I am assuming, You have a low and high level float? X1 is low and X2 is high ?
Will look over the info and see can be worked out and post tomorrow..
Ok, have a possibility below as seen in the picture.
ONLY need something to perform a Rest on the counter after the sequence is over, will be looking into that shortly.
Look it over and you can even try it, just no real world output connections.
You can force the inputs on and off to simulate the sequence and then force a contact for the reset and verify it working.
Hopefully will have the rest answer before long, still working on the situation.
This is based on standard pump level control with a low and high level floats.
Do you have anything that takes place after the pump has shutdown, perhaps?
We just need something to trigger a Reset on the counter when the second run has taken place?
Might be able to use the low level float to trigger another counter and us it on the last run, to be the counters
I did not want to get into a logic read situation where it could get out of sink.
Let me know if you can do the simulation as posted and hand force what takes place for verification.
That is what we do on all programs, trigger and make them run off line to verify prior to going live.
Use dummy coils and then change them later.
Ok, I just updated the ladder logic to match your float switches, have the X2 as low level and X1 as high level now.
It should work, still trying to determine the best way to Reset the counter, the rest should work in simulation.
Sorry about the previous diagrams, wrote the low level like you would with standard wiring format and power flow, not the PLC.
Updated is below, the X2 will make on rise in water and actually be a NC but in the logic, it needs to be written as NO so the bit 1 will set the contact as closed and power flow.