A motor operate in two modes-motoring and braking. In motoring, it converts electrical energy into mechanical energy, which supports its motion. In braking, it works as a generator converting mechanical energy into electrical energy, and thus, opposes the motion. Motor can provide motoring and braking operations for both forward and reverse directions.