CN104779873B - A kind of predictive functional control algorithm for PMSM servo-drive systems - Google Patents
A kind of predictive functional control algorithm for PMSM servo-drive systems Download PDFInfo
- Publication number
- CN104779873B CN104779873B CN201510035849.7A CN201510035849A CN104779873B CN 104779873 B CN104779873 B CN 104779873B CN 201510035849 A CN201510035849 A CN 201510035849A CN 104779873 B CN104779873 B CN 104779873B
- Authority
- CN
- China
- Prior art keywords
- rotor
- time
- servo system
- expression
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Feedback Control In General (AREA)
- Control Of Electric Motors In General (AREA)
Abstract
本发明公开了一种用于PMSM伺服系统的预测函数控制方法,该方法首先采集PMSM伺服系统的转子位置信号θ和电机电流信号iq,利用Kalman滤波器观测转子负载扰动,得到转子负载转矩和转子转速然后将该转子负载转矩和最优控制量反馈给预测函数控制(PFC)的转速预测单元,得到转子转速的预测值ωm,将转子转速及转子转速的预测值ωm输入至预测函数控制的误差预测单元,得到转子的转速误差值e;最后,将e、ωm和输入至预测函数控制的优化控制单元,得到最优控制量实现PMSM伺服系统在扰动影响下的高精度控制。该方法将Kalman滤波器和预测函数控制有机结合,两者互补,能够优化伺服系统的控制量,提高PMSM伺服系统的控制精度和抗扰动能力。
The invention discloses a predictive function control method for a PMSM servo system. The method first collects the rotor position signal θ and the motor current signal i q of the PMSM servo system, uses a Kalman filter to observe the rotor load disturbance, and obtains the rotor load torque and rotor speed Then the rotor load torque and optimal control Feedback to the speed prediction unit of the predictive function control (PFC) to obtain the predicted value ω m of the rotor speed, and the rotor speed and the predicted value ω m of the rotor speed are input to the error prediction unit controlled by the prediction function to obtain the error value e of the rotor speed; finally, e, ω m and Input to the optimization control unit of predictive function control to obtain the optimal control amount Realize high-precision control of PMSM servo system under the influence of disturbance. This method organically combines Kalman filter and predictive function control, and the two complement each other, which can optimize the control amount of the servo system and improve the control accuracy and anti-disturbance ability of the PMSM servo system.
Description
技术领域technical field
本发明涉及一种用于永磁同步电机(PMSM)伺服系统的预测函数控制方法,属于高精度伺服控制系统的技术领域。The invention relates to a predictive function control method for a permanent magnet synchronous motor (PMSM) servo system, belonging to the technical field of high-precision servo control systems.
背景技术Background technique
随着对伺服系统控制精度要求的提高,扰动已成为一个不可忽略的重要问题。扰动往往来源于建模过程中忽略的不确定因素、系统运行过程中负载突变以及参数变化等。这些因素的存在使得闭环系统性能变差甚至不稳定。因此,为提高伺服系统的控制性能,其控制器要克服外部扰动对系统的影响。With the improvement of the control precision of the servo system, the disturbance has become an important problem that cannot be ignored. Disturbances often come from uncertain factors neglected in the modeling process, sudden load changes and parameter changes during system operation. The existence of these factors makes the performance of the closed-loop system worse or even unstable. Therefore, in order to improve the control performance of the servo system, its controller must overcome the influence of external disturbance on the system.
在PMSM伺服控制系统中,PMSM作为一个多变量、非线性和强耦合的被控对象,具有非线性和不确定性等特征。欲实现高精度伺服控制,必须克服PMSM及负载在内的被控对象不确定性因素和外部扰动对系统性能造成的影响。传统的反馈控制策略,如高增益PID控制方法,具有结构简单、易于实现等优点,通常在参数匹配的情况下可获得较好的性能,但在实际工程中过高的增益会导致系统振荡,失稳。In the PMSM servo control system, as a multivariable, nonlinear and strongly coupled controlled object, PMSM has the characteristics of nonlinearity and uncertainty. In order to achieve high-precision servo control, it is necessary to overcome the influence of the uncertain factors of the controlled object including PMSM and load and external disturbance on system performance. Traditional feedback control strategies, such as high-gain PID control methods, have the advantages of simple structure and easy implementation. Usually, better performance can be obtained under the condition of parameter matching, but in actual engineering, too high gain will lead to system oscillation. Unsteady.
在实际工业应用中,总会出现或多或少的干扰,包括摩擦力和负载扰动,为了消除扰动带来的影响,提高伺服系统的控制性能,国内外学者进行了大量的研究。预测函数控制(Predictive Functional Control,PFC)是近年来发展起来的一类计算机控制算法。由于它采用多步测试和反馈校正等控制策略,具有在线优化、约束处理以及较少的在线计算量等优点,它使用简单,可以实现简便直观的设计准则,控制效果好,适用于控制不易建立精确数字模型且比较复杂的工业生产过程。文献(夏泽中,张光明.预测函数控制及其在伺服系统中的仿真研究[J].中国电机工程学报,2005,25(14):130-134.)提出了典型伺服控制系统的预测函数控制方法,仿真结果表明,该方法能在伺服系统中改善跟踪性能,然而,在实际工业应用中,该预测函数控制方法无法抑制伺服系统的转子负载扰动,因为该方法没有考虑转子负载扰动突变,当PMSM伺服系统面对转子负载扰动时,无法消除转子负载扰动的突变影响,使得伺服系统的控制性能变差。In practical industrial applications, there will always be more or less disturbances, including friction and load disturbances. In order to eliminate the influence of disturbances and improve the control performance of servo systems, domestic and foreign scholars have conducted a lot of research. Predictive Functional Control (PFC) is a kind of computer control algorithm developed in recent years. Because it adopts control strategies such as multi-step testing and feedback correction, it has the advantages of online optimization, constraint processing, and less online calculation. It is easy to use, can realize simple and intuitive design criteria, and has good control effects. Precise digital models of complex industrial production processes. Literature (Xia Zezhong, Zhang Guangming. Predictive function control and its simulation research in servo system [J]. Chinese Journal of Electrical Engineering, 2005, 25(14): 130-134.) proposed a predictive function control method for a typical servo control system , the simulation results show that this method can improve the tracking performance in the servo system, however, in practical industrial applications, the predictive function control method cannot suppress the rotor load disturbance of the servo system, because the method does not consider the sudden change of the rotor load disturbance, when the PMSM When the servo system is faced with the rotor load disturbance, it cannot eliminate the sudden effect of the rotor load disturbance, which makes the control performance of the servo system worse.
发明内容Contents of the invention
本发明针对现有技术不足,提供一种用于PMSM伺服系统的预测函数控制方法,该方法将Kalman滤波器和预测函数控制(PFC)技术有机结合,两者互补,能够优化伺服系统的控制量,进而提高PMSM伺服系统的控制精度和抗扰动能力。Aiming at the deficiencies of the prior art, the present invention provides a predictive function control method for a PMSM servo system, which organically combines Kalman filter and predictive function control (PFC) technology, the two complement each other, and can optimize the control amount of the servo system , and then improve the control accuracy and anti-disturbance ability of PMSM servo system.
为实现以上的技术目的,本发明将采取以下的技术方案:For realizing above technical purpose, the present invention will take following technical scheme:
一种用于PMSM伺服系统的预测函数控制方法,其特征在于,首先,采集PMSM伺服系统的转子位置信号θ和电机电流信号iq,将转子位置信号θ和电机电流信号iq作为Kalman滤波器的输入信号,根据转子位置信号θ和电机电流信号iq,利用Kalman滤波器观测转子负载扰动,得到转子负载转矩和转子转速然后,设预测函数控制(PFC)包括优化控制单元、误差预测单元和转速预测单元,将该转子负载转矩和优化控制单元输出的最优控制量输入至转速预测单元,得到转子转速的预测值ωm,同时,将转子转速及转子转速的预测值ωm输入至误差预测单元,得到转子的转速误差值e;最后,将转子转速误差值e、转子转速预测值ωm和转子转速输入至预测函数控制(PFC)的优化控制单元,得到最优控制量实现PMSM伺服系统在扰动影响下的高精度控制;其中,A kind of predictive function control method that is used for PMSM servo system, it is characterized in that, at first, gather the rotor position signal θ of PMSM servo system and motor current signal i q , use rotor position signal θ and motor current signal i q as Kalman filter The input signal of the rotor, according to the rotor position signal θ and the motor current signal i q , use the Kalman filter to observe the rotor load disturbance, and obtain the rotor load torque and rotor speed Then, it is assumed that the predictive function control (PFC) includes an optimization control unit, an error prediction unit and a speed prediction unit, and the rotor load torque and the optimal control quantity output by the optimized control unit Input to the speed prediction unit to obtain the predicted value ω m of the rotor speed, and at the same time, the rotor speed and the predicted value ω m of the rotor speed are input to the error prediction unit to obtain the rotor speed error value e; finally, the rotor speed error value e, the rotor speed predicted value ω m and the rotor speed Input to the optimization control unit of predictive function control (PFC) to obtain the optimal control amount Realize the high-precision control of the PMSM servo system under the influence of disturbance; among them,
所述Kalman滤波器基于以下公式建立:The Kalman filter is established based on the following formula:
式(4)中,为伺服系统在k时刻的Kalman滤波器对转子负载扰动估计值,上标“∧”代表估计的含义;F为转子负载扰动估计值的系数、G为转子负载扰动系数矩阵的系数;为转子负载扰动系数矩阵在k-1时刻的左逆矩阵,其表达式为:In formula (4), is the estimated value of the rotor load disturbance by the Kalman filter of the servo system at time k, and the superscript "∧" represents the meaning of estimation; F is the coefficient of the rotor load disturbance estimated value, and G is the coefficient of the rotor load disturbance coefficient matrix; is the left inverse matrix of the rotor load disturbance coefficient matrix at time k-1, and its expression is:
其中,为伺服系统在k-1时刻的输入矩阵Dk-1的转置,其上标“T”为矩阵转置的符号;Dk-1为在k-1时刻离散的输入矩阵,其表达式为:in, is the transpose of the input matrix D k-1 of the servo system at time k-1, and its superscript "T" is the symbol of matrix transposition; D k-1 is the discrete input matrix at time k-1, and its expression for:
其中,Ts为伺服系统采样周期时间,J为电机负载转动惯量;Among them, T s is the sampling cycle time of the servo system, and J is the moment of inertia of the motor load;
式(4)中,Ak-1为伺服系统在k-1时刻离散的矩阵,其表达式为:In formula (4), A k-1 is the discrete matrix of the servo system at time k-1, and its expression is:
其中,B为粘滞摩擦系数;Among them, B is the viscous friction coefficient;
式(4)中,xk|k为第k时刻Kalman滤波器对离散预测值xk的先验预测值,xk为电机状态变量x的第k时刻离散预测值,x的表达式为:x=[ω θ TL]T,其中,ω为转子速度,θ为转子位置,TL为转子负载转矩;为第k-1时刻Kalman滤波器对离散估计值的后验估计值,为电机状态变量的第k-1时刻离散估计值,的表达式为:上标“∧”代表估计的含义;uk-1为系统在k-1时刻对电机状态变量u的离散输出量,u的表达式为:u=[Te],其中,Te为电机电磁转矩;In formula (4), x k|k is the prior prediction value of the Kalman filter for the discrete prediction value x k at the k-th moment, x k is the discrete prediction value of the motor state variable x at the k-th moment, and the expression of x is: x=[ω θ T L ] T , where ω is the rotor speed, θ is the rotor position, T L is the rotor load torque; Kalman filter for the discrete estimated value of the k-1th moment The posterior estimate of , is the motor state variable The discrete estimated value of the k-1th moment, The expression is: The superscript "∧" represents the meaning of estimation; u k-1 is the discrete output of the system to the motor state variable u at k-1 time, and the expression of u is: u=[T e ], where T e is the motor Electromagnetic torque;
所述转子转速的预测值ωm,基于以下公式建立:The predicted value ω m of the rotor speed is established based on the following formula:
式中,ωm(k+i)为伺服系统在k+i时刻的转子转速预测值,i=1,2,…P,P为预测优化时域的长度,Km为预测函数控制(PFC)的转速预测单元第一系数,其表达式为:Km=(1-αm)Kt/B,αm为预测函数控制(PFC)的转速预测单元第二系数,其表达式为:为预测函数控制(PFC)的转速预测单元第二系数的i次幂,Kt为转子负载转矩常数,为伺服系统在k时刻的最优控制量,TL(k)为伺服系统在k时刻的转子负载转矩值;In the formula, ω m (k+i) is the predicted value of the rotor speed of the servo system at k+i time, i=1, 2,...P, P is the length of the time domain for prediction optimization, and K m is the prediction function control (PFC ), its expression is: K m =(1-α m )K t /B, and α m is the second coefficient of the rotational speed prediction unit of predictive function control (PFC), and its expression is: is the i-th power of the second coefficient of the speed prediction unit of predictive function control (PFC), K t is the rotor load torque constant, is the optimal control quantity of the servo system at time k, T L (k) is the rotor load torque value of the servo system at time k;
所述转子的转速误差值e基于以下公式建立:The rotational speed error value e of the rotor is established based on the following formula:
式中,e(k+i)为在k+i时刻的转子转速的误差值,i=1,2,…P,P为预测优化时域的长度,为k时刻Kalman滤波器观测得到的转子转速值,ωm(k)是伺服系统在k时刻的转子转速预测值;In the formula, e(k+i) is the error value of the rotor speed at time k+i, i=1,2,...P, P is the length of the prediction optimization time domain, is the rotor speed value observed by the Kalman filter at time k, and ω m (k) is the predicted value of the rotor speed of the servo system at time k;
所述最优控制量基于以下公式建立:The optimal control amount Based on the following formula:
式(14)中,W1为预测函数控制(PFC)的优化控制单元第一系数矩阵,其表达式为:In formula (14), W 1 is the first coefficient matrix of the optimal control unit of predictive function control (PFC), and its expression is:
Q为优化控制单元的输入量加权系数矩阵,其表达式为:其中,为优化控制单元的输入量加权系数的平方;R为优化控制单元的控制量加权系数矩阵,其表达式为:R=[r2],其中,r2为优化控制单元的控制量加权系数的平方;W2(k)为k时刻预测函数控制(PFC)的优化控制单元第二系数矩阵,其表达式为:W2(k)=[ωr(k+1)…ωr(k+P)]T,其中,ωr(k+1)为伺服系统在k+1时刻的转子转速参考值;W3(k)为k时刻预测函数控制(PFC)的优化控制单元第三系数矩阵,其表达式为:E(k)为转子的转速误差矩阵,其表达式为:E(k)=[e(k+1)…e(k+P)]T。Q is the input quantity weighting coefficient matrix of the optimization control unit, and its expression is: in, is the square of the weighted coefficient of the input quantity of the optimized control unit; R is the weighted coefficient matrix of the controlled quantity of the optimized control unit, and its expression is: R=[r 2 ], where r 2 is the weighted coefficient of the controlled quantity of the optimized control unit square; W 2 (k) is the second coefficient matrix of the optimal control unit of predictive function control (PFC) at time k, and its expression is: W 2 (k)=[ω r (k+1)…ω r (k+ P)] T , where ω r (k+1) is the rotor speed reference value of the servo system at k+1 time; W 3 (k) is the third coefficient matrix of the optimal control unit of the predictive function control (PFC) at k time , whose expression is: E(k) is the rotational speed error matrix of the rotor, and its expression is: E(k)=[e(k+1)...e(k+P)] T .
根据以上的技术方案,可以实现以下的有益效果:According to the above technical scheme, the following beneficial effects can be achieved:
该方法将Kalman滤波器和预测函数控制(PFC)技术有机结合,将电机转子的转速误差值e、转子转速预测值ωm和转子转速输入至预测函数控制(PFC)的优化控制单元,得到转子的最优控制量实现PMSM伺服系统在扰动影响下的高精度控制,提高了伺服系统的抗扰动能力。This method organically combines the Kalman filter and predictive function control (PFC) technology, the motor rotor speed error value e, the rotor speed prediction value ω m and the rotor speed Input to the optimization control unit of predictive function control (PFC) to obtain the optimal control amount of the rotor The high-precision control of the PMSM servo system under the influence of disturbance is realized, and the anti-disturbance ability of the servo system is improved.
附图说明Description of drawings
图1为本发明的PMSM伺服系统框图;Fig. 1 is PMSM servo system block diagram of the present invention;
图2为本发明所提出的一种用于PMSM伺服系统的预测函数控制方法的流程图;Fig. 2 is a kind of flowchart that is used for the predictive function control method of PMSM servo system that the present invention proposes;
图3为采用本发明方法的PMSM伺服系统的速度响应实验结果图;Fig. 3 is the velocity response experiment result figure of the PMSM servo system adopting the inventive method;
图4为采用传统预测函数控制方法的PMSM伺服系统的速度响应实验结果图。Figure 4 is a diagram of the speed response experiment results of the PMSM servo system using the traditional predictive function control method.
具体实施方式detailed description
附图非限制性的公开了本发明所涉及一个优选实施例的结构示意图,以下将结合附图详细的说明本发明的技术方案。The accompanying drawing discloses a non-restrictive structural schematic diagram of a preferred embodiment involved in the present invention, and the technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings.
如图1所示,其公开了本发明所述一种用于PMSM伺服系统的预测函数控制方法的系统框图,其采用光电编码器采集PMSM伺服电机的位置信号θ,该光电编码器安装于电机内部,同时采用霍尔电流传感器采集电机的电流信号iu、iv,并对其进行克拉克变换和帕克变换得到id、iq,将电机位置信号θ、电机电流信号iq反馈给Kalman滤波器,利用Kalman滤波器进行转子负载转矩、转子转速及转子位置的观测,将观测得到结果反馈给预测函数控制(PFC),经过预测函数控制(PFC)的调节,得到最优控制量通过PI调节器得到和再与Kalman滤波器观测出的位置信号,经过帕克逆变换,得到α-β坐标系下定子相电压的参考值和利用空间矢量脉宽调试技术产生PWM控制信号,再由此PWM控制信号控制三相逆变器,逆变出所需的三相交流电驱动电机运转。As shown in Figure 1, it discloses a system block diagram of a predictive function control method for a PMSM servo system according to the present invention, which adopts a photoelectric encoder to collect the position signal θ of the PMSM servo motor, and the photoelectric encoder is installed on the motor Internally, the Hall current sensor is used to collect the current signals i u and iv of the motor at the same time, and the Clarke transformation and Park transformation are performed on them to obtain i d and i q , and the motor position signal θ and the motor current signal i q are fed back to the Kalman filter The Kalman filter is used to observe the rotor load torque, rotor speed and rotor position, and the observation results are fed back to the predictive function control (PFC). After the adjustment of the predictive function control (PFC), the optimal control amount is obtained. obtained through the PI regulator with Then with the position signal observed by the Kalman filter, after Park inverse transformation, the reference value of the stator phase voltage in the α-β coordinate system is obtained with The PWM control signal is generated by using the space vector pulse width debugging technology, and then the three-phase inverter is controlled by the PWM control signal, and the required three-phase AC power is converted to drive the motor to run.
具体的说:所述的一种用于PMSM伺服系统的预测函数控制方法包括以下四个步骤:Specifically: described a kind of predictive function control method for PMSM servo system comprises following four steps:
第一步:构建Kalman滤波器Step 1: Build the Kalman filter
采集PMSM伺服系统的转子位置信号θ和电流信号iq,然后将转子位置信号θ和电流信号iq作为Kalman滤波器的输入信号,利用Kalman滤波器观测转子负载扰动,得到转子负载转矩和转子转速构建Kalman滤波器的步骤如下:Collect the rotor position signal θ and current signal i q of the PMSM servo system, then use the rotor position signal θ and current signal i q as the input signal of the Kalman filter, use the Kalman filter to observe the rotor load disturbance, and obtain the rotor load torque and rotor speed The steps to construct a Kalman filter are as follows:
步骤1:采集转子位置信号θ和电流信号iq Step 1: Collect rotor position signal θ and current signal i q
利用光电编码器采集PMSM伺服电机的位置信号θ,利用电流传感器采集PMSM定子电流iu和iv,经克拉克变换和帕克变换得到两相旋转坐标系下的d轴电流id和q轴电流iq;Use the photoelectric encoder to collect the position signal θ of the PMSM servo motor, use the current sensor to collect the PMSM stator current i u and iv , and obtain the d-axis current i d and q-axis current i in the two-phase rotating coordinate system through Clarke transformation and Park transformation q ;
步骤2:构建转子离散负载扰动观测器Step 2: Construct the Rotor Discrete Load Disturbance Observer
将伺服系统中转子负载扰动和测量误差代入电机的状态方程,得到伺服系统的离散方程组为:Substituting the rotor load disturbance and measurement error in the servo system into the state equation of the motor, the discrete equations of the servo system are obtained as follows:
式中,xk为电机状态变量x的第k时刻离散预测值,x的表达式为:x=[ω θ TL]T,其中,ω为转子速度,θ为转子位置,TL为转子负载转矩;yk为系统输入变量y的第k时刻离散预测值;uk为系统在k-1时刻对电机状态变量u的离散输出量,u的表达式为:u=[Te],其中,Te为电机电磁转矩;wk是转子负载扰动,vk是测量误差,Ak是对应伺服系统k时刻的离散系统矩阵,其表达式为:Dk是对应伺服系统k时刻的输入矩阵,其表达式为:Ck是对应伺服系统k时刻的输出矩阵,其表达式为:Ck=[01 0],其中,Ts为伺服系统的采样周期时间,B为粘滞摩擦系数,J为电机负载转动惯量;In the formula, x k is the discrete predicted value of the motor state variable x at the kth moment, and the expression of x is: x=[ω θ T L ] T , where ω is the rotor speed, θ is the rotor position, and T L is the rotor Load torque; y k is the discrete predicted value of the system input variable y at the kth moment; u k is the discrete output of the system to the motor state variable u at k-1 time, and the expression of u is: u=[T e ] , where T e is the electromagnetic torque of the motor; w k is the rotor load disturbance, v k is the measurement error, A k is the discrete system matrix corresponding to the servo system at time k, and its expression is: D k is the input matrix corresponding to the k moment of the servo system, and its expression is: C k is the output matrix corresponding to the k moment of the servo system, and its expression is: C k = [01 0], where T s is the sampling cycle time of the servo system, B is the viscous friction coefficient, and J is the moment of inertia of the motor load ;
为了估计伺服系统k+1时刻的转子负载扰动值,式(1)为:In order to estimate the rotor load disturbance value of the servo system at time k+1, formula (1) is:
式中,为伺服系统在k时刻的Kalman滤波器对转子负载扰动估计值,Γ+为负载扰动系数矩阵,对伺服系统负载扰动wk进行估计,转子离散负载扰动观测器为:In the formula, is the estimated value of the rotor load disturbance by the Kalman filter of the servo system at time k, Γ + is the load disturbance coefficient matrix to estimate the load disturbance w k of the servo system, and the rotor discrete load disturbance observer is:
式中,为转子负载扰动系数矩阵在k-1时刻的左逆矩阵,其表达式为:In the formula, is the left inverse matrix of the rotor load disturbance coefficient matrix at time k-1, and its expression is:
其中,为伺服系统在k-1时刻的输入矩阵Dk-1的转置;Φ(z)为低通滤波器,其表达式为:Φ(z)=H(zI-F)-1G;F为系统的转子负载扰动值的系数、G为系统的转子负载扰动系数矩阵的系数;H为恒定系数矩阵;in, is the transposition of the input matrix D k-1 of the servo system at k-1 moment; Φ(z) is a low-pass filter, and its expression is: Φ(z)=H(zI-F) -1 G; F is the coefficient of the rotor load disturbance value of the system, G is the coefficient of the rotor load disturbance coefficient matrix of the system; H is the constant coefficient matrix;
步骤3:Kalman滤波器的构建Step 3: Construction of the Kalman filter
根据Kalman滤波器的原理算法和离散负载扰动观测器,得到所需的Kalman滤波器基于以下公式建立:According to the principle algorithm of the Kalman filter and the discrete load disturbance observer, the required Kalman filter is established based on the following formula:
第二步:计算转子转速预测值Step 2: Calculate the rotor speed prediction value
图2是本发明所提出一种用于PMSM伺服系统的预测函数控制方法的流程图,示出了Kalman滤波器和预测函数控制(PFC),预测函数控制(PFC)包括优化控制单元、误差预测单元和转速预测单元,将观测的转子负载扰动和优化控制单元输出的最优控制量作为预测函数控制(PFC)的转速预测单元的输入信号,得到转子转速预测值ωm,永磁同步电机伺服系统中,为使转速和电流解耦,采用(d轴电流的给定值恒为0)的矢量控制,根据拉普拉斯变换,得到电机动态的机械方程模型为:Fig. 2 is the flow chart of a kind of predictive function control method for PMSM servo system that the present invention proposes, has shown Kalman filter and predictive function control (PFC), and predictive function control (PFC) comprises optimization control unit, error prediction unit and the speed prediction unit, the observed rotor load disturbance and the optimal control quantity output by the optimized control unit As the input signal of the speed prediction unit of predictive function control (PFC), the predicted value of rotor speed ω m is obtained. In the permanent magnet synchronous motor servo system, in order to decouple the speed and current, use (The set value of the d-axis current is always 0) vector control, according to the Laplace transform, the mechanical equation model of the motor dynamics is:
式(5)中,ω(s)为电机机械角速度,Kt为系统转矩常数,为转子控制量,公式(5)写成差分方程为:In formula (5), ω(s) is the mechanical angular velocity of the motor, K t is the system torque constant, is the rotor control quantity, formula (5) is written as a differential equation:
式(6)中,ωm(k+1)为伺服系统在k+1时刻的转子转速的预测值,Km为预测函数控制(PFC)的转速预测单元第一系数,其表达式为:Km=(1-αm)Kt/B,αm为预测函数控制(PFC)的转速预测单元第二系数,其表达式为:为伺服系统在k时刻的最优控制量,TL(k)为伺服系统在k时刻的转子负载转矩值;In formula (6), ω m (k+1) is the predicted value of the rotor speed of the servo system at time k+1, K m is the first coefficient of the speed prediction unit of predictive function control (PFC), and its expression is: K m = (1-α m )K t /B, α m is the second coefficient of the speed prediction unit of predictive function control (PFC), and its expression is: is the optimal control quantity of the servo system at time k, T L (k) is the rotor load torque value of the servo system at time k;
在系统下一采样时刻k+2,有At the next sampling time k+2 of the system, we have
假设伺服系统的控制变量的值在未来时刻伺服系统的优化控制变量为:Assuming the value of the control variable of the servo system in the future, the optimal control variable of the servo system is:
将式(6)代入式(7)得到:Substitute formula (6) into formula (7) to get:
将上述式(6)、式(7)、式(8)依次叠加,得到:The above formula (6), formula (7) and formula (8) are superimposed in sequence to get:
式(9)中,ωm(k+i)为系统在k+i时刻的转子转速的预测值,i=1,2,…P,P为预测时域的长度,为预测函数控制(PFC)的转速预测单元第二系数αm的i次幂;In formula (9), ω m (k+i) is the predicted value of the rotor speed of the system at time k+i, i=1,2,...P, P is the length of the predicted time domain, It is the i power of the second coefficient α m of the speed prediction unit of predictive function control (PFC);
第三步:计算转子的转速误差e,其计算式为:Step 3: Calculate the rotor speed error e, the calculation formula is:
式(10)中,e(k+i)为k+i时刻的转子转速的误差值,i=1,2,…P,P为预测优化时域的长度,为k时刻Kalman滤波器观测的转子转速值,ωm(k)是伺服在k时刻的转子转速预测值;In the formula (10), e(k+i) is the error value of the rotor speed at k+i moment, i=1,2,...P, P is the length of the prediction optimization time domain, is the rotor speed value observed by the Kalman filter at time k, and ω m (k) is the predicted value of the rotor speed of the servo at time k;
第四步:将转子的转速误差值e、转子转速预测值ωm和转子转速输入至预测函数控制(PFC)的优化控制单元,得到最优控制量实现PMSM伺服系统在扰动影响下的高精度控制,包括以下步骤:The fourth step: the rotor speed error value e, the rotor speed prediction value ω m and the rotor speed Input to the optimization control unit of predictive function control (PFC) to obtain the optimal control amount Realize the high-precision control of the PMSM servo system under the influence of disturbance, including the following steps:
步骤1:设定预测函数控制(PFC)的输出控制量基函数,其表达式为:Step 1: Set the output control quantity basic function of predictive function control (PFC), its expression is:
式(11)中,为系统k+i时刻的最优控制量,fj(i)为基函数在t=iTs时刻的阶跃值,Ts为系统采样周期时间;i=1,2,…P,P为预测优化时域的长度,j=1,2,…N,N为自然数;μj为基函数的系数,采用阶跃函数作为基函数,N=1、f1(i)=1,其基函数为:In formula (11), is the optimal control quantity of the system at time k+i, f j (i) is the step value of the basis function at time t=iT s , T s is the system sampling cycle time; i=1,2,...P, P is Predict the length of optimization time domain, j=1,2,...N, N is a natural number; μ j is the coefficient of basis function, adopts step function as basis function, N=1, f 1 (i)=1, its basis The function is:
步骤2:设定转子转速参考轨迹,其表达式为:Step 2: Set the rotor speed reference trajectory, its expression is:
式(12)中,ωr(k+i)为系统在k+i时刻的转子转速参考轨迹,ω*为系统在k时刻的给定转子转速,为k时刻Kalman滤波器观测得到的转子转速值,为给定的转子转速与转子转速相减之差的系数,其表达式为:Tr为PMSM伺服系统的期望响应时间。In formula (12), ω r (k+i) is the rotor speed reference trajectory of the system at time k+i, ω * is the given rotor speed of the system at time k, is the rotor speed value observed by the Kalman filter at time k, is the coefficient of the difference between the given rotor speed and the subtraction of the rotor speed, and its expression is: T r is the expected response time of the PMSM servo system.
步骤3:将转子的转速误差e、转子转速预测值ωm和转子转速输入至预测函数控制(PFC)的优化控制单元,得到最优控制量 Step 3: The rotor speed error e, the rotor speed prediction value ω m and the rotor speed Input to the optimization control unit of predictive function control (PFC) to obtain the optimal control amount
用于PMSM伺服系统的代价函数,记为其计算式为:The cost function for the PMSM servo system is denoted as Its calculation formula is:
式(13)中,为代价函数;令,确定上述PMSM伺服系统的代价函数的最小值,在每个采样时刻对优化控制单元的系数矩阵的系数实时更新,得到伺服系统的最优控制量为:In formula (13), is the cost function; let, Determining the cost function for the above PMSM servo system The minimum value of , the coefficients of the coefficient matrix of the optimized control unit are updated in real time at each sampling time, and the optimal control quantity of the servo system is obtained as:
式(14)中,W1为预测函数控制(PFC)的优化控制单元第一系数矩阵,其表达式为:Q为优化控制单元的输入量加权系数矩阵,其表达式为:其中,为优化控制单元的输入量加权系数的平方;R为优化控制单元的控制量加权系数矩阵,其表达式为:R=[r2],其中,r2为优化控制单元的控制量加权系数的平方;W2(k)为k时刻预测函数控制(PFC)的优化控制单元第二系数矩阵,其表达式为:W2(k)=[ωr(k+1)…ωr(k+P)]T,其中,ωr(k+1)为伺服系统在k+1时刻的转子转速参考值;W3(k)为k时刻预测函数控制(PFC)的优化控制单元第三系数矩阵,其表达式为:E(k)为转子的转速误差矩阵,其表达式为:E(k)=[e(k+1)…e(k+P)]T。In formula (14), W 1 is the first coefficient matrix of the optimal control unit of predictive function control (PFC), and its expression is: Q is the input quantity weighting coefficient matrix of the optimization control unit, and its expression is: in, is the square of the weighted coefficient of the input quantity of the optimized control unit; R is the weighted coefficient matrix of the controlled quantity of the optimized control unit, and its expression is: R=[r 2 ], where r 2 is the weighted coefficient of the controlled quantity of the optimized control unit square; W 2 (k) is the second coefficient matrix of the optimal control unit of predictive function control (PFC) at time k, and its expression is: W 2 (k)=[ω r (k+1)…ω r (k+ P)] T , where ω r (k+1) is the rotor speed reference value of the servo system at k+1 time; W 3 (k) is the third coefficient matrix of the optimal control unit of the predictive function control (PFC) at k time , whose expression is: E(k) is the rotational speed error matrix of the rotor, and its expression is: E(k)=[e(k+1)...e(k+P)] T .
参照图3,示出了采用本发明的一种用于PMSM伺服系统的预测函数控制方法,PMSM伺服系统在面对负载突变时,转子速度恢复时间为0.21s,转子转速最大跌落24rpm;参照图4,示出了采用传统预测函数控制方法的PMSM伺服系统在面对负载突变时,转子速度恢复时间为0.51s,转子转速最大跌落68rpm,对比两种方法的转子速度恢复时间和转子转速最大跌落数据,从图3与图4比较,可以得出,本发明的一种用于PMSM伺服系统的预测函数控制方法在抗扰动方面性能更优。With reference to Fig. 3, have shown to adopt a kind of predictive function control method that is used for PMSM servo system of the present invention, PMSM servo system is in the face of load sudden change, and rotor speed recovery time is 0.21s, and rotor rotational speed maximum drops 24rpm; Refer to Fig. 4. It shows that when the PMSM servo system using the traditional predictive function control method faces a sudden load change, the rotor speed recovery time is 0.51s, and the maximum rotor speed drop is 68rpm. The rotor speed recovery time and the maximum rotor speed drop of the two methods are compared From the comparison of the data in Fig. 3 and Fig. 4, it can be concluded that a predictive function control method for PMSM servo system of the present invention has better performance in terms of anti-disturbance.
本发明的具体实施例实验平台采用基于ARM的全数字控制实现方式,编程语言为C语言。系统以英飞凌公司的XMC4500芯片为核心组成控制电路部分;霍尔电流传感器用于采集两路电流信号iu和iv;转子位置检测部件为2500线增量式光电编码器,用于采集电机的转子位置信号;逆变器电路以智能功率器件为核心,它根据XMC4500芯片生成的空间矢量脉冲宽度调制控制信号,将电源输入转换成相应的三相交流电压,用于驱动电机工作;负载电机额定功率为3kW,转子位置传感器为24位多圈绝对式编码器。The experimental platform of the specific embodiment of the present invention adopts an ARM-based full digital control implementation mode, and the programming language is C language. The system uses the XMC4500 chip of Infineon as the core to form the control circuit part; the hall current sensor is used to collect two current signals i u and iv ; the rotor position detection component is a 2500-line incremental photoelectric encoder used to collect The rotor position signal of the motor; the inverter circuit takes the intelligent power device as the core, it converts the power input into the corresponding three-phase AC voltage according to the space vector pulse width modulation control signal generated by the XMC4500 chip, and is used to drive the motor; the load The rated power of the motor is 3kW, and the rotor position sensor is a 24-bit multi-turn absolute encoder.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510035849.7A CN104779873B (en) | 2015-01-23 | 2015-01-23 | A kind of predictive functional control algorithm for PMSM servo-drive systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510035849.7A CN104779873B (en) | 2015-01-23 | 2015-01-23 | A kind of predictive functional control algorithm for PMSM servo-drive systems |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104779873A CN104779873A (en) | 2015-07-15 |
CN104779873B true CN104779873B (en) | 2017-08-11 |
Family
ID=53621159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510035849.7A Expired - Fee Related CN104779873B (en) | 2015-01-23 | 2015-01-23 | A kind of predictive functional control algorithm for PMSM servo-drive systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104779873B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105553372B (en) * | 2015-12-24 | 2017-12-19 | 南京埃斯顿自动控制技术有限公司 | A kind of current control method of AC servo |
CN107490962B (en) * | 2017-08-08 | 2020-02-07 | 北京理工大学 | Data-driven optimal control method for servo system |
CN107800334B (en) * | 2017-11-14 | 2019-10-01 | 山东大学 | PMSM pre-synchronization coaxial operation control method and system |
CN108322120B (en) * | 2018-01-30 | 2020-02-28 | 天津大学 | Robust nonlinear predictive torque control method for permanent magnet synchronous motors |
CN108448986B (en) * | 2018-03-28 | 2021-03-12 | 天津大学 | Current control method of permanent magnet motor based on adjustable bandwidth predictive control |
CN110460280A (en) * | 2019-08-29 | 2019-11-15 | 西安理工大学 | A Control Method of Permanent Magnet Synchronous Motor Based on Sliding Mode Load Torque Observer |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090491A (en) * | 2014-07-04 | 2014-10-08 | 东南大学 | Gas steam combined cycle unit multivariable constrained prediction function load control method |
-
2015
- 2015-01-23 CN CN201510035849.7A patent/CN104779873B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090491A (en) * | 2014-07-04 | 2014-10-08 | 东南大学 | Gas steam combined cycle unit multivariable constrained prediction function load control method |
Non-Patent Citations (6)
Title |
---|
Predictive functional control of PMSM based on a composite prediction model;Shihua Li等;《2013IEEE International Symposium on Sensorless Control for Electrical Drives and Predictive Control of Electrical Drives and Power Electronics ( SLED / PRECEDE ) 》;20131019;全文 * |
Speed Control for PMSM Servo System Using Predictive Functional Control and Extended State Observer;Huixian Liu等;《IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS》;20110718;第59卷(第2期);全文 * |
基于预测函数控制和扰动观测器的永磁同步电机速度控制;邓永停等;《光学精密工程》;20140615;第22卷(第6期);全文 * |
永磁同步电机的预测函数控制研究;龚楠;《 中国优秀硕士学位论文全文数据库》;20081215;全文 * |
锅炉燃烧系统的自适应预测函数控制;王文兰等;《动力工程学报》;20100115;第30卷(第1期);全文 * |
预测函数控制及其在伺服系统中的仿真研究;夏泽中等;《中国电机工程学报》;20060730;第25卷(第14期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104779873A (en) | 2015-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109560736B (en) | Permanent magnet synchronous motor control method based on second-order terminal sliding mode | |
CN104779873B (en) | A kind of predictive functional control algorithm for PMSM servo-drive systems | |
CN112701968B (en) | A Robust Performance Improvement Method for Model Predictive Control of Permanent Magnet Synchronous Motors | |
CN109873586B (en) | A method and system for mechanical parameter identification of motor based on high-order sliding mode observer | |
Yu et al. | Approximation-based discrete-time adaptive position tracking control for interior permanent magnet synchronous motors | |
CN109768753B (en) | Novel sliding-mode observer position-sensorless permanent magnet synchronous motor model prediction control method | |
CN110739893B (en) | An Improved Adaptive Trajectoryless Kalman Filtering Moment of Inertia Identification Method | |
CN110707981A (en) | Permanent magnet synchronous motor speed controller based on novel extended state observer | |
CN106130426B (en) | Based on EKF without sensor ultrahigh speed permanent magnet synchronous motor method for controlling number of revolution | |
CN112688599B (en) | Composite control method for improving anti-interference capability of brushless direct current motor | |
CN110190795A (en) | A Cascaded Robust Predictive Current Control Method for Permanent Magnet Synchronous Motors | |
CN108365785B (en) | Asynchronous motor repeated prediction control method | |
CN108390597A (en) | Permanent magnet synchronous motor nonlinear predictive controller design with disturbance observer | |
CN103956953B (en) | State Estimation Method of Brushless DC Motor Based on Sliding Mode Observer | |
Zhu et al. | Nonsmooth observer-based sensorless speed control for permanent magnet synchronous motor | |
CN111835251B (en) | Permanent magnet synchronous motor high-performance control method based on speed-free sensing | |
Liao et al. | An integrated observer framework based mechanical parameters identification for adaptive control of permanent magnet synchronous motor | |
CN104022701B (en) | Mould method for control speed in a kind of permanent magnetic linear synchronous motor Newton method | |
CN105871277A (en) | Minimum variance-based nonlinear model prediction controller design method for permanent magnet servo system | |
CN114826064A (en) | Method for detecting position and speed of permanent magnet synchronous motor rotor based on orthogonal phase-locked loop | |
CN117997188A (en) | Self-adaptive high-order terminal sliding mode observer and sensorless control method of permanent magnet synchronous motor based on same | |
Wang et al. | A high performance permanent magnet synchronous motor servo system using predictive functional control and Kalman filter | |
Wang et al. | Adaptive low-speed control of permanent magnet synchronous motors | |
CN116638544A (en) | A Cooperative Control Method of Joint Modules Based on Hyperlocal Model | |
CN104734591B (en) | Stable speed regulation method for cascade system of automobile electric steering motor magnetic field directional control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170811 Termination date: 20220123 |