Hi i make my own macro to get tool height and i see some wierd happend
when debug my script i see something wierd sometime , and thats probaly happend sometimes normal z zero script too , i have broken some mill bits.
when macro call
Code "G90 G31 Z" &somenumber somenumber is just example
While IsMoving() ' Wait for probe move to finish
Wend
testvar = GetVar(2002) ' Read the touch point
getvar (2002) return total wrong value example my dro say -9 and testvar is -15 and even i change height of touch it still -15 when i shutdown mach 3 and start again then i get correct testvar value , is it bug or bad macro code ?but after shutdown and restart mach3 macro work correct