This can be done with (DC) Direct current injection on the motor windings,
Which will act as a braking effect on the motor,
The level of DC injection depends on the size of motor (Kw) and the amount of decceleration,
But you could also use a "Soft Stop" :roll: