Jazz - so many bits of code here I ended up looking at the wrong one. My mistake - I've deleted wrong post.

Don't see any obvious reason why the macro does what Kell says - unless it's a tool table issue, as you suggest. I had a lot of problems getting the touch probe macros working on my new mill because of that. Mach3 seems to have some slightly odd ways of using tool offsets. I would try using the macro with the gauge block, and checking what's actually showing on the Z DRO. Should be 25 in work coordinates with the macro as written - can we check that?

I would still use the internal gauge block height value as set on the "offsets" page as I don't like programming things like that into the code, but that doesn't make any difference to the problem being reported - just a matter of taste.