Study of the optimal placement of the emergency stop device operated quickly and surely