[go: up one dir, main page]

CN108111080B - Automatic rotor angle aligning device and method for permanent magnet synchronous motor - Google Patents

Automatic rotor angle aligning device and method for permanent magnet synchronous motor Download PDF

Info

Publication number
CN108111080B
CN108111080B CN201711439510.9A CN201711439510A CN108111080B CN 108111080 B CN108111080 B CN 108111080B CN 201711439510 A CN201711439510 A CN 201711439510A CN 108111080 B CN108111080 B CN 108111080B
Authority
CN
China
Prior art keywords
angle
angle compensation
motor
real
module
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.)
Active
Application number
CN201711439510.9A
Other languages
Chinese (zh)
Other versions
CN108111080A (en
Inventor
*非凡
非凡
刘灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Zero Run Technology Co Ltd
Original Assignee
Zhejiang Leapmotor Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Leapmotor Technology Co Ltd filed Critical Zhejiang Leapmotor Technology Co Ltd
Priority to CN201711439510.9A priority Critical patent/CN108111080B/en
Publication of CN108111080A publication Critical patent/CN108111080A/en
Application granted granted Critical
Publication of CN108111080B publication Critical patent/CN108111080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/14Estimation or adaptation of machine parameters, e.g. flux, current or voltage
    • H02P21/18Estimation of position or speed
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P2203/00Indexing scheme relating to controlling arrangements characterised by the means for detecting the position of the rotor
    • H02P2203/03Determination of the rotor position, e.g. initial rotor position, during standstill or low speed operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

The invention discloses a device and a method for automatically aligning the rotor angle of a permanent magnet synchronous motor, wherein the output of an angle detection device is input into a real-time electric angle to a phase-locked loop speed measurement device, the phase-locked loop speed measurement device obtains the real-time angular speed of the motor through a double-integral phase-locked loop speed measurement module, the angular speed is multiplied by the output of a d-axis voltage filter, then the angular speed is input into an angle compensation PI module to obtain an angle compensation quantity, the output of the d-axis voltage filter is adjusted to be 0, and the angle compensation quantity and the angular speed at the moment are stored in an angle compensation register. After the compensation of different speed sections is finished, fitting the angle compensation quantity and the angular speed in the angle compensation register to obtain a linear function of the angle compensation quantity and the angular speed, and finally writing the linear function into the angle compensator. The invention has the following beneficial effects: the invention realizes the automatic position alignment of the rotor angle of the permanent magnet synchronous motor and simultaneously improves the reading precision of the angular position of the motor rotor.

Description

永磁同步电机的转子角度自动对位置装置及方法Rotor angle automatic positioning device and method for permanent magnet synchronous motor

技术领域technical field

本发明涉及永磁同步电机技术领域,尤其是涉及一种能够实现自动对位置,提高电机转子角度位置读取精度的用于永磁同步电机的转子角度自动对位置装置及自动对位置方法。The invention relates to the technical field of permanent magnet synchronous motors, in particular to a rotor angle automatic position correction device and an automatic position correction method for permanent magnet synchronous motors that can realize automatic position correction and improve the reading accuracy of the motor rotor angle position.

背景技术Background technique

随着国民经济和科学技术的发展,电机在各行各业中发挥的作用越来越重要。永磁同步电机得益于其设计、制造、控制的方面的诸多优点,广泛应用于各种工业生产生活的场合。加之我国的稀土资源丰富,永磁同步电机的应用市场在我国尤其大。永磁同步电机可由交直轴电感的异同被分为表贴式和内置式,由于内置式永磁同步电机(IPMSM)可在弱磁条件下具有较宽的调速区间,应用较为广泛。With the development of the national economy and science and technology, motors play an increasingly important role in all walks of life. Due to its many advantages in design, manufacture and control, permanent magnet synchronous motors are widely used in various industrial production and life occasions. In addition, my country is rich in rare earth resources, and the application market of permanent magnet synchronous motors is particularly large in my country. Permanent magnet synchronous motors can be divided into surface mount type and built-in type according to the similarities and differences of AC and D-axis inductance. Since the built-in permanent magnet synchronous motor (IPMSM) can have a wide speed range under the condition of field weakening, it is widely used.

在永磁同步电机的控制中,控制回路所需要的采样参数包括三相电流和电机转子的实际位置。后者一般是通过与电机转子同轴的旋转变压器将位置量转换为两路互补的正余弦电压;控制器上安装的解码芯片将此两路互补电压转换为角度量,以串行或并行的方式发送到主控芯片中,以此用于永磁同步电机的空间矢量控制。In the control of permanent magnet synchronous motor, the sampling parameters required by the control loop include the three-phase current and the actual position of the motor rotor. The latter generally converts the position value into two complementary sine and cosine voltages through a rotary transformer coaxial with the motor rotor; the decoding chip installed on the controller converts the two complementary voltages into angle values, and the two channels are serially or parallelly The method is sent to the main control chip, which is used for the space vector control of the permanent magnet synchronous motor.

通过旋转变压器所输出角度来表征电机转子的实际位置这种方法在业内已经非常成熟。而这项技术表现良好的前提是上文提到的“同轴”,“同轴”意味着旋转变压器自身和转子之间不存在角度差。而实现“同轴”在装配工艺上并非易事,因为造成偏角的原因有很多,一项不满足便会导致出现偏角。The method of characterizing the actual position of the motor rotor through the output angle of the resolver is very mature in the industry. The prerequisite for this technology to perform well is the "coaxial" mentioned above. "Coaxial" means that there is no angular difference between the resolver itself and the rotor. It is not easy to achieve "coaxial" in the assembly process, because there are many reasons for the deflection angle, and if one of them is not satisfied, the deflection angle will appear.

在现有的方案中,解决偏角的方式为上位机观测偏角补偿,又称为人工对位置方法。此方法适用对象为旋转变压器装配偏角控制在正负0.5度的动力总成。此方法中,先对装配完成的电机通直流电,通过上位机读取相应的偏角,再在程序中对此偏角进行补偿。人工对位置方法的缺陷有二:一是需要单独的工序进行对位置,且要求工人有较好的熟练度才能将偏角控制在0.5度之内;二是精度交底,因为其偏角是依靠人工读取,难免有较大的误差。In the existing solutions, the way to solve the deflection angle is to observe the deflection angle compensation by the host computer, which is also called the manual position correction method. This method is applicable to the powertrain whose resolver assembly deflection angle is controlled within plus or minus 0.5 degrees. In this method, direct current is applied to the assembled motor first, and the corresponding deflection angle is read through the host computer, and then the deflection angle is compensated in the program. There are two defects in the method of manual position alignment: one is that a separate process is required for position alignment, and workers are required to have good proficiency to control the deflection angle within 0.5 degrees; Manual reading will inevitably have large errors.

发明内容Contents of the invention

本发明为了克服现有技术中存在的上述不足,提供了一种能够实现自动对位置,提高电机转子角度位置读取精度的用于永磁同步电机的转子角度自动对位置装置及自动对位置方法。In order to overcome the above-mentioned deficiencies in the prior art, the present invention provides a rotor angle automatic position alignment device and an automatic position alignment method for permanent magnet synchronous motors that can realize automatic position alignment and improve the reading accuracy of the motor rotor angle position .

为了实现上述目的,本发明采用了以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

一种永磁同步电机的转子角度自动对位置装置,包括MCU、角度检测装置、锁相环测速装置、电机矢量闭环控制装置、d轴电压滤波器、角度补偿PI模块、角度补偿寄存器和角度补偿器;所述角度检测装置包括旋转变压器、解码电路和单位转换器;所述MCU分别与旋转变压器、解码电路、单位转换器、锁相环测速装置、电机矢量闭环控制装置、d轴电压滤波器、角度补偿PI模块、角度补偿寄存器和角度补偿器连接,解码电路分别与旋转变压器、单位转换器、锁相环测速装置和角度补偿PI模块连接,旋转变压器与电机矢量闭环控制装置连接,d轴电压滤波器分别与电机矢量闭环控制装置、角度补偿PI模块和角度补偿寄存器连接。A rotor angle automatic positioning device for a permanent magnet synchronous motor, including an MCU, an angle detection device, a phase-locked loop speed measurement device, a motor vector closed-loop control device, a d-axis voltage filter, an angle compensation PI module, an angle compensation register and an angle compensation device; the angle detection device includes a rotary transformer, a decoding circuit and a unit converter; the MCU is respectively connected with the rotary transformer, a decoding circuit, a unit converter, a phase-locked loop speed measuring device, a motor vector closed-loop control device, and a d-axis voltage filter , the angle compensation PI module, the angle compensation register and the angle compensator are connected, the decoding circuit is respectively connected with the resolver, the unit converter, the phase-locked loop speed measuring device and the angle compensation PI module, the resolver is connected with the motor vector closed-loop control device, and the d-axis The voltage filter is respectively connected with the motor vector closed-loop control device, the angle compensation PI module and the angle compensation register.

本发明将角度检测装置的输出输入到实时电角度到锁相环测速装置中,锁相环测速装置通过双积分锁相环测速模块得到电机实时角速度,以此角速度乘以d轴电压滤波器的输出,然后输入到角度补偿PI模块,得到角度补偿量,调节d轴电压滤波器的输出为0,并将此时的角度补偿量和角速度存入角度补偿寄存器。在不同速度段补偿结束之后,将角度补偿寄存器中的角度补偿量和角速度进行拟合,得到角度补偿量与角速度的一次函数,最后将此函数写入角度补偿器中。In the present invention, the output of the angle detection device is input into the real-time electrical angle into the phase-locked loop speed measurement device, and the phase-locked loop speed measurement device obtains the real-time angular velocity of the motor through the double-integral phase-locked loop speed measurement module, and multiplies the angular velocity by the d-axis voltage filter Output, and then input to the angle compensation PI module to obtain the angle compensation amount, adjust the output of the d-axis voltage filter to 0, and store the angle compensation amount and angular velocity at this time into the angle compensation register. After the compensation of different speed segments is completed, the angle compensation amount and the angular velocity in the angle compensation register are fitted to obtain a linear function of the angle compensation amount and the angular velocity, and finally this function is written into the angle compensator.

作为优选,所述角度补偿PI模块包括Kp1、Ki1两个参数变量,乘法器M、积分器S和加法器,其中Kp1为比例增益,Ki1为积分增益。Preferably, the angle compensation PI module includes two parameter variables Kp1 and Ki1, a multiplier M, an integrator S and an adder, wherein Kp1 is a proportional gain and Ki1 is an integral gain.

作为优选,所述锁相环测速装置包括角度滤波器和双积分锁相环测速模块;角度滤波器和双积分锁相环测速模块均与MCU连接,角度滤波器分别与单位转换器和双积分锁相环测速模块连接,双积分锁相环测速模块和角度补偿PI模块连接。As preferably, the phase-locked loop speed measuring device includes an angle filter and a double-integral phase-locked loop speed-measuring module; both the angle filter and the double-integral phase-locked loop speed-measuring module are connected to the MCU, and the angle filter is connected to the unit converter and the double integral The phase-locked loop speed measurement module is connected, and the double integral phase-locked loop speed measurement module is connected to the angle compensation PI module.

作为优选,所述电机矢量闭环控制装置包括电机本体、电机控制器电路、减速器和电流电压传感器;所述电机本体分别与旋转变压器、d轴电压滤波器、电机控制器电路、减速器和电流电压传感器电连接,电机本体、电机控制器电路、减速器和电流电压传感器均与MCU电连接。Preferably, the motor vector closed-loop control device includes a motor body, a motor controller circuit, a speed reducer and a current and voltage sensor; The voltage sensor is electrically connected, and the motor body, the motor controller circuit, the reducer and the current and voltage sensors are all electrically connected to the MCU.

一种永磁同步电机的转子角度自动对位置装置的方法,包括如下步骤:A method for automatically adjusting the position of a rotor angle of a permanent magnet synchronous motor, comprising the steps of:

(5-1)设定电机运行的最小角速度为Wmin和电机运行的最大角速度为Wmax(5-1) The minimum angular velocity of setting motor operation is Wmin and the maximum angular velocity of motor operation is Wmax ;

(5-2)设定角度补偿量delta的初始值为0,MCU控制旋转变压器采集永磁同步电机的实时电角度信号,经过解码电路和单位转换器的处理获得永磁同步电机的实时电角度theta_origin;(5-2) Set the initial value of the angle compensation delta to 0, the MCU controls the resolver to collect the real-time electrical angle signal of the permanent magnet synchronous motor, and obtains the real-time electrical angle of the permanent magnet synchronous motor through the processing of the decoding circuit and the unit converter theta_origin;

(5-3)将获得的实时电角度theta_origin输入到锁相环测速装置,MCU控制角度滤波器进行滤波处理,然后通过双积分锁相环测速模块得到电机的实时角速度W;(5-3) Input the obtained real-time electrical angle theta_origin to the phase-locked loop speed measuring device, the MCU controls the angle filter to perform filtering processing, and then obtains the real-time angular velocity W of the motor through the double-integral phase-locked loop speed measuring module;

(5-4)MCU将通过双积分锁相环测速模块得到的电机实时角速度W分别与设定的电机运行的最小角速度为Wmin和电机运行的最大角速度为Wmax进行比较,(5-4) The MCU compares the motor real-time angular velocity W obtained by the double-integral phase-locked loop speed measurement module with the set minimum angular velocity of the motor operation as W min and the maximum angular velocity of the motor operation as W max ,

如果Wmin≤W≤Wmax,计算角度补偿量delta,并将角度补偿量delta和实时角速度W存入角度补偿寄存器中,转入步骤(5-2),If W min ≤ W ≤ W max , calculate the angle compensation delta, and store the angle compensation delta and the real-time angular velocity W in the angle compensation register, and turn to step (5-2),

如果W≤Wmin或W≥Wmax,转入步骤(5-5);If W≤Wmin or W≥Wmax , go to step (5-5);

(5-5)MCU对存放在角度补偿寄存器内的角度补偿量delta和实时角速度W进行拟合,得到角度补偿量delta和实时角速度W的一次函数delta=kw+ds,其中,k为一次函数的斜率,ds为一次函数的偏移量;(5-5) The MCU fits the angle compensation delta stored in the angle compensation register and the real-time angular velocity W to obtain a linear function delta=kw+d s of the angle compensation delta and the real-time angular velocity W, where k is a primary The slope of the function, d s is the offset of the primary function;

(5-6)MCU将一次函数中的k和ds存入角度补偿器中。(5-6) MCU stores k and d s in the primary function into the angle compensator.

作为优选,计算角度补偿量delta,并将角度补偿量delta和实时角速度W存入角度补偿寄存器中的具体步骤如下:As preferably, the angle compensation delta is calculated, and the concrete steps of storing the angle compensation delta and the real-time angular velocity W in the angle compensation register are as follows:

(6-1)将实时电角度theta_origin与角度补偿量delta相加得到theta,然后将theta输入到电机矢量闭环控制装置中;(6-1) Add the real-time electrical angle theta_origin and the angle compensation delta to obtain theta, and then input theta into the motor vector closed-loop control device;

(6-2)MCU控制电机矢量闭环控制装置工作,对theta进行处理,输出永磁同步电机的电压的d轴分量Ud,将电压的d轴分量Ud输入到d轴电压滤波器中;(6-2) The MCU controls the work of the motor vector closed-loop control device, processes theta, outputs the d-axis component Ud of the voltage of the permanent magnet synchronous motor, and inputs the d-axis component Ud of the voltage into the d-axis voltage filter;

(6-3)MCU控制d轴电压滤波器对电压的d轴分量Ud进行滤波处理,得到滤波后的电压Ud_f,(6-3) The MCU controls the d-axis voltage filter to filter the d-axis component Ud of the voltage to obtain the filtered voltage Ud_f,

如果Ud_f≠0,将实时角速度W和电压Ud_f输入角度补偿PI模块进行计算,得到角度补偿量delta,转入步骤(6-1),If Ud_f≠0, input the real-time angular velocity W and voltage Ud_f into the angle compensation PI module for calculation, obtain the angle compensation delta, and turn to step (6-1),

如果Ud_f=0,将角度补偿量delta和实时角速度W存入角度补偿寄存器中。If Ud_f=0, store the angle compensation delta and the real-time angular velocity W into the angle compensation register.

作为优选,将实时角速度W和电压Ud_f输入角度补偿PI模块进行计算,得到角度补偿量delta的具体过程如下:As a preference, the real-time angular velocity W and the voltage Ud_f are input into the angle compensation PI module for calculation, and the specific process of obtaining the angle compensation delta is as follows:

(7-1)实时角速度W和电压Ud_f通过乘法器M进行相乘得到第一乘积,参数变量Kp1直接与第一乘积相乘得到第二乘积;(7-1) The real-time angular velocity W and the voltage Ud_f are multiplied by the multiplier M to obtain the first product, and the parameter variable Kp1 is directly multiplied with the first product to obtain the second product;

(7-2)第一乘积通过积分器S得到积分量,参数变量Ki1与积分量相乘得到第三乘积;(7-2) the first product obtains the integral by the integrator S, and the parameter variable Ki1 is multiplied with the integral to obtain the third product;

(7-3)通过加法器将第二乘积和第三乘积相加,得到角度补偿量delta。(7-3) The second product and the third product are added by an adder to obtain the angle compensation delta.

因此,本发明具有如下有益效果:本发明不需要人工操作,实现了永磁同步电机转子角度的自动对位置,简化生产流程,同时提升了电机转子角位置的读取精度;本发明放宽了设计限制和装配精度要求,提高了生产效率。Therefore, the present invention has the following beneficial effects: the present invention does not require manual operation, realizes the automatic position alignment of the permanent magnet synchronous motor rotor angle, simplifies the production process, and improves the reading accuracy of the motor rotor angular position; the present invention relaxes the design Constraints and assembly precision requirements improve production efficiency.

附图说明Description of drawings

图1是本发明的一种系统框图;Fig. 1 is a kind of system block diagram of the present invention;

图2是本发明的角度补偿PI模块的一种原理框图;Fig. 2 is a kind of functional block diagram of angle compensation PI module of the present invention;

图3是本发明的一种流程图。Fig. 3 is a flow chart of the present invention.

图中:MCU1、角度检测装置2、锁相环测速装置3、电机矢量闭环控制装置4、d轴电压滤波器5、角度补偿PI模块6、角度补偿寄存器7、角度补偿器8、旋转变压器21、解码电路22、单位转换器23、电机本体41、电机控制器电路42、减速器43、电流电压传感器44。In the figure: MCU1, angle detection device 2, phase-locked loop speed measurement device 3, motor vector closed-loop control device 4, d-axis voltage filter 5, angle compensation PI module 6, angle compensation register 7, angle compensator 8, resolver 21 , decoding circuit 22, unit converter 23, motor body 41, motor controller circuit 42, reducer 43, current and voltage sensor 44.

具体实施方式Detailed ways

下面结合附图与具体实施方式对本发明做进一步描述:The present invention will be further described below in conjunction with accompanying drawing and specific embodiment:

如图1所示的实施例是一种永磁同步电机的转子角度自动对位置装置,包括MCU1、角度检测装置2、锁相环测速装置3、电机矢量闭环控制装置4、d轴电压滤波器5、角度补偿PI模块6、角度补偿寄存器7和角度补偿器8;所述角度检测装置包括旋转变压器21、解码电路22和单位转换器23;所述MCU分别与旋转变压器、解码电路、单位转换器、锁相环测速装置、电机矢量闭环控制装置、d轴电压滤波器、角度补偿PI模块、角度补偿寄存器和角度补偿器连接,解码电路分别与旋转变压器、单位转换器、锁相环测速装置和角度补偿PI模块连接,旋转变压器与电机矢量闭环控制装置连接,d轴电压滤波器分别与电机矢量闭环控制装置、角度补偿PI模块和角度补偿寄存器连接。The embodiment shown in Figure 1 is a rotor angle automatic positioning device for a permanent magnet synchronous motor, including an MCU1, an angle detection device 2, a phase-locked loop speed measuring device 3, a motor vector closed-loop control device 4, and a d-axis voltage filter 5, angle compensation PI module 6, angle compensation register 7 and angle compensator 8; Described angle detection device comprises rotary transformer 21, decoding circuit 22 and unit converter 23; Described MCU is connected with rotary transformer, decoding circuit, unit conversion respectively device, phase-locked loop speed measuring device, motor vector closed-loop control device, d-axis voltage filter, angle compensation PI module, angle compensation register and angle compensator are connected, and the decoding circuit is connected with the resolver, unit converter, and phase-locked loop speed measuring device respectively It is connected with the angle compensation PI module, the resolver is connected with the motor vector closed-loop control device, and the d-axis voltage filter is respectively connected with the motor vector closed-loop control device, the angle compensation PI module and the angle compensation register.

其中,所述锁相环测速装置包括角度滤波器和双积分锁相环测速模块;角度滤波器和双积分锁相环测速模块均与MCU连接,角度滤波器分别与单位转换器和双积分锁相环测速模块连接,双积分锁相环测速模块和角度补偿PI模块连接;所述电机矢量闭环控制装置包括电机本体41、电机控制器电路42、减速器43和电流电压传感器44;所述电机本体分别与旋转变压器、d轴电压滤波器、电机控制器电路、减速器和电流电压传感器电连接,电机本体、电机控制器电路、减速器和电流电压传感器均与MCU电连接;如图2所示,所述角度补偿PI模块包括Kp1、Ki1两个参数变量,乘法器M、积分器S和加法器,其中Kp1为比例增益,Ki1为积分增益。Wherein, the phase-locked loop speed measuring device includes an angle filter and a double-integral phase-locked loop speed-measuring module; the angle filter and the double-integral phase-locked loop speed-measuring module are all connected to the MCU, and the angle filter is connected to the unit converter and the double-integral lock respectively. The phase loop speed measurement module is connected, and the double-integral phase-locked loop speed measurement module is connected with the angle compensation PI module; the motor vector closed-loop control device includes a motor body 41, a motor controller circuit 42, a speed reducer 43 and a current and voltage sensor 44; the motor The body is electrically connected to the resolver, the d-axis voltage filter, the motor controller circuit, the reducer and the current and voltage sensor, and the motor body, the motor controller circuit, the reducer and the current and voltage sensor are all electrically connected to the MCU; as shown in Figure 2 As shown, the angle compensation PI module includes two parameter variables Kp1 and Ki1, a multiplier M, an integrator S and an adder, wherein Kp1 is a proportional gain, and Ki1 is an integral gain.

如图3所示,一种永磁同步电机的转子角度自动对位置装置的方法,包括如下步骤:As shown in Figure 3, a method for automatically adjusting the position of the rotor angle of a permanent magnet synchronous motor comprises the following steps:

步骤100,初始化参数,获得电机的实时角速度WStep 100, initialize the parameters, and obtain the real-time angular velocity W of the motor

步骤101,设定电机运行的最小角速度为Wmin和电机运行的最大角速度为WmaxStep 101, setting the minimum angular velocity of the motor to run as Wmin and the maximum angular velocity of the motor to run as Wmax ;

步骤102,设定角度补偿量delta的初始值为0,MCU控制旋转变压器采集永磁同步电机的实时电角度信号,经过解码电路和单位转换器的处理获得永磁同步电机的实时电角度theta_origin;Step 102, the initial value of the angle compensation delta is set to 0, the MCU controls the resolver to collect the real-time electrical angle signal of the permanent magnet synchronous motor, and obtains the real-time electrical angle theta_origin of the permanent magnet synchronous motor through the processing of the decoding circuit and the unit converter;

步骤103,将获得的实时电角度theta_origin输入到锁相环测速装置,MCU控制角度滤波器进行滤波处理,然后通过双积分锁相环测速模块得到电机的实时角速度W;Step 103, the obtained real-time electrical angle theta_origin is input to the phase-locked loop speed measuring device, the MCU controls the angle filter to perform filtering processing, and then the real-time angular velocity W of the motor is obtained through the double-integral phase-locked loop speed measuring module;

步骤200,计算得到角度补偿量delta和实时角速度W,并将角度补偿量delta和实时角速度W存入角度补偿寄存器中Step 200, calculate angle compensation amount delta and real-time angular velocity W, and store angle compensation amount delta and real-time angular velocity W in the angle compensation register

步骤201,MCU将通过双积分锁相环测速模块得到的电机实时角速度W分别与设定的电机运行的最小角速度为Wmin和电机运行的最大角速度为Wmax进行比较;Step 201, the MCU compares the motor real-time angular velocity W obtained by the dual-integral phase-locked loop speed measurement module with the set minimum angular velocity of the motor operation as Wmin and the maximum angular velocity of the motor operation as Wmax ;

步骤202,如果Wmin≤W≤Wmax,将实时电角度theta_origin与角度补偿量delta相加得到theta,然后将theta输入到电机矢量闭环控制装置中;Step 202, if W min ≤ W ≤ W max , add the real-time electrical angle theta_origin and the angle compensation delta to obtain theta, and then input theta into the motor vector closed-loop control device;

步骤203,MCU控制电机矢量闭环控制装置工作,对theta进行处理,输出永磁同步电机的电压的d轴分量Ud,将电压的d轴分量Ud输入到d轴电压滤波器中;Step 203, the MCU controls the motor vector closed-loop control device to work, processes theta, outputs the d-axis component Ud of the voltage of the permanent magnet synchronous motor, and inputs the d-axis component Ud of the voltage into the d-axis voltage filter;

步骤204,MCU控制d轴电压滤波器对电压的d轴分量Ud进行滤波处理,得到滤波后的电压Ud_f;Step 204, the MCU controls the d-axis voltage filter to filter the d-axis component Ud of the voltage to obtain the filtered voltage Ud_f;

如果Ud_f≠0,如图2所示,实时角速度W和电压Ud_f通过乘法器M进行相乘得到第一乘积,参数变量Kp1直接与第一乘积相乘得到第二乘积;第一乘积通过积分器S得到积分量,参数变量Ki1与积分量相乘得到第三乘积;通过加法器将第二乘积和第三乘积相加,得到角度补偿量delta,转入步骤202;If Ud_f≠0, as shown in Figure 2, the real-time angular velocity W and the voltage Ud_f are multiplied by the multiplier M to obtain the first product, and the parameter variable Kp1 is directly multiplied by the first product to obtain the second product; the first product is passed through the integrator S obtains the integral quantity, and the parameter variable Ki1 is multiplied by the integral quantity to obtain the third product; the second product and the third product are added through the adder to obtain the angle compensation delta, and then go to step 202;

如果Ud_f=0,将角度补偿量delta和实时角速度W存入角度补偿寄存器中,转入步骤102;If Ud_f=0, the angle compensation delta and the real-time angular velocity W are stored in the angle compensation register, and proceed to step 102;

如果W≤Wmin或W≥Wmax,转入步骤(5-5);If W≤Wmin or W≥Wmax , go to step (5-5);

步骤300,获得角度补偿量delta和实时角速度W的一次函数,并将一次函数中的k和ds存入角度补偿器中Step 300, obtain the linear function of angle compensation delta and real-time angular velocity W, and store k and d s in the linear function in the angle compensator

步骤301,MCU对存放在角度补偿寄存器内的角度补偿量delta和实时角速度W进行拟合,得到角度补偿量delta和实时角速度W的一次函数delta=kw+ds,角度补偿寄存器内的角度补偿量delta和实时角速度W为二维数组形式,表示为[(W1,delta1),(W2,delta2)...(Wn,deltan)],其中,k为一次函数的斜率,ds为一次函数的偏移量,Wn为电机运行最大电角速度;Step 301, the MCU fits the angle compensation delta stored in the angle compensation register and the real-time angular velocity W to obtain the linear function delta=kw+d s of the angle compensation delta and the real-time angular velocity W, and the angle compensation delta in the angle compensation register The quantity delta and the real-time angular velocity W are in the form of a two-dimensional array, expressed as [(W 1 ,delta 1 ),(W 2 ,delta 2 )...(W n ,delta n )], where k is the slope of the linear function , d s is the offset of the primary function, W n is the maximum electrical angular velocity of the motor;

步骤302,MCU将一次函数中的k和ds存入角度补偿器中。In step 302, the MCU stores k and d s in the primary function into the angle compensator.

在电机的实际运行过程中,将实时角速度W带入一次函数delta=kw+ds中,就能够得到实际的角度补偿量delta。During the actual operation of the motor, the actual angular compensation delta can be obtained by bringing the real-time angular velocity W into the linear function delta=kw+d s .

应理解,本实施例仅用于说明本发明而不用于限制本发明的范围。此外应理解,在阅读了本发明讲授的内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所附权利要求书所限定的范围。It should be understood that this embodiment is only used to illustrate the present invention but not to limit the scope of the present invention. In addition, it should be understood that after reading the teachings of the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope defined by the appended claims of the present application.

Claims (6)

1. a kind of method that the rotor angle automatic aligning based on permanent magnet synchronous motor sets device, which is characterized in that including MCU (1), angle detection device (2), phaselocked loop speed measuring device (3), motor vector closed-loop control device (4), d shaft voltage filter (5), angle compensation PI module (6), angle compensation register (7) and angular compensator (8);The angle detection device includes rotation Change depressor (21), decoding circuit (22) and unit converter (23);The MCU respectively with rotary transformer, decoding circuit, list Bit pad, phaselocked loop speed measuring device, motor vector closed-loop control device, d shaft voltage filter, angle compensation PI module, angle Degree offset registers are connected with angular compensator, and decoding circuit tests the speed with rotary transformer, unit converter, phaselocked loop dress respectively It sets and is connected with angle compensation PI module, rotary transformer is connect with motor vector closed-loop control device, d shaft voltage filter difference It is connect with motor vector closed-loop control device, angle compensation PI module and angle compensation register;Include the following steps:
(1-1) sets the minimum angular speed of motor operation as WminMaximum angular rate with motor operation is Wmax
The initial value of (1-2) set angle compensation rate delta is the reality that 0, MCU controls that rotary transformer acquires permanent magnet synchronous motor When electrical angle signal, the real-time electrical angle theta_ of permanent magnet synchronous motor is obtained by the processing of decoding circuit and unit converter origin;
The real-time electrical angle theta_origin of acquisition is input to phaselocked loop speed measuring device by (1-3), and MCU controls angular filter It is filtered, the real-time angular speed W of motor is then obtained by double integrator phaselocked loop speed measuring module;
(1-4) MCU transports the real-time angular speed W of motor obtained by double integrator phaselocked loop speed measuring module with the motor of setting respectively Capable minimum angular speed is WminMaximum angular rate with motor operation is WmaxIt is compared,
If Wmin≤W≤Wmax, angle compensation amount delta is calculated, and angle compensation amount delta and real-time angular speed W is stored in In angle compensation register, it is transferred to step (1-2),
If W≤WminOr W >=Wmax, it is transferred to step (1-5);
(1-5) MCU is fitted the angle compensation amount delta and real-time angular speed W that are stored in angle compensation register, obtains To the linear function delta=kw+d of angle compensation amount delta and real-time angular speed Ws, wherein k is the slope of linear function, ds For the offset of linear function;
(1-6) MCU is by the k and d in linear functionsIt is stored in angular compensator.
2. the method that the rotor angle automatic aligning according to claim 1 based on permanent magnet synchronous motor sets device, special Sign is, calculates angle compensation amount delta, and angle compensation amount delta and real-time angular speed W is stored in angle compensation register In specific step is as follows:
Real-time electrical angle theta_origin is added to obtain theta by (2-1) with angle compensation amount delta, then that theta is defeated Enter into motor vector closed-loop control device;
(2-2) MCU controls the work of motor vector closed-loop control device, handles theta, exports the electricity of permanent magnet synchronous motor The d axis component Ud of voltage is input in d shaft voltage filter by the d axis component Ud of pressure;
(2-3) MCU control d shaft voltage filter is filtered the d axis component Ud of voltage, obtains filtered voltage Ud_f,
If Ud_f ≠ 0, real-time angular speed W and voltage Ud_f input angle compensation PI module are calculated, obtain angle benefit The amount of repaying delta is transferred to step (2-1),
It, will be in angle compensation amount delta and real-time angular speed W deposit angle compensation register if Ud_f=0.
3. the method that the rotor angle automatic aligning according to claim 2 based on permanent magnet synchronous motor sets device, special Sign is, the angle compensation PI module includes two parametric variables of Kp1, Ki1, multiplier M, integrator S and adder, wherein Kp1 is proportional gain, and Ki1 is integral gain.
4. the method that the rotor angle automatic aligning according to claim 3 based on permanent magnet synchronous motor sets device, special Sign is, real-time angular speed W and voltage Ud_f input angle compensation PI module are calculated, angle compensation amount delta is obtained Detailed process is as follows:
(4-1) angular speed W is multiplied to obtain the first product by multiplier M with voltage Ud_f in real time, and parametric variable Kp1 is direct It is multiplied to obtain the second product with the first product;
(4-2) first product obtains integration amount by integrator S, and parametric variable Ki1 is multiplied to obtain third product with integration amount;
(4-3), by the second sum of products third product addition, obtains angle compensation amount delta by adder.
5. the method that the rotor angle automatic aligning according to claim 1 based on permanent magnet synchronous motor sets device, special Sign is that the phaselocked loop speed measuring device includes angular filter (31) and double integrator phaselocked loop speed measuring module;Angular filter It is connect with MCU with double integrator phaselocked loop speed measuring module, angular filter is surveyed with unit converter and double integrator phaselocked loop respectively Fast module connection, double integrator phaselocked loop speed measuring module are connected with angle compensation PI module.
6. the method that the rotor angle automatic aligning according to claim 1 based on permanent magnet synchronous motor sets device, special Sign is that the motor vector closed-loop control device includes motor body (41), electric machine controller circuit (42), retarder (43) With Current Voltage sensor (44);The motor body is electric with rotary transformer, d shaft voltage filter, electric machine controller respectively Road, retarder and the electrical connection of Current Voltage sensor, motor body, electric machine controller circuit, retarder and Current Voltage sensing Device is electrically connected with MCU.
CN201711439510.9A 2017-12-27 2017-12-27 Automatic rotor angle aligning device and method for permanent magnet synchronous motor Active CN108111080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711439510.9A CN108111080B (en) 2017-12-27 2017-12-27 Automatic rotor angle aligning device and method for permanent magnet synchronous motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711439510.9A CN108111080B (en) 2017-12-27 2017-12-27 Automatic rotor angle aligning device and method for permanent magnet synchronous motor

Publications (2)

Publication Number Publication Date
CN108111080A CN108111080A (en) 2018-06-01
CN108111080B true CN108111080B (en) 2019-11-05

Family

ID=62213435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711439510.9A Active CN108111080B (en) 2017-12-27 2017-12-27 Automatic rotor angle aligning device and method for permanent magnet synchronous motor

Country Status (1)

Country Link
CN (1) CN108111080B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114499328A (en) * 2022-02-23 2022-05-13 中国第一汽车股份有限公司 Motor position compensation device and method and vehicle

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004133156A (en) * 2002-10-10 2004-04-30 Olympus Corp Confocal laser scanning microscope system and program for the same
CN1838523A (en) * 2005-03-23 2006-09-27 比亚迪股份有限公司 A permanent magnet synchronous motor rotor position sensing method and position sensing device
CN102097988A (en) * 2010-12-17 2011-06-15 北京和利时电机技术有限公司 Method and system for measuring position compensation angles of permanent magnet synchronous motor rotor
CN102291067A (en) * 2011-08-19 2011-12-21 联合汽车电子有限公司 Motor position detecting circuit utilizing isolating type rotating transformer
CN102906988A (en) * 2010-05-21 2013-01-30 米其林集团总公司 Method for automatic adjustment of resolver for electric motor
CN102906989A (en) * 2010-05-21 2013-01-30 米其林集团总公司 Device and method for measuring the offset angle of a resolver in a synchronous machine
CN105162372A (en) * 2015-10-09 2015-12-16 南车株洲电力机车研究所有限公司 Method and system for correcting initial zero offset
CN106033945A (en) * 2014-11-12 2016-10-19 现代摩比斯株式会社 Estimation system for rotor information

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004133156A (en) * 2002-10-10 2004-04-30 Olympus Corp Confocal laser scanning microscope system and program for the same
CN1838523A (en) * 2005-03-23 2006-09-27 比亚迪股份有限公司 A permanent magnet synchronous motor rotor position sensing method and position sensing device
CN102906988A (en) * 2010-05-21 2013-01-30 米其林集团总公司 Method for automatic adjustment of resolver for electric motor
CN102906989A (en) * 2010-05-21 2013-01-30 米其林集团总公司 Device and method for measuring the offset angle of a resolver in a synchronous machine
CN102097988A (en) * 2010-12-17 2011-06-15 北京和利时电机技术有限公司 Method and system for measuring position compensation angles of permanent magnet synchronous motor rotor
CN102291067A (en) * 2011-08-19 2011-12-21 联合汽车电子有限公司 Motor position detecting circuit utilizing isolating type rotating transformer
CN106033945A (en) * 2014-11-12 2016-10-19 现代摩比斯株式会社 Estimation system for rotor information
CN105162372A (en) * 2015-10-09 2015-12-16 南车株洲电力机车研究所有限公司 Method and system for correcting initial zero offset

Also Published As

Publication number Publication date
CN108111080A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN101582677B (en) Motor speed sensorless control method for smooth switching compound speed identification
CN101521480B (en) Resolution method and resolver for signals of rotating transformer
CN103346726B (en) Based on the permanent-magnetic synchronous motor stator Flux Observation Method of expansion flux observer
CN103296959B (en) Permagnetic synchronous motor senseless control system and method
CN105119549A (en) Motor stator resistor recognition method
CN105610369B (en) A kind of asynchronous machine Flux Observation Method based on sliding mode observer
CN105680754B (en) A kind of rectangular axis current phasor composite controller of permagnetic synchronous motor
CN102684577B (en) Fault-tolerant control method of permanent-magnet synchronous motor driving system
CN107147343A (en) Brushless electric machine Field orientable control drive system and control method
CN108900127A (en) Consider the IPMSM low speed segment method for controlling position-less sensor of cross-coupling effect
CN104716884A (en) Device and method for correcting position of rotor of motor
CN104796053A (en) Direct current motor controller based on rotary transformer and control method of direct current motor controller
CN108111080B (en) Automatic rotor angle aligning device and method for permanent magnet synchronous motor
CN110649851B (en) Multi-parameter decoupling online identification method for asynchronous motor
CN103955143B (en) A kind of parameter tuning method of AC magnetoelectric machine robust controller
CN112636657B (en) Method for detecting initial position of surface-mounted permanent magnet synchronous motor
CN101132163B (en) DTC magnetic linkage estimation filtering method with compensation ability
CN108667370B (en) Field weakening curve tracking method and device for built-in permanent magnet synchronous motor based on self-learning
CN108111078B (en) Segmented Angle Compensation Method for Permanent Magnet Synchronous Motor
CN107863916A (en) A motor speed measurement system, method and motor controller
CN107659232A (en) The torque ripple control system and method for permagnetic synchronous motor
CN110649847A (en) A position sensorless control method of PMSLM in low speed section
CN111211720B (en) Method for setting PI (proportional integral) parameter of current loop of permanent magnet synchronous motor controller
CN116938070A (en) Calibration method and device for zero initial angle, electronic equipment and storage medium
CN115714556A (en) Permanent magnet synchronous motor voltage phase compensation and diagnosis method based on EPS

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 6 / F, Xintu building, 451 Internet of things street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee after: Zhejiang Zero run Technology Co.,Ltd.

Address before: 6 / F, Xintu building, 451 Internet of things street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee before: ZHEJIANG LEAPMOTOR TECHNOLOGY Co.,Ltd.