Why is G38.2 done in machine coordinates (G53). Won't it be better in the current working coordinates, and may be in relative distance mode? Is there any good reason to insist on overriding the coordinates?
I am asking because after homed, the tool head is usually at Z max, way above the work piece. The work flow I took is to jog the head to some where close to the intended start point and set the current working coordinate using G54. Now it becomes awkward if I want to use G38.2. I'll have to recall my G54 setting and manually calculate the desired Z value in machine coordinates.
This is roughly how I used it in Chilipeppr. In its auto level widget, right before it issues the first G38.2, it move the head to a predefined location using the CURRENT working coordinate. Then it issues a hard coded G38.2 Z-10 F25 to start the actual probing. In my case, as I've set G54 at a lower point, the tool head actually moves upward.
I think Chilipeppr guys forgot to mention that in order to use its auto level, one must manually set the MACHINE ZERO to some where within 10mm above the work piece. It cost me one engraving bit to realize that! At first I was blaming Chilipeppr for not mention this (or maybe I just misread the instruction). But then after some thought, I realize that the real problem may be tinyg's implementation of G38.2, more specifically the coordinate override bit.
In conclusion, I think the problem is that, in order to use G38.2, one either need to 1) manually set machine Z zero (which will screw up the soft limit if it's enabled), or 2) manually calculate the target position in machine coordinates, or 3) do not set any working coordinate at all.
So, why not just put G38.2 in the current working coorindate, or better, simply make it in relative distance mode?