Force control as function of position of tool