[go: up one dir, main page]

CN113131820B - Method and device for analyzing periodic errors of permanent magnet synchronous motor - Google Patents

Method and device for analyzing periodic errors of permanent magnet synchronous motor Download PDF

Info

Publication number
CN113131820B
CN113131820B CN202010031113.3A CN202010031113A CN113131820B CN 113131820 B CN113131820 B CN 113131820B CN 202010031113 A CN202010031113 A CN 202010031113A CN 113131820 B CN113131820 B CN 113131820B
Authority
CN
China
Prior art keywords
frequency
current
permanent magnet
synchronous motor
magnet synchronous
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
CN202010031113.3A
Other languages
Chinese (zh)
Other versions
CN113131820A (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.)
Institute of Electrical Engineering of CAS
Original Assignee
Institute of Electrical Engineering of CAS
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 Institute of Electrical Engineering of CAS filed Critical Institute of Electrical Engineering of CAS
Priority to CN202010031113.3A priority Critical patent/CN113131820B/en
Publication of CN113131820A publication Critical patent/CN113131820A/en
Application granted granted Critical
Publication of CN113131820B publication Critical patent/CN113131820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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 Ac Motors In General (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

The invention discloses a method and a device for analyzing periodic errors of a permanent magnet synchronous motor, wherein the method comprises the following steps: determining a current angle signal, a preset harmonic frequency and a preset fundamental frequency of the permanent magnet synchronous motor in a constant rotating speed state; calculating an initial sine function corresponding to the current angle signal; calculating a complex vector function corresponding to the initial sine function; generating a first target harmonic current frequency through a first coordinate transformation path and a second target harmonic current frequency through a second coordinate transformation path; and analyzing and verifying the periodic error of the permanent magnet synchronous motor through a preset periodic error analysis algorithm according to the preset fundamental wave frequency, the preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency. The periodic error analysis of the permanent magnet synchronous motor is beneficial to timely compensating the periodic error on line according to the known reason of the periodic error, so that the periodic error is improved, and the online compensation precision is improved.

Description

一种永磁同步电机周期性误差的分析方法及装置A method and device for analyzing periodic error of permanent magnet synchronous motor

技术领域technical field

本发明涉及永磁同步电机技术领域,具体涉及一种永磁同步电机周期性误差的分析方法及装置。The invention relates to the technical field of permanent magnet synchronous motors, in particular to a method and device for analyzing periodic errors of permanent magnet synchronous motors.

背景技术Background technique

同步电机为了实现能量的转换,就需要设置一个直流磁场,通过该直流磁场产生直流电流,称为电机的励磁电流,根据该励磁电流的供给方式,凡是从其它电源获得励磁电流的发电机,称为永磁同步电机。In order to realize the energy conversion of the synchronous motor, a DC magnetic field needs to be set up, and a DC current is generated through the DC magnetic field, which is called the excitation current of the motor. According to the supply method of the excitation current, any generator that obtains the excitation current from other power sources is called It is a permanent magnet synchronous motor.

在永磁同步电机的磁场定向控制中,电机转子磁极位置的信号检测信息是电机控制系统的重要反馈信息,实时反映了电机的运动状态,直接影响电机控制系统性能。由于旋转变压器(Resolver)作为一种常见的位置传感器,鲁棒性好,可靠性高,可以抑制共模噪声,也适用于恶劣条件的工作环境,因此,旋转变压器被广泛应用于检测永磁同步电机的电机转子磁极位置信号。但是,旋转变压器自身存在非线性特性,以及旋转变压器在机械安装过程中存在转子偏心、旋转正余弦绕组非正交、调理电路非对称等非理想因素,导致电机转子磁极位置信号不可避免地会出现不同频次的周期性误差,该周期性误差影响永磁同步电机的控制性能,因此,对永磁同步电机的周期性误差进行系统分析至关重要。In the field-oriented control of the permanent magnet synchronous motor, the signal detection information of the magnetic pole position of the motor rotor is an important feedback information of the motor control system, which reflects the motion state of the motor in real time and directly affects the performance of the motor control system. As a common position sensor, resolver (Resolver) has good robustness, high reliability, can suppress common mode noise, and is also suitable for working environments with harsh conditions. Therefore, resolvers are widely used in the detection of permanent magnet synchronization. Motor rotor pole position signal for the motor. However, the resolver itself has nonlinear characteristics, and the resolver has non-ideal factors such as rotor eccentricity, non-orthogonal rotating sine and cosine windings, and asymmetric conditioning circuits during the mechanical installation process of the resolver, which cause the rotor magnetic pole position signal of the motor to inevitably appear The periodic error of different frequencies affects the control performance of the permanent magnet synchronous motor. Therefore, it is very important to systematically analyze the periodic error of the permanent magnet synchronous motor.

目前,在现有技术中仅仅提到旋转变压器在检测电机转子磁极位置信号的过程中会存在周期性误差,通过旋转变压器检测的电机转子磁极位置信号和基于正弦变换得到的周期性误差对应的幅值信号,对周期性误差进行在线补偿,但是由于没有针对性地考虑旋转变压器在具体应用中产生周期性误差的原因,可能最终导致在线补偿周期性误差的结果不够精确。At present, it is only mentioned in the prior art that there will be periodic errors in the process of detecting the magnetic pole position signal of the motor rotor by the resolver. The value signal is used to compensate the periodic error online. However, because the reason for the periodic error generated by the resolver in the specific application is not considered in a targeted manner, the result of the online compensation of the periodic error may be inaccurate.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供了一种永磁同步电机周期性误差的分析方法,以解决现有技术中由于没有针对性地考虑旋转变压器在具体应用中产生周期性误差的原因,可能最终导致在线补偿周期性误差的结果不够精确问题。In view of this, the embodiment of the present invention provides a method for analyzing the periodic error of a permanent magnet synchronous motor, so as to solve the reason that the periodic error generated by the resolver in the specific application is not considered in the prior art. The result of online compensation of periodic errors is not accurate enough.

根据第一方面,本发明实施例提供了一种永磁同步电机周期性误差的分析方法,包括如下步骤:According to a first aspect, an embodiment of the present invention provides a method for analyzing the periodic error of a permanent magnet synchronous motor, including the following steps:

确定永磁同步电机在恒定转速状态下的当前角度信号、预设谐波频次和预设基波频率;Determine the current angle signal, the preset harmonic frequency and the preset fundamental frequency of the permanent magnet synchronous motor at a constant speed;

根据所述当前角度信号、所述预设谐波频次和所述预设基波频率,计算所述当前角度信号对应的初始正弦函数;calculating an initial sine function corresponding to the current angle signal according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency;

在所述当前角度信号进行坐标变换过程中,计算所述初始正弦函数对应的复矢量函数;During the coordinate transformation process of the current angle signal, the complex vector function corresponding to the initial sine function is calculated;

根据所述复矢量函数和所述预设基波频率,通过第一坐标变换路径产生第一目标谐波电流频率和通过第二坐标变换路径产生第二目标谐波电流频率;generating a first target harmonic current frequency through a first coordinate transformation path and generating a second target harmonic current frequency through a second coordinate transformation path according to the complex vector function and the preset fundamental frequency;

根据所述预设基波频率、预设谐波频次、所述第一目标谐波电流频率和所述第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差。According to the preset fundamental frequency, the preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency, the period of the permanent magnet synchronous motor is analyzed and verified by a preset periodic error analysis algorithm sexual error.

结合第一方面,在第一方面第一实施方式中,所述确定永磁同步电机在恒定转速状态下的当前角度信号的步骤包括:With reference to the first aspect, in the first embodiment of the first aspect, the step of determining the current angle signal of the permanent magnet synchronous motor in a state of constant rotational speed includes:

确定永磁同步电机在各种不同转速状态下的初始角度信号;Determine the initial angle signal of the permanent magnet synchronous motor under various rotational speed states;

根据所述初始角度信号,确定永磁同步电机在恒定转速状态下的当前角度信号。According to the initial angle signal, the current angle signal of the permanent magnet synchronous motor in the state of constant rotational speed is determined.

结合第一方面第二实施方式,在第一方面第二实施方式中,所述根据所述初始角度信号,确定永磁同步电机在恒定转速状态下的当前角度信号通过如下公式计算:In combination with the second embodiment of the first aspect, in the second embodiment of the first aspect, the determination of the current angle signal of the permanent magnet synchronous motor in a constant rotational speed state according to the initial angle signal is calculated by the following formula:

Figure BDA0002364326540000031
Figure BDA0002364326540000031

Figure BDA0002364326540000032
Figure BDA0002364326540000032

θe=K·θrdc,K=np/prdc θ e =K·θ rdc , K=n p /p rdc

其中,eh为所述初始角度信号中的谐波,k为谐波频次,ak为k次谐波幅值和

Figure BDA0002364326540000033
为k次谐波相位,θrdc为初始角度信号,ωrdc为角频率;θe为当前角度信号,np为永磁同步电机极对数,prdc为旋变极对数,K为永磁同步电机极对数与旋变极对数的比值。Among them, e h is the harmonic in the initial angle signal, k is the harmonic frequency, a k is the k-th harmonic amplitude and
Figure BDA0002364326540000033
is the k-th harmonic phase, θ rdc is the initial angle signal, ω rdc is the angular frequency; θ e is the current angle signal, n p is the number of pole pairs of the permanent magnet synchronous motor, p rdc is the number of resolver pole pairs, and K is the permanent The ratio of the number of pole pairs to the number of resolver pole pairs for a magnetic synchronous motor.

结合第一方面,在第一方面第三实施方式中,所述根据所述当前角度信号、所述预设谐波频次和所述预设基波频率,计算所述当前角度信号对应的初始正弦函数通过如下公式计算:With reference to the first aspect, in the third embodiment of the first aspect, the initial sine corresponding to the current angle signal is calculated according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency The function is calculated by the following formula:

Figure BDA0002364326540000034
Figure BDA0002364326540000034

其中,

Figure BDA0002364326540000041
Jnk)为调频指数为λk的n阶第一类贝塞尔函数,
Figure BDA0002364326540000042
θe为所述当前角度信号,ωe为所述预设基波频率,λ为所述预设谐波频次,λk为所述永磁同步电机的正弦扰动幅值。in,
Figure BDA0002364326540000041
J nk ) is the n-th order Bessel function of the first kind with a frequency modulation index of λ k ,
Figure BDA0002364326540000042
θ e is the current angle signal, ω e is the preset fundamental frequency, λ is the preset harmonic frequency, and λ k is the sinusoidal disturbance amplitude of the permanent magnet synchronous motor.

结合第一方面,在第一方面第四实施方式中,在所述当前角度信号进行坐标变换过程中,计算所述初始正弦函数对应的复矢量函数的公式如下:With reference to the first aspect, in the fourth embodiment of the first aspect, during the coordinate transformation process of the current angle signal, the formula for calculating the complex vector function corresponding to the initial sine function is as follows:

J-nk)=(-1)nJnk)J -nk )=(-1) n J nk )

Figure BDA0002364326540000046
Figure BDA0002364326540000046

Figure BDA0002364326540000043
Figure BDA0002364326540000043

Figure BDA0002364326540000044
Figure BDA0002364326540000044

其中,θe为所述当前角度信号,ωe为所述预设基波频率,λ为所述预设谐波频次,λk为所述永磁同步电机的正弦扰动幅值,

Figure BDA0002364326540000045
为所述复矢量函数。Wherein, θ e is the current angle signal, ω e is the preset fundamental frequency, λ is the preset harmonic frequency, λ k is the sinusoidal disturbance amplitude of the permanent magnet synchronous motor,
Figure BDA0002364326540000045
is the complex vector function.

结合第一方面,在第一方面第五实施方式中,所述根据预设基波频率、预设谐波频次、所述第一目标谐波电流频率和所述第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差通过如下公式计算:With reference to the first aspect, in a fifth implementation manner of the first aspect, according to the preset fundamental frequency, the preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency, Through the analysis and verification of the preset periodic error analysis algorithm, the periodic error of the permanent magnet synchronous motor is calculated by the following formula:

令所述预设基波频率为ωe,令预设谐波频次λ为0.5,令第一目标谐波电流频率为ω2=λωe=0.5ωe,令第二目标谐波电流频率为ω1=(2-λ)ωe=1.5ωe,以所述永磁同步电机的所述当前角度信号为0.5ωe单频扰动,Let the preset fundamental frequency be ω e , let the preset harmonic frequency λ be 0.5, let the first target harmonic current frequency be ω 2 =λω e =0.5ω e , let the second target harmonic current frequency be ω 1 =(2-λ)ω e =1.5ω e , and the current angle signal of the permanent magnet synchronous motor is a single-frequency disturbance of 0.5ω e ,

Figure BDA0002364326540000051
Figure BDA0002364326540000051

其中,a1.5为1.5次电流幅值,a1为1次电流幅值,a0.5为0.5次电流幅值,kp为PI调节器的比例,ki为PI调节器的积分系数,Za为A相等效阻抗,KPI为PI调节器的等效增益,

Figure BDA0002364326540000052
为对应频率分量的相位,
Figure BDA0002364326540000053
ωr1为PI调节器对应输入信号的频率,ωr2为负载对应输入信号的频率,Us为dq坐标系相电压幅值,当电流响应进入稳态后,PI调节器的直流输入分量为零,0.5ωe频次电流谐波由udq直流分量经旋转矢量
Figure BDA0002364326540000054
产生。Among them, a 1.5 is the 1.5th order current amplitude, a 1 is the 1st order current amplitude, a 0.5 is the 0.5th order current amplitude, k p is the ratio of the PI regulator, ki is the integral coefficient of the PI regulator, Z a is the equivalent impedance of phase A, K PI is the equivalent gain of the PI regulator,
Figure BDA0002364326540000052
is the phase of the corresponding frequency component,
Figure BDA0002364326540000053
ω r1 is the frequency of the input signal corresponding to the PI regulator, ω r2 is the frequency of the input signal corresponding to the load, and U s is the phase voltage amplitude of the dq coordinate system. When the current response enters a steady state, the DC input component of the PI regulator is zero. , the 0.5ω e frequency current harmonics are rotated by the u dq DC component via the rotation vector
Figure BDA0002364326540000054
produce.

结合第一方面,在第一方面第六实施方式中,所述根据预设基波频率、预设谐波频次、所述第一目标谐波电流频率和所述第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差还通过如下公式计算:With reference to the first aspect, in a sixth implementation manner of the first aspect, according to the preset fundamental frequency, the preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency, Through the analysis and verification of the preset periodic error analysis algorithm, the periodic error of the permanent magnet synchronous motor is also calculated by the following formula:

令所述预设基波频率为ωe,令预设谐波频次λ为0.5,令第一目标谐波电流频率为ω2=λωe=0.5ωe,令第二目标谐波电流频率为ω1=(2-λ)ωe=1.5ωe,以所述永磁同步电机的所述当前角度信号为0.5ωe单频扰动,Let the preset fundamental frequency be ω e , let the preset harmonic frequency λ be 0.5, let the first target harmonic current frequency be ω 2 =λω e =0.5ω e , let the second target harmonic current frequency be ω 1 =(2-λ)ω e =1.5ω e , and the current angle signal of the permanent magnet synchronous motor is a single-frequency disturbance of 0.5ω e ,

Figure BDA0002364326540000061
Figure BDA0002364326540000061

其中,kir1<<kp,a1.5为1.5次电流幅值,a1为1次电流幅值,a0.5为0.5次电流幅值,λk为所述永磁同步电机的正弦扰动幅值,kp为PI调节器的比例。Wherein, k ir1 <<k p , a 1.5 is the 1.5th order current amplitude, a 1 is the 1st order current amplitude, a 0.5 is the 0.5th order current amplitude, λ k is the sine of the permanent magnet synchronous motor The perturbation amplitude, k p is the ratio of the PI regulator.

根据第二方面,本发明实施例提供一种永磁同步电机周期性误差的分析装置,包括:According to a second aspect, an embodiment of the present invention provides a device for analyzing the periodic error of a permanent magnet synchronous motor, including:

确定模块,用于确定永磁同步电机在恒定转速状态下的当前角度信号、预设谐波频次和预设基波频率;A determination module, used to determine the current angle signal, the preset harmonic frequency and the preset fundamental frequency of the permanent magnet synchronous motor in a state of constant speed;

第一计算模块,用于根据所述当前角度信号、所述预设谐波频次和所述预设基波频率,计算所述当前角度信号对应的初始正弦函数;a first calculation module, configured to calculate the initial sine function corresponding to the current angle signal according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency;

第二计算模块,用于在所述当前角度信号进行坐标变换过程中,计算所述初始正弦函数对应的复矢量函数;a second calculation module, configured to calculate the complex vector function corresponding to the initial sine function during the coordinate transformation process of the current angle signal;

目标谐波电流产生模块,用于根据所述复矢量函数和所述预设基波频率,通过第一坐标变换路径产生第一目标谐波电流频率和通过第二坐标变换路径产生第二目标谐波电流频率;A target harmonic current generation module is configured to generate a first target harmonic current frequency through a first coordinate transformation path and a second target harmonic current through a second coordinate transformation path according to the complex vector function and the preset fundamental frequency. wave current frequency;

分析验证模块,用于根据所述预设基波频率、预设谐波频次、所述第一目标谐波电流频率和所述第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差。An analysis and verification module for analyzing the preset periodic error analysis algorithm according to the preset fundamental frequency, preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency Verify the periodic error of a permanent magnet synchronous motor.

根据第三方面,本发明实施例提供一种永磁同步电机控制系统,包括:According to a third aspect, an embodiment of the present invention provides a permanent magnet synchronous motor control system, including:

第一轴向电流环PI调节器,用于接收第一轴向电流信号,并对第一轴向电流信号进行PI调节控制输出第一轴向电压信号;The first axial current loop PI regulator is used for receiving the first axial current signal, and performing PI adjustment and control on the first axial current signal to output the first axial voltage signal;

第二轴向电流环PI调节器,用于接收第二轴向电流信号,并对第二轴向电流信号进行PI调节控制输出第二轴向电压信号;The second axial current loop PI regulator is used for receiving the second axial current signal, and performing PI adjustment and control on the second axial current signal to output the second axial voltage signal;

第一坐标变换器,分别与所述第一轴向电流环PI调节器和所述第二轴向电流环PI调节器连接;a first coordinate converter, respectively connected to the first axial current loop PI regulator and the second axial current loop PI regulator;

PWM调制器,与所述第一坐标变换器连接;a PWM modulator, connected to the first coordinate converter;

逆变器,与所述PWM调制器连接;an inverter, connected with the PWM modulator;

第二坐标变换器,分别与所述第一轴向电流环PI调节器、所述第二轴向电流环PI调节器和所述第一坐标变换器连接;a second coordinate converter, respectively connected to the first axial current loop PI regulator, the second axial current loop PI regulator and the first coordinate converter;

电流传感器,分别与所述第二坐标变换器和所述逆变器连接;a current sensor, connected to the second coordinate converter and the inverter respectively;

永磁同步电机,与所述电流传感器连接;a permanent magnet synchronous motor, connected with the current sensor;

旋转变压器,与所述永磁同步电机连接;a rotary transformer, connected with the permanent magnet synchronous motor;

角度正余弦变换器,与所述旋转变压器连接;an angle sine-cosine converter, connected with the resolver;

处理器,与永磁同步电机连接,所述处理器包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行第一方面或第一方面任一实施方式中所述的永磁同步电机周期性误差的分析方法的步骤。a processor connected to the permanent magnet synchronous motor, the processor including a computer program stored on a computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, cause the computer to execute The steps of the method for analyzing the periodic error of the permanent magnet synchronous motor described in the first aspect or any embodiment of the first aspect.

根据第四方面,本发明实施例提供一种计算机设备,包括:存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而使所述计算机执行第一方面或第一方面任一实施方式中所述的永磁同步电机周期性误差的分析方法的步骤。According to a fourth aspect, an embodiment of the present invention provides a computer device, including: a memory and a processor, the memory and the processor are connected in communication with each other, the memory stores computer instructions, and the processor passes Executing the computer instructions causes the computer to execute the steps of the method for analyzing the periodic error of a permanent magnet synchronous motor described in the first aspect or any embodiment of the first aspect.

本发明实施例技术方案,具有如下优点:The technical solution of the embodiment of the present invention has the following advantages:

本发明提供了一种永磁同步电机周期性误差的分析方法及装置,其中方法包括:确定永磁同步电机在恒定转速状态下的当前角度信号、预设谐波频次和预设基波频率;根据当前角度信号、预设谐波频次和预设基波频率,计算当前角度信号对应的初始正弦函数;在当前角度信号进行坐标变换过程中,计算初始正弦函数对应的复矢量函数;根据复矢量函数和预设基波频率,通过第一坐标变换路径产生第一目标谐波电流频率和通过第二坐标变换路径产生第二目标谐波电流频率;根据预设基波频率、预设谐波频次、第一目标谐波电流频率和第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差。通过永磁同步电机周期性误差分析,有利于根据获知的该周期性误差存在的原因,便于及时进行在线补偿周期性误差,进而改善周期性误差,提高在线补偿精度。The invention provides a method and device for analyzing the periodic error of a permanent magnet synchronous motor, wherein the method includes: determining a current angle signal, a preset harmonic frequency and a preset fundamental frequency of the permanent magnet synchronous motor under a constant rotational speed state; According to the current angle signal, the preset harmonic frequency and the preset fundamental frequency, the initial sine function corresponding to the current angle signal is calculated; during the coordinate transformation process of the current angle signal, the complex vector function corresponding to the initial sine function is calculated; according to the complex vector function and the preset fundamental frequency, the first target harmonic current frequency is generated through the first coordinate transformation path and the second target harmonic current frequency is generated through the second coordinate transformation path; according to the preset fundamental frequency, preset harmonic frequency , the first target harmonic current frequency and the second target harmonic current frequency, and the periodic error of the permanent magnet synchronous motor is analyzed and verified by a preset periodic error analysis algorithm. Through the analysis of the periodic error of the permanent magnet synchronous motor, it is beneficial to timely compensate the periodic error online according to the known cause of the periodic error, thereby improving the periodic error and improving the accuracy of the online compensation.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the specific embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description The drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

图1为本发明实施例中永磁同步电机周期性误差的分析方法的流程图;Fig. 1 is the flow chart of the analysis method of the periodic error of permanent magnet synchronous motor in the embodiment of the present invention;

图2为本发明实施例中永磁同步电机角度畸变与电流畸变频率成分对应关系示意图;2 is a schematic diagram of the corresponding relationship between the angle distortion of the permanent magnet synchronous motor and the frequency component of the current distortion in the embodiment of the present invention;

图3为本发明实施例中永磁同步电机谐波电流分析框图;Fig. 3 is the harmonic current analysis block diagram of the permanent magnet synchronous motor in the embodiment of the present invention;

图4为本发明实施例中电流谐波含量分析结果示意图;4 is a schematic diagram of the analysis result of the current harmonic content in the embodiment of the present invention;

图5为本发明实施例中永磁同步电机周期性误差的分析装置的结构框图;Fig. 5 is the structural block diagram of the analyzing device of the periodic error of permanent magnet synchronous motor in the embodiment of the present invention;

图6为本发明实施例中永磁同步电机控制系统的结构示意图;6 is a schematic structural diagram of a permanent magnet synchronous motor control system in an embodiment of the present invention;

图7为本发明实施例中计算机设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of a computer device in an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

实施例1Example 1

本发明实施例提供了一种永磁同步电机周期性误差的分析方法,如图1所示,包括如下步骤:An embodiment of the present invention provides a method for analyzing the periodic error of a permanent magnet synchronous motor, as shown in FIG. 1 , including the following steps:

步骤S1:确定永磁同步电机在恒定转速状态下的当前角度信号、预设谐波频次和预设基波频率。此处的恒定转速状态为永磁同步电机的稳定状态,即永磁同步电机在稳速状态下的工作状态。具体地,上述中的当前角度信号为永磁同步电机的当前电角度,该当前电角度是通过旋转变压器检测出的电角度,其表示电机转子磁极位置信号,该当前电角度可以用θe表示。预设谐波频次,为永磁同步电机的频次,可以用λ表示,该预设谐波频次为假设的一个谐波频次,例如:λ可以代表一次谐波、二次谐波以及三次谐波等。预设基波频率可以为预设频率,也是一个假设的谐波频率,可以用ωe表示。Step S1: Determine the current angle signal, the preset harmonic frequency and the preset fundamental frequency of the permanent magnet synchronous motor in a state of constant rotational speed. The constant speed state here is the steady state of the permanent magnet synchronous motor, that is, the working state of the permanent magnet synchronous motor in the steady speed state. Specifically, the current angle signal in the above is the current electrical angle of the permanent magnet synchronous motor, and the current electrical angle is the electrical angle detected by the resolver, which represents the rotor magnetic pole position signal of the motor, and the current electrical angle can be represented by θ e . The preset harmonic frequency is the frequency of the permanent magnet synchronous motor, which can be represented by λ. The preset harmonic frequency is an assumed harmonic frequency. For example, λ can represent the first harmonic, the second harmonic and the third harmonic. Wait. The preset fundamental frequency can be a preset frequency, which is also a hypothetical harmonic frequency, which can be represented by ω e .

在一具体实施例中,上述步骤S1在执行的过程中,可具体包括如下步骤:In a specific embodiment, in the process of executing the above step S1, the following steps may be specifically included:

第一步:确定永磁同步电机在各种不同转速状态下的初始角度信号。The first step: determine the initial angle signal of the permanent magnet synchronous motor under various rotational speed states.

此处的各种不同转速包括永磁同步电机在高速状态、稳速状态以及低速状态运行情况的初始角度信号,该初始角度信号可以用θrdc表示。The various rotational speeds here include the initial angle signals of the permanent magnet synchronous motor in the high-speed state, the steady-speed state, and the low-speed state, and the initial angle signal can be represented by θ rdc .

第二步:根据初始角度信号,确定永磁同步电机在恒定转速状态下的当前角度信号。Step 2: According to the initial angle signal, determine the current angle signal of the permanent magnet synchronous motor in the state of constant speed.

具体地,根据初始角度信号,确定永磁同步电机在恒定转速状态下的当前角度信号通过如下公式计算:Specifically, according to the initial angle signal, it is determined that the current angle signal of the permanent magnet synchronous motor in the state of constant speed is calculated by the following formula:

Figure BDA0002364326540000101
Figure BDA0002364326540000101

Figure BDA0002364326540000102
Figure BDA0002364326540000102

θe=K·θrdc,K=np/prdc……………………………(2);θ e =K·θ rdc , K=n p / prdc …………………………(2);

其中,eh为初始角度信号中的谐波,k为谐波频次,ak为k次谐波幅值和

Figure BDA0002364326540000103
为k次谐波相位,θrdc为初始角度信号,ωrdc为角频率;θe为当前角度信号,np为永磁同步电机极对数,prdc为旋变极对数,K为永磁同步电机极对数与旋变极对数的比值。因此,根据初始角度信号θrdc,可以确定永磁同步电机在恒定转速状态下的当前角度信号θe。Among them, e h is the harmonic in the initial angle signal, k is the harmonic frequency, a k is the k-th harmonic amplitude and
Figure BDA0002364326540000103
is the k-th harmonic phase, θ rdc is the initial angle signal, ω rdc is the angular frequency; θ e is the current angle signal, n p is the number of pole pairs of the permanent magnet synchronous motor, p rdc is the number of resolver pole pairs, and K is the permanent The ratio of the number of pole pairs to the number of resolver pole pairs for a magnetic synchronous motor. Therefore, according to the initial angle signal θ rdc , the current angle signal θ e of the permanent magnet synchronous motor in the state of constant rotational speed can be determined.

步骤S2:根据当前角度信号、预设谐波频次和预设基波频率,计算当前角度信号对应的初始正弦函数。Step S2: Calculate the initial sine function corresponding to the current angle signal according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency.

在一具体实施例中,上述步骤S2在执行的过程中,可通过如下公式计算:In a specific embodiment, during the execution of the above step S2, it can be calculated by the following formula:

Figure BDA0002364326540000111
Figure BDA0002364326540000111

其中,

Figure BDA0002364326540000112
Jnk)为调频指数为λk的n阶第一类贝塞尔函数,
Figure BDA0002364326540000113
θe为当前角度信号,ωe为预设基波频率,λ为预设谐波频率,λk为永磁同步电机的正弦扰动幅值。因此,上述中的sinθe为初始正弦函数。in,
Figure BDA0002364326540000112
J nk ) is the n-th order Bessel function of the first kind with a frequency modulation index of λ k ,
Figure BDA0002364326540000113
θ e is the current angle signal, ω e is the preset fundamental frequency, λ is the preset harmonic frequency, and λ k is the sinusoidal disturbance amplitude of the permanent magnet synchronous motor. Therefore, sinθ e in the above is the initial sine function.

步骤S3:在当前角度信号进行坐标变换过程中,计算初始正弦函数对应的复矢量函数。Step S3: During the coordinate transformation process of the current angle signal, the complex vector function corresponding to the initial sine function is calculated.

在一具体实施例中,上述步骤S3在执行的过程中,通过如下公式计算:In a specific embodiment, in the process of executing the above step S3, it is calculated by the following formula:

J-nk)=(-1)nJnk)………………………………………………(4);J -nk )=(-1) n J nk )………………………………………………(4);

Figure BDA0002364326540000114
Figure BDA0002364326540000114

Figure BDA0002364326540000115
Figure BDA0002364326540000115

Figure BDA0002364326540000116
Figure BDA0002364326540000116

其中,θe为当前角度信号,ωe为预设基波频率,λ为预设谐波频次,λk为永磁同步电机的正弦扰动幅值,

Figure BDA0002364326540000117
为复矢量函数。上述公式(6)是对上述公式(5)进行电角度正弦值的级数分析,才进一步得到上式(6)对应的复矢量函数。Among them, θ e is the current angle signal, ω e is the preset fundamental frequency, λ is the preset harmonic frequency, λ k is the sinusoidal disturbance amplitude of the permanent magnet synchronous motor,
Figure BDA0002364326540000117
is a complex vector function. The above formula (6) is based on the series analysis of the electrical angle sine value of the above formula (5), and then the complex vector function corresponding to the above formula (6) is further obtained.

步骤S4:根据复矢量函数和预设基波频率,通过第一坐标变换路径产生第一目标谐波电流频率和通过第二坐标变换路径产生第二目标谐波电流频率。其中第一坐标变换为park变换,第二坐标变换为ipark变换。Step S4: According to the complex vector function and the preset fundamental frequency, the first target harmonic current frequency is generated through the first coordinate transformation path and the second target harmonic current frequency is generated through the second coordinate transformation path. The first coordinate transformation is park transformation, and the second coordinate transformation is ipark transformation.

如图2所示,预设基波频率为ωe,复矢量函数为上式(6),第一坐标变换路径在图2中为①,第二坐标变换路径在图2中为②,经过第一坐标变换路径产生的第一目标谐波电流频率为ω2和经过第二坐标变换路径产生的第二目标谐波电流频率为ω1,其中,ω1=(2-λ)ωe2=λωeAs shown in FIG. 2 , the preset fundamental frequency is ω e , the complex vector function is the above formula (6), the first coordinate transformation path is ① in FIG. 2 , and the second coordinate transformation path is ② in FIG. 2 . The frequency of the first target harmonic current generated by the first coordinate transformation path is ω 2 and the frequency of the second target harmonic current generated by the second coordinate transformation path is ω 1 , where ω 1 =(2-λ)ω e , ω 2 =λω e .

通过前述公式分析,因旋转变压器自身存在非线性特性,以及旋转变压器在机械安装过程中存在转子偏心、旋转正余弦绕组非正交、调理电路非对称等非理想因素导致的当前电角度在坐标变换时的表达形式为上式(6)所示的复矢量函数,鉴于J1(λk)、J-1k)…<<J0k),谐波电流的主要成分由基频电流在Park变换和Ipark变换分别作用于基频旋转矢量和谐波旋转矢量组成,考虑位置信号中为单频扰动,分别对应图2中的第一坐标变换路径①和第二坐标变换路径②,而谐波电流经坐标变换产生的其他频次的谐波可以忽略不计,即电角度信号中频率为λωe的谐波信号导致三相电流的谐波频率主要为λωe和(2-λ)ωeThrough the analysis of the above formula, due to the nonlinear characteristics of the resolver itself, and the non-ideal factors such as rotor eccentricity, non-orthogonal rotating sine and cosine windings, and asymmetry of the conditioning circuit during the mechanical installation of the resolver, the current electrical angle is in the coordinate transformation. When , the expression form is the complex vector function shown in the above formula (6). In view of J 1 (λk), J -1k )...<<J 0k ), the main component of the harmonic current is determined by the fundamental frequency The current acts on the fundamental frequency rotation vector and the harmonic rotation vector in the Park transformation and the Ipark transformation, respectively. Considering the single-frequency disturbance in the position signal, it corresponds to the first coordinate transformation path ① and the second coordinate transformation path ② in Figure 2, respectively. However, the harmonics of other frequencies generated by the coordinate transformation of the harmonic current can be ignored, that is, the harmonic signal with the frequency λω e in the electrical angle signal causes the harmonic frequencies of the three-phase current to be mainly λω e and (2-λ)ω e .

如图3所示,为谐波电流分析框图,忽略开关管非线性和电机非对称等因素,根据图2中的第一坐标变换路径和第二坐标变换路径,可以得到谐波电流的定量表达。然后,在此基础上可以进一步基于下述的预设周期性误差分析算法分析验证永磁同步电机周期性误差。As shown in Figure 3, it is a block diagram of harmonic current analysis, ignoring factors such as switching tube nonlinearity and motor asymmetry, according to the first coordinate transformation path and the second coordinate transformation path in Figure 2, the quantitative expression of harmonic current can be obtained . Then, on this basis, the periodic error of the permanent magnet synchronous motor can be further analyzed and verified based on the following preset periodic error analysis algorithm.

步骤S5:根据预设基波频率、预设谐波频次、第一目标谐波电流频率和第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差。Step S5: According to the preset fundamental frequency, the preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency, analyze and verify the periodic error of the permanent magnet synchronous motor through a preset periodic error analysis algorithm.

在一具体实施例中,上述步骤S5在执行的过程中,可通过如下公式计算:In a specific embodiment, in the process of executing the above step S5, it can be calculated by the following formula:

令预设基波频率为ωe,令预设谐波频次λ为0.5,令第一目标谐波电流频率为ω2=λωe=0.5ωe,令第二目标谐波电流频率为ω1=(2-λ)ωe=1.5ωe,以永磁同步电机的当前角度信号为0.5ωe单频扰动,Let the preset fundamental frequency be ω e , let the preset harmonic frequency λ be 0.5, let the first target harmonic current frequency be ω 2 =λω e =0.5ω e , let the second target harmonic current frequency be ω 1 =(2-λ)ω e =1.5ω e , taking the current angle signal of the permanent magnet synchronous motor as 0.5ω e single-frequency disturbance,

Figure BDA0002364326540000131
Figure BDA0002364326540000131

Figure BDA0002364326540000132
Figure BDA0002364326540000132

其中,a1.5为1.5次电流幅值,a1为1次电流幅值,a0.5为0.5次电流幅值,kp为PI调节器的比例,ki为PI调节器的积分系数,Za为A相等效阻抗,KPI为PI调节器的等效增益,

Figure BDA0002364326540000133
为对应频率分量的相位,
Figure BDA0002364326540000134
为第一频率成分对应PI调节器与阻抗的第一相角差,
Figure BDA0002364326540000135
为第二频率成分对应PI调节器与阻抗的第二相角差,
Figure BDA0002364326540000136
为第一频率成分对应PI调节器与阻抗的第三相角差,
Figure BDA0002364326540000137
为第一频率成分对应PI调节器与阻抗的第四相角差,由负载阻抗角和PI调节器等效阻抗角之差决定。
Figure BDA0002364326540000138
ωr1为PI调节器对应输入信号的频率,ωr2为负载对应输入信号的频率,Us为dq坐标系相电压幅值,当电流响应进入稳态后,PI调节器的直流输入分量为零,0.5ωe频次电流谐波由udq直流分量经旋转矢量
Figure BDA0002364326540000139
产生。Among them, a 1.5 is the 1.5th order current amplitude, a 1 is the 1st order current amplitude, a 0.5 is the 0.5th order current amplitude, k p is the ratio of the PI regulator, ki is the integral coefficient of the PI regulator, Z a is the equivalent impedance of phase A, K PI is the equivalent gain of the PI regulator,
Figure BDA0002364326540000133
is the phase of the corresponding frequency component,
Figure BDA0002364326540000134
is the first phase angle difference between the PI regulator and the impedance corresponding to the first frequency component,
Figure BDA0002364326540000135
is the second phase angle difference between the PI regulator and the impedance corresponding to the second frequency component,
Figure BDA0002364326540000136
is the third phase angle difference between the PI regulator and the impedance corresponding to the first frequency component,
Figure BDA0002364326540000137
The fourth phase angle difference between the PI regulator and the impedance corresponding to the first frequency component is determined by the difference between the load impedance angle and the equivalent impedance angle of the PI regulator.
Figure BDA0002364326540000138
ω r1 is the frequency of the input signal corresponding to the PI regulator, ω r2 is the frequency of the input signal corresponding to the load, and U s is the phase voltage amplitude of the dq coordinate system. When the current response enters a steady state, the DC input component of the PI regulator is zero. , the 0.5ω e frequency current harmonics are rotated by the u dq DC component via the rotation vector
Figure BDA0002364326540000139
produce.

以电机转子磁极位置信号谐波为0.5ωe单频扰动为例,0.5ωe频次电流谐波和1.5ωe频次电流谐波分别由图2中的路径①和②产生。其中,1.5ωe频次电流谐波的幅值表达式满足上述等式(7),0.5ωe频次谐波电流谐波的幅值表达式满足上式等式(8),对于表达式(7)等式左边第一项为基频电流由路径②产生的1.5ωe频次谐波电流成分,第二项为1.5ωe频次谐波电流经路径①产生的1.5ωe频次谐波电流成分,等式右边为总的1.5ωe频次谐波电流。Taking the motor rotor magnetic pole position signal harmonic as a 0.5ωe single-frequency disturbance as an example, the 0.5ωe frequency current harmonic and the 1.5ωe frequency current harmonic are generated by paths ① and ② in Figure 2, respectively. Among them, the amplitude expression of the 1.5ωe frequency current harmonics satisfies the above equation (7), the amplitude expression of the 0.5ωe frequency current harmonics satisfies the above equation (8), for the expression (7) The first term on the left side of the equation is the 1.5ωe frequency harmonic current component of the fundamental frequency current generated by path ②, and the second term is the 1.5ωe frequency harmonic current component generated by the 1.5ωe frequency harmonic current through path ①. The right side of the equation is Total 1.5ωe frequency harmonic current.

在一具体实施例中,上述步骤S5在执行的过程中还通过如下公式计算:In a specific embodiment, the above-mentioned step S5 is also calculated by the following formula during the execution process:

令预设基波频率为ωe,令预设谐波频次λ为0.5,令第一目标谐波电流频率为ω2=λωe=0.5ωe,令第二目标谐波电流频率为ω1=(2-λ)ωe=1.5ωe,以永磁同步电机的当前角度信号为0.5ωe单频扰动,Let the preset fundamental frequency be ω e , let the preset harmonic frequency λ be 0.5, let the first target harmonic current frequency be ω 2 =λω e =0.5ω e , let the second target harmonic current frequency be ω 1 =(2-λ)ω e =1.5ω e , taking the current angle signal of the permanent magnet synchronous motor as 0.5ω e single-frequency disturbance,

Figure BDA0002364326540000141
Figure BDA0002364326540000141

其中,kir1<<kp,a1.5为1.5次电流幅值,a1为1次电流幅值,a0.5为0.5次电流幅值,λk为永磁同步电机的正弦扰动幅值,kp为PI调节器的比例。Among them, k ir1 <<k p , a 1.5 is the 1.5th order current amplitude, a 1 is the 1st order current amplitude, a 0.5 is the 0.5th order current amplitude, and λ k is the sinusoidal disturbance amplitude of the PMSM value, k p is the ratio of the PI regulator.

在上述公式(9)中,可以令J0k)=1,J1k)=0.01,ωe=250Hz,λ=0.5,kp=0.3,ki=60,分别计算1.5ωe谐波电流含量和0.5ωe谐波电流含量,可得a1.5/a1=0.33%、a0.5/a1=0.81%。按照图3搭建的谐波电流分析框图,可以得到谐波分析结果,该分析结果如图4所示。因此,通过上述公式可以定量分析永磁同步电机转子位置信号中的周期性误差对交流侧电流谐波产生影响,即可以定量分析出永磁同步电机在工作过程中存在周期性误差。In the above formula (9), J 0k ) = 1, J 1k ) = 0.01, ω e = 250 Hz, λ = 0.5, k p = 0.3, k i = 60, and calculate 1.5 ω e harmonic current content and 0.5ω e harmonic current content, a 1.5 /a 1 =0.33%, a 0.5 /a 1 =0.81%. According to the harmonic current analysis block diagram constructed in Figure 3, the harmonic analysis results can be obtained, and the analysis results are shown in Figure 4. Therefore, the impact of the periodic error in the rotor position signal of the permanent magnet synchronous motor on the AC side current harmonics can be quantitatively analyzed through the above formula, that is, the periodic error in the working process of the permanent magnet synchronous motor can be quantitatively analyzed.

本发明实施例中的永磁同步电机周期性误差的分析方法,通过永磁同步电机周期性误差分析,有利于根据获知的该周期性误差存在的原因,便于及时进行在线补偿周期性误差,进而改善周期性误差,提高在线补偿精度。In the method for analyzing the periodic error of the permanent magnet synchronous motor in the embodiment of the present invention, through the periodic error analysis of the permanent magnet synchronous motor, it is beneficial to perform online compensation of the periodic error in time according to the known cause of the periodic error, and further Improve periodic error and improve online compensation accuracy.

实施例2Example 2

本发明实施例提供了一种永磁同步电机周期性误差的分析装置,如图5所示,包括:An embodiment of the present invention provides a device for analyzing the periodic error of a permanent magnet synchronous motor, as shown in FIG. 5 , including:

确定模块51,用于确定永磁同步电机在恒定转速状态下的当前角度信号、预设谐波频次和预设基波频率。The determination module 51 is used to determine the current angle signal, the preset harmonic frequency and the preset fundamental frequency of the permanent magnet synchronous motor in a state of constant rotation speed.

第一计算模块52,用于根据当前角度信号、预设谐波频次和预设基波频率,计算当前角度信号对应的初始正弦函数。The first calculation module 52 is configured to calculate the initial sine function corresponding to the current angle signal according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency.

第二计算模块53,用于在当前角度信号进行坐标变换过程中,计算初始正弦函数对应的复矢量函数。The second calculation module 53 is configured to calculate the complex vector function corresponding to the initial sine function during the coordinate transformation process of the current angle signal.

目标谐波电流产生模块54,用于根据复矢量函数和预设基波频率,通过第一坐标变换路径产生第一目标谐波电流频率和通过第二坐标变换路径产生第二目标谐波电流频率。The target harmonic current generation module 54 is configured to generate the first target harmonic current frequency through the first coordinate transformation path and generate the second target harmonic current frequency through the second coordinate transformation path according to the complex vector function and the preset fundamental frequency .

分析验证模块55,用于根据预设基波频率、预设谐波频次、第一目标谐波电流频率和第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差。The analysis and verification module 55 is configured to analyze and verify the permanent magnet synchronous motor through the preset periodic error analysis algorithm according to the preset fundamental frequency, the preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency Periodic error.

本发明实施例中的永磁同步电机周期性误差的分析方法,在图5中,确定模块51包括:In the method for analyzing the periodic error of the permanent magnet synchronous motor in the embodiment of the present invention, in FIG. 5 , the determination module 51 includes:

第一确定子模块511,用于确定永磁同步电机在各种不同转速状态下的初始角度信号;The first determination sub-module 511 is used to determine the initial angle signal of the permanent magnet synchronous motor under various rotational speed states;

第二确定子模块512,用于根据所述初始角度信号,确定永磁同步电机在恒定转速状态下的当前角度信号。The second determination sub-module 512 is configured to determine, according to the initial angle signal, the current angle signal of the permanent magnet synchronous motor in a state of constant rotational speed.

本发明实施例中的永磁同步电机周期性误差的分析装置,确定模块51根据初始角度信号,确定永磁同步电机在恒定转速状态下的当前角度信号通过上述公式(1)与(2)进行计算,在此不在赘述。In the device for analyzing the periodic error of the permanent magnet synchronous motor in the embodiment of the present invention, the determination module 51 determines the current angle signal of the permanent magnet synchronous motor in a constant rotational speed state according to the initial angle signal, through the above formulas (1) and (2). The calculation is not repeated here.

本发明实施例中的永磁同步电机周期性误差的分析装置,第二计算模块53根据当前角度信号、预设谐波频次和预设基波频率,计算当前角度信号对应的初始正弦函数通过上述公式(3)进行计算,在此不在赘述。In the device for analyzing the periodic error of the permanent magnet synchronous motor in the embodiment of the present invention, the second calculation module 53 calculates the initial sine function corresponding to the current angle signal according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency. Formula (3) is used for calculation, which is not repeated here.

本发明实施例中的永磁同步电机周期性误差的分析装置,第二计算模块53,在当前角度信号进行坐标变换过程中,计算初始正弦函数对应的复矢量函数通过上式(4),(5),(6)进行计算,在此不再赘述。In the analysis device for the periodic error of the permanent magnet synchronous motor in the embodiment of the present invention, the second calculation module 53, in the process of coordinate transformation of the current angle signal, calculates the complex vector function corresponding to the initial sine function through the above formula (4), ( 5), (6) are calculated, which will not be repeated here.

本发明实施例中的永磁同步电机周期性误差的分析装置,分析验证模块根据预设基波频率、第一目标谐波电流频率和第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差通过上式(7)与(8)进行计算,在此不再赘述。In the device for analyzing the periodic error of the permanent magnet synchronous motor in the embodiment of the present invention, the analysis and verification module analyzes the periodic error according to the preset fundamental frequency, the first target harmonic current frequency and the second target harmonic current frequency. The algorithm analysis verifies that the periodic error of the permanent magnet synchronous motor is calculated by the above equations (7) and (8), and will not be repeated here.

本发明实施例中的永磁同步电机周期性误差的分析装置,通过永磁同步电机周期性误差分析,有利于根据获知的该周期性误差存在的原因,便于及时进行在线补偿周期性误差,进而改善周期性误差,提高在线补偿精度。In the device for analyzing the periodic error of the permanent magnet synchronous motor in the embodiment of the present invention, through the periodic error analysis of the permanent magnet synchronous motor, it is beneficial to perform online compensation of the periodic error in time according to the known cause of the periodic error, and further Improve periodic error and improve online compensation accuracy.

实施例3Example 3

本发明实施例提供一种永磁同步电机控制系统,如图6所示,包括:An embodiment of the present invention provides a permanent magnet synchronous motor control system, as shown in FIG. 6 , including:

第一轴向电流环PI调节器601,用于接收第一轴向电流信号,并对第一轴向电流信号进行PI调节控制输出第一轴向电压信号。此处第一轴向电流环PI调节器601为d轴电流环PI调节器,可以接收d轴电流指令,在图6中,d轴电流指令为i* d,该d轴电流指令通过第一轴向电流环PI调节器601进行PI调节控制输出d轴电压指令,在图6中,d轴电压指令为u* dThe first axial current loop PI regulator 601 is used for receiving the first axial current signal, and performing PI adjustment control on the first axial current signal to output the first axial voltage signal. Here, the first axial current loop PI regulator 601 is a d-axis current loop PI regulator, which can receive a d-axis current command. In FIG. 6 , the d-axis current command is i * d , and the d-axis current command passes through the first The axial current loop PI regulator 601 performs PI adjustment control and outputs a d-axis voltage command. In FIG. 6 , the d-axis voltage command is u * d .

第二轴向电流环PI调节器602,用于接收第二轴向电流信号,并对第二轴向电流信号进行PI调节控制输出第二轴向电压信号。此处的第二轴向电流环PI调节器602为q轴电流环PI调节器,可以接收q轴电流指令,在图6中,q轴电流指令为i* q,该q轴电流指令通过第二轴向电流环PI调节器602输出q轴电压指令,在图6中,d轴电压指令为u* qThe second axial current loop PI regulator 602 is used for receiving the second axial current signal, and performing PI adjustment control on the second axial current signal to output the second axial voltage signal. The second axial current loop PI regulator 602 here is a q-axis current loop PI regulator, which can receive a q-axis current command. In FIG. 6, the q-axis current command is i * q , and the q-axis current command is passed through the The two-axis current loop PI regulator 602 outputs a q-axis voltage command. In FIG. 6 , the d-axis voltage command is u * q .

第一坐标变换器603,分别与第一轴向电流环PI调节器601和第二轴向电流环PI调节器602连接。第一坐标变换器603可以用Ipark坐标变换器表示。The first coordinate converter 603 is respectively connected with the first axial current loop PI regulator 601 and the second axial current loop PI regulator 602 . The first coordinate transformer 603 may be represented by an Ipark coordinate transformer.

PWM调制器604,与第一坐标变换器603连接。The PWM modulator 604 is connected to the first coordinate converter 603 .

逆变器605,与PWM调制器604连接。逆变器605,简称Inverter,逆变器605的输入端电压为UdcThe inverter 605 is connected to the PWM modulator 604 . The inverter 605 is referred to as Inverter for short, and the input terminal voltage of the inverter 605 is U dc .

第二坐标变换器606,分别与第一轴向电流环PI调节器601、第二轴向电流环PI调节器602和第一坐标变换器603连接。第二坐标变换器606可以用Park变换器表示。The second coordinate converter 606 is connected to the first axial current loop PI regulator 601 , the second axial current loop PI regulator 602 and the first coordinate converter 603 respectively. The second coordinate transformer 606 may be represented by a Park transformer.

电流传感器607,分别与第二坐标变换器606和逆变器605连接。电流传感器607简称Sensor。在图6中,电流传感器607输出三相电流信号,分别为ia、ib、icThe current sensor 607 is connected to the second coordinate converter 606 and the inverter 605, respectively. The current sensor 607 is referred to as Sensor for short. In FIG . 6 , the current sensor 607 outputs three-phase current signals, i a , ib , and ic , respectively.

永磁同步电机608,与电流传感器607连接。永磁同步电机608简称PMSM。The permanent magnet synchronous motor 608 is connected to the current sensor 607 . The permanent magnet synchronous motor 608 is referred to as PMSM for short.

旋转变压器609,与永磁同步电机608连接。旋转变压器609可以简称RDC。该旋转变压器609用于检测永磁同步电机608的位置信号,在图6中,旋转变压器609输出的角度为θ。The resolver 609 is connected to the permanent magnet synchronous motor 608 . The resolver 609 may be abbreviated as RDC. The resolver 609 is used to detect the position signal of the permanent magnet synchronous motor 608 , and in FIG. 6 , the angle output by the resolver 609 is θ.

角度正余弦变换器610,分别与角度正余弦变换器610、第一坐标变换器603和第二坐标变换器606连接;以简称sinθ/cosθ。The angle sine and cosine transformer 610 is respectively connected with the angle sine and cosine transformer 610, the first coordinate transformer 603 and the second coordinate transformer 606; referred to as sinθ/cosθ for short.

如图7所示,永磁同步电机控制系统,还包括:处理器611,与永磁同步电机608连接,处理器包括存储在计算机可读存储介质上的计算机程序,计算机程序包括程序指令,当程序指令被计算机执行时,使计算机执行实施例1中的永磁同步电机周期性误差分析方法的步骤。在图7中,该永磁同步电机控制系统包括一个或多个处理器611以及存储器613,图7中以一个处理器611为例。As shown in FIG. 7 , the permanent magnet synchronous motor control system further includes: a processor 611, connected to the permanent magnet synchronous motor 608, the processor includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions, when When the program instructions are executed by the computer, the computer is made to execute the steps of the periodic error analysis method of the permanent magnet synchronous motor in the first embodiment. In FIG. 7 , the permanent magnet synchronous motor control system includes one or more processors 611 and a memory 613 , and one processor 611 is taken as an example in FIG. 7 .

执行列表项操作的处理方法的服务器还可以包括:输入装置614和输出装置615。The server performing the processing method of list item operation may further include: an input device 614 and an output device 615 .

处理器611、存储器613、输入装置614和输出装置615可以通过总线或者其他方式连接,图6中以通过总线连接为例。The processor 611 , the memory 613 , the input device 614 and the output device 615 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 6 .

处理器611可以为中央处理器(Central Processing Unit,CPU)。处理器611还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。The processor 611 may be a central processing unit (Central Processing Unit, CPU). The processor 611 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.

实施例4Example 4

本发明实施例提供一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现实施例1中的永磁同步电机周期性误差分析方法的步骤。该计算机可读存储介质上还存储有当前角度信号、预设谐波频次、预设基波频率、初始正弦函数、复矢量函数、第一目标谐波电流频率、第二目标谐波电流频率、预设周期性误差分析算法等。其中,该计算机可读存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(RandomAccessMemory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard DiskDrive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等;存储介质还可以包括上述种类的存储器的组合。An embodiment of the present invention provides a computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, implement the steps of the method for analyzing periodic errors of a permanent magnet synchronous motor in Embodiment 1. The computer-readable storage medium also stores the current angle signal, the preset harmonic frequency, the preset fundamental frequency, the initial sine function, the complex vector function, the first target harmonic current frequency, the second target harmonic current frequency, Preset periodic error analysis algorithm, etc. Wherein, the computer-readable storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard) DiskDrive, abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memories.

本领域技术人员可以理解,实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed , which may include the processes of the above-mentioned method embodiments. The storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM) or the like.

显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。Obviously, the above-mentioned embodiments are only examples for clear description, and are not intended to limit the implementation manner. For those of ordinary skill in the art, changes or modifications in other different forms can also be made on the basis of the above description. There is no need and cannot be exhaustive of all implementations here. And the obvious changes or changes derived from this are still within the protection scope of the present invention.

Claims (10)

1.一种永磁同步电机周期性误差的分析方法,其特征在于,包括如下步骤:1. an analytical method for the periodic error of a permanent magnet synchronous motor, is characterized in that, comprises the steps: 确定永磁同步电机在恒定转速状态下的当前角度信号、预设谐波频次和预设基波频率;Determine the current angle signal, the preset harmonic frequency and the preset fundamental frequency of the permanent magnet synchronous motor at a constant speed; 根据所述当前角度信号、所述预设谐波频次和所述预设基波频率,计算所述当前角度信号对应的初始正弦函数;calculating an initial sine function corresponding to the current angle signal according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency; 在所述当前角度信号进行坐标变换过程中,计算所述初始正弦函数对应的复矢量函数;During the coordinate transformation process of the current angle signal, the complex vector function corresponding to the initial sine function is calculated; 根据所述复矢量函数和所述预设基波频率,通过第一坐标变换路径产生第一目标谐波电流频率和通过第二坐标变换路径产生第二目标谐波电流频率;generating a first target harmonic current frequency through a first coordinate transformation path and generating a second target harmonic current frequency through a second coordinate transformation path according to the complex vector function and the preset fundamental frequency; 根据所述预设基波频率、预设谐波频次、所述第一目标谐波电流频率和所述第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差。According to the preset fundamental frequency, the preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency, the period of the permanent magnet synchronous motor is analyzed and verified by a preset periodic error analysis algorithm sexual error. 2.根据权利要求1所述的永磁同步电机周期性误差的分析方法,其特征在于,所述确定永磁同步电机在恒定转速状态下的当前角度信号的步骤包括:2. The method for analyzing the periodic error of a permanent magnet synchronous motor according to claim 1, wherein the step of determining the current angle signal of the permanent magnet synchronous motor at a constant rotational speed state comprises: 确定永磁同步电机在各种不同转速状态下的初始角度信号;Determine the initial angle signal of the permanent magnet synchronous motor under various rotational speed states; 根据所述初始角度信号,确定永磁同步电机在恒定转速状态下的当前角度信号。According to the initial angle signal, the current angle signal of the permanent magnet synchronous motor in the state of constant rotational speed is determined. 3.根据权利要求2所述的永磁同步电机周期性误差的分析方法,其特征在于,所述根据所述初始角度信号,确定永磁同步电机在恒定转速状态下的当前角度信号通过如下公式计算:3. the analysis method of the periodic error of permanent magnet synchronous motor according to claim 2, is characterized in that, described according to described initial angle signal, determine the current angle signal of permanent magnet synchronous motor under the state of constant rotational speed by following formula calculate:
Figure FDA0002364326530000021
Figure FDA0002364326530000021
Figure FDA0002364326530000022
Figure FDA0002364326530000022
θe=K·θrdc,K=np/prdc θ e =K·θ rdc , K=n p /p rdc 其中,eh为所述初始角度信号中的谐波,k为谐波频次,ak为k次谐波幅值和
Figure FDA0002364326530000023
为k次谐波相位,θrdc为初始角度信号,ωrdc为角频率;θe为当前角度信号,np为永磁同步电机极对数,prdc为旋变极对数,K为永磁同步电机极对数与旋变极对数的比值。
Among them, e h is the harmonic in the initial angle signal, k is the harmonic frequency, a k is the k-th harmonic amplitude and
Figure FDA0002364326530000023
is the k-th harmonic phase, θ rdc is the initial angle signal, ω rdc is the angular frequency; θ e is the current angle signal, n p is the number of pole pairs of the permanent magnet synchronous motor, p rdc is the number of resolver pole pairs, and K is the permanent The ratio of the number of pole pairs to the number of resolver pole pairs for a magnetic synchronous motor.
4.根据权利要求1所述的永磁同步电机周期性误差的分析方法,其特征在于,所述根据所述当前角度信号、所述预设谐波频次和所述预设基波频率,计算所述当前角度信号对应的初始正弦函数通过如下公式计算:4 . The method for analyzing the periodic error of a permanent magnet synchronous motor according to claim 1 , wherein the calculation is performed according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency. 5 . The initial sine function corresponding to the current angle signal is calculated by the following formula:
Figure FDA0002364326530000024
Figure FDA0002364326530000024
其中,
Figure FDA0002364326530000025
Jnk)为调频指数为λk的n阶第一类贝塞尔函数,
Figure FDA0002364326530000026
θe为所述当前角度信号,ωe为所述预设基波频率,λ为所述预设谐波频次,λk为所述永磁同步电机的正弦扰动幅值。
in,
Figure FDA0002364326530000025
J nk ) is the n-th order Bessel function of the first kind with a frequency modulation index of λ k ,
Figure FDA0002364326530000026
θ e is the current angle signal, ω e is the preset fundamental frequency, λ is the preset harmonic frequency, and λ k is the sinusoidal disturbance amplitude of the permanent magnet synchronous motor.
5.根据权利要求1所述的永磁同步电机周期性误差的分析方法,其特征在于,在所述当前角度信号进行坐标变换过程中,计算所述初始正弦函数对应的复矢量函数的公式如下:5. the analysis method of the periodic error of permanent magnet synchronous motor according to claim 1 is characterized in that, in the coordinate transformation process of described current angle signal, the formula of calculating the complex vector function corresponding to described initial sine function is as follows : J-nk)=(-1)nJnk)J -nk )=(-1) n J nk )
Figure FDA0002364326530000031
Figure FDA0002364326530000031
sinθe=J0k)sin(ωet)+J1k)sin(ωet+λωet)+J-1k)sin(ωet-λωet)+...sinθ e =J 0k )sin(ω e t)+J 1k )sin(ω e t+λω e t)+J −1k )sin(ω e t-λω e t) +...
Figure FDA0002364326530000032
Figure FDA0002364326530000032
其中,θe为所述当前角度信号,ωe为所述预设基波频率,λ为所述预设谐波频次,λk为所述永磁同步电机的正弦扰动幅值,
Figure FDA0002364326530000033
为所述复矢量函数。
Wherein, θ e is the current angle signal, ω e is the preset fundamental frequency, λ is the preset harmonic frequency, λ k is the sinusoidal disturbance amplitude of the permanent magnet synchronous motor,
Figure FDA0002364326530000033
is the complex vector function.
6.根据权利要求1所述的永磁同步电机周期性误差的分析方法,其特征在于,所述根据预设基波频率、预设谐波频次、所述第一目标谐波电流频率和所述第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差通过如下公式计算:6 . The method for analyzing the periodic error of a permanent magnet synchronous motor according to claim 1 , wherein, according to the preset fundamental frequency, the preset harmonic frequency, the first target harmonic current frequency and the According to the second target harmonic current frequency, the periodic error of the permanent magnet synchronous motor is analyzed and verified by the preset periodic error analysis algorithm, and the periodic error is calculated by the following formula: 令所述预设基波频率为ωe,令预设谐波频次λ为0.5,令第一目标谐波电流频率为ω2=λωe=0.5ωe,令第二目标谐波电流频率为ω1=(2-λ)ωe=1.5ωe,以所述永磁同步电机的所述当前角度信号为0.5ωe单频扰动,Let the preset fundamental frequency be ω e , let the preset harmonic frequency λ be 0.5, let the first target harmonic current frequency be ω 2 =λω e =0.5ω e , let the second target harmonic current frequency be ω 1 =(2-λ)ω e =1.5ω e , and the current angle signal of the permanent magnet synchronous motor is a single-frequency disturbance of 0.5ω e ,
Figure FDA0002364326530000034
Figure FDA0002364326530000034
Figure FDA0002364326530000035
Figure FDA0002364326530000035
其中,a1.5为1.5次电流幅值,a1为1次电流幅值,a0.5为0.5次电流幅值,kp为PI调节器的比例,ki为PI调节器的积分系数,Za为A相等效阻抗,KPI为PI调节器的等效增益,
Figure FDA0002364326530000036
为对应频率分量的相位,
Figure FDA0002364326530000037
为第一频率成分对应PI调节器与阻抗的第一相角差,
Figure FDA0002364326530000041
为第二频率成分对应PI调节器与阻抗的第二相角差,
Figure FDA0002364326530000042
为第一频率成分对应PI调节器与阻抗的第三相角差,
Figure FDA0002364326530000043
为第一频率成分对应PI调节器与阻抗的第四相角差,
Figure FDA0002364326530000044
ωr1为PI调节器对应输入信号的频率,ωr2为负载对应输入信号的频率,Us为dq坐标系相电压幅值,当电流响应进入稳态后,PI调节器的直流输入分量为零,0.5ωe频次电流谐波由udq直流分量经旋转矢量
Figure FDA0002364326530000045
产生。
Among them, a 1.5 is the 1.5th order current amplitude, a 1 is the 1st order current amplitude, a 0.5 is the 0.5th order current amplitude, k p is the ratio of the PI regulator, ki is the integral coefficient of the PI regulator, Z a is the equivalent impedance of phase A, K PI is the equivalent gain of the PI regulator,
Figure FDA0002364326530000036
is the phase of the corresponding frequency component,
Figure FDA0002364326530000037
is the first phase angle difference between the PI regulator and the impedance corresponding to the first frequency component,
Figure FDA0002364326530000041
is the second phase angle difference between the PI regulator and the impedance corresponding to the second frequency component,
Figure FDA0002364326530000042
is the third phase angle difference between the PI regulator and the impedance corresponding to the first frequency component,
Figure FDA0002364326530000043
is the fourth phase angle difference between the PI regulator and the impedance corresponding to the first frequency component,
Figure FDA0002364326530000044
ω r1 is the frequency of the input signal corresponding to the PI regulator, ω r2 is the frequency of the input signal corresponding to the load, and U s is the phase voltage amplitude of the dq coordinate system. When the current response enters a steady state, the DC input component of the PI regulator is zero. , the 0.5ω e frequency current harmonics are rotated by the u dq DC component via the rotation vector
Figure FDA0002364326530000045
produce.
7.根据权利要求1所述的永磁同步电机周期性误差的分析方法,其特征在于,所述根据预设基波频率、预设谐波频次、所述第一目标谐波电流频率和所述第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差还通过如下公式计算:7. The method for analyzing the periodic error of a permanent magnet synchronous motor according to claim 1, wherein the method is based on a preset fundamental frequency, a preset harmonic frequency, the first target harmonic current frequency and the The second target harmonic current frequency is analyzed and verified by the preset periodic error analysis algorithm, and the periodic error of the permanent magnet synchronous motor is also calculated by the following formula: 令所述预设基波频率为ωe,令预设谐波频次λ为0.5,令第一目标谐波电流频率为ω2=λωe=0.5ωe,令第二目标谐波电流频率为ω1=(2-λ)ωe=1.5ωe,以所述永磁同步电机的所述当前角度信号为0.5ωe单频扰动,Let the preset fundamental frequency be ω e , let the preset harmonic frequency λ be 0.5, let the first target harmonic current frequency be ω 2 =λω e =0.5ω e , let the second target harmonic current frequency be ω 1 =(2-λ)ω e =1.5ω e , and the current angle signal of the permanent magnet synchronous motor is a single-frequency disturbance of 0.5ω e ,
Figure FDA0002364326530000046
Figure FDA0002364326530000046
其中,kir1<<kp,a1.5为1.5次电流幅值,a1为1次电流幅值,a0.5为0.5次电流幅值,λk为所述永磁同步电机的正弦扰动幅值,kp为PI调节器的比例。Wherein, k ir1 <<k p , a 1.5 is the 1.5th order current amplitude, a 1 is the 1st order current amplitude, a 0.5 is the 0.5th order current amplitude, λ k is the sine of the permanent magnet synchronous motor The perturbation amplitude, k p is the ratio of the PI regulator.
8.一种永磁同步电机周期性误差的分析装置,其特征在于,包括:8. An analysis device for the periodic error of a permanent magnet synchronous motor, characterized in that, comprising: 确定模块,用于确定永磁同步电机在恒定转速状态下的当前角度信号、预设谐波频次和预设基波频率;A determination module, used to determine the current angle signal, the preset harmonic frequency and the preset fundamental frequency of the permanent magnet synchronous motor in a state of constant speed; 第一计算模块,用于根据所述当前角度信号、所述预设谐波频次和所述预设基波频率,计算所述当前角度信号对应的初始正弦函数;a first calculation module, configured to calculate the initial sine function corresponding to the current angle signal according to the current angle signal, the preset harmonic frequency and the preset fundamental frequency; 第二计算模块,用于在所述当前角度信号进行坐标变换过程中,计算所述初始正弦函数对应的复矢量函数;a second calculation module, configured to calculate the complex vector function corresponding to the initial sine function during the coordinate transformation process of the current angle signal; 目标谐波电流产生模块,用于根据所述复矢量函数和所述预设基波频率,通过第一坐标变换路径产生第一目标谐波电流频率和通过第二坐标变换路径产生第二目标谐波电流频率;A target harmonic current generation module is configured to generate a first target harmonic current frequency through a first coordinate transformation path and a second target harmonic current through a second coordinate transformation path according to the complex vector function and the preset fundamental frequency. wave current frequency; 分析验证模块,用于根据所述预设基波频率、预设谐波频次、所述第一目标谐波电流频率和所述第二目标谐波电流频率,通过预设周期性误差分析算法分析验证永磁同步电机周期性误差。An analysis and verification module for analyzing the preset periodic error analysis algorithm according to the preset fundamental frequency, preset harmonic frequency, the first target harmonic current frequency and the second target harmonic current frequency Verify the periodic error of a permanent magnet synchronous motor. 9.一种永磁同步电机控制系统,其特征在于,包括:9. A permanent magnet synchronous motor control system, characterized in that, comprising: 第一轴向电流环PI调节器,用于接收第一轴向电流信号,并对第一轴向电流信号进行PI调节控制输出第一轴向电压信号;The first axial current loop PI regulator is used for receiving the first axial current signal, and performing PI adjustment and control on the first axial current signal to output the first axial voltage signal; 第二轴向电流环PI调节器,用于接收第二轴向电流信号,并对第二轴向电流信号进行PI调节控制输出第二轴向电压信号;The second axial current loop PI regulator is used for receiving the second axial current signal, and performing PI adjustment and control on the second axial current signal to output the second axial voltage signal; 第一坐标变换器,分别与所述第一轴向电流环PI调节器和所述第二轴向电流环PI调节器连接;a first coordinate converter, respectively connected to the first axial current loop PI regulator and the second axial current loop PI regulator; PWM调制器,与所述第一坐标变换器连接;a PWM modulator, connected to the first coordinate converter; 逆变器,与所述PWM调制器连接;an inverter, connected with the PWM modulator; 第二坐标变换器,分别与所述第一轴向电流环PI调节器、所述第二轴向电流环PI调节器和所述第一坐标变换器连接;a second coordinate converter, respectively connected to the first axial current loop PI regulator, the second axial current loop PI regulator and the first coordinate converter; 电流传感器,分别与所述第二坐标变换器和所述逆变器连接;a current sensor, connected to the second coordinate converter and the inverter respectively; 永磁同步电机,与所述电流传感器连接;a permanent magnet synchronous motor, connected with the current sensor; 旋转变压器,与所述永磁同步电机连接;a rotary transformer, connected with the permanent magnet synchronous motor; 角度正余弦变换器,与所述旋转变压器连接;an angle sine-cosine converter, connected with the resolver; 处理器,与永磁同步电机连接,所述处理器包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-7任一项所述的永磁同步电机周期性误差的分析方法的步骤。a processor connected to the permanent magnet synchronous motor, the processor including a computer program stored on a computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, cause the computer to execute The steps of the method for analyzing the periodic error of a permanent magnet synchronous motor according to any one of claims 1-7. 10.一种计算机设备,包括:存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,其特征在于,所述处理器通过执行所述计算机指令,从而使所述计算机执行权利要求1-7任一项所述的永磁同步电机周期性误差的分析方法的步骤。10. A computer device, comprising: a memory and a processor, wherein the memory and the processor are connected in communication with each other, and computer instructions are stored in the memory, wherein the processor executes the computer by executing the instruction, so that the computer executes the steps of the method for analyzing the periodic error of the permanent magnet synchronous motor according to any one of claims 1-7.
CN202010031113.3A 2020-01-13 2020-01-13 Method and device for analyzing periodic errors of permanent magnet synchronous motor Active CN113131820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010031113.3A CN113131820B (en) 2020-01-13 2020-01-13 Method and device for analyzing periodic errors of permanent magnet synchronous motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010031113.3A CN113131820B (en) 2020-01-13 2020-01-13 Method and device for analyzing periodic errors of permanent magnet synchronous motor

Publications (2)

Publication Number Publication Date
CN113131820A CN113131820A (en) 2021-07-16
CN113131820B true CN113131820B (en) 2022-06-24

Family

ID=76771043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010031113.3A Active CN113131820B (en) 2020-01-13 2020-01-13 Method and device for analyzing periodic errors of permanent magnet synchronous motor

Country Status (1)

Country Link
CN (1) CN113131820B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114061632B (en) * 2021-10-21 2024-03-19 上大电气科技(嘉兴)有限公司 Decoding method of high-precision magnetic encoder for compensating appointed subharmonic

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2194641A1 (en) * 2008-12-02 2010-06-09 Baumüller Nürnberg GmbH System for recording the initial pollage of an electromotor runner
CN108631681A (en) * 2018-04-18 2018-10-09 华中科技大学 A kind of the online compensation method and compensation device of rotary transformer periodic error
CN109245648A (en) * 2018-09-07 2019-01-18 华中科技大学 A kind of online compensation method of periodic error in output signal of rotary transformer
CN110417308A (en) * 2019-07-05 2019-11-05 南京理工大学 A compound strategy control method for full speed range of permanent magnet synchronous motor

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9160264B2 (en) * 2007-11-16 2015-10-13 Hamilton Sundstrand Corporation Initial rotor position detection and start-up system for a dynamoelectric machine
US8169172B2 (en) * 2010-05-03 2012-05-01 Hamilton Sundstrand Corporation Synchronous disturbance suppression in a variable speed motor drive
JP5874688B2 (en) * 2013-06-05 2016-03-02 株式会社デンソー Control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2194641A1 (en) * 2008-12-02 2010-06-09 Baumüller Nürnberg GmbH System for recording the initial pollage of an electromotor runner
CN108631681A (en) * 2018-04-18 2018-10-09 华中科技大学 A kind of the online compensation method and compensation device of rotary transformer periodic error
CN109245648A (en) * 2018-09-07 2019-01-18 华中科技大学 A kind of online compensation method of periodic error in output signal of rotary transformer
CN110417308A (en) * 2019-07-05 2019-11-05 南京理工大学 A compound strategy control method for full speed range of permanent magnet synchronous motor

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
On-Line Compensation of Resolver Periodic Error for PMSM Drives;Dongdong Chen 等;《IEEE TRANSAC TIONS ON INDUSTRY APPLICATIONS》;20190808;第55卷(第6期);第5990-5999页 *
一种大功率永磁电机旋转变压器位置补偿方法;艾胜 等;《电力电子技术》;20180220;第52卷(第2期);第13-15页 *
一种旋转变压器误差分析和校正方法;山丹 等;《计算机技术与发展》;20131129;第24卷(第2期);第183-185页 *
基于比例积分-准谐振控制器的直驱式永磁同步电机转矩脉动抑制方法;张海洋;《电工技术学报》;20171010;第32卷(第19期);第41-50页 *
基于谐振数字滤波器的直驱式永磁同步电机转矩脉动抑制方法;张海洋 等;《中国电机工程学报》;20170329;第38卷(第4期);第1222-1231页 *

Also Published As

Publication number Publication date
CN113131820A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN100570391C (en) Real-time detection and analysis method and device for permanent magnet magnetic field distortion of permanent magnet synchronous motor
CN107317532B (en) Predictive current control method and system for permanent magnet synchronous motor based on sliding mode
CN110441643A (en) Inverter power pipe open circuit fault diagnostic method in control system for permanent-magnet synchronous motor
CN113131819B (en) Method and device for compensating periodic error of permanent magnet synchronous motor
WO2023240844A1 (en) Electromagnetic transient modeling method and system for high-efficiency synchronous machine, and device
CN113131820B (en) Method and device for analyzing periodic errors of permanent magnet synchronous motor
CN116388633A (en) Permanent magnet synchronous motor sensorless control method based on vector magnetic circuit
CN115811260A (en) Rotary transformer zero point identification method and device of motor and computer storage medium
TANAKA et al. PMSM Sensorless Control Based on Position Estimation Correction Using All‐Pass Filters
CN111800055A (en) A method and device for determining the average torque of a doubly salient motor
WO2021232615A1 (en) Motor rotor position detection method, device, and motor controller
CN118137916A (en) Rotor angle estimation dynamic compensation method
CN117240158A (en) Motor rotor detection method and device, permanent magnet synchronous motor and storage medium
CN110620534A (en) Method for controlling rotating speed stability of permanent magnet synchronous motor by nonlinear flexible and variable structure sliding mode
CN117129907A (en) Method, device and equipment for detecting turn-to-turn short circuit of three-phase synchronous motor
CN109756143A (en) A fault-tolerant control method and device for a three-phase four-switch inverter
CN116054667A (en) Current harmonic suppression method and device for electrolytic capacitor-free driving system
CN116566268A (en) Motor zero position initial angle calibration method, device, motor controller and system
CN115459653A (en) Motor control method, device, medium and electronic device
WO2022257132A1 (en) Power driving system, electric vehicle, and method for reducing noise generated by reducer
CN116500437A (en) Inductance detection method for reluctance motor and motor detection device
CN114204866B (en) Rotor speed and position determining method of permanent magnet synchronous motor
CN114563100A (en) Permanent magnet synchronous motor temperature monitoring method and device and vehicle
CN111181447B (en) Motor group current sensor cooperation system based on self-generated detection signal and correction method
CN118554832A (en) Method and device for determining current of permanent magnet synchronous motor

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