Automatic touchoff of face mill
andypugh wrote: G43 takes an optional H parameter, so you can issue a G43 to load the offsets for the next tool and read out the diameter from #5410 without physically changing tool.
You probably then want to zero-out the offsets (G49) before probing and finally load the new offsets at the same time as issuing the M6.
I think we are OK on the G49. It is already in the remap code, but #<_selected_tool> still refers to the old tool. Where do I have the value for the new tool? It doesn't seem to be set until after M6 is complete?
andypugh wrote: but #<_selected_tool> still refers to the old tool.
Which prolog are you using? The one I just looked at uses #<selected_tool> without the _
You need to do the M6 in your remap at some point anyway, why not do it early in the routine so the numeric parameters are accurate?
Thank you so much!