an on/off switch is used for control a machine