Fuzzy error feedback permanent magnet synchronous motor rotating speed control method

文档序号:536667 发布日期:2021-06-01 浏览:12次 中文

阅读说明:本技术 一种模糊误差反馈的永磁同步电机转速控制方法 (Fuzzy error feedback permanent magnet synchronous motor rotating speed control method ) 是由 孙卫明 王新宇 雷军委 于 2021-01-12 设计创作,主要内容包括:本发明公开一种模糊误差反馈的永磁同步电机转速控制方法。本发明通过铰链耦合对永磁电机转速进行双轴不解耦的同时控制,通过测量永磁同步电机的转速与期望值的比较得到误差信号,然后采用模糊系统的方法设置模糊概念制定模糊规则,得到模糊控制量与确定控制量同时对电机的两轴施加控制作为,因此双轴的收敛同时进行,从而收敛过程中的误差动态特性能够作为驱动电机转速提供控制力,从而比用单轴电流方式效果更佳。同时该方法的优点在于采用模糊语言与模糊控制的方式,也能更好地描述解决电机控制中的模型不确定与精确建模困难问题。(The invention discloses a method for controlling the rotating speed of a permanent magnet synchronous motor by fuzzy error feedback. According to the invention, the rotating speed of the permanent magnet motor is subjected to double-shaft non-decoupling simultaneous control through hinge coupling, an error signal is obtained through comparison between the rotating speed of the permanent magnet synchronous motor and an expected value, then a fuzzy rule is formulated by setting a fuzzy concept by adopting a fuzzy system method, and the obtained fuzzy control quantity and the determined control quantity simultaneously apply control to two shafts of the motor, so that the double shafts are converged simultaneously, and the error dynamic characteristic in the convergence process can be used as the rotating speed of the driving motor to provide control force, so that the effect is better than that of a single-shaft current mode. Meanwhile, the method has the advantages that the problems of model uncertainty and difficult accurate modeling in motor control can be better described and solved by adopting a fuzzy language and fuzzy control mode.)

1. A fuzzy error feedback permanent magnet synchronous motor rotating speed control method is characterized by comprising the following steps:

step S10, measuring the position and the rotating speed of a rotor of the permanent magnet synchronous motor and two-phase current in three-phase current, and performing Clarke coordinate transformation on the two-phase current;

step S20, setting an expected rotating speed signal according to the motor task requirement, measuring the rotating speed signal, comparing the rotating speed signal with the expected rotating speed signal to obtain a rotating speed error, integrating the rotating speed error to obtain an integral signal, and calculating a definite expected value signal of the stator current;

step S30, designing a first fuzzy system according to the rotating speed error to calculate a fuzzy expected value of the stator current, and then superposing the fuzzy expected value of the stator current and the stator current determination expected value to obtain a final stator current expected value;

step S40, comparing the expected signal of the d-axis stator current with the current signal after Park conversion to obtain a stator current error signal, and carrying out nonlinear integration on the stator current error signal to obtain a stator current error integral signal;

step S50, establishing a second fuzzy system according to the error signal and the error nonlinear integral signal of the d-axis stator current, and resolving to obtain a q-axis stator voltage signal to realize the control of the d-axis stator current;

step S60, designing an expected value of the q-axis stator current according to the rotating speed error and the rotating speed error nonlinear integral signal, comparing the expected value with the q-axis stator current obtained after Park conversion to obtain a q-axis stator current error signal, and then carrying out nonlinear conversion and integration on the q-axis stator current error signal to obtain an error nonlinear integral signal;

step S70, carrying out linear combination according to the q-axis current error signal and the error nonlinear integral signal to obtain d-axis control voltage, carrying out Park inverse transformation on the control voltage of the designed two-axis motor to obtain control voltage under a static coordinate system, and outputting the control voltage to the permanent magnet synchronous motor to realize the rotation speed control of the permanent magnet synchronous motor;

wherein, step S10 is as follows:

1.1) measuring the position and the rotating speed of a rotor of the permanent magnet synchronous motor and two-phase current in three-phase current,

wherein ia、ibFor measuring two-phase current signals, theta, in three-phase currents of a PMSMmFor measuring position signals, omega, of the rotor of a permanent-magnet synchronous machinemMeasuring a rotating speed signal of a permanent magnet synchronous motor rotor;

1.2) performing Clarke coordinate transformation on the two-phase current:

wherein iα、iβFor i in three-phase currenta、ibPerforming Clarke transformation to obtain stator current in a two-phase stationary coordinate system,

idand iqIs iα、iβPrak conversion is carried out to obtain stator currents of d and q axes of a two-phase rotating coordinate system,

θe=pnθm,θefrom measurements of rotor position thetamIs transformed to obtain pnThe number of pole pairs of the motor is;

wherein, step S20 is as follows:

2.1) setting the desired speed signal, i.e. ω, according to the mission requirements of the PMSMmcThe expected rotating speed of the permanent magnet synchronous motor;

2.2) then measuring the rotational speed signal omega of the permanent magnet synchronous machinemWith the desired speed signal omegamcThe rotation speed error e is obtained through comparisonωAnd integrating to obtain an integral signal s1

eω=ωmmc

Wherein, ω ismcIs the desired speed of the motor, eωIs a motor rotating speed error signal and is used as a motor rotating speed error signal,

s1for the non-linear integral signal of the speed error, dt represents the integral over time, ε1The parameter is controlled for a constant value,

2.3) then calculating the determined desired value signal i for the d-axis stator currentdc1

idc1=ka1eω+ka2s1

idc1Is a determined desired value, k, of the d-axis stator currenta1And k isa2Constant control parameters;

wherein, step S30 is as follows:

3.1) designing the first fuzzy system

3.11) error of the rotational speed eωFive fuzzy concepts NB set as inputs of the first fuzzy system and defining input signals of the first fuzzy system1、NM1、ZO1、PM1、PB1As follows below, the following description will be given,

when e isω≤-0.6ωmcWhen the input signal is defined as negative, set to NB1

When-0.6 omegamc≤eω<-0.3ωmcWhen the input signal is defined as negative, the input signal is set to be of a medium size NM1

When-0.3 omegamc≤eω<0.3ωmcWhen the input signal is defined to be almost zero, the input signal is set to ZO1

When 0.3 omegamc≤eω<0.6ωmcWhen the input signal is defined to be positive, the input signal is set to be PM with a medium magnitude1

When 0.6 omegamc≤eωWhen the input signal is defined to be positive, it is set to PB1

3.12) defining the output quantity of the first fuzzy system as fuzzy desired value of stator current, denoted as idc2And defining the output of the first fuzzy systemFive fuzzy concepts NB of the outgoing signal2、NM2、ZO2、PM2、PB2The following were used:

when i isdcWhen the output signal is less than or equal to-0.8, defining that the output signal is negative and large, setting the output signal as NB2

When-0.6 is less than or equal to idc2When < -0.3, the output signal is defined as negative and medium, and set as NM2

When-0.3 is less than or equal to idc2When < 0.3, the output signal is defined to be almost zero and set to ZO2

When i is more than or equal to 0.3dc2When < 0.6, the output signal is defined to be positive and medium, and PM is set2

When i is more than or equal to 0.6dc2When the output signal is defined to be positive, it is set to PB2

3.13) then define the fuzzy rule as follows:

when inputting signal eωIs NB1Time, output signal idc2Is NB2

When inputting signal eωIs NM1Time, output signal idc2Is NM2

When inputting signal eωIs ZO1Time, output signal idc2Is ZO2

When inputting signal eωIs PM1Time, output signal idc2Is PM2

When inputting signal eωIs PB1Time, output signal idc2Is PB2

3.14) establishing a fuzzy rule base according to the fuzzy rule of 3.13), and outputting the input signal according to the fuzzy rule of 3.13), namely obtaining a fuzzy expected value i of the stator currentdc2

3.2) the determined desired value of the d-axis stator current is superimposed on the fuzzy desired value of the stator current, the desired value of the d-axis stator current is obtained and is denoted as idcThe calculation method is as follows:

idc=idc1+idc2

wherein, step S40 is as follows:

4.1) desired Signal i of d-axis stator CurrentdcCurrent signal i converted with ParkdComparing to obtain stator current error signal eid

eid=id-idc

Wherein e isidIs a d-axis current error signal that is,

4.2) carrying out nonlinear integration on the d-axis current error signal to obtain a stator current error integral signal seid

eid=id-idc

Wherein s iseidFor d-axis current error non-linear integral signal, dt represents the integral over time signal, ε2Constant control parameters;

wherein, step S50 is as follows:

according to the error signal e of the d-axis stator currentidAnd error non-linear integral signal seidEstablishing a second fuzzy system and a fuzzy rule, and resolving to obtain a stator voltage signal of a q axis, wherein the steps are as follows:

5.1) setting eidFive fuzzy concepts NB being inputs of the first input signal of the second fuzzy system and defining the first input signal of the second fuzzy system3、NM3、ZO3、PM3、PB3The following were used:

when e isidWhen the value is less than or equal to-4/3, the input signal is defined as negative and is set as NB3

When-2/3 is not more than eidWhen < -4/3, the input signal is defined as negative and medium, and set as NM3

When-2/3 is not more than eid< 2/3, the input signal is defined to be almost zero and set to ZO3

When 2/3 is less than or equal to eidIf < 4/3, the input signal is defined to be positive and medium, and set to PM3

When e isidAt least 4/3, the input signal is defined as positive and set to PB3

5.2) setting seidFive fuzzy concepts NB being second inputs of the second fuzzy system and defining second input signals of the second fuzzy system4、NM4、ZO4、PM4、PB4The following were used:

when s iseidWhen the input signal is less than or equal to-4, defining that the input signal is negative, setting the input signal as NB4

When-2 is less than or equal to seidWhen < -4 >, the input signal is defined as negative and medium, and set as NM4

When-2 is less than or equal to seidWhen < 2, the input signal is defined to be almost zero and set to ZO4

When s is more than or equal to 2eidIf < 4, the input signal is defined to be positive and medium, and set to PM4

When s iseidWhen the input signal is greater than or equal to 4, defining the input signal as positive and setting the input signal as PB4

5.3) setting uqFive fuzzy concepts NB for the output of the second fuzzy system and defining the output signal of the second fuzzy system5、NM5、ZO5、PM5、PB5The following were used:

when u isqWhen the output signal is less than or equal to-20, defining that the output signal is negative, setting the output signal as NB5

When u is more than or equal to-20q-10, defining the output signal as negative medium, and setting NM5

When u is more than or equal to-10qWhen < 10, defining the output signal to be almost zero, and setting to ZO5

When u is more than or equal to 10qWhen < 20, the output signal is defined as positive and medium, and PM is set5

When u is more than or equal to 20qWhen the output signal is defined to be positive, it is set to PB5

5.4) establishing the following 13 fuzzy rules:

when inputting informationNumber eidIs NB3Time, output signal uqIs NB5

When inputting signal eidIs NM3Time, output signal uqIs NM5

When inputting signal eidIs ZO3Time, output signal uqIs ZO5

When inputting signal eidIs PM3Time, output signal uqIs PM5

When inputting signal eidIs PB3Time, output signal uqIs PB5

When inputting signal eidIs NB3And input a signal seidIs NB4Time, output signal uqIs NB5

When inputting signal eidIs NB3And input a signal seidIs PB4Time, output signal uqIs NB5

When inputting signal eidIs PB3And input a signal seidIs NB4Time, output signal uqIs PB5

When inputting signal eidIs PB3And input a signal seidIs PB4Time, output signal uqIs PB5

When inputting signal eidIs ZO3And input a signal seidIs NB4Time, output signal uqIs ZO5

When inputting signal eidIs ZO3And input a signal seidIs PB4Time, output signal uqIs ZO5

When inputting signal eidIs ZO3And input a signal seidIs NB4Time, output signal uqIs ZO5

When inputting signal eidIs ZO3And input a signal seidIs PB4Time, output signal uqIs ZO5

5.5) establishing a fuzzy rule base according to the fuzzy rule of 5.4), and outputting the input signal according to the fuzzy rule of 5.4), namely obtaining the controlled quantity u of the stator currentq

Wherein, step S60 is as follows:

6.1) design expected value of q-axis stator current as iqc

iqc=ka3eω+ka4s1

Wherein iqcFor desired value of q-axis stator current, ka3、ka4Constant control parameters;

6.2) desired value of q-axis stator Current iqcComparing the q-axis stator current obtained after Park conversion to obtain a q-axis stator current error signal, and then performing nonlinear conversion and integration on the error signal to obtain an error nonlinear integral signal, wherein the error nonlinear integral signal comprises:

eiq=iq-iqc

s2=∫eiqdt/(|∫eiqdt|+ε3);

wherein e isiqIs a q-axis current error signal, s2For the current error non-linearly integrating signal, epsilon3Constant control parameters;

wherein, step S70 is as follows:

7.1) designing d-axis control voltage u according to the linear combination of the q-axis current error signal and the error nonlinear integral signald

ud=ka5eiq+ka6s2

Wherein u isdFor d-axis control of voltage, ka5、ka6Constant control parameters;

7.2) control Voltage u for two-shaft Motord、uqCarrying out Park inverse transformation, and calculating to obtain the control voltage u under the static coordinate systemα、uβ

Wherein u isα、uβThe stator voltages of the alpha axis and the beta axis in the two-phase static coordinate system,

7.3) mixing uα、uβThe output is transmitted to space vector pulse width modulation and a three-phase inverter and finally transmitted to a permanent magnet synchronous motor, so that the rotating speed of the permanent magnet synchronous motor is enabled to be in accordance with an expected rotating speed signal omegamcAnd (6) outputting.

Technical Field

The invention relates to the field of permanent magnet synchronous motors, in particular to a method for realizing stable control of the rotating speed of a permanent magnet synchronous motor by adopting a fuzzy language and fuzzy method and double-axis error simultaneous feedback.

Background

The motor is used as an important tool for converting electric energy and mechanical energy, and is widely applied to various fields of national economy. Dc motors dominate transmission applications in the early stages. At present, most of high-performance servo systems adopt permanent magnet synchronous alternating current servo motors, and the permanent magnet synchronous motor alternating current servo systems are mature in technology and have excellent performance. The permanent magnet synchronous servo motor adopts the permanent magnet to generate a magnetic field required by electromechanical energy conversion, and has the advantages of simple structure, reliable operation, light weight, small volume, energy conservation, high efficiency and the like. However, one problem faced in the control of the permanent magnet synchronous motor at present is that accurate modeling of the motor is not easy, accurate measurement of partial states is not easy, and the load of the motor is difficult to accurately predict, thereby causing the problem of uncertainty of the system and further improving the control performance.

It is to be noted that the information invented in the above background section is only for enhancing the understanding of the background of the present invention, and therefore, may include information that does not constitute prior art known to those of ordinary skill in the art.

Disclosure of Invention

In order to solve the technical problem caused by uncertainty in the control process of the permanent magnet synchronous motor in the prior art, the invention aims to provide a method for controlling the rotating speed of the permanent magnet synchronous motor by fuzzy error feedback, and further solve the problem that the effect is poor due to the fact that the fuzzy uncertainty of a permanent magnet motor system cannot be processed by a determined method in the prior art.

In order to realize the purpose, the technical scheme is as follows:

a fuzzy error feedback permanent magnet synchronous motor rotating speed control method comprises the following steps:

step S10, measuring the position and the rotating speed of a rotor of the permanent magnet synchronous motor and two-phase current in three-phase current, and performing Clarke coordinate transformation on the two-phase current;

step S20, setting an expected rotating speed signal according to the requirement of the motor task, measuring the rotating speed signal, comparing the rotating speed signal with the expected rotating speed signal to obtain a rotating speed error, integrating the rotating speed error to obtain an integral signal, and calculating a definite expected value signal of the stator current;

step S30, designing a first fuzzy system according to the rotating speed error to calculate a fuzzy expected value of the stator current, and combining the fuzzy expected value with the stator current determined expected value to obtain a final stator current expected value;

step S40, comparing the expected signal of the d-axis stator current with the current signal after Park conversion to obtain a stator current error signal, and performing nonlinear integration to obtain a stator current error integral signal;

step S50, establishing a second fuzzy system according to the error signal and the error nonlinear integral signal of the d-axis stator current, and resolving to obtain a q-axis stator voltage signal to realize the control of the d-axis stator current;

step S60, designing the expected value of the q-axis stator current as i according to the rotation speed error and the rotation speed error nonlinear integral signalqcComparing the q-axis stator current with q-axis stator current obtained after Park conversion to obtain a q-axis stator current error signal, and then carrying out nonlinear conversion and integration on the q-axis stator current error signal to obtain an error nonlinear integral signal;

step S70, the q-axis current error signal and the error nonlinear integral signal are linearly combined to obtain d-axis control voltage, the obtained control voltage of the two-axis motor is subjected to Park inverse transformation calculation to obtain control voltage under a static coordinate system, and the control voltage is output to the permanent magnet synchronous motor to enable the rotating speed of the permanent magnet synchronous motor to be in accordance with the expected rotating speed signal omegamcAnd outputting to realize the rotation speed control of the synchronous motor.

In an exemplary embodiment of the present invention, step S10, measuring the position and the rotation speed of the rotor of the permanent magnet synchronous motor and the two-phase current of the three-phase current, and performing Clarke coordinate transformation on the two-phase current includes the following steps:

wherein ia、ibThe signal is a two-phase current signal in the three-phase current of the permanent magnet synchronous motor detected by a Hall current sensor.

iα、iβFor i in three-phase currenta、ibObtaining stator current i in a two-phase static coordinate system after Clarke transformationdAnd iqIs iα、iβCarrying out Prak transformationAnd obtaining stator currents of d and q axes of the two-phase rotating coordinate system after conversion.

θeFrom measurements of rotor position thetamIs converted to obtaine=pnθmWherein p isnThe number of pole pairs of the motor is shown.

θmMeasuring a position signal of a rotor of the permanent magnet synchronous motor for a position detection sensing unit;

ωmand measuring a rotating speed signal of the rotor of the permanent magnet synchronous motor for the speed detection sensing unit.

In an exemplary embodiment of the present invention, step S20, setting a desired rotation speed signal, comparing the measured rotation speed signal with the desired rotation speed signal to obtain a rotation speed error, and integrating the rotation speed error to obtain an integral signal, so as to obtain a determined desired value signal of the stator current, includes the following steps:

eω=ωmmc

idc1=ka1eω+ka2s1

wherein, ω ismcIs the desired speed of rotation, ω, of the motormAs a measure of the rotational speed of the motor, eωIs the motor rotating speed error signal.

s1For the non-linear integral signal of the speed error, dt represents the integral over time, ε1The parameter is controlled for a constant value,

idc1is a determined desired value, k, of the d-axis stator currenta1And k isa2The parameter is controlled to be constant.

In an exemplary embodiment of the present invention, step S30, designing a first fuzzy system according to the rotation speed error and calculating a fuzzy desired value of the stator current, and then combining the fuzzy desired value of the stator current with the determined desired value of the stator current to obtain a final desired value of the stator current, includes the following steps:

error of rotation speed eωFive fuzzy concepts NB set as inputs of the first fuzzy system and defining input signals of the first fuzzy system1、NM1、ZO1、PM1、PB1As follows below, the following description will be given,

when e isω≤-0.6ωmcWhen the input signal is defined as negative, set to NB1

When-0.6 omegamc≤eω<-0.3ωmcWhen the input signal is defined as negative, the input signal is set to be of a medium size NM1

When-0.3 omegamc≤eω<0.3ωmcWhen the input signal is defined to be almost zero, the input signal is set to ZO1

When 0.3 omegamc≤eω<0.6ωmcWhen the input signal is defined to be positive, the input signal is set to be PM with a medium magnitude1

When 0.6 omegamc≤eωWhen the input signal is defined to be positive, it is set to PB1

Defining the output quantity of the first fuzzy system as the fuzzy desired value of the stator current is denoted as idc2And defining five fuzzy concepts NB of the output signal of the first fuzzy system2、NM2、ZO2、PM2、PB2The following were used:

when i isdcWhen the output signal is less than or equal to-0.8, defining that the output signal is negative and large, setting the output signal as NB2

When-0.6 is less than or equal to idc2When < -0.3, the output signal is defined as negative and medium, and set as NM2

When-0.3 is less than or equal to idc2When < 0.3, the output signal is defined to be almost zero and set to ZO2

When i is more than or equal to 0.3dc2When < 0.6, the output signal is defined to be positive and medium, and PM is set2

When i is more than or equal to 0.6dc2When the output signal is defined to be positive, it is set to PB2

The fuzzy rule is then defined as follows:

when the input signal is negative and large, the output signal is also negative and large;

when the input signal is of negative medium magnitude, the output signal is also of negative medium magnitude;

when the input signal is almost zero, the output signal is also almost zero;

when the input signal is positive medium, the output signal is also positive medium;

when the input signal is positive and large, the output signal is also positive and large.

And then, establishing a fuzzy rule base according to the fuzzy rule, and performing fuzzy operation and defuzzification according to the magnitude of the input signal to obtain a fuzzy expected value of the stator current.

Finally, the expected value of the d-axis stator current obtained by superposing the determined expected value of the d-axis stator current and the fuzzy expected value of the stator current is recorded as idcThe calculation method is as follows:

idc=idc1+idc2

in an exemplary embodiment of the present invention, in step S40, comparing the expected signal of the d-axis stator current with the Park converted current signal to obtain a stator current error signal, and performing a non-linear integration to obtain a stator current error integrated signal, includes the following steps:

eid=id-idc

wherein idcIs a desired value of d-axis stator current, idIs a d-axis current signal obtained after Park conversion, eidIs a d-axis current error signal, seidFor d-axis current error non-linear integral signal, dt represents the integral over time signal, ε2The parameter is controlled to be constant.

In an exemplary embodiment of the present invention, in step S50, a second fuzzy system and a fuzzy rule are established according to the error signal and the error non-linear integral signal of the d-axis stator current, and the stator voltage signal of the q-axis is obtained through calculation, including the following steps:

first, set eidFive fuzzy concepts NB being inputs of the first input signal of the second fuzzy system and defining the first input signal of the second fuzzy system3、NM3、ZO3、PM3、PB3The following were used:

when e isidWhen the value is less than or equal to-4/3, the input signal is defined as negative and is set as NB3

When-2/3 is not more than eidWhen < -4/3, the input signal is defined as negative and medium, and set as NM3

When-2/3 is not more than eid< 2/3, the input signal is defined to be almost zero and set to ZO3

When 2/3 is less than or equal to eidIf < 4/3, the input signal is defined to be positive and medium, and set to PM3

When e isidAt least 4/3, the input signal is defined as positive and set to PB3

Next, set seidFive fuzzy concepts NB being second inputs of the second fuzzy system and defining second input signals of the second fuzzy system4、NM4、ZO4、PM4、PB4The following were used:

when s iseidWhen the input signal is less than or equal to-4, defining that the input signal is negative, setting the input signal as NB4

When-2 is less than or equal to seidWhen < -4 >, the input signal is defined as negative and medium, and set as NM4

When-2 is less than or equal to seidWhen < 2, the input signal is defined to be almost zero and set to ZO4

When s is more than or equal to 2eidIf < 4, the input signal is defined to be positive and medium, and set to PM4

When s iseidWhen the input signal is greater than or equal to 4, defining the input signal as positive and setting the input signal as PB4

Then, u is setqAs output of the second fuzzy systemAnd defining five fuzzy concepts NB for the output signal of the second fuzzy system5、NM5、ZO5、PM5、PB5The following were used:

when u isqWhen the output signal is less than or equal to-20, defining that the output signal is negative, setting the output signal as NB5

When u is more than or equal to-20q-10, defining the output signal as negative medium, and setting NM5

When u is more than or equal to-10qWhen < 10, defining the output signal to be almost zero, and setting to ZO5

When u is more than or equal to 10qWhen < 20, the output signal is defined as positive and medium, and PM is set5

When u is more than or equal to 20qWhen the output signal is defined to be positive, it is set to PB5

On the basis of the above, the following 13 fuzzy rules are established:

when inputting signal eidWhen it is negative and large, the output signal uqIs also very negative;

when inputting signal eidAt a negative medium magnitude, the output signal uqMedium size, also negative;

when inputting signal eidWhen almost zero, output signal uqIs also almost zero;

when inputting signal eidAt positive medium magnitude, the output signal uqMedium size, also positive;

when inputting signal eidWhen it is positive, the output signal u is largeqAlso positive and very large.

When inputting signal eidIs very negative and the input signal seidWhen it is negative and large, the output signal uqIs also very negative;

when inputting signal eidIs very negative and the input signal seidWhen it is positive, the output signal u is largeqIs also very negative;

when inputting signal eidIs positive and large and the input signal seidIs very negativeTime, output signal uqIs also positive and very large;

when inputting signal eidIs positive and large and the input signal seidWhen it is positive, the output signal u is largeqIs also positive and very large;

when inputting signal eidAlmost zero and input signal seidWhen it is negative and large, the output signal uqIs also almost zero;

when inputting signal eidAlmost zero and input signal seidWhen it is positive, the output signal u is largeqIs also almost zero;

when inputting signal eidAlmost zero and input signal seidWhen it is negative and large, the output signal uqIs also almost zero;

when inputting signal eidAlmost zero and input signal seidWhen it is positive, the output signal u is largeqAnd is also almost zero.

And finally, establishing a fuzzy rule base according to the fuzzy rule, and performing fuzzy operation and defuzzification by adopting a computer according to the magnitude of the input signal to obtain a controlled quantity u of the stator currentq

In an exemplary embodiment of the present invention, step S60, the desired value of the q-axis stator current is designed to be iqcAnd comparing the q-axis stator current with q-axis stator current obtained after Park conversion to obtain a q-axis stator current error signal, and then performing nonlinear conversion and integration on the error signal to obtain an error nonlinear integral signal, wherein the method comprises the following steps:

iqc=ka3eω+ka4s1

eiq=iq-iqc

s2=∫eiqdt/(|∫eiqdt|+ε3);

wherein eωAs a rotational speed error signal, s1For the non-linear integral signal of the speed error, iqcIs the desired value of the q-axis stator current, where ka3And k isa4The parameter is controlled to be constant.

eiqFor q-axis current error signal, iqFor the Park-transformed q-axis current signal, s2For the current error non-linearly integrating signal, epsilon3The parameter is controlled to be constant.

In an exemplary embodiment of the present invention, in step S70, the q-axis current error signal and the error non-linear integral signal are linearly combined to obtain a d-axis control voltage, and the Park inverse transformation calculation is performed on the control voltage of the two-axis motor to obtain a control voltage under a stationary coordinate system, including the following steps:

ud=ka5eiq+ka6s2

wherein eiqIs a q-axis current error signal, s2For non-linearly integrating the signal udFor d-axis control of voltage, ka5And ka6The parameter is controlled to be constant.

uα、uβIs the stator voltage of alpha and beta axes in a two-phase stationary coordinate systemeIs a measure of rotor position θmAnd (5) carrying out transformation to obtain the product.

Finally, u is addedα、uβThe output is sent to a space vector pulse width modulation and three-phase inverter and finally sent to a permanent magnet synchronous motor, and the rotating speed of the motor is controlled to reach a given speed omegamc

The space vector pulse width modulation and the three-phase inverter are well-known technologies in the art and are not protected by the present invention, and therefore, they will not be described in detail herein.

In the traditional method, one-axis current of a permanent magnet motor is always completely stabilized, the other-axis current is used for implementing the control action of the rotating speed, the coupling between two axes is eliminated, and then the rotating speed tracking of the synchronous motor is realized through decoupled single-axis control. Compared with the traditional method, the key point of the method is that the rotating speed of the permanent magnet motor is controlled in a double-shaft non-decoupling mode through hinge coupling, specifically, an error signal is obtained through comparison between the rotating speed of the permanent magnet synchronous motor and an expected value, then a fuzzy rule is formulated by adopting a fuzzy system method to set a fuzzy concept, a fuzzy control quantity is obtained and a control quantity is determined, and the two shafts of the motor are controlled at the same time, so that the double shafts are converged at the same time, the error dynamic characteristic in the convergence process can be used as the rotating speed of the driving motor to provide control force, and the effect is better compared with the traditional method using single-shaft current. Meanwhile, the invention has the advantages that the problems of model uncertainty and difficult accurate modeling in motor control can be better described and solved by adopting a fuzzy language and fuzzy control mode.

Advantageous effects

The invention discloses a fuzzy error feedback permanent magnet synchronous motor rotating speed control method which has the following main advantages.

The invention adopts fuzzy language, fuzzy concept and fuzzy system to form fuzzy output method, to describe the uncertainty of permanent magnet synchronous motor system, and to describe and implement the fuzzy physical mechanism that the permanent magnet synchronous motor system should follow, so it has better completeness than using definite control rule to control the fuzzy uncertain object logically, and it can obtain richer dynamic character and better control effect.

The second method is that the double-shaft error of double-shaft decoupling is simultaneously fed back to drive the generated control quantity to eliminate the rotating speed error, compared with the method for driving the other shaft error to eliminate the rotating speed error while stabilizing one shaft adopted in the prior art, the method can fully utilize the coupling energy between the double shafts, thereby having more direct and better control effect than the existing decoupling control method.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.

FIG. 1 is a flow chart of a method for controlling the rotating speed of a permanent magnet synchronous motor with fuzzy error feedback provided by the invention.

FIG. 2 is a plot of measured motor speed for a method provided by an embodiment of the present invention;

FIG. 3 is a plot of a motor speed error signal according to a method provided by an embodiment of the present invention;

FIG. 4 is a graph of expected value signals for d-axis stator current in accordance with a method provided by an embodiment of the present invention;

FIG. 5 is a d-axis stator current error signal plot for a method provided by an embodiment of the present invention;

FIG. 6 is a graph of a control voltage signal for the q-axis of a method provided by an embodiment of the invention;

FIG. 7 is a plot of expected value signals for q-axis stator current in accordance with a method provided by an embodiment of the present invention;

FIG. 8 is a q-axis stator current error signal plot for a method provided by an embodiment of the present invention;

FIG. 9 is a graph of a d-axis control voltage signal according to a method provided by an embodiment of the invention.

Detailed Description

Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the invention.

The invention provides a method for forming an error signal by measuring the rotation speed of a permanent magnet synchronous motor and comparing the rotation speed with an expected rotation speed, then forming a fuzzy control quantity by simultaneously acting two shafts of the permanent magnet synchronous motor through the error signal and taking the integral of the error and the error as the input of a fuzzy system, establishing the fuzzy system, and forming the fuzzy control quantity by modeling rich fuzzy rules, thereby realizing the purpose of eliminating the rotation speed error of the motor and realizing the accurate and rapid control of the rotation speed of the motor.

The method for controlling the rotating speed of the permanent magnet synchronous motor with fuzzy error feedback according to the present invention will be further explained and explained with reference to the accompanying drawings.

A fuzzy error feedback permanent magnet synchronous motor rotating speed control method comprises the following steps:

step S10, measuring the position and the rotating speed of the rotor of the permanent magnet synchronous motor and the two-phase current in the three-phase current, and carrying out coordinate transformation on the two-phase current;

specifically, firstly, the position and rotation speed signals of the rotor of the permanent magnet synchronous motor are measured through a position/speed detection sensing unit, wherein the position of the rotor is recorded as thetamThe rotational speed is recorded as ωm

Secondly, three-phase current signals of the permanent magnet synchronous motor are detected through a Hall current sensor and are respectively recorded as ia、ib、ic

Then, for i in three-phase currenta、ibPerforming Clarke transformation to obtain stator current i in a two-phase static coordinate systemα、iβ. Wherein the Clarke transformation is as follows:

again, the following Prak transform is performedObtaining stator current i of d and q axes of a two-phase rotating coordinate systemqAnd id. Wherein Park is transformed as follows:

wherein theta iseFrom measurements of rotor position thetamIs converted to obtaine=pnθmWherein p isnThe number of pole pairs of the motor is shown.

And step S20, setting an expected rotating speed signal according to the requirement of the motor task, measuring the rotating speed signal, comparing the rotating speed signal with the expected rotating speed signal to obtain a rotating speed error, and integrating to obtain an integral signal to obtain a fixed expected value signal of the stator current.

Specifically, first, a desired rotation speed of the motor is set to ω according to the duty of the motormcThen with the measured value ω of the motor speedmComparing to obtain a motor rotation speed error signal, and recording as eωThe calculation method is as follows: e.g. of the typeω=ωmmc

Secondly, according to the rotating speed error signal e of the motorωThe following non-linear integral signal of the rotation speed error is constructed and is marked as s1The calculation method is as follows:

where dt represents the integral of the time signal, ε1The parameter is controlled to be constant.

Finally, according to the error signal and the non-linear integral signal, linear combination is carried out, a definite expected value of the d-axis stator current is obtained through calculation and is recorded as idc1The calculation method is as follows:

idc1=ka1eω+ka2s1

wherein k isa1And k isa2The parameter is controlled to be constant.

And step S30, designing a first fuzzy system according to the rotation speed error, calculating a fuzzy expected value of the stator current, and combining the fuzzy expected value with the stator current determined expected value to obtain a final stator current expected value.

Specifically, the error e of the rotation speed is first determinedωFive fuzzy concepts NB set as inputs of the first fuzzy system and defining input signals of the first fuzzy system1、NM1、ZO1、PM1、PB1The following were used:

wherein NB1Large, NM, indicating the input signal is negative1Medium-sized, ZO, indicating that the input signal is negative1Indicating that the input signal is almost zero, PM1Medium size, PB, indicating positive input signal1Indicating that the input signal is positive and large.

Specifically, the following judgment method is established in the design:

when e isω≤-0.6ωmcWhen the input signal is defined as negative, set to NB1

When-0.6 omegamc≤eω<-0.3ωmcWhen the input signal is defined as negative, the input signal is set to be of a medium size NM1

When-0.3 omegamc≤eω<0.3ωmcWhen the input signal is defined to be almost zero, the input signal is set to ZO1

When 0.3 omegamc≤eω<0.6ωmcWhen the input signal is defined to be positive, the input signal is set to be PM with a medium magnitude1

When 0.6 omegamc≤eωWhen the input signal is defined to be positive, it is set to PB1

Then, the output quantity of the first fuzzy system is defined as the fuzzy expected value of the stator current, which is recorded as idc2And defines five fuzzy concepts NB of the output signal of the fuzzy system2、NM2、ZO2、PM2、PB2The following were used:

wherein NB2Large, NM indicating the output signal is negative2Medium size, ZO, indicating that the output signal is negative2Indicating that the output signal is almost zero, PM2Medium size, PB, indicating that the output signal is positive2Indicating that the output signal is positive and large.

Specifically, the following judgment method is established in the design:

when i isdcWhen the output signal is less than or equal to-0.8, defining that the output signal is negative and large, setting the output signal as NB2

When-0.6 is less than or equal to idc2When < -0.3, the output signal is defined as negative and medium, and set as NM2

When-0.3 is less than or equal to idc2When < 0.3, the output signal is defined to be almost zero and set to ZO2

When i is more than or equal to 0.3dc2When < 0.6, the output signal is defined to be positive and medium, and PM is set2

When i is more than or equal to 0.6dc2When the output signal is defined to be positive, it is set to PB2

On this basis, the fuzzy rule is defined as follows:

when the input signal is negative and large, the output signal is also negative and large;

when the input signal is of negative medium magnitude, the output signal is also of negative medium magnitude;

when the input signal is almost zero, the output signal is also almost zero;

when the input signal is positive medium, the output signal is also positive medium;

when the input signal is positive and large, the output signal is also positive and large.

Then, a fuzzy rule base is established according to the fuzzy rule, and a computer is adopted to perform fuzzy operation and defuzzification according to the magnitude of the input signal, so that the fuzzy expected value of the stator current can be obtained.

Finally, the expected value of the d-axis stator current is obtained by superposing the determined expected value of the d-axis stator current and the obtained fuzzy expected value of the stator current and is recorded as idcThe calculation method is as follows:

idc=idc1+idc2

and step S40, comparing the expected signal of the d-axis stator current with the current signal after Park conversion to obtain a stator current error signal, and performing nonlinear integration to obtain a stator current error integral signal.

Specifically, first, a desired value of the d-axis stator current is set to idcAnd i obtained after conversion with ParkdThe values are compared to obtain a d-axis current error signal, which is recorded as eidThe calculation method is as follows:

eid=id-idc

next, based on the d-axis current error signal eidDesigning d-axis current error nonlinear integral signal seidIt is calculated as follows:

where dt represents the integral of the time signal, ε2The parameter is controlled to be constant.

And step S50, establishing a second fuzzy system and a fuzzy rule according to the error signal and the error nonlinear integral signal of the d-axis stator current, resolving to obtain a q-axis stator voltage signal, and realizing the control of the d-axis stator current.

Specifically, a two-input one-output second fuzzy system is established.

And taking the stator current error signal and the error nonlinear integral signal as input signals of a second fuzzy system, and taking output signals of the second fuzzy system as resolved stator voltage signals.

First, set eidFive fuzzy concepts NB being inputs of the first input signal of the second fuzzy system and defining the first input signal of the second fuzzy system3、NM3、ZO3、PM3、PB3The following were used:

wherein NB3Large, NM, indicating the input signal is negative3Medium-sized, ZO, indicating that the input signal is negative3Indicating that the input signal is almost zero, PM3Medium size, PB, indicating positive input signal3Indicating that the input signal is positive and large.

Specifically, the following judgment method is established in the design:

when e isidWhen the value is less than or equal to-4/3, the input signal is defined as negative and is set as NB3

When-2/3 is not more than eidWhen < -4/3, the input signal is defined as negative and medium, and set as NM3

When-2/3 is not more than eid< 2/3, the input signal is defined to be almost zero and set to ZO3

When 2/3 is less than or equal to eidIf < 4/3, the input signal is defined to be positive and medium, and set to PM3

When e isidAt least 4/3, the input signal is defined as positive and set to PB3

Next, set seidFive fuzzy concepts NB being second inputs of the second fuzzy system and defining second input signals of the second fuzzy system4、NM4、ZO4、PM4、PB4

Specifically, the following judgment method is established in the design:

when s iseidWhen the input signal is less than or equal to-4, defining that the input signal is negative, setting the input signal as NB4

When-2 is less than or equal to seidWhen < -4 >, the input signal is defined as negative and medium, and set as NM4

When-2 is less than or equal to seidWhen < 2, the input signal is defined to be almost zero and set to ZO4

When s is more than or equal to 2eidIf < 4, the input signal is defined to be positive and medium, and set to PM4

When s iseidWhen the input signal is greater than or equal to 4, defining the input signal as positive and setting the input signal as PB4

Then, u is setqFive fuzzy concepts NB for the output of the second fuzzy system and defining the output signal of the second fuzzy system5、NM5、ZO5、PM5、PB5

Specifically, the following judgment method is established in the design:

when u isqWhen the output signal is less than or equal to-20, defining that the output signal is negative, setting the output signal as NB5

When u is more than or equal to-20q-10, defining the output signal as negative medium, and setting NM5

When u is more than or equal to-10qWhen < 10, defining the output signal to be almost zero, and setting to ZO5

When u is more than or equal to 10qWhen < 20, the output signal is defined as positive and medium, and PM is set5

When u is more than or equal to 20qWhen the output signal is defined to be positive, it is set to PB5

On the basis, according to the fact that the larger the error of the stator current error signal is, the larger the nonlinear integral of the stator current error signal is, the larger the control quantity is; the smaller the error of the stator current error signal is, the smaller the nonlinear integral of the stator current error signal is, and the smaller the control quantity is; the idea that the control quantity is smaller when the error of the stator current error signal is smaller and the nonlinear integral of the stator current error signal is larger is established as follows 13 fuzzy rules:

when inputting signal eidWhen it is negative and large, the output signal uqIs also very negative;

when inputting signal eidAt a negative medium magnitude, the output signal uqMedium size, also negative;

when inputting signal eidWhen almost zero, output signal uqIs also almost zero;

when inputting signal eidAt positive medium magnitude, the output signal uqMedium size, also positive;

when inputting signal eidWhen it is positive, the output signal u is largeqAlso positive and very large.

When inputting signal eidIs very negative and the input signal seidWhen it is negative and large, the output signal uqIs also very negative;

when inputting signal eidIs very negative and the input signal seidWhen it is positive, the output signal u is largeqIs also very negative;

when inputting signal eidIs positive and large and the input signal seidWhen it is negative and large, the output signal uqIs also positive and very large;

when inputting signal eidIs positive and large and the input signal seidWhen it is positive, the output signal u is largeqIs also positive and very large;

when inputting signal eidAlmost zero and input signal seidWhen it is negative and large, the output signal uqIs also almost zero;

when inputting signal eidAlmost zero and input signal seidWhen it is positive, the output signal u is largeqIs also almost zero;

when inputting signal eidAlmost zero and input signal seidWhen it is negative and large, the output signal uqIs also almost zero;

when inputting signal eidAlmost zero and input signal seidWhen it is positive, the output signal u is largeqIs also almost zero;

finally, a fuzzy rule base is established according to the fuzzy rules, particularly, the weight of the last 8 rules is increased, and fuzzy operation and defuzzification are carried out by adopting a computer according to the magnitude of the input signal, so that the control quantity u of the stator current can be obtainedq

Step S60, the expected value of the q-axis stator current is designed to be i according to the rotation speed error and the rotation speed error nonlinear integral signalqcAnd comparing the q-axis stator current with q-axis stator current obtained after Park conversion to obtain a q-axis stator current error signal, and then carrying out nonlinear conversion and integration on the error signal to obtain an error nonlinear integral signal.

Specifically, first, the rotation speed error signal eωSignal s integrated non-linearly with the speed error1Linear combination is carried out to obtain the expected value of the stator current of the q axis, which is recorded as iqcThe design is as follows:

iqc=ka3eω+ka4s1

wherein k isa3And k isa4The parameter is controlled to be constant.

Secondly, according to i obtained after Park transformationqThe value of the q-axis stator current and the expected value i of the q-axis stator currentqcComparing to obtain q-axis current error signal, and recording as eiq

eiq=iq-iqc

Finally, for q-axis current error signal eiqPerforming nonlinear integration to obtain a q-axis current error nonlinear integration signal, which is recorded as s2It is calculated as follows:

s2=∫eiqdt/(|∫eiqdt|+ε3);

wherein epsilon3The parameter is controlled to be constant.

And step S70, the q-axis current error signal and the error nonlinear integral signal are linearly combined to obtain d-axis control voltage, the Park inverse transformation is carried out on the control voltage of the two-axis motor to obtain control voltage under a static coordinate system, and the control voltage is output to the synchronous motor to realize the rotation speed control of the synchronous motor.

Specifically, the q-axis current error signal e is first generatediqAnd a non-linear integral signal s2Form d-axis control voltage, denoted as udThe calculation method is as follows:

ud=ka5eiq+ka6s2

wherein k isa5And ka6The parameter is controlled to be constant.

Then, for the designed q-axis stator voltage uqAnd d-axis stator voltage udInverse Park transformation is performed as follows

Wherein u isα、uβIn a two-phase stationary coordinate systemThe stator voltages of the alpha and beta axes of the motor,

finally u is toα、uβThe output is sent to a space vector pulse width modulation and three-phase inverter and finally sent to a permanent magnet synchronous motor, and the rotating speed of the motor is controlled to reach a given speed omegamc

The space vector pulse width modulation and the three-phase inverter are well-known technologies in the art and are not protected by the present invention, and therefore, they will not be described in detail herein.

Case implementation and computer simulation result analysis:

in the present case, the load torque T of the permanent magnet synchronous motor is selectedl1 N.m, selecting p as the number of pole pairs of the motorn=2。

The measurement process and the coordinate transformation process of step S10 are the same as those described above and will not be repeated here.

In step S20 and step S30, ∈1=0.5,ka1=-80,ka2The measured value of the motor speed signal is obtained as shown in fig. 2, the speed error signal is shown in fig. 3, and the expected value of the d-axis stator current is obtained as shown in fig. 4.

In step S40 and step S50, ∈ is set2The obtained d-axis stator current error signal is shown in fig. 5, and the obtained q-axis control voltage signal is shown in fig. 6, where 1.5 is the same.

In step S60, k is selecteda3=-120,ka4=-20,ε3The desired value signal for the q-axis stator current is obtained as shown in fig. 7, and the q-axis stator current error signal is obtained as shown in fig. 8.

In step S70, k is selecteda5-15 and ka6The d-axis control voltage was obtained as shown in fig. 9.

As can be seen from fig. 2 and 3, the method provided by the present invention can quickly and stably track the given rotation speed of the permanent magnet synchronous motor, the response time is about 2s, and finally there is no static error, and the speed control is very accurate. As can be seen from fig. 5 and 8, the current error in both axial directions can converge to zero rapidly, indicating that the time current can track the designed current desired value. The expected values of the two axial currents given in fig. 4 and 7 show that the method of the present invention is reasonably designed, and the expected values of the currents do not appear to be too large. Fig. 6 and 9 show that the control voltage in both axial directions is not more than 20 in a reasonable range. Moreover, the characteristics of the burrs shown in fig. 2 to 9 are caused by the nonlinear characteristics caused by the fuzzy rules, and the advantages brought by the burrs are similar to the switching characteristics of the sliding mode control, which can improve the system anti-interference and resist the adverse effects caused by the motor model and the load uncertainty, and are also the advantages that the conventional PID control and other linear controls do not have, that is, the method provided by the present invention can make the rotation speed control of the permanent magnet synchronous motor have good rapidity and accuracy, especially good anti-interference capability.

Compared with the traditional method that the coupling between the double shafts is eliminated, and then the rotating speed tracking of the synchronous motor is realized through the decoupled single-shaft control, the method adopts the fuzzy feedback of errors and error integrals, particularly the method of the simultaneous feedback of the double shafts to realize the accurate and rapid control of the rotating speed of the synchronous motor, so that the method for eliminating the errors through the simultaneous control of the double shafts can effectively utilize the coupling energy between the double shafts to serve the common target of the rotating speed control. Moreover, the cases show that the fuzzy system and the fuzzy rule designed by the invention are effective, and can reasonably process the uncertainty in the permanent magnet synchronous motor, so that the effect of controlling the rotating speed of the whole permanent magnet synchronous motor is very ideal, and the invention has high engineering application value.

Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:模块化多绕组永磁电机系统参数免疫预测控制方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!