Ron Beaufort
Lifetime Supporting Member
the other day someone asked me to run through the basic ideas behind a simple program to sequence a pump station ... I've decided to post the code here since topics like this come up rather frequently ...
program sequence:
the level in the tank rises to reach 20 feet ...
the discharge valve is energized to open ...
a switch proves that the discharge valve is open ...
wait five seconds ...
the discharge pump is energized ...
the tank level falls to reach 10 feet ...
the discharge pump is de-energized ...
wait five seconds ...
the discharge valve is de-energized to close it ...
Greetings Frank ...
I'm going by memory, but I think that this is what you outlined last week ... I just guessed at the level setpoints and the time delays – but those are easy to adjust ... if this doesn't do everything that you need, the forum members will be happy to help you tweak the program while I'm on the road ... note that the I/O addresses are for a PLC-5 not an SLC-500 – since that's what I had handy for testing purposes ...
hope this helps ... be safe ...
program sequence:
the level in the tank rises to reach 20 feet ...
the discharge valve is energized to open ...
a switch proves that the discharge valve is open ...
wait five seconds ...
the discharge pump is energized ...
the tank level falls to reach 10 feet ...
the discharge pump is de-energized ...
wait five seconds ...
the discharge valve is de-energized to close it ...
Greetings Frank ...
I'm going by memory, but I think that this is what you outlined last week ... I just guessed at the level setpoints and the time delays – but those are easy to adjust ... if this doesn't do everything that you need, the forum members will be happy to help you tweak the program while I'm on the road ... note that the I/O addresses are for a PLC-5 not an SLC-500 – since that's what I had handy for testing purposes ...
hope this helps ... be safe ...