Quote Originally Posted by mactec54 View Post
No you have not you don't want G53 in your program anywhere, not configured like this any way


You have to change all your H numbers to the same as the tool number
On some controls G53 is a one-shot use of the machine co-ord system.... so if the control can read G53 codes, and, you have proved that it does work by MDI... there should be no problem keeping it in your program. ie G53Z0 is go home fast to the machine Z zero position.

As for H numbers matching the tool #... that should be a "standard" you should adopt..... it won't stop a program from running

My 2cents.... sequence number zero (N0) may not be a legit range.
... best advice would be to single step the program to stop at the offending line.... then delete/modify items one at a time
.... if you run a program. your machine may read ahead many lines, making it harder to isolate any problem code.

If your machine requires you to manually toolchange.... M6 is an auto operation.... replace it with M00.. this makes the running program stop... forcing you to do something ... then cycle start to continue.