Use a motor as a generator, you say? Surely those are completely different things. Turns out, they aren’t. If the motor is driving the load, it’s a motor. If the load is driving the motor, it’s a generator. Most of the motor applications I work with involve point to point position control: in getting from Point A to Point B, the motor must accelerate to some speed, then decelerate such that the motor speed reaches zero just as we arrive at Point B. During acceleration, energy is supplied to the motor as it drives the load.