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 #1001 = #5182 #1002 = #5183 o endsub M2