Under the Machine menu, set touchoff for fixture 1) tool touch off to fixture is selected 2) Txx M6 G43 3) jog to point 4) Touch off to table 5) Txx M6 G43 6) jog to point 7) touch off to T again Under the Machine menu, set touchoff for workpiece MDI: Txx M6 G43 Jog to zero and set the z fixture offset. (Any tool should work because they are set relative to each other from machine z zero.) MDI_COMMAND = G10 L20 P1 Z0.375 [20:29:26] you just make a pyvcp button to execute a halui.mdi.command..