Couple of additional points. I have made a setting gauge which has an electrically isolated button set at 38.84 mm above its magnetic base. The button connects to the probe input. In use I pop the gauge on the table, position the tool just above the button with the button connected, click auto tool zero, and the macro then executes, leaving the tool 50 mm above the table surface which is the Z coordinate zero I prefer. For other touch place thicknesses and desired end points, it's fairly obvious where you modify these numbers.