Limit switches are used to convert a mechanical motion into an electrical control signal. The mechanical motion is usually in the form of a comma machine component, or an object moving toward a predetermined position. The cam engages the limit switch lever or plunger and this in turn makes or breaks an electrical contact inside the switch. This electrical control signal is then used to limit position or reverse the machine travel, or to initiate another operating sequence. It can also be used for counting, sorting or as a safety device.