PMSM Configuration
Libraries:
Motor Control Blockset HDL Support /
Electrical Systems /
Motors
Description
The PMSM Configuration block generates the configuration signal for a permanent magnet synchronous machine/motor (PMSM). You can use this signal to update parameters of a PMSM block that support FPGA deployment, such as the PMSM HDL block.
Examples
Field-Oriented Control (FOC) of PMSM Using Hardware-In-The-Loop (HIL) Simulation
Uses hardware-in-the-loop (HIL) simulation to implement the field-oriented control (FOC) algorithm to control the speed of a three-phase permanent magnet synchronous motor (PMSM). The FOC algorithm requires rotor position feedback, which is obtained by a quadrature encoder sensor. For more information on FOC, see Field-Oriented Control (FOC).
Ports
Output
Config — Block configuration signal
vector
Configuration signal for a PMSM, which includes the following parameters that you configure using this block.
Configuration element | Units | ||
---|---|---|---|
Number of pole pairs | - | ||
Stator phase resistance per phase | ohm | ||
Stator d-axis inductance | Henries | ||
Stator q-axis inductance | Henries | ||
Permanent magnet flux linkage constant | Weber | ||
Inertia | kgm^2 | ||
Back electromotive force, EMF | Vpk_LL/krpm Vpk_LL is the peak voltage line-to-line measurement | ||
Viscous damping | N·m/(rad/s) | ||
Mechanical input configuration (Torque or Speed) | - |
Data Types: single
Parameters
Block Options
Mechanical input configuration — Select port configuration
Torque
(default) | Speed
This table summarizes the input and output ports in each configuration.
Mechanical input configuration parameter value | LdTrq/Spd port configuration | ||
---|---|---|---|
Torque | LdTrq | ||
Speed | Spd |
Sample Time (Ts) — Sample time after which block executes again
1e-6
(default) | scalar
The fixed time interval (in seconds) between every two consecutive instances of block execution.
Parameters
Number of pole pairs — Pole pairs
4
(default) | scalar
Number of pole pairs, P, in the motor.
Stator phase resistance per phase (Ohm) — Resistance of stator
0.02
(default) | scalar
Stator phase resistance per phase, Rs, in ohm.
Stator d-axis inductance (H) — d-axis inductance
1.7e-3
(default) | scalar
Stator inductance, Ld, in H.
Stator q-axis inductance (H) — q-axis inductance
3.2e-3
(default) | scalar
Stator inductance, Lq, in H.
Permanent flux linkage constant (Wb) — Flux linkage constant
0.2205
(default) | scalar
Permanent flux linkage constant, λpm, in Wb.
Inertia (kgm^2) — Physical inertia
0.0027
(default) | scalar
Physical inertia of the motor, J, in kg.m^2.
Viscous damping (Nm/rad/s) — Viscous damping
4.924e-4
(default) | scalar
Viscous damping of the motor, F, in N·m/(rad/s).
Static friction (Nm) — Static friction
0
(default) | scalar
Static friction in the motor, Tf, in N·m.
Version History
Introduced in R2022b
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)