You need a control that has machine control I/O capability, or it can be done with an external PLC with limited communication with the control.
Upper end systems, wether it be PC based that use a motion control card with built in PLC or motion card with separate PC based Digital I/O cards use this method.
Typically when the control tool-change M code is issued this is passed over to the PLC and the control will hang at that line until it receives a 'finish' signal from the tool changer that the tool function or M code has completed.
Al
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.