FOC Default Controller Gains
Compute controller gains for the FOC based algorithms at run time based on empirical method or optimum theory
Since R2023b
Libraries:
Motor Control Blockset /
Controls /
Controllers
Description
The FOC Default Controller Gains block computes controller gains for PI controllers used in the field-oriented control (FOC) based algorithms based on empirical method or optimum theory.
If you select Empirical method option:
The block calculates controller gains using approximation of control loops to a lower-order linear time-invariant system and by applying optimal theories considering the fixed delays in the system.
The block computes the PI controller gains used in the current controller, speed controller, and field-weakening controller using the d-q frame of reference-based motor model. The block uses the function
mcb.getPIControllerParameters
internally to compute the control gains. For more details about this function, see Obtain Controller Gains Using Empirical Method.The block accepts motor parameters along with the current and speed controller sample times to generate a bus containing proportional and integral control gains, which you can use for PI controllers in an FOC-based algorithm.
The block uses the value that you specify at the SlowdownFactor input port to modify the PI gains output to make them less aggressive and slow down the system response.
Note
The block uses empirical calculation to compute the control gains. The gains computed by the block might not be optimal and might require additional tuning to improve dynamic performance.
It is recommended that you use the block inside a triggered subsystem or a slow-running control loop.
The block inputs accept values greater than zero.
If you select Based on optimum theory option:
The block calculates controller gains using approximation of control loops to lower-order linear time-invariant system, and by applying optimal theories with capability to consider any number of delays present in the system (for example, delays due to hardware filters and observers (in case of sensorless FOC)).
The block uses:.
Modulus optimum theory for calculation of current controller gains
Symmetric optimum theory for calculation of speed controller gains
The block computes the PI controller gains used in the current controller and speed controller using the d-q frame of reference-based motor model. The block uses the function
mcb.CalcFOCGains
internally to compute the control gains. For more details about the usage of this function and the block, see Obtain Controller Gains to Run Motor Using Field-Oriented Control.The block accepts motor parameters along with the current and speed controller sample times to generate a bus containing proportional and integral control gains, which can be used with PI controllers to implement control algorithms for motor drive systems.
If you select
Per-unit
for Output unit parameter, provide Vbase (in Volts), Ibase (in Amperes) and Nbase (in RPM) as inputs via the corresponding ports.Provide overall time constant value for the delays present in feedback path of current loop and speed loop using the input ports CurrLoopDelay and SpeedLoopDelay respectively.
Examples
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2023b