o<set_g30_position> sub
; Lathe specific version

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}])

#1002 = #5183
(DEBUG, EVAL[vcp.getWidget{"z_tool_change_position"}.setValue{#1002}])

o<set_g30_position> endsub

M2
