I have had my homebuilt metal CNC router working just fine for about a year now
Last week I upgraded the Mach3 software to the latest version and I forgot to do a backup of the directories before I installed it, and it overwrote my VB code for the Auto Tool Zero button


Because my machine will not work correctly with the 'automatic' code I manually lower the Z axis while watching the diagnostic screen, as soon as the probe registers that the bit has touched the plate, I then press the Auto Tool Zero button.
This then puts the thickness of my plate (7.96mm) into the Z DRO and raises the Z Axis to 15mm above the workpiece ready for cutting.


This is the code I have tried :-

code "G92 Z7.96" 'This is the thickness of the plate that I touch off
code "G0Z15"

This works fine but once the part has finished cutting, the Z axis DRO changes its value to the actual Z axis machine height.
Anyone know how I can get the Z axis to keep the previous tool offset?

TIA

Andy