g.robert,
"pump a hand" sounds like a politician rubbing skin with the public. How about, "Pump-A is Running in Manual" or "Pump-A is in Manual Mode".
The terminology you use is all-important to anyone else that might look at the code... much like we are doing now.
So... what I see is...
If A is in Manual but B is NOT in Manual,...
OR...
If system is in Auto, while Timer-A is running and Timer-A is NOT Timed Out... then Run Pump-A.
If the system is in Auto, and neither pump is in Manual, and Timer B is NOT Done, then Run the Timer-A.
If the system is in Auto, and neither pump is in Manual, and Timer-A is Done, then Run Timer-B.
If A is NOT in Manual but B is in Manual,...
OR...
If system is in Auto, while Timer-B is running and Timer-B is NOT Timed Out... then Run Pump-B.
When Timer-B times out, Reset both Timers.
It appears to me that you want to be able to run one, and only one, pump manually when you want to. But, if you choose to run the system in Auto, and if neither pump is in manual, you want each pump to run for 20 seconds, alternatingly... maybe.
Now, in terms of actual actions, what I see is...
Any time that Pump-A is in Manual but Pump-B is NOT in Manual, Pump-A will ALWAYS run... even if the System is in Auto! Is that what you want?
Any time that Pump-A is NOT in Manual but Pump-B is in Manual, Pump-B will ALWAYS run... even if the System is in Auto! Is that what you want?
If both Manual controls are OFF and the system is in Auto, you want the Automatic Timer sequence to run.
Pump-A runs while timer-A is running and NOT Done, then when Timer-A is Done, Pump-B runs while Timer-B is running and NOT Done.
I'm not sure, but it appears that Pump-A might be running while Pump-B is running.
If folks are gonna use acronyms, PLEASE, give the Full Name on the first instance! For those of us that refuse to be assimilated... What the Fork is "TT"?
Anyway, Kieffer, the more I look at this code the more I cannot figure out whay your real intention is. Please describe your intent.