Measurement of drawn rope length in a lifting machine using a winch for high place inspection