Disclosure of Invention
The invention aims to provide a method and a device for controlling the rotating speed of an air conditioner compressor, which improve the effectiveness of suppressing the fluctuation of the rotating speed of the compressor.
In order to achieve the purpose of the invention, the method provided by the invention is realized by adopting the following technical scheme:
a method of controlling the speed of an air conditioning compressor, the method comprising:
acquiring the output angular velocity of a phase-locked loop regulator for controlling the rotating speed of the compressor, and calculating the difference between the target angular velocity fluctuation amount and the output angular velocity of the phase-locked loop regulator to obtain a first angular velocity difference value;
filtering the first angular velocity difference to obtain a filtered angular velocity at least filtering part of angular velocity fluctuation;
inputting the filter angular velocity as an input quantity to a speed ring regulator in a speed ring for controlling a compressor, and obtaining an output torque of the speed ring regulator;
and controlling the air conditioner compressor according to the output torque.
Further, the filtering processing is performed on the first angular velocity difference value to obtain a filtered angular velocity at which at least part of angular velocity fluctuation is filtered, and the method specifically includes:
and extracting part of angular velocity fluctuation in the first angular velocity difference by adopting a velocity fluctuation extraction algorithm, calculating the difference between the first angular velocity difference and the part of angular velocity fluctuation, and determining the difference as the filtering angular velocity.
Further, the extracting, by using a speed fluctuation extraction algorithm, a part of angular velocity fluctuations in the first angular velocity difference, calculating a difference between the first angular velocity difference and the part of angular velocity fluctuations, and determining the difference as the filtering angular velocity specifically includes:
and adopting a speed fluctuation extraction algorithm to extract at least a first harmonic component in the first angular speed difference value, taking the first harmonic component as the partial angular speed fluctuation, calculating the difference value between the first angular speed difference value and the first harmonic component, and determining the difference value as a filtering angular speed for filtering at least the first harmonic component.
Preferably, the extracting, by using a speed fluctuation extraction algorithm, a first harmonic component in the first angular velocity difference specifically includes:
performing Fourier series expansion on the first angular velocity difference to obtain a function expression about a mechanical angle;
extracting a d-axis component and a q-axis component of the first harmonic from the function expression respectively;
and adding the d-axis component and the q-axis component of the first harmonic to obtain a first harmonic component in the first angular velocity difference.
Further, the extracting, by using a speed fluctuation extraction algorithm, a part of the angular velocity fluctuations in the first angular velocity difference value further includes: extracting a second harmonic component in the first angular velocity difference value by adopting a velocity fluctuation extraction algorithm, and taking the sum of the first harmonic component and the second harmonic component as the partial angular velocity fluctuation;
the calculating a difference between the first angular velocity difference and the partial angular velocity fluctuation, which is determined as the filter angular velocity, further includes: and calculating the difference value between the first angular velocity difference value and the sum of the first harmonic component and the second harmonic component, wherein the difference value is determined as the filtering angular velocity after the first harmonic component and the second harmonic component are filtered.
Preferably, the extracting, by using a speed fluctuation extraction algorithm, a second harmonic component in the first angular velocity difference specifically includes:
performing Fourier series expansion on the first angular velocity difference to obtain a function expression about a mechanical angle;
extracting a d-axis component and a q-axis component of the second harmonic from the function expression respectively;
and adding the d-axis component and the q-axis component of the second harmonic to obtain a second harmonic component in the second angular velocity difference.
The method as described above, further comprising: and determining a real-time angular speed for controlling the compressor according to the output angular speed of the phase-locked loop regulator, and controlling the air-conditioning compressor according to the real-time angular speed.
The method as described above, the target amount of angular velocity fluctuation is 0; the determining a real-time angular velocity for controlling a compressor according to the output angular velocity of the phase-locked loop regulator specifically includes: and adding the output angular speed of the phase-locked loop regulator and a given angular speed instruction, and determining the addition result as the real-time angular speed.
In order to achieve the purpose, the device provided by the invention adopts the following technical scheme:
an air conditioner compressor rotational speed control apparatus, the apparatus comprising:
a first angular velocity difference obtaining unit, configured to obtain an output angular velocity of a phase-locked loop regulator for controlling a rotational speed of the compressor, and calculate a difference between a target angular velocity fluctuation amount and the output angular velocity of the phase-locked loop regulator to obtain a first angular velocity difference;
a filtering angular velocity obtaining unit, configured to perform filtering processing on the first angular velocity difference to obtain a filtering angular velocity at which at least part of angular velocity fluctuations are filtered;
an output torque acquisition unit for inputting the filtered angular velocity as an input amount to a speed loop regulator in a speed loop for compressor control, and acquiring an output torque of the speed loop regulator;
and the control unit is used for controlling the air conditioner compressor at least according to the output torque.
The apparatus as described above, further comprising:
the real-time angular velocity obtaining unit is used for determining the real-time angular velocity for controlling the compressor according to the output angular velocity of the phase-locked loop regulator;
the control unit also controls an air conditioner compressor according to the real-time angular speed.
Compared with the prior art, the invention has the advantages and positive effects that: according to the method and the device for controlling the rotating speed of the air conditioner compressor, the difference value between the output angular speed of the phase-locked loop regulator and the target angular speed fluctuation amount is subjected to filtering processing, and the filtered angular speed with at least part of angular speed fluctuation filtered out is input into the speed loop regulator as an input amount, so that the fluctuation of the output torque of the speed loop regulator can be reduced, and when the compressor is controlled according to the output torque, the rotating speed fluctuation of the compressor can be reduced, and the operation of the compressor is more stable; the compressor operates stably, and the effects of energy conservation and vibration reduction can be achieved.
Other features and advantages of the present invention will become more apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, a flow chart of an embodiment of a method for controlling a rotational speed of an air conditioner compressor according to the present invention is shown.
As shown in fig. 1, in conjunction with a control block diagram shown in fig. 2, this embodiment implements the speed control of the air conditioner compressor by a process including the following steps:
step 11: the method comprises the steps of obtaining the output angular speed of a phase-locked loop regulator for controlling the rotating speed of the compressor, calculating the difference between the target angular speed fluctuation amount and the output angular speed of the phase-locked loop regulator, and obtaining a first angular speed difference value.
In compressor control, the rotational speed of the compressor rotor can be controlled to approach a set rotational speed by a speed loop (ASR) control technique. Referring to the block diagram of FIG. 2, the speed loop includes a speed loop regulator, typically a proportional integral regulator, see K of FIG. 2P_ASRAnd KI_ASRand/S. In compressor control, the phase of the compressor rotor is also locked to the target phase by a Phase Locked Loop (PLL) control technique. Referring to the block diagram of fig. 2, a compressor pll includes a pll regulator, also typically a proportional integral regulator, see K of fig. 2P_PLLAnd KI_PLLand/S. The axis error Δ θ is used as an input of the PLL regulator, and specifically, the axis error Δ θ is subtracted from a target angular fluctuation amount (0 shown in fig. 2), and the difference is input to the PLL regulator, and the output of the PLL regulator is an output angular velocity Δ ω _ PLL.
In the step, firstly, the output angular speed delta omega _ PLL of the phase-locked loop regulator is obtained; then, a difference between the target amount of angular velocity fluctuation and the output angular velocity Δ ω _ PLL of the phase-locked loop regulator is calculated, and the difference therebetween is determined as a first angular velocity difference Δ ω 2. Here, the target angular velocity fluctuation amount is a desired angular velocity fluctuation amount and is a known input amount. As a preferred embodiment, in this example, the target angular velocity fluctuation amount is 0.
Step 12: and performing filtering processing on the first angular velocity difference to obtain a filtered angular velocity after at least part of angular velocity fluctuation is filtered.
The first angular velocity difference is used as an input to the velocity loop regulator to affect the output torque at the velocity loop output. If the first angular speed difference value fluctuates greatly, the fluctuation of the output torque is large, and further the fluctuation of the rotating speed of the compressor is large. After the first angular velocity difference is obtained in step 11, filtering is performed on the first angular velocity difference to filter out at least part of the angular velocity fluctuation component, so as to obtain a filtered angular velocity Δ ω _ K. The method for filtering the angular velocity can be implemented by adopting a filtering mode in the prior art, and more preferably, the filtering process is described in the following preferred embodiment.
Step 13: inputting the angular speed of the filter as input quantity to a speed loop regulator in a speed loop for controlling the compressor to obtain the output torque tau of the speed loop regulatorM。
Step 14: and controlling the air conditioner compressor according to the output torque. The specific control process refers to the prior art.
By adopting the method of the embodiment, the difference value between the output angular velocity of the phase-locked loop regulator and the target angular velocity fluctuation amount is subjected to filtering processing, and the filtered angular velocity with at least part of angular velocity fluctuation filtered out is input into the speed loop regulator as an input amount, so that the fluctuation of the output torque of the speed loop regulator can be reduced, and when the compressor is controlled according to the output torque, the fluctuation of the rotating speed of the compressor can be reduced, and the running of the compressor tends to be stable.
In other embodiments, controlling the speed of the air conditioner compressor further comprises determining a real-time angular velocity ω 1 for controlling the compressor based on the output angular velocity Δ ω _ PLL of the phase locked loop regulator, and controlling the air conditioner compressor based on the real-time angular velocity ω 1. Specifically, in this embodiment, as a preferred implementation, when the target angular velocity fluctuation amount of the speed loop ASR is 0, the determining the real-time angular velocity ω 1 for controlling the compressor according to the output angular velocity Δ ω _ PLL of the phase-locked loop regulator specifically includes: combining the output angular velocity delta omega _ PLL of the phase-locked loop regulator with a given angular velocity command omega*In, and the result of the addition is determined as the real angular velocity ω 1. Wherein the angular velocity command ω*In is a given angular velocity value of the compressor control system, a given angular velocity command ω*The determination of the value of in is carried out using known techniques. In a preferred embodiment, a target angular velocity fluctuation amount of 0 is used for the velocity loop, and the output angular velocity Δ ω _ PLL based on the phase-locked loop regulator and the given angular velocity command ω _ PLL are used*In determines the real-time angular velocity, making the compressor control more accurateAnd stable.
As a preferred embodiment, the filtering processing is performed on the first angular velocity difference Δ ω 2 to obtain a filtered angular velocity Δ ω _ K after at least part of the angular velocity fluctuation is filtered, and the method specifically includes: and extracting partial angular velocity fluctuation K _ out in the first angular velocity difference value delta omega 2 by adopting a velocity fluctuation extraction algorithm, and calculating the difference value between the first angular velocity difference value delta omega 2 and the partial angular velocity fluctuation K _ out, wherein the difference value is determined as the filtering angular velocity delta omega _ K.
In some other preferred embodiments, a speed fluctuation extraction algorithm is used to extract a partial angular velocity fluctuation in the first angular velocity difference, and a difference between the first angular velocity difference and the partial angular velocity fluctuation is calculated, where the difference is determined as a filtered angular velocity, and the method specifically includes: and adopting a speed fluctuation extraction algorithm to extract at least a first harmonic component in the first angular speed difference value as part of angular speed fluctuation, calculating the difference value between the first angular speed difference value and the first harmonic component, and determining the difference value as a filtering angular speed for filtering at least the first harmonic component. As a more preferable embodiment, the extracting a partial angular velocity fluctuation from the first angular velocity difference by using a velocity fluctuation extraction algorithm, and calculating a difference between the first angular velocity difference and the partial angular velocity fluctuation, where the difference is determined as a filtered angular velocity specifically includes: and extracting a first harmonic component and a second harmonic component in the first angular velocity difference value by adopting a velocity fluctuation extraction algorithm, taking the sum of the first harmonic component and the second harmonic component as part of angular velocity fluctuation, calculating the difference value between the first angular velocity difference value and the sum of the first harmonic component and the second harmonic component, and determining the difference value as the filtering angular velocity after the first harmonic component and the second harmonic component are filtered. Most of fluctuation components in the first angular velocity difference value can be filtered out by filtering out the first harmonic component in the first angular velocity difference value or filtering out the first harmonic component and the second harmonic component in the first angular velocity difference value, the calculated amount is moderate, and the filtering speed is high.
Fig. 3 is a logic block diagram showing a specific example of the speed fluctuation extraction algorithm in fig. 2, specifically, a logic block diagram showing a specific example of extracting a first harmonic component and a second harmonic component from a first angular velocity difference value to form a partial angular velocity fluctuation. Referring to fig. 3, this specific example obtains a partial angular velocity fluctuation containing a first harmonic component and a second harmonic component by the following method:
firstly, a Fourier series expansion is carried out on the first angular velocity difference delta omega 2 to obtain the first angular velocity difference delta omega 2 relative to the mechanical angle thetamIs used for the functional expression of (1). This process can be implemented using existing technology and is not described in detail here.
Then, the first harmonic component and the second harmonic component are extracted from the functional expression, respectively.
Specifically, as shown in FIG. 3, the functional expression is related to cos θ
m1After multiplication, pass through a low-pass filter
Filtering, and performing inverse Fourier transform on a filtering result to obtain a d-axis component of the first harmonic; multiplying the functional expression by-sin θ
m1After multiplication, pass through a low-pass filter
Filtering, and performing inverse Fourier transform on a filtering result to obtain a q-axis component of a first harmonic; then, the d-axis component and the q-axis component of the first harmonic are added to obtain a first harmonic component K _ out1 in the first angular velocity difference. Similarly, the functional expression is related to cos θ
m2After multiplication, pass through a low-pass filter
Filtering, and performing inverse Fourier transform on a filtering result to obtain a d-axis component of a second harmonic; multiplying the functional expression by-sin θ
m2After multiplication, pass through a low-pass filter
Filtering, and performing inverse Fourier transform on a filtering result to obtain a q-axis component of a second harmonic; then, the d-axis component and the q-axis component of the second harmonic are added to obtain a second harmonic component K _ out2 in the first angular velocity difference. Finally, the first harmonic component K _ out1 is mixed withThe second harmonic components K _ out2 add up and the resulting sum forms part of the angular velocity fluctuation K _ out. Wherein, theta
m1Mechanical angle of first harmonic, theta, in a functional expression developed as a Fourier series
m2Mechanical angle of the second harmonic in a functional expression developed as a Fourier series, and θ
m2=2θ
m1,T
_PD_filterIs the time constant of the low pass filter.
After obtaining the partial angular velocity fluctuation K _ out containing the first harmonic component and the second harmonic component, calculating a difference between the first angular velocity difference Δ ω 2 and the partial angular velocity fluctuation K _ out as a filtered angular velocity Δ ω _ K, where the filtered angular velocity Δ ω _ K is the filtered angular velocity after the first harmonic component and the second harmonic component are filtered out.
As a preferred embodiment, the control of the harmonic extraction can also be achieved by adding an enable switch. Specifically, in the block diagram of fig. 3, Gain _1 and Gain _2 are enable switches for determining whether to turn on/off the extraction algorithm function. Under the condition that the enabling switch states of the Gain _1 and the Gain _2 are on, the functions of extracting the first harmonic and extracting the second harmonic are obtained, and partial angular velocity fluctuation formed by the first harmonic component and the second harmonic component is obtained: k _ out is K _ out1+ K _ out 2. If the enable switch states of Gain _1 and Gain _2 are the functions of extracting the first harmonic and extracting the second harmonic, the whole speed fluctuation extraction algorithm function is turned off, and part of the angular speed fluctuation is 0. If one of the enable switches is in the state of opening the extraction algorithm function, and the other enable switch is in the state of closing the extraction algorithm function, the obtained part of the angular speed fluctuation is only a first harmonic component in the first angular speed difference (the state of the Gain _1 enable switch is in the state of opening the extraction first harmonic function, and the state of the Gain _2 enable switch is in the state of closing the extraction second harmonic function) or only a second harmonic component in the first angular speed difference (the state of the Gain _1 enable switch is in the state of closing the extraction first harmonic function, and the state of the Gain _2 enable switch is in the state of opening the extraction second harmonic function).
In the embodiment of extracting only the first harmonic component, the process of extracting the first harmonic component in fig. 3 may be directly employed; of course, the control of the first harmonic extraction may also be implemented by adding an enable switch, and the specific implementation manner is also shown in fig. 3, which is not repeated herein.
Referring to fig. 4, a block diagram of an embodiment of a rotational speed control apparatus for an air conditioner compressor according to the present invention is shown.
As shown in fig. 4, the apparatus of this embodiment includes the following structural units, connection relationships between the units, and functions of the units:
the first angular velocity difference obtaining unit 21 is configured to obtain an output angular velocity of a phase-locked loop regulator for controlling a rotational speed of the compressor, and calculate a difference between a target angular velocity fluctuation amount and the output angular velocity of the phase-locked loop regulator to obtain a first angular velocity difference.
The filtered angular velocity obtaining unit 22 is configured to perform filtering processing on the first angular velocity difference obtained by the first angular velocity difference obtaining unit 21 to obtain a filtered angular velocity after at least part of angular velocity fluctuations are filtered out.
An output torque acquisition unit 23 for inputting the filtered angular velocity acquired by the filtered angular velocity acquisition unit 22 as an input amount to the speed loop regulator in the speed loop for compressor control, and acquiring an output torque of the speed loop regulator.
And a control unit 24 for controlling the air conditioner compressor at least according to the output torque of the output torque obtaining unit 23.
In other embodiments, the compressor speed control device may further comprise a real-time angular velocity obtaining unit 25 for determining a real-time angular velocity for the compressor control based on the output angular velocity of the phase-locked loop regulator. In these embodiments, the control unit 24 controls the compressor according to the real-time angular velocity determined by the real-time angular velocity obtaining unit 25 in addition to controlling the air conditioning compressor according to the output torque of the output torque obtaining unit 23.
The device with the structural units can be applied to air conditioner compressor products, corresponding software programs are operated, the device works according to the process of the method embodiment and the preferred embodiment, the suppression of the rotation speed fluctuation of the compressor is achieved, and the technical effect of the method embodiment is achieved.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions.