I recently stumbled across Brett's tool length touch-off macro, and made some "enhancements", so I thought I'd pass it along to anyone who cares.
It appeared to me the original would not work correctly in all circumstances, as it did an explicit G90, but never checked to see if G91 was already in effect. So, I fixed that so that it will work whether G90 or G91 was in effect, and restore the entry state. I also changed the way the offset is determined, to simplify it logically. In theory, the only changes someone should need to make is to change the PlateThickness RetractClearance and ProbeFeed variables defined at the top of the file.
Regards,
Ray L.