Originally Posted by
keen
Yikes this is scary - I nearly machined a part 25.4 times too big - the soft limits saved the situation that time.
Did PP get set back to imperial during initialization or while probing, or did it happen while g-code was actually being executed? Obviously this should never happen but PP swaps values between metric and imperial and it's possible that there's an error somewhere in a probing routine perhaps.
If it occurred during g-code execution then that could be really nasty. Each g-code program should start with a standard initialization block like the following (as generated by the Sprutcam post):
Code:
N20 G90 G54 G64 G50 G17 G40 G80 G49
N30 G21 (Metric)
This must set metric mode and PP must stay in metric unless told to do otherwise. There's no need to test for metric/imperial, simply call G21. You should also check your g-code for a stray G20. I've been caught out before by a stray command (self inflicted) that cost me several days, several end mills and fair amount of aluminium!
Step