A dishwasher combines water with detergent, heats the mixture and sprays it against the dishes. It pumps out the dirty water and then rinses the dishes with clean water mixed with a rinse agent. After pumping out the rinse water, the dishes are dried by either heating or air drying them. The selector switch allows you to pick a variety of cycles which vary the length of wash, water temperature and drying temperature.
When the door latch is closed, the door switch is engaged and allows the dishwasher to operate. Based upon the chosen cycle, the selector switch signals the various components to operate at the appropriate stage of the cycle. The timer regulates the length of each stage of a cycle.
The water inlet valve fills the tub with water. A float in the tub prevents the dishwasher from overfilling. Either the float or the timer signals the inlet valve to close. The detergent is then released into the tub. In many dishwashers the mixture is heated with an electric heating element. Water that is not warm enough results in poor cleansing.
The motor turns a pump which forces the water up through the spray arms and spray tower (if any). The pressure of the water causes the arms to turn.