If you use a VFD, and oversize it so it handles maybe 5x the motor full load current, then you can use the machine controls with almost no changes, powering the machine from the vfd. You would still have to somehow give it the stop signal without opening the contactor until after the motor stopped, , but it would stop the motor as fast as any electrical means can. The controls would need powered from before the VFD.
There are a number of possible ways to handle the operation, that require different amounts of changing to the machine controls.
The bottom line is that power would come to the motor through the VFD, and braking would be from it as well. What needs to be done depends on how "hidden" the VFD has to be as far as operation is concerned.
The ability of a VFD to do braking is just the limitations of the resistor connected to it. When the VFD does braking, the motor is a generator and the DC bus voltage rises. The deceleration time of the VFD is limited by the rise in DC bus voltage caused by braking. Hooking up a big resistor allows the bus voltage to stay below the limit despite the braking action.
The problem with VFDs is that many do not have the braking controls built in. They require a separate control to turn on the resistor during braking and turn it off the rest of the time.
Almost, but not so. The resistor must be adequate, yes. But you can have a problem with decel before you run out of voltage , or before the resistor is overrun. Generally you can decel only about as fast as you can accel.
But the limit is the VFD in that one of a given size can only do a certain amount of energy transfer.... decel IS energy transfer, and is just like accel, except it is "negative".
The VFD is only connected to the load by the motor current, and that has a limit in the VFD. You will get an overcurrent limit if you decel or accel too fast. You can use a bigger VFD, which can handle the required current, but you still then can run into motor limits.
DC braking can be quite violent and stop fast. The problem is that it severely heats the rotor part of the motor. Repeated hard stops can even melt the aluminum rotor bars,although that takes a lot.
DC braking is effective but stresses the motor.
In a CNC, the motor is a specially made motor that (if not a servo) is designed to take high currents and stop fast. You cannot easily approach that with a standard induction motor.