PMSM Parameter Estimation Configurator
Libraries:
Motor Control Blockset /
Parameter Estimation /
PMSM Parameter Estimation
Description
The PMSM Parameter Estimation Configurator block generates the following configuration elements for estimating the parameters of a permanent magnet synchronous motor (PMSM):
Elements for motor and inverter hardware
Elements for estimating motor resistance (Rs)
Elements for estimating motor inductances (Ld and Lq)
Elements for estimating back EMF constant (Ke), motor inertia (J), and friction constant (B)
The block uses the parameter settings to generate an output bus containing the configuration elements. You can use the configuration elements in these PMSM parameter estimation blocks:
Examples
Estimate PMSM Parameters Using Parameter Estimation Blocks
Uses the parameter estimation blocks provided by Motor Control Blockset™ to estimate these parameters of a permanent magnet synchronous motor (PMSM) with a quadrature encoder sensor:
Estimate PMSM Parameters Using Parameter Estimation Blocks on Real-Time Systems
Uses the parameter estimation blocks provided by Motor Control Blockset™ to estimate these parameters of a permanent magnet synchronous motor (PMSM):
Ports
Output
The bus signal includes these configuration elements.
| Category | Configuration element | Units | ||
|---|---|---|---|---|
Elements for motor and inverter hardware | Number of pole pairs | - | ||
Rated speed of motor | RPM | |||
Rated current of motor | A | |||
Maximum measurable inverter current | A | |||
Board resistance | ohms | |||
Current sense gain | A/ADC Count | |||
Voltage sense gain | V/ADC Count | |||
Parameter estimation sample time | seconds | |||
Elements for estimating motor inductances (Ld and Lq) | Maximum frequency | Hz | ||
Minimum frequency | Hz | |||
Step for frequency sweep | Hz | |||
Frequency step size for estimation | Hz | |||
Number of frequencies for estimation | - | |||
Elements for estimating back EMF constant (Ke), motor inertia (J), and friction constant (B) | Back EMF estimation time | seconds | ||
Back EMF estimation maximum speed limit | RPM | |||
Specify current controller gains (off/on) | - | |||
Proportional gain | - | |||
Integral gain | - | |||
Iq reference current as a ratio of rated motor current | PU current | |||
Lower speed limit for inertia estimation | RPM | |||
The configuration elements are analogous to the block parameters. For more information about these elements, see Parameters.
Data Types: single
Parameters
Motor and Inverter
Number of pole pairs available in the PMSM.
Rated speed of the PMSM (in RPM).
Rated current of the PMSM (in amperes).
Maximum current (in amperes) that the system (including inverter and controller) can measure.
Resistance (in ohms) in the path of phase currents (excluding motor resistance). You can obtain this value from the datasheet of the inverter hardware.
Gain of the current sense circuit of the inverter. This value determines the current (in Amperes) corresponding to one analog-to-digital converter (ADC) count (resolution of the measurable current range).
Gain of the voltage sense circuit of the inverter. This value determines the voltage (in Volts) corresponding to one analog-to-digital converter (ADC) count (resolution of the measurable voltage range).
Ld and Lq Estimation
Since R2026a
Technique that the Ld Estimator and Lq Estimator blocks use for inductance estimation. Select the same method for this parameter as you selected for the Estimation technique parameter of the Ld Estimator or Lq Estimator block:
Impedance measurement (recommended)— Estimate Ld using impedance measurement.Phase difference measurement (for backward compatibility)— Estimate Ld by comparing the phase currents.
Since R2026a
Frequency (in Hertz) of injected current for impedance measurement.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Impedance measurement
(recommended).
Since R2026a
Select this parameter to specify PI current controller gains for impedance measurement.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Impedance measurement
(recommended).
Since R2026a
Proportional gain, kp, of the PI current controller that regulates current for impedance measurement.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Impedance measurement (recommended)
and enable Specify current controller gains:.
Since R2026a
Integral gain, ki, of the PI current controller that regulates current for impedance measurement.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Impedance measurement (recommended)
and enable Specify current controller gains.
Maximum frequency (in Hertz) injected by the Ld Estimator and Lq Estimator blocks to begin the frequency sweep. For more details, see Ld Estimator and Lq Estimator.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Phase difference measurement (for backward
compatibility).
Minimum frequency (in Hertz) injected by the Ld Estimator and Lq Estimator blocks to conclude the frequency sweep. For more details, see Ld Estimator and Lq Estimator.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Phase difference measurement (for backward
compatibility).
Step size (in Hertz) using which the Ld Estimator and Lq Estimator blocks decrement the frequency during the frequency sweep. For more details, see Ld Estimator and Lq Estimator.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Phase difference measurement (for backward
compatibility).
Step size (in Hertz) using which the Ld Estimator and Lq Estimator blocks increment the frequency during the Ld and Lq estimation process. For more details, see Ld Estimator and Lq Estimator.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Phase difference measurement (for backward
compatibility).
Number of frequencies (with a step size defined by the Frequency step size for estimation (Hz) parameter) that the Ld Estimator and Lq Estimator blocks inject after the frequency sweep to estimate Ld and Lq parameters. For more details, see Ld Estimator and Lq Estimator.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Phase difference measurement (for backward
compatibility).
Time delay (in seconds) between an instance of current change and the point of time when the changed current is measured in the microcontroller.
Dependencies
To enable this parameter, set Selected technique on estimator
block to Phase difference measurement (for backward
compatibility).
Ke, J, B Estimation
Duration (in seconds) for which the PMSM Mechanical Parameter Estimator block runs the motor using closed-loop control to estimate back-EMF, Ke. For more details, see PMSM Mechanical Parameter Estimator.
Speed (in RPM) at which the PMSM Mechanical Parameter Estimator block runs the motor using closed-loop control to estimate back-EMF, Ke. For more details, see PMSM Mechanical Parameter Estimator.
Reference current, Iq (in units of the motor rated current), to achieve the reference speed specified in the Back EMF estimation maximum speed limit (RPM) parameter. For more information about the estimation process, see PMSM Mechanical Parameter Estimator.
Select this parameter to enable these fields:
Proportional gain
Integral gain
You can use these fields to enter the proportional and integral gains of the PI current controllers that implement closed-loop control to estimate Ke, J, and B.
If you clear this parameter, the block automatically computes the proportional and integral gains.
For more information about the estimation process, see PMSM Mechanical Parameter Estimator.
Proportional gain, kp, of the PI current controller that implements field-oriented control to run the motor in closed-loop control and estimate Ke, J, and B.
Dependencies
To enable this parameter, select the Specify current controller gains parameter.
Integral gain, ki, of the PI current controller that implements field-oriented control to run the motor in closed-loop control and estimate Ke, J, and B.
Dependencies
To enable this parameter, select the Specify current controller gains parameter.
Lower speed limit (in RPM) during coast-down at which the PMSM Mechanical Parameter Estimation block registers the timestamp for estimating motor inertia. For more information about the estimation process, see PMSM Mechanical Parameter Estimator.
Since R2026a
Technique that the PMSM Mechanical Parameter Estimator block uses to start up the motor before estimation. Select the same method for this parameter as you selected for the Start up technique parameter of the PMSM Mechanical Parameter Estimator block:
I-F Controller— Use I-F control to start up the motor.V by F— Use V by F control to start up the motor.
Since R2026a
Type of mechanical position input for the rotor when using the PMSM Mechanical Parameter Estimator block. Specify one of the following options:
Sensorless— Input position from sensorless observers.Sensored— Input position from sensors such as quadrature encoders.
Dependencies
To enable this parameter, set Selected start up technique on estimator
block to I-F Controller.
Since R2026a
Speed (in RPM) required to switch the motor to closed-loop control.
Dependencies
To enable this parameter, set Selected start up technique on estimator
block to I-F Controller and Rotor
position input to Sensorless.
Since R2026a
Maximum current (in amperes) that is supplied to the motor for startup.
Dependencies
To enable this parameter, set Selected start up technique on estimator
block to I-F Controller.
Since R2026a
Maximum rate at which motor speed can change (in RPM per second) during startup.
Dependencies
To enable this parameter, set Selected start up technique on estimator
block to I-F Controller.
Since R2026a
Maximum rate at which motor current can decay (in amperes per second) during startup.
Dependencies
To enable this parameter, set Selected start up technique on estimator
block to I-F Controller.
Sample time (in seconds) for the parameter estimation algorithm. This parameter defines the sample time in these parameter estimation blocks for PMSMs:
PMSM Rs Estimator
Ld Estimator
Lq Estimator
PMSM Mechanical Parameter Estimator
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2023aThe Ld Estimator, Lq Estimator, PMSM Mechanical Parameter Estimator blocks now include options to specify parameter estimation techniques. New parameters have been added to this block to configure those techniques:
Selected technique on estimator block
Select frequency (Hz)
Specify current controller gains
Proportional gain
Integral gain
Selected start up technique on estimator block
Rotor position input
Speed to enter closed loop (RPM)
Maximum start up current (A)
Start up speed change rate (RPM/s)
Start up current decay rate (A/s)
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)

