I think I have sussed out what goes on, and yes it was my fault really, probably;)
It's this little block here, especially the last two lines.
Unknowingly I was probing with a tool-length offset applied, it seems that when Mach did the sums for the retract distance, it applied the offset and instead of coming up with a Z figure of 1mm ABOVE where it was and doing a G0 UPWARDS, it came up with a figure that was 1mm - the offset value and did a G0 DOWNWARDS, mashing the tool into whatever by anything from a mm to many mm in Z- direction depending on the offset.
I have now block all probing if anything but tool zero is chosen, that should safety things up a bit i think.
Code "F" & FirstProbeFeed ' Set feedrate to 10 ipm or 300mm/min
Code "(Probing for Z Zero.....)" ' Puts this message in the status bar
ZNew = (GetOEMDro(802) - FirstProbeDist ) ' Probe move to current Z - 6 inches
Code "G90 G31 Z" & Znew
While IsMoving() ' Wait for probe move to finish
Wend
ZNew = GetVar(2002) ' Read the touch point
Code "G0 Z" & ( ZNew + FirstRetractDist ) ' Move up .05 inch or 1mm in case of overshoot
Do you guys concur here?
I like to know why sh1t happens
