Motoring modes of operation occur when the generated force is in the direction of the motor velocity; that is, quadrants 1 and 3.
Braking modes of operation occur when the generated force opposes the motor velocity; that is, quadrants 2 and 4.