Skip to content

Current regulator tuning

Introduction

The current regulation control loop controls the phase current in the field-oriented control (FOC) of the controller. You can adjust the current regulation to change the behaviour of your system, for example the acceleration and the current overshoot.

The controller uses Current Regulator bandwidth to calculate the gains of the current regulation loops: Current regulator Kp and Current regulator Ki.

When Current Regulator bandwidth increases, the controller corrects the output current to the target more quickly. Usually, this also decreases the overshoot and the integrator windup, because Current regulator Kp becomes the dominant term in the PI loop.

A higher Current Regulator bandwidth can also make the phase current less stable. The controller can correct too much. This can increase the output noise and audible noise, and cause overshoots and overcurrent faults. If Current Regulator bandwidth is too low, the acceleration can decrease noticeably.

Tuning

Bandwidth tuning

Usually, higher-speed motors operate better with Current Regulator bandwidth from 3000 to 5000. Lower-speed motors can operate with lower values, for example 1500. Keep Current Regulator bandwidth sufficiently high to get the necessary acceleration and performance.

Dynamic integrator clamping

The BETA: Dynamic integrator clamping bit (Bit 0) of Features (address 212) limits the integrator of the current regulator when the regulator output is near its limit. This decreases integrator windup and current overshoot after a large step change. It also decreases nuisance overcurrent faults, for example Instantaneous phase over current.

We highly recommend that you enable this function, especially if the controller shows nuisance overcurrent faults.

  1. Enable the BETA: Dynamic integrator clamping bit (Bit 0) of Features.
  2. Save the parameters to flash.

Note

In firmware 6.026 and earlier, the function clamps the regulator response too much. Firmware 6.027 corrects this, and the function operates correctly in all four quadrants of operation. We recommend firmware 6.027 or later for this function.

Manual tuning

We do not recommend that you set the PI gains manually. If Current Regulator bandwidth is 0, you can set Current regulator Kp and Current regulator Ki manually.

In firmware 6.021 and later, you can also set Current Regulator Kcc (address 1955) manually. This is the cross-coupling gain that decouples the D-axis and Q-axis current control loops. When Current Regulator bandwidth is not zero (1 to 5000), Current Regulator Kcc shows the cross-coupling gain that the controller calculates.

When Current Regulator bandwidth is 0, the controller sets the Kcc gain to 0, unless Level 1 Features bit 5 Manual Kcc Tuning is enabled. To tune Kcc manually:

  1. Set Current Regulator bandwidth to 0.
  2. Enable Level 1 Features bit 5 Manual Kcc Tuning.
  3. Set Current Regulator Kcc.

WARNING

Make sure that the Kcc value is correct. An incorrect Kcc value causes incorrect D-axis and Q-axis cross-coupling compensation and incorrect D-axis and Q-axis current control.

When Current Regulator bandwidth is 0, Current Regulator Kcc keeps the value calculated from the last non-zero Current Regulator bandwidth. You can then change Current Regulator Kcc manually.

The table shows the effect when you increase one gain and do not change the other:

Parameter Rise time Overshoot Settling time Steady-state error Stability
Current regulator Kp Decrease Increase Small change Decrease Decrease
Current regulator Ki Decrease Increase Increase Remove Decrease

Effect of an increase in each current regulator gain