If I try to use the GO TO WORK ZERO button after performing the Touchoff for the Z axis I got an error "Cannot use G53 incremental".
By reading other posts I learned that I would need to change from G91 to G90 before it would work.
In my logic, if I prefaced the GO TO WORK ZERO button code so that it first issued a G90 it would work. And it does.
So... my code line is like this..... mc.mcCntlMdiExecute(inst, "G00 G90\nG00 G53 Z0\nG00 X0 Y0\nG00 Z0")--With Z moves
Are there any negatives to doing it this way? Should I setup a routine for the button to see if I am in G91 then do the switch to G90 and switch back after I have moved to the work offset?
Thanks