with means for automatically varying the effective length of the hoisting rope or cable