Lynn,
Thank you for taking the time to look at my disaster of a program. I now actually have something that is 100% functional, though I am less than pleased with the level of complexity and haven't been able to eliminate the locals. I understood some of what you suggested regarding the event structure, but I'm a bit of a hack at this and not sure how I would work with the wait and pause functions as you mentioned.
I'll post the updated version of what I have, though the logic is not any more clear. Basically, what needs to happen is that it needs to execute the main cycles for x cycles and then go to the jump cycles for y cycles and back to main. The key thing is being able to pause or stop immediately while closing the valves. If you have the time and inclination to point me towards the proper way of implementing the event structure, I'd greatly appreciate it. As I said, it currently works, but I'm certain it is inefficient and unnecessarily complex.
Thanks again for the help.