摘要
在电机控制算法学习过程中,传统的手写代码的实验方式存在灵活度差、实验周期长等问题。针对这一问题,以高性能算法——永磁同步电机(permanent magnet synchronous motor,PMSM)的滑模控制为例,提出了基于模型设计的方法完成滑模控制算法实验学习。搭建了电流频率比(I/F)结合滑模控制的代码模型,利用嵌入式编码器将模型自动转化为代码。在低速区,采用I/F控制;在中高速区,采用滑模控制。同时设计了上位机界面可以收发数据并在线调参,最后,在一台180W的PMSM上进行了实验验证。运用模型设计的方法能够快速准确地实现滑模控制算法,并可以灵活地对算法进行改进以及快速验证,大大缩短了算法从设计到验证的周期,提高了电机控制算法的学习效率。
In the process of motor control algorithm learning,the traditional handwritten code development method has some problems,such as poor flexibility and long experimental cycle.In order to solve this problem,taking the sliding mode control of permanent magnet synchronous motor(PMSM)as an example,a method based on model design is proposed to complete the experimental learning of sliding mode control algorithm.The code model of current frequency ratio(I/F)combined with sliding mode control is built,and the model is automatically transformed into code by embedded encoder.In the low speed zone,I/F control is used;in the middle and high speed zone,sliding mode control is adopted.At the same time,the interface of upper computer is designed to send and receive data and adjust parameters online.Finally,experimental verification is carried out on a 180 W PMSM.The sliding mode control algorithm can be realized quickly and accurately by the model design method,and the algorithm can be improved and verified flexibly,which greatly reduces the period from design to verification of the algorithm,and improves the learning efficiency of the motor control algorithm.
作者
王垚鑫
年珩
赵建勇
孙丹
吴敏
WANG Yaoxin;NIAN Heng;ZHAO Jianyong;SUN Dan;WU Min(College of Electrical Engineering,Zhejiang University,Hangzhou 310027,China)
出处
《实验技术与管理》
CAS
北大核心
2022年第7期16-23,共8页
Experimental Technology and Management
基金
浙江大学实验技术研究项目(SJS202006)
浙江省教育厅科研项目资助(Y202045591)
浙江大学“十三五”教改项目(zdjg19009)。
关键词
永磁同步电机
滑模控制
模型设计
I/F控制
自动代码生成
在线调参
permanent magnet synchronous motor
sliding mode control
model design
I/F control
automatic code generation
online parameter adjustment