Stop machine in a predetermined position