Each scene requires different lighting. Above the theatre stage, lighting and sound rigs move up and down. A slack cable switch detects if the lighting suspension gets jammed or stuck.
The cable is wound onto a drum with a spring mechanism. Normally the weight of the lights pulls the drum down. If the cable becomes slack, e.g. because a light gets caught in the stage sets, the spring pulls the drum upwards and actuates the microswitch. This opens the signal circuit, and the controller stops the drive.