Incremental detector of position deviation attached to tool for correction