Originally Posted by
SCzEngrgGroup
Not at all clear what you're asking.... But replacing a tool on-the-fly requires nothing more than making proper use of the tool table.
1) Stop the machine
2) Backup to a convenient point in the code BEFORE the tool broke
3) Put the new tool in the spindle
4) Update the length field in the tool table
5) Do a G49, then G43 Hn to apply the updated tool length offset
6) Start the program from whatever point you've chosen
You have to be careful about WHERE you re-start, to ensure you can easily put the machine in a state consistent with what the code expects (spindle on/off, coolant on/off, machine position, etc.). I typically find it easiest to backup to the end of the last completed toolpath in the current operation (usually a rapid to clearance height), and manually turn the spindle and coolant back on before re-starting. The first move will then usually be an X/Y positioning move, followed by a plunge to begin the next toolpath.
Regards,
Ray L.