CN109412488A - A kind of permanent magnet synchronous motor dynamic matrix control method - Google Patents
A kind of permanent magnet synchronous motor dynamic matrix control method Download PDFInfo
- Publication number
- CN109412488A CN109412488A CN201811265179.8A CN201811265179A CN109412488A CN 109412488 A CN109412488 A CN 109412488A CN 201811265179 A CN201811265179 A CN 201811265179A CN 109412488 A CN109412488 A CN 109412488A
- Authority
- CN
- China
- Prior art keywords
- control
- pmsm
- speed
- permanent magnet
- equation
- 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.)
- Pending
Links
- 239000011159 matrix material Substances 0.000 title claims abstract description 26
- 230000001360 synchronised effect Effects 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000005457 optimization Methods 0.000 claims abstract description 16
- 230000004044 response Effects 0.000 claims abstract description 8
- 238000013178 mathematical model Methods 0.000 claims abstract description 7
- 238000005096 rolling process Methods 0.000 claims abstract description 7
- 238000012937 correction Methods 0.000 claims abstract description 4
- 238000005553 drilling Methods 0.000 claims description 19
- 230000004907 flux Effects 0.000 claims description 18
- 238000005070 sampling Methods 0.000 claims description 13
- 238000005259 measurement Methods 0.000 claims description 11
- 230000009471 action Effects 0.000 claims description 6
- 238000011217 control strategy Methods 0.000 claims description 4
- 230000003068 static effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 4
- 238000013461 design Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000004377 microelectronic Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000017105 transposition Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P21/00—Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
- H02P21/24—Vector control not involving the use of rotor position or rotor speed sensors
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P21/00—Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
- H02P21/0003—Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P21/00—Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
- H02P21/14—Estimation or adaptation of machine parameters, e.g. flux, current or voltage
- H02P21/141—Flux estimation
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P21/00—Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
- H02P21/14—Estimation or adaptation of machine parameters, e.g. flux, current or voltage
- H02P21/18—Estimation of position or speed
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P21/00—Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
- H02P21/14—Estimation or adaptation of machine parameters, e.g. flux, current or voltage
- H02P21/20—Estimation of torque
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P2207/00—Indexing scheme relating to controlling arrangements characterised by the type of motor
- H02P2207/05—Synchronous machines, e.g. with permanent magnets or DC excitation
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Ac Motors In General (AREA)
Abstract
本发明公开了一种永磁同步电机动态矩阵控制方法,步骤如下:一、建立PMSM的dq轴数学模型,以扩展卡尔曼滤波EKF作为一种随机观测器,通过扩展卡尔曼滤波算法的观测变量对预测变量进行校正,从而得到最优的预测值;二、用扩展卡尔曼滤波EKF构造矢量控制;三、以DMC算法实现PMSM,DMC算法利用对象的阶跃响应,实现步骤经过模型预测、滚动优化和反馈校正;四、构成基于EKF的永磁电机DMC矢量控制结构。本发明变量替换后的模型能够可观可控,通过EKF预测输出的转速代替原永磁同步电机动态矩阵控制中的传感器测量转速,使得整个控制过程通过计算机完成,提高了系统的可控性,便于在更多场合应用。
The invention discloses a dynamic matrix control method for a permanent magnet synchronous motor. The steps are as follows: 1. Establishing a dq-axis mathematical model of PMSM, using the extended Kalman filter EKF as a random observer, and using the extended Kalman filter algorithm to observe variables Correct the predicted variables to obtain the optimal predicted value; 2. Construct vector control with extended Kalman filter EKF; 3. Implement PMSM with DMC algorithm. DMC algorithm uses the step response of the object to realize the steps of model prediction and rolling. Optimization and feedback correction; 4. Construct the DMC vector control structure of permanent magnet motor based on EKF. The model after the variable replacement of the present invention can be appreciably and controllable, and the rotation speed predicted by the EKF replaces the sensor in the dynamic matrix control of the original permanent magnet synchronous motor to measure the rotation speed, so that the entire control process is completed by the computer, which improves the controllability of the system and facilitates Apply in more occasions.
Description
技术领域technical field
本发明涉及一种永磁同步电机动态矩阵控制方法,属于永磁同步电机应用技术领域。The invention relates to a dynamic matrix control method of a permanent magnet synchronous motor, belonging to the technical field of permanent magnet synchronous motor application.
背景技术Background technique
石油钻机系统在勘探与开采中,由于环境条件和地质结构的复杂,在实际工作中具有非线性、不确定性等特点,且钻机在驱动电机方面要求有较好的动态响应,并在负载变化时维持转速稳定,针对这些问题将预测控制中的DMC(动态矩阵)应用于PMSM(永磁同步电机) 钻机系统中会具有较好的控制效果。In the exploration and exploitation of oil drilling rig system, due to the complex environmental conditions and geological structure, it has the characteristics of non-linearity and uncertainty in actual work, and the drilling rig requires a good dynamic response in terms of driving motor, and it can be used in load changes. In order to maintain the stability of the rotational speed at all times, applying the DMC (dynamic matrix) in the predictive control to the PMSM (permanent magnet synchronous motor) drilling rig system will have a better control effect for these problems.
PMSM以高动态性能、高效率和轻量化等优越性著称,通过将微电子控制技术及电力电子技术与之结合,能够设计并制造出许多性能优越的一体化机电设备和产品,其节能的特点更是使其成为当今世界设计驱动系统时的首选,在石油钻机领域也得到越来越多的应用。基于 PMSM在结构、性能尤其是控制上的优越性,现代控制理论和智能控制策略在电机控制中的应用越来越多,模型预测控制作为新型的计算机控制算法在PMSM的应用也越来越多。PMSM is known for its advantages of high dynamic performance, high efficiency and light weight. By combining microelectronic control technology and power electronic technology, it can design and manufacture many integrated electromechanical equipment and products with superior performance. Its energy saving characteristics It is also the first choice for the design of drive systems in today's world, and it is also used more and more in the field of oil drilling rigs. Based on the superiority of PMSM in structure, performance, especially control, the application of modern control theory and intelligent control strategy in motor control is increasing, and model predictive control, as a new computer control algorithm, is also being used more and more in PMSM .
为了实现石油钻机系统PMSM的DMC控制,需使用同轴的机械式位置传感器测量转子位置与转速信息,然而这造成了一些缺点:1、PMSM的重量体积增大导致成本增加;2、同轴安装精度要求高,若不契合会严重影响PMSM正常工作,且因为增加了元器件,降低了PMSM的抗扰动性能;3、对使用环境要求严格,外在环境变化导致的扰动都会对其精度有很大影响,使得PMSM在石油钻机系统中的应用受到影响。In order to realize the DMC control of the PMSM of the oil drilling rig system, it is necessary to use a coaxial mechanical position sensor to measure the rotor position and speed information. However, this causes some disadvantages: 1. The increased weight and volume of the PMSM lead to an increase in cost; 2. Coaxial installation The accuracy requirements are high. If it does not match, it will seriously affect the normal operation of the PMSM, and because of the addition of components, the anti-disturbance performance of the PMSM will be reduced; 3. The use environment is strictly required, and the disturbance caused by external environmental changes will have a great impact on its accuracy. The impact of PMSM in oil rig systems is affected.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于克服现有技术存在的缺陷,提供一种永磁同步电机动态矩阵控制方法,采用EKF(扩展卡尔曼滤波)进行PMSM无位置传感器设计,通过观测电机的位置速度信息对电机进行闭环控制,简化了钻机机械设备,从而使钻机系统使用更灵便,可靠性更高。The purpose of the present invention is to overcome the defects existing in the prior art, provide a dynamic matrix control method for permanent magnet synchronous motor, adopt EKF (Extended Kalman Filter) to carry out PMSM sensorless design, and conduct the motor by observing the position and speed information of the motor. Closed-loop control simplifies the mechanical equipment of the drilling rig, thus making the drilling rig system more flexible and more reliable.
为达到上述目的,本发明所采用的技术方案是:一种永磁同步电机动态矩阵控制方法,步骤如下:In order to achieve the above purpose, the technical solution adopted in the present invention is: a dynamic matrix control method for a permanent magnet synchronous motor, the steps are as follows:
一、建立PMSM的dq轴数学模型,以扩展卡尔曼滤波EKF作为一种随机观测器,通过扩展卡尔曼滤波算法的观测变量对预测变量进行校正,从而得到最优的预测值;1. Establish the dq-axis mathematical model of PMSM, use the extended Kalman filter EKF as a random observer, and correct the predicted variables through the observation variables of the extended Kalman filter algorithm, so as to obtain the optimal predicted value;
二、用扩展卡尔曼滤波EKF构造矢量控制,将转子磁链,转速和转子位置角设为状态变量,定子电压设为输入变量,若转速闭环控制的采样频率相比于电机的机械时间常数或转动惯量足够大,则转速在采样周期内为常数,使转速估计误差归结到系统噪声中,电机模型的精度不受影响;2. Use extended Kalman filter EKF to construct vector control, set rotor flux linkage, speed and rotor position angle as state variables, and set stator voltage as input variable. If the moment of inertia is large enough, the speed is constant in the sampling period, so that the speed estimation error is attributed to the system noise, and the accuracy of the motor model is not affected;
三、以DMC算法实现PMSM,DMC算法利用对象的阶跃响应,实现步骤经过模型预测、滚动优化和反馈校正;3. Realize PMSM with DMC algorithm. DMC algorithm uses the step response of the object, and the realization steps go through model prediction, rolling optimization and feedback correction;
四、构成基于EKF的永磁电机DMC矢量控制结构。Fourth, constitute the DMC vector control structure of permanent magnet motor based on EKF.
进一步的,所述PMSM采用面装式PMSM。Further, the PMSM adopts a surface-mounted PMSM.
进一步的,所述建立PMSM的dq轴数学模型是指:Further, the establishment of the dq-axis mathematical model of the PMSM refers to:
电压方程式(1)Voltage equation (1)
电磁转矩方程式(2)Electromagnetic torque equation (2)
机械运动方程式(3)Mechanical equation of motion(3)
式中,id,iq和ud,uq分别为定子电流和电压的dq分量;Ld,Lq和ψd,ψq分别为定子电感和磁链的dq分量;RS为定子电阻;ω为转子机械角速度;np为极对数;ψf为永磁体磁链;Te,TL为分别为电机的电磁转矩和负载转矩;J为转动惯量;P为粘滞摩擦系数。In the formula, id , i q and ud , u q are the dq components of the stator current and voltage, respectively; L d , L q and ψ d , ψ q are the dq components of the stator inductance and flux linkage, respectively; R S is the stator resistance; ω is the mechanical angular velocity of the rotor; n p is the number of pole pairs; ψ f is the permanent magnet flux linkage; Te and T L are the electromagnetic torque and load torque of the motor, respectively; J is the moment of inertia; P is the viscous friction coefficient.
进一步的,所述扩展卡尔曼滤波算法为:Further, the extended Kalman filter algorithm is:
x(k+1)=Ax(k)+Bu(k)+V(k) (4)x(k+1)=Ax(k)+Bu(k)+V(k) (4)
y(k)=Hx(k)+W(k) (5)y(k)=Hx(k)+W(k) (5)
式中:V(k)是系统噪声;W(k)是测量噪声。Where: V(k) is the system noise; W(k) is the measurement noise.
更进一步的,所述扩展卡尔曼滤波算法的步骤包括:Further, the steps of the extended Kalman filter algorithm include:
其中,M和N分别为V和W的协方差矩阵,K(k+1)为增益矩阵,上标为~为预测值,上标为∧为校验值。Among them, M and N are the covariance matrices of V and W respectively, K(k+1) is the gain matrix, the superscript ~ is the predicted value, and the superscript ∧ is the check value.
进一步的,所述步骤二中,用扩展卡尔曼滤波EKF构造矢量控制是指:dq轴为αβ轴模型,在αβ轴下设计EKF观测器,用EKF构造矢量控制,设置转子磁链ψα、ψβ,转速ω和转子位置角θ为状态变量,以定子电压为输入变量的电机状态方程和测量方程,若转速闭环控制的采样频率相比于电机的机械时间常数或转动惯量足够大,则转速在采样周期内为常数,使转速估计误差归结到系统噪声中,电机模型的精度不受影响,Further, in the second step, using the extended Kalman filter EKF to construct the vector control means: the dq axis is the αβ axis model, the EKF observer is designed under the αβ axis, the EKF is used to construct the vector control, and the rotor flux linkage ψ α , ψ β , the rotational speed ω and the rotor position angle θ are the state variables, and the state equation and measurement equation of the motor with the stator voltage as the input variable, if the sampling frequency of the closed-loop speed control is sufficiently large compared to the mechanical time constant or moment of inertia of the motor, then The speed is constant during the sampling period, so that the speed estimation error is attributed to the system noise, and the accuracy of the motor model is not affected.
其中,PMSM的磁链方程为:Among them, the flux linkage equation of PMSM is:
定子电压方程为:The stator voltage equation is:
将磁链方程代入电压方程可以得到:Substituting the flux linkage equation into the voltage equation yields:
在每个采样周期内设定ω是恒定的,得:Setting ω to be constant in each sampling period, we get:
而and
选取x(t)=[ψαψβωθ]T作为状态变量,构建得状态方程和输出方程为:Selecting x(t)=[ψ α ψ β ωθ] T as the state variable, the constructed state equation and output equation are:
其中,in,
v为系统噪声;w为测量噪声。v is the system noise; w is the measurement noise.
进一步的,所述步骤三中,以DMC算法实现PMSM的步骤如下:Further, in the described step 3, the step of realizing PMSM with DMC algorithm is as follows:
已知PMSM的运动方程为式(3),采用id=0控制策略时,电机电磁转矩公式为:It is known that the motion equation of PMSM is Equation (3). When id = 0 control strategy is adopted, the electromagnetic torque formula of the motor is:
令负载转矩TL为0,对式(3)两边同时取拉普拉斯变换得频域模型为:Let the load torque T L be 0, and take the Laplace transform of both sides of Equation (3) to obtain the frequency domain model as:
其中,K=1.5Pnψf,再从PMSM的被控对象式(16)的阶跃响应出发,将其动态特性用动态系数a1,a2,…,ap来表示,p为模型时域长度;ap为足够接近稳态值的系数,在k时刻,设定控制作用保持不变,对未来时刻的转速输出有初始预测值将PMSM在dq坐标系的交轴电流iq作为控制量,在连续的控制增量作用Δiq(k),…,Δiq(k+j-i) 下,未来各时刻的电机转速输出值为:Among them, K=1.5P n ψ f , and then starting from the step response of the controlled object of PMSM in formula (16), its dynamic characteristics are represented by dynamic coefficients a 1 , a 2 , ..., a p , and p is the model Length of time domain; a p is a coefficient close enough to the steady-state value. At time k, the set control action remains unchanged, and there is an initial predicted value for the speed output in the future. Taking the quadrature current i q of the PMSM in the dq coordinate system as the control quantity, under the continuous control increment action Δi q (k), ..., Δi q (k+ji), the output value of the motor speed at each moment in the future is:
其中,in,
动态矩阵算法的具体控制增量由最优化准则式确定,最优化准则式为:The specific control increment of the dynamic matrix algorithm is determined by the optimization criterion formula, and the optimization criterion formula is:
其中,q,r分别为误差权系数和控制权系数,ω(k+j|k)为期望输出,设定ω(k+j|k)为永磁同步电机的转速给定参考轨迹,则Among them, q and r are the error weight coefficient and the control weight coefficient respectively, ω(k+j|k) is the expected output, and ω(k+j|k) is set as the reference trajectory of the speed of the permanent magnet synchronous motor, then
W=[ω(k+1|k),ω(k+2|k),L,ω(k+p|k)]T (20)W=[ω(k+1|k),ω(k+2|k),L,ω(k+p|k)] T (20)
最优化准则式(19)表示为:The optimization criterion formula (19) is expressed as:
在式(21)中对控制向量求导,并令结果为0,具体滚动实施时,只取即时控制增量,通过式(22)求得即时控制增量:In formula (21), the control vector is derived, and the result is set to 0. When the specific rolling is implemented, only the immediate control increment is taken, and the immediate control increment is obtained by formula (22):
其中,in,
Q、R分别表示由误差权系数和控制权系数组成的对角矩阵,cT=[1 0 L 0],d为控制向量, dT=cT(ATQA+RE)-1ATQ,从而构成实际控制u(k),即为:Q and R respectively represent the diagonal matrix composed of the error weight coefficient and the control weight coefficient, c T =[1 0 L 0], d is the control vector, d T =c T (A T QA+RE) -1 A T Q, thus constituting the actual control u(k), which is:
在实施了控制作用之后,采集下一时刻的电机输出转速y*(k+1),After the control function is implemented, the motor output speed y * (k+1) at the next moment is collected,
利用石油钻机系统PMSM的估计转速对预测进行修正,并进行新的优化,在k时刻对PMSM 实施即时控制作用后,此时的预测输出为:Use the estimated rotational speed of the oil drilling rig system PMSM to correct the prediction and carry out a new optimization. After the real-time control of the PMSM is implemented at time k, the predicted output at this time is:
将此时的预测值与检测到的PMSM的转速估计输出值y*(k+1)相比较,得到输出误差为:the predicted value at this time Compared with the detected PMSM rotational speed estimation output value y * (k+1), the output error is obtained as:
通过对误差e*(k+1)加权来修正对未来时刻PMSM转速的预测,即为:By weighting the error e * (k+1), the prediction of the PMSM rotation speed at the future time is corrected, that is:
其中,in,
之后更新状态,将修正后的PMSM转速预测作为下一时刻初始预测值,根据式(27) 最终得下一时刻PMSM的转速预测为:After updating the state, the revised PMSM speed is predicted As the initial prediction value at the next moment, the rotation speed prediction of the PMSM at the next moment is finally obtained according to formula (27) for:
进一步的,所述步骤四中,构成基于EKF的永磁电机DMC矢量控制结构,控制结构的整个电机系统是转速外环和电流内环组成的双闭环调速系统,EKF转速估计模块的四个输入为静止坐标系下定子电流和定子电压,输出为估计的转子转速,并且该输出作为转速环的反馈信息,与预测输出比较后得到的误差,通过DMC算法进一步修正预测值,最终完成整个系统的无传感器转速控制。Further, in the step 4, an EKF-based permanent magnet motor DMC vector control structure is formed, and the entire motor system of the control structure is a double closed-loop speed control system composed of an outer speed loop and an inner current loop, and four of the EKF speed estimation module. The input is the stator current and stator voltage in the static coordinate system, and the output is the estimated rotor speed, and the output is used as the feedback information of the speed loop. The error obtained after comparing with the predicted output is further corrected by the DMC algorithm, and the entire system is finally completed. sensorless speed control.
本发明的有益技术效果是:由于EKF在实际应用中,需要进行包括加、乘、求逆以及转置等矩阵运算,整个计算和控制过程十分复杂,本发明首先通过变量换元将高度非线性的永磁同步电机模型进行线性处理,变量换元过程中转子位置角θ参数的存在,使变量替换后的模型能够可观可控,在基于EKF控制的基础上,通过EKF预测输出的转速代替原永磁同步电机动态矩阵控制中的传感器测量转速,使得整个控制过程通过计算机完成,提高了系统的可控性,更便于在更多场合应用。The beneficial technical effects of the present invention are: because the EKF needs to perform matrix operations including addition, multiplication, inversion and transposition in practical applications, the entire calculation and control process is very complicated, and the present invention first converts the highly nonlinear through variable element conversion. The permanent magnet synchronous motor model is linearly processed. The existence of the rotor position angle θ parameter in the process of variable element replacement makes the model after variable substitution appreciably controllable. On the basis of EKF-based control, the output speed predicted by EKF replaces the original speed The sensor in the dynamic matrix control of the permanent magnet synchronous motor measures the rotational speed, so that the entire control process is completed by the computer, which improves the controllability of the system and is more convenient for application in more occasions.
附图说明Description of drawings
下面结合附图和实施实例对本发明做进一步的阐述。The present invention will be further elaborated below in conjunction with the accompanying drawings and implementation examples.
图1为本发明动态矩阵计算流程框图;Fig. 1 is the dynamic matrix calculation flow chart of the present invention;
图2为本发明基于EKF的电机DMC矢量控制结构框图。FIG. 2 is a structural block diagram of the motor DMC vector control based on the EKF of the present invention.
具体实施方式Detailed ways
实施例1Example 1
一种永磁同步电机动态矩阵控制方法,步骤如下:A dynamic matrix control method for a permanent magnet synchronous motor, the steps are as follows:
一、建立PMSM的dq轴数学模型,以扩展卡尔曼滤波EKF作为一种随机观测器,通过扩展卡尔曼滤波算法的观测变量对预测变量进行校正,从而得到最优的预测值;1. Establish the dq-axis mathematical model of PMSM, use the extended Kalman filter EKF as a random observer, and correct the predicted variables through the observation variables of the extended Kalman filter algorithm, so as to obtain the optimal predicted value;
二、用扩展卡尔曼滤波EKF构造矢量控制,将转子磁链,转速和转子位置角设为状态变量,定子电压设为输入变量,若转速闭环控制的采样频率相比于电机的机械时间常数或转动惯量足够大,则转速在采样周期内为常数,使转速估计误差归结到系统噪声中,电机模型的精度不受影响;2. Use extended Kalman filter EKF to construct vector control, set rotor flux linkage, speed and rotor position angle as state variables, and set stator voltage as input variable. If the moment of inertia is large enough, the speed is constant in the sampling period, so that the speed estimation error is attributed to the system noise, and the accuracy of the motor model is not affected;
三、以DMC算法实现PMSM,DMC算法利用对象的阶跃响应,实现步骤经过模型预测、滚动优化和反馈校正;3. Realize PMSM with DMC algorithm. DMC algorithm uses the step response of the object, and the realization steps go through model prediction, rolling optimization and feedback correction;
四、构成基于EKF的永磁电机DMC矢量控制结构。Fourth, constitute the DMC vector control structure of permanent magnet motor based on EKF.
实施例2Example 2
作为对实施例1的优选,所述PMSM采用面装式PMSM。在将PMSM作为石油钻机系统的驱动设备时,由于面装式PMSM的永磁磁极便于最优设计的实现,有利于提高电机的控制性能,因此将面装式PMSM作为研究对象。As a preference to Embodiment 1, the PMSM is a surface-mounted PMSM. When the PMSM is used as the driving device of the oil drilling rig system, the surface-mounted PMSM is taken as the research object because the permanent magnet poles of the surface-mounted PMSM facilitate the realization of the optimal design and improve the control performance of the motor.
建立PMSM的dq轴数学模型如下:The dq-axis mathematical model of PMSM is established as follows:
电压方程式(1)Voltage equation (1)
电磁转矩方程式(2)Electromagnetic torque equation (2)
机械运动方程式(3)Mechanical equation of motion(3)
式中,id,iq和ud,uq分别为定子电流和电压的dq分量;Ld,Lq和ψd,ψq分别为定子电感和磁链的dq分量;RS为定子电阻;ω为转子机械角速度;np为极对数;ψf为永磁体磁链;Te,TL为分别为电机的电磁转矩和负载转矩;J为转动惯量;P为粘滞摩擦系数。In the formula, id , i q and ud , u q are the dq components of the stator current and voltage, respectively; L d , L q and ψ d , ψ q are the dq components of the stator inductance and flux linkage, respectively; R S is the stator resistance; ω is the mechanical angular velocity of the rotor; n p is the number of pole pairs; ψ f is the permanent magnet flux linkage; Te and T L are the electromagnetic torque and load torque of the motor, respectively; J is the moment of inertia; P is the viscous friction coefficient.
进一步的,所述扩展卡尔曼滤波算法为:Further, the extended Kalman filter algorithm is:
x(k+1)=Ax(k)+Bu(k)+V(k) (4)x(k+1)=Ax(k)+Bu(k)+V(k) (4)
y(k)=Hx(k)+W(k) (5)y(k)=Hx(k)+W(k) (5)
式中:V(k)是系统噪声;W(k)是测量噪声。Where: V(k) is the system noise; W(k) is the measurement noise.
实施例3Example 3
作为对实施例2的优选,所述扩展卡尔曼滤波算法的步骤包括:As a preference to Embodiment 2, the steps of the extended Kalman filter algorithm include:
其中,M和N分别为V和W的协方差矩阵,K(k+1)为增益矩阵,上标为~为预测值,上标为∧为校验值。Among them, M and N are the covariance matrices of V and W respectively, K(k+1) is the gain matrix, the superscript ~ is the predicted value, and the superscript ∧ is the check value.
所述步骤二中,用扩展卡尔曼滤波EKF构造矢量控制是指:dq轴为αβ轴模型,在αβ轴下设计EKF观测器,用EKF构造矢量控制,设置转子磁链ψα、ψβ,转速ω和转子位置角θ为状态变量,以定子电压为输入变量的电机状态方程和测量方程,若转速闭环控制的采样频率相比于电机的机械时间常数或转动惯量足够大,则转速在采样周期内为常数,使转速估计误差归结到系统噪声中,电机模型的精度不受影响,In the second step, using the extended Kalman filter EKF to construct the vector control means: the dq axis is the αβ axis model, the EKF observer is designed under the αβ axis, the EKF is used to construct the vector control, and the rotor flux linkage ψ α , ψ β is set, The rotational speed ω and the rotor position angle θ are the state variables, and the state equation and measurement equation of the motor with the stator voltage as the input variable, if the sampling frequency of the closed-loop control of the rotational speed is sufficiently large compared to the mechanical time constant or the moment of inertia of the motor, the rotational speed is in the sampling frequency. It is a constant in the period, so that the speed estimation error is attributed to the system noise, and the accuracy of the motor model is not affected.
其中,PMSM的磁链方程为:Among them, the flux linkage equation of PMSM is:
定子电压方程为:The stator voltage equation is:
将磁链方程代入电压方程可以得到:Substituting the flux linkage equation into the voltage equation yields:
由于在数字系统中的采样周期很短,所以在每个采样周期内可以假定ω是恒定的,则可得:Since the sampling period in the digital system is very short, ω can be assumed to be constant in each sampling period, then:
而and
选取x(t)=[ψαψβωθ]T作为状态变量,构建得状态方程和输出方程为:Selecting x(t)=[ψ α ψ β ωθ] T as the state variable, the constructed state equation and output equation are:
其中,in,
v为系统噪声;w为测量噪声。v is the system noise; w is the measurement noise.
实施例4Example 4
作为实施例1的优选,如图1所示,所述步骤三中,以DMC算法实现PMSM的步骤如下:As a preference of Embodiment 1, as shown in Figure 1, in the third step, the steps of implementing PMSM with the DMC algorithm are as follows:
已知PMSM的运动方程为式(3),采用id=0控制策略时,电机电磁转矩公式为:It is known that the motion equation of PMSM is Equation (3). When id = 0 control strategy is adopted, the electromagnetic torque formula of the motor is:
令负载转矩TL为0,对式(3)两边同时取拉普拉斯变换得频域模型为:Let the load torque T L be 0, and take the Laplace transform of both sides of Equation (3) to obtain the frequency domain model as:
其中,K=1.5Pnψf,再从PMSM的被控对象式(16)的阶跃响应出发,将其动态特性用动态系数a1,a2,…,ap来表示,p为模型时域长度;ap为足够接近稳态值的系数,在k时刻,设定控制作用保持不变,对未来时刻的转速输出有初始预测值将PMSM在dq坐标系的交轴电流iq作为控制量,在连续的控制增量作用Δiq(k),…,Δiq(k+j-i) 下,未来各时刻的电机转速输出值为:Among them, K=1.5P n ψ f , and then starting from the step response of the controlled object of PMSM in formula (16), its dynamic characteristics are represented by dynamic coefficients a 1 , a 2 , ..., a p , and p is the model Length of time domain; a p is a coefficient close enough to the steady-state value. At time k, the set control action remains unchanged, and there is an initial predicted value for the speed output in the future. Taking the quadrature current i q of the PMSM in the dq coordinate system as the control quantity, under the continuous control increment action Δi q (k), ..., Δi q (k+ji), the output value of the motor speed at each moment in the future is:
其中,in,
动态矩阵算法的具体控制增量由最优化准则式确定,最优化准则式为:The specific control increment of the dynamic matrix algorithm is determined by the optimization criterion formula, and the optimization criterion formula is:
其中,q,r分别为误差权系数和控制权系数,ω(k+j|k)为期望输出,设定ω(k+j|k)为永磁同步电机的转速给定参考轨迹,则Among them, q and r are the error weight coefficient and the control weight coefficient respectively, ω(k+j|k) is the expected output, and ω(k+j|k) is set as the reference trajectory of the speed of the permanent magnet synchronous motor, then
W=[ω(k+1|k),ω(k+2|k),L,ω(k+p|k)]T (20)W=[ω(k+1|k),ω(k+2|k),L,ω(k+p|k)] T (20)
最优化准则式(19)表示为:The optimization criterion formula (19) is expressed as:
在式(21)中对控制向量求导,并令结果为0,具体滚动实施时,只取即时控制增量,通过式(22)求得即时控制增量:In formula (21), the control vector is derived, and the result is set to 0. When the specific rolling is implemented, only the immediate control increment is taken, and the immediate control increment is obtained by formula (22):
其中,in,
Q、R分别表示由误差权系数和控制权系数组成的对角矩阵,cT=[1 0 L 0],d为控制向量, dT=cT(ATQA+RE)-1ATQ,从而构成实际控制u(k),即为:Q and R respectively represent the diagonal matrix composed of the error weight coefficient and the control weight coefficient, c T =[1 0 L 0], d is the control vector, d T =c T (A T QA+RE) -1 A T Q, thus constituting the actual control u(k), which is:
在实施了控制作用之后,采集下一时刻的电机输出转速y*(k+1),After the control function is implemented, the motor output speed y * (k+1) at the next moment is collected,
利用石油钻机系统PMSM的估计转速对预测进行修正,并进行新的优化,在k时刻对PMSM 实施即时控制作用后,此时的预测输出为:Use the estimated rotational speed of the oil drilling rig system PMSM to correct the prediction and carry out a new optimization. After the real-time control of the PMSM is implemented at time k, the predicted output at this time is:
将此时的预测值与检测到的PMSM的转速估计输出值y*(k+1)相比较,得到输出误差为:the predicted value at this time Compared with the detected PMSM rotational speed estimation output value y * (k+1), the output error is obtained as:
通过对误差e*(k+1)加权来修正对未来时刻PMSM转速的预测,即为:By weighting the error e * (k+1), the prediction of the PMSM rotation speed at the future time is corrected, that is:
其中,in,
之后更新状态,将修正后的PMSM转速预测作为下一时刻初始预测值,根据式(27) 最终得下一时刻PMSM的转速预测为:After updating the state, the revised PMSM speed is predicted As the initial prediction value at the next moment, the rotation speed prediction of the PMSM at the next moment is finally obtained according to formula (27) for:
如图2所示,所述步骤四中,构成基于EKF的永磁电机DMC矢量控制结构,控制结构的整个电机系统是转速外环和电流内环组成的双闭环调速系统,EKF转速估计模块的四个输入为静止坐标系下定子电流和定子电压,输出为估计的转子转速,并且该输出作为转速环的反馈信息,与预测输出比较后得到的误差,通过DMC算法进一步修正预测值,最终完成整个系统的无传感器转速控制。As shown in Figure 2, in the fourth step, the EKF-based permanent magnet motor DMC vector control structure is formed. The entire motor system of the control structure is a double closed-loop speed control system composed of an outer speed loop and an inner current loop. The EKF speed estimation module The four inputs are the stator current and stator voltage in the static coordinate system, the output is the estimated rotor speed, and the output is used as the feedback information of the speed loop, and the error obtained after comparing with the predicted output is further corrected by the DMC algorithm. Complete the sensorless speed control of the entire system.
使用传统的位置传感器会增加钻机系统的机械负荷,不利于钻机的安装运移,而且在恶劣环境下传感器的工作也会受到干扰,会影响PMSM的控制效果及钻机的正常工作,所以采用EKF(扩展卡尔曼滤波)进行PMSM无位置传感器设计,通过观测出电机的位置速度信息对电机进行闭环控制,简化了钻机机械设备,从而使钻机系统的使用更为灵便,可靠性得到提高。The use of traditional position sensors will increase the mechanical load of the drilling rig system, which is not conducive to the installation and movement of the drilling rig, and the work of the sensor will also be disturbed in harsh environments, which will affect the control effect of the PMSM and the normal operation of the drilling rig. Therefore, EKF ( The extended Kalman filter) is used to design PMSM without position sensor, and the closed-loop control of the motor is carried out by observing the position and speed information of the motor, which simplifies the mechanical equipment of the drilling rig, so that the use of the drilling rig system is more flexible and the reliability is improved.
通过检测PMSM中一些电压、电流等电信号,再加上合适的算法程序来估算出PMSM的转速和位置信息,即不需要机械传感器,由此形成PMSM无位置传感器控制技术。利用卡尔曼滤波算法在削弱随机干扰和测量噪声的优异能力,把其从线性系统领域发展到非线性领域,设计的滤波器卡尔曼滤波增益可随环境自适应调节,进而可对系统状态在线估计,实现对系统状态的实时控制。由于卡尔曼滤波算法在削弱随机干扰和测量噪声的优异能力,以及其可随环境自适应调节的特点,因此选用EKF算法进行PMSM无位置传感器设计。在石油钻机系统PMSM速度环DMC控制的基础上,应用EKF的无传感器技术,减少机械设备的安装,降低成本,并增加钻机系统的可靠性,能进一步提高钻机的工作效率,更有利于在复杂环境下运行。By detecting some electrical signals such as voltage and current in the PMSM, and adding appropriate algorithm programs to estimate the PMSM's rotational speed and position information, that is, no mechanical sensor is required, thus forming the PMSM sensorless control technology. Using the excellent ability of the Kalman filter algorithm to weaken random interference and measurement noise, it is developed from the field of linear systems to the field of nonlinearity. The Kalman filter gain of the designed filter can be adaptively adjusted with the environment, and then the system state can be estimated online. , to achieve real-time control of the system state. Due to the excellent ability of the Kalman filter algorithm to weaken random interference and measurement noise, and its characteristics of adaptive adjustment with the environment, the EKF algorithm is selected for the PMSM positionless sensor design. On the basis of the PMSM speed loop DMC control of the oil drilling rig system, the sensorless technology of EKF is applied to reduce the installation of mechanical equipment, reduce the cost, and increase the reliability of the drilling rig system, which can further improve the working efficiency of the drilling rig, and is more conducive to complex run in the environment.
以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变形或修改,这并不影响本发明的实质内容。Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the above-mentioned specific embodiments, and those skilled in the art can make various variations or modifications within the scope of the claims, which do not affect the essential content of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811265179.8A CN109412488A (en) | 2018-10-29 | 2018-10-29 | A kind of permanent magnet synchronous motor dynamic matrix control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811265179.8A CN109412488A (en) | 2018-10-29 | 2018-10-29 | A kind of permanent magnet synchronous motor dynamic matrix control method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109412488A true CN109412488A (en) | 2019-03-01 |
Family
ID=65470111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811265179.8A Pending CN109412488A (en) | 2018-10-29 | 2018-10-29 | A kind of permanent magnet synchronous motor dynamic matrix control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109412488A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110289749A (en) * | 2019-05-31 | 2019-09-27 | 东南大学 | A pumping unit system driven by a linear-rotational dual-degree-of-freedom motor and its control method |
CN110765717A (en) * | 2019-10-22 | 2020-02-07 | 哈尔滨理工大学 | A Design Method of Extended Kalman Filter Circuit Structure Based on FPGA |
CN110798107A (en) * | 2019-09-30 | 2020-02-14 | 山东休普动力科技股份有限公司 | Free piston linear generator control system and control method based on DMC algorithm |
CN111193448A (en) * | 2020-01-20 | 2020-05-22 | 江苏新安电器股份有限公司 | Surface-mounted permanent magnet synchronous motor load torque observation method based on extended Kalman filter |
US11283380B2 (en) | 2019-08-06 | 2022-03-22 | Conti Temic Microelectronic Gmbh | Method and device for determining the rotational speed and the angle of rotation of a motor shaft of a mechanically commutated DC motor |
CN115065290A (en) * | 2022-05-16 | 2022-09-16 | 北京理工大学 | Permanent magnet synchronous motor current harmonic suppression method based on data driving |
CN117725687A (en) * | 2024-02-06 | 2024-03-19 | 华东交通大学 | A method for estimating road adhesion coefficient of electric vehicles based on permanent magnet synchronous motor |
CN118739953A (en) * | 2024-08-30 | 2024-10-01 | 楼蓝科技(江苏)有限公司 | Motor drive control system and method with speed and position feedback |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102611381A (en) * | 2012-03-12 | 2012-07-25 | 浙江工业大学 | Direct torque control system of permanent-magnet synchronous motor |
-
2018
- 2018-10-29 CN CN201811265179.8A patent/CN109412488A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102611381A (en) * | 2012-03-12 | 2012-07-25 | 浙江工业大学 | Direct torque control system of permanent-magnet synchronous motor |
Non-Patent Citations (2)
Title |
---|
尹忠刚等: "基于扩展卡尔曼滤波器的永磁同步电机转速估计方法研究", 《电源学报》 * |
王睿敏等: "Vector control of permanent magnet synchronous motor based on dynamic matrix control", 《JOURNAL OF MEASUREMENT SCIENCE AND INSTRUMENTATION》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110289749A (en) * | 2019-05-31 | 2019-09-27 | 东南大学 | A pumping unit system driven by a linear-rotational dual-degree-of-freedom motor and its control method |
US11283380B2 (en) | 2019-08-06 | 2022-03-22 | Conti Temic Microelectronic Gmbh | Method and device for determining the rotational speed and the angle of rotation of a motor shaft of a mechanically commutated DC motor |
CN110798107A (en) * | 2019-09-30 | 2020-02-14 | 山东休普动力科技股份有限公司 | Free piston linear generator control system and control method based on DMC algorithm |
CN110765717A (en) * | 2019-10-22 | 2020-02-07 | 哈尔滨理工大学 | A Design Method of Extended Kalman Filter Circuit Structure Based on FPGA |
CN111193448A (en) * | 2020-01-20 | 2020-05-22 | 江苏新安电器股份有限公司 | Surface-mounted permanent magnet synchronous motor load torque observation method based on extended Kalman filter |
CN111193448B (en) * | 2020-01-20 | 2022-11-04 | 江苏新安电器股份有限公司 | Permanent magnet synchronous motor load torque observation method based on extended Kalman filter |
CN115065290A (en) * | 2022-05-16 | 2022-09-16 | 北京理工大学 | Permanent magnet synchronous motor current harmonic suppression method based on data driving |
CN115065290B (en) * | 2022-05-16 | 2024-06-28 | 北京理工大学 | A data-driven method for suppressing current harmonics in permanent magnet synchronous motors |
CN117725687A (en) * | 2024-02-06 | 2024-03-19 | 华东交通大学 | A method for estimating road adhesion coefficient of electric vehicles based on permanent magnet synchronous motor |
CN118739953A (en) * | 2024-08-30 | 2024-10-01 | 楼蓝科技(江苏)有限公司 | Motor drive control system and method with speed and position feedback |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109412488A (en) | A kind of permanent magnet synchronous motor dynamic matrix control method | |
CN108319148B (en) | A low-speed and high-precision control method for controlling torque gyro frame servo system | |
CN110190795B (en) | Permanent magnet synchronous motor cascade type robust prediction current control method | |
CN103236814B (en) | Fractional integral sliding mode-based speed control method and device for permanent magnet synchronous motor | |
CN109560736A (en) | Method for controlling permanent magnet synchronous motor based on second-order terminal sliding formwork | |
CN108134549A (en) | A kind of method for improving permanent magnet synchronous motor speed estimate stability | |
CN109347391B (en) | A Landau Adaptive Moment of Inertia Identification Method Considering System Noise | |
CN110716506A (en) | Servo system position tracking control method based on mixed sliding mode control | |
CN110412867B (en) | High-precision angular rate control method for magnetically suspended control moment gyroscope frame system | |
CN110707981A (en) | Permanent magnet synchronous motor speed controller based on novel extended state observer | |
CN103197562A (en) | Rotary-table servo system neural network control method | |
CN112701968A (en) | Method for improving prediction control robustness performance of permanent magnet synchronous motor model | |
CN104779873B (en) | A kind of predictive functional control algorithm for PMSM servo-drive systems | |
CN110401390B (en) | Permanent magnet synchronous motor random command filtering fuzzy control method based on observer | |
CN108306567A (en) | It is a kind of based on IGSO optimize EKF without sensor permanent magnet synchronous motor speed estimation method | |
CN109194224B (en) | Permanent magnet synchronous motor sensorless control method based on extended state observer | |
CN111092580A (en) | Improved MRAS control method based on limited memory least square method | |
CN112859612B (en) | High-precision controller of ultralow-speed control moment gyro frame servo system | |
CN104022701B (en) | Mould method for control speed in a kind of permanent magnetic linear synchronous motor Newton method | |
CN114625005A (en) | Backstepping anti-interference rotating speed control method for control moment gyro frame servo system | |
CN113691179A (en) | Permanent magnet synchronous motor sliding mode control method based on variable power exponent approach law of fixed time | |
CN113659895A (en) | Full-state constrained finite-time control method for permanent magnet synchronous motor based on command filtering | |
CN109884881A (en) | A Design of Aiming Servo Controller Based on Nonlinear PID Control Technology | |
CN110212837B (en) | Synchronous motor control method and system based on composite nonlinear feedback integral sliding mode | |
CN112936270A (en) | Mechanical arm internal model control method based on neural network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190301 |
|
WD01 | Invention patent application deemed withdrawn after publication |