Precise positioning of piece rotation which is completely automatic