o sub o100 if [1 EQ 1] (G30.1 records the tool touch off position in the var file) G30.1 o100 endif #1000 = #5181 (DEBUG, EVAL[vcp.getWidget{"x_tool_change_position"}.setValue{#1000}]) #1001 = #5182 (DEBUG, EVAL[vcp.getWidget{"y_tool_change_position"}.setValue{#1001}]) #1002 = #5183 (DEBUG, EVAL[vcp.getWidget{"z_tool_change_position"}.setValue{#1002}]) o endsub M2