you are right!
In my example I forgot to set the offset (?) of the wall thicknes, on Y & X axes If understanding Gcode correctly, the probing sets the 0 point, but you will always need to take into account the thickness of the probe. In all 3 directions.
Sorry for that mistake, I am still learning
But, I believe there are multiple ways to achieve the same thing. I can be totaly wrong, but I would imagine that the following commands might result in the same thing, I should check it one day.
Oh, Here you can find the Linux Gcode details on 38.2, and here the Marlin documentation of it.
I am going to take time to watch that clip, it´s interesting.
In my tests, if I raise Z to the max, and issue the command G38.2 Z0 it keeps going the total distance I want it, until I trigger the probe. So it could be that “0” is just an “unlimited” command. But I am going to test to be sure.
I can say for sure now, that if I first set G92 X0 Y0 Z0 , my probing wont go further then let´s say 2-3cm.
Thanks Douglas, that made me just a bit smarter today
Ps, in case any one looks for info on the G68 command, I found that Marlin does not support it. But you can actually add new G commands to the firmware. It would be a matter of implementing the G68 code, and add a way to set variables in the script, based on few probes. Then you could rotate the whole Gcode script based on the angle of your workpiece.