If you are capable of writing the loops and timing routines to actually perform the steps of the wash cycle, I don't see how you would even need to ask something like this... if you want your program to go to the beginning, write the code to make it go to the beginning!
In assembly or BASIC or similar, this could be as simple as a GOTO instruction, in a higher-level language like C it can be as easy as putting your whole program inside an infinite WHILE loop.