set_tool_touchoff (tool,axis,value) - This command will record the current mode, switch to MDI mode, invoke the MDI command: G10 L10 P[TOOL] [AXIS] [VALUE] wait for it to complete invoke G43 wait for it to complete switch back to the original mode.