Main Content

控制算法设计

为电机控制系统创建控制器算法

创建转矩控制和转速控制子系统,验证目标执行时间,并调节控制增益。

注意

此处列出的模块符合 MISRA C™ 规范。

模块

全部展开

控制参考

ACIM Control Reference计算感应电机磁场定向控制的参考电流 (自 R2020b 起)
ACIM Feed Forward Control解耦 d 轴和 q 轴电流以消除扰动 (自 R2020b 起)
ACIM Slip Speed Estimator计算交流感应电机的转差速度 (自 R2020b 起)
ACIM Torque Estimator估计机电转矩和功率 (自 R2020b 起)
DQ Limiterdq 参考系中的饱和电压(或电流) (自 R2020a 起)
MTPA Control Reference计算最大转矩电流比 (MTPA) 和弱磁运行的参考电流 (自 R2020a 起)
PMSM Feed Forward Control解耦 d 轴和 q 轴电流以消除扰动 (自 R2020a 起)
PMSM Torque Estimator估计机电转矩和功率 (自 R2020a 起)
Position Generator生成固定频率的位置斜坡 (自 R2020a 起)
Six Step Commutation生成用于无刷直流 (BLDC) 电机的六步换相的开关序列 (自 R2020b 起)
Vector Control Reference计算参考矢量的 d 轴和 q 轴分量 (自 R2020a 起)
LUT based PMSM Control ReferenceGenerate lookup-table-based control reference currents for field-oriented control of permanent magnet synchronous motor (自 R2022b 起)
SRM CommutationGenerate switching sequences for n-phase switched reluctance motor (SRM) (自 R2022b 起)
LUT based SynRM Control ReferenceGenerate lookup-table-based control reference currents for field-oriented control of SynRM and PMaSynRM (自 R2024a 起)
SynRM FeedForward ControlDecouple d-axis and q-axis current to eliminate disturbance (自 R2024a 起)
SynRM Torque EstimatorEstimate electromechanical torque and power (自 R2024a 起)

控制器

Derating Function计算降额因子 (自 R2020a 起)
PI ControllerDiscrete-time PID Controller (自 R2022a 起)
Field Oriented Control AutotunerAutomatically and sequentially tune multiple PID control loops in field-oriented control application (自 R2020a 起)
FOC Default Controller GainsCompute empirical PI controller gains for the field-oriented control (FOC) based algorithms at run time (自 R2023b 起)
VbyF ControllerImplement V/F (open-loop or scalar) control for three-phase motors (自 R2023b 起)
Field-Oriented Current ControllerImplement current control for three-phase motors using field-oriented control (FOC) technique (自 R2023b 起)
I-F ControllerImplement I-F control for a three-phase permanent magnet synchronous motor (自 R2024a 起)

数学变换

3-Phase Sine Voltage Generator生成平衡的三相正弦信号 (自 R2020a 起)
atan2计算四象限反正切 (自 R2020a 起)
Clarke Transform实现 ab 到 αβ 的变换 (自 R2020a 起)
Inverse Clarke Transform实现 αβ 到 abc 的变换 (自 R2020a 起)
Inverse Park Transform实现 dq 到 αβ 的变换 (自 R2020a 起)
Park Transform实现 αβ 到 dq 的变换 (自 R2020a 起)
Sine-Cosine Lookup使用查找表方法实现正弦和余弦函数 (自 R2020a 起)
PWM Reference Generator从相电压生成调制信号 (自 R2020a 起)
Protection Relay实现具有确定最短时间 (DMT) 跳闸特性的保护中继设备 (自 R2020a 起)
Host Serial ReceiveConfigure host-side serial communications interface to receive data from serial port (自 R2020a 起)
Host Serial Setup配置 Host Serial Receive 和 Host Serial Transmit 模块使用的通信端口 (自 R2020a 起)
Host Serial TransmitConfigure host-side serial communications interface to transmit data to serial port (自 R2020a 起)
Hall Speed and Position使用霍尔传感器计算转子转速和估计转子位置 (自 R2020a 起)
Hall Validity计算转子旋转方向和霍尔传感器序列有效性 (自 R2020a 起)
Mechanical to Electrical Position根据转子的机械位置计算其电气位置 (自 R2020a 起)
Quadrature Decoder计算正交编码器的位置 (自 R2020a 起)
Resolver Decoder计算电机机械位置和转速以及电机电气位置的正弦和余弦值 (自 R2020a 起)
Software Watchdog Timer输出 true,直到计数器达到最大计数限值 (自 R2020a 起)
Speed Measurement根据转子的角位置计算转速 (自 R2020a 起)
Sliding Mode Observer计算表贴式 PMSM 的电气位置和机械转速 (自 R2021b 起)
Flux Observer计算转子的电气位置、磁通量和电转矩 (自 R2020a 起)
Pulsating High Freq Observer使用脉动高频 (PHF) 注入估计内部 PMSM 的初始转子电气位置 (自 R2022b 起)
Extended EMF Observer计算永磁同步电机 (PMSM) 的电气位置和机械转速 (自 R2023a 起)
IIR Filter实现无限冲激响应 (IIR) 滤波器 (自 R2020a 起)
Vector plot绘制空间域中的矢量 (自 R2020b 起)
Position CompensationCompensate for position offset due to different types of delays (自 R2022b 起)
PLL with Feed ForwardCompute position and angular frequency from orthogonal sinusoidal signals (自 R2023b 起)
Compute ParameterExtend functionality of blocks by enabling additional inputs (自 R2024a 起)
Dead-Time CompensatorOvercome dead-time effect by modifying reference voltages (自 R2024a 起)
Protocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure (自 R2024a 起)
Protocol DecoderDecode a uint8 byte stream by specifying the packet structure (自 R2024a 起)
Byte PackConvert input signals to uint8 vector (自 R2024a 起)
Byte Unpack Convert uint8 vector to input signals (自 R2024a 起)
Byte ReversalReverse order of bytes in input word (自 R2024a 起)
Memory CopyCopy data from and to memory section (自 R2024a 起)

主题