Automatic control of crane drives for producing a single or repeated working cycle Programme control