A computer program product residing on a non-transitory computer readable medium and comprising a program having program code sections, wherein the program code sections, when read into a memory of a processor of a control unit and executed by the processor of the control unit, causes the control unit to:
- control the network-side converter with a network control signal and controlling conversion of electric energy by the machine-side converter with a machine control signal:
- determine a torque-related machine current component from electric machine currents of the electric machine,
- detect an actual value for a magnetic flux,
- determine an actual value of a machine torque of the electric machine by linking the detected magnetic flux to the torque-related machine current component,
- determine a torque difference between the actual value of the machine torque and a setpoint value of the machine torque of the electric machine,
- filter the torque difference with a bandpass filter tuned to a machine-side natural frequency to determine a filter output signal,
- process the filter output signal with a Park transformation to determine a d-component and a q-component, and determine therefrom a compensation signal,
- determine mean values for the determined d-component and q-component,
- regulate the mean values to zero with a PI controller,
- determine the compensation signal with an inverse Park transformation, and
- superimpose the compensation signal determined with the inverse Park transformation on the network control signal or the machine control signal, or both.