Crane or excavator for turning a load at a load rope hanging with optimized motion control