Start the simulation. You can observe the motor stator current, the rotor speed, the electromagnetic torque and the DC bus voltage on the scope. The speed set point and the torque set point are also shown.
At time t = 0 s, the speed set point is 500 rpm. Observe that the speed follows precisely the acceleration ramp.
At t = 0.5 s, the full load torque is applied to the motor shaft while the motor speed is still ramping to its final value. This forces the electromagnetic torque to increase to the user-defined maximum value (1200 N.m) and then to stabilize at 820 N.m once the speed ramping is completed and the motor has reached 500 rpm.
At t = 1 s, the speed set point is changed to 0 rpm. The speed decreases down to 0 rpm by following precisely the deceleration ramp even though the mechanical load is inverted abruptly, passing from 792 N.m to - 792 N.m, at t = 1.5 s. Shortly after, the motor speed stabilizes at 0 rpm.
Finally, note how well the DC bus voltage is regulated during the whole simulation period.