Method for adjusting compensation parameters during operation of a compressor, adjusting device and electronic device
By adjusting the compensation parameters of the single-rotor compressor in real time, the problem of large differences in vibration stress under different loads was solved, and the compressor was able to operate stably and improve safety under various loads.
Patent Information
- Application Number
- CN202411906618.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2044-12-23
AI Technical Summary
The vibration stress effect of a single-rotor compressor varies greatly under different loads. The existing technology uses fixed compensation parameters, which cannot adapt to load changes, leading to safety hazards and uneven stress.
By obtaining the first speed difference of the compressor, it is determined whether it is greater than a preset threshold. If so, the compensation parameters (depth and angle) are adjusted to make the speed difference less than the threshold. The compressor operation is controlled by the target compensation parameters to adapt to the torque compensation requirements under different loads.
By effectively adjusting compensation parameters under different loads, the differences in compressor vibration stress are reduced, the system stability and control accuracy are improved, and safe operation is ensured.
Smart Images

Figure CN119594003B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of compressors, and more specifically, to a method, device, computer-readable storage medium, and electronic device for adjusting compensation parameters during compressor operation. Background Technology
[0002] When a single-rotor compressor operates cyclically, its structure causes an imbalance in the operating load torque within the cycle, resulting in periodic fluctuations. This leads to significant stress on the compressor and piping, and in severe cases, safety hazards such as pipe rupture. A common practice is to develop a fixed compensation angle and depth coefficient scheme during the early stages of development, without adjusting or optimizing it throughout the machine's lifespan. During low-frequency operation of the compressor, the current is periodically compensated according to the load torque fluctuation curve.
[0003] However, the required torque compensation depth of the compressor varies under different loads. For example, a smaller torque compensation depth is more effective for stress relief under high loads than under low loads. Furthermore, under long-term use, the torque compensation angle may change due to factors such as slight loosening or aging of the foot pads, which will affect the stress.
[0004] Therefore, there is an urgent need for a method to improve the vibration stress effect of a single-rotor compressor under different loads. Summary of the Invention
[0005] The main objective of this application is to provide a method, device, computer-readable storage medium, and electronic device for adjusting compensation parameters during compressor operation, so as to at least solve the problem of large differences in vibration stress effects of single-rotor compressors under various loads in the prior art.
[0006] To achieve the above objectives, according to one aspect of this application, a method for adjusting compensation parameters during compressor operation is provided, comprising: obtaining a first speed difference of the compressor; when the absolute value of the first speed difference is greater than or equal to a first preset threshold, obtaining a target compensation parameter, the target compensation parameter including at least one of a target compensation depth and a target compensation angle, the target compensation depth being a torque compensation depth value set to offset abnormal torque fluctuations of the compressor, and the target compensation angle being an angle value set to offset abnormal torque fluctuations of the compressor; controlling the compressor operation using at least the target compensation parameter, such that the absolute value of the corresponding first speed difference is less than the first preset threshold.
[0007] Optionally, when the absolute value of the first speed difference is greater than or equal to a first preset threshold, obtaining the target compensation parameter includes: determining whether the operating state of the compressor is a target historical operating state, wherein the operating state is determined based on the phase current value, operating frequency, and operating ambient temperature of the compressor; when the operating state of the compressor is the target historical operating state, obtaining the historical compensation parameter corresponding to the target historical operating state, and adjusting the current initial compensation parameter according to the historical compensation parameter to obtain the target compensation parameter, wherein the historical compensation parameter includes a historical compensation depth and a historical compensation angle, and the current initial compensation parameter is the compensation parameter at the current moment and includes the current initial compensation depth and the current initial compensation angle.
[0008] Optionally, obtaining the historical compensation parameters corresponding to the target historical operating state includes: when the absolute value of the first speed difference at a historical moment is greater than or equal to the first preset threshold, obtaining the initial compensation depth and initial compensation angle at the historical moment, respectively obtaining the historical initial compensation depth and historical initial compensation angle; keeping the historical initial compensation depth unchanged, adjusting the compensation angle multiple times starting from the historical initial compensation angle, and obtaining the first speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle, wherein the first current component error is the difference between the first d-axis reference current value given by the current loop PID algorithm and the actual detected feedback d-axis current value, and the second current component error is the difference between the first q-axis reference current value given by the current loop PID algorithm and the actual detected feedback q-axis current value; calculating the total error value after each adjustment of the compensation angle based on the first speed difference, the first current component error, and the second current component error, obtaining the first total error value, determining the compensation angle value corresponding to the minimum first total error value as the historical compensation angle, and the compensation angle value as the adjusted compensation angle.
[0009] Optionally, adjusting the compensation angle multiple times starting from the historical initial compensation angle includes: determining the adjustment range of the compensation angle as a first preset range [θ0-m, θ0+m], where m is a preset angle and θ0 is the historical initial compensation angle; and adjusting the compensation angle multiple times within the first preset range starting from the historical initial compensation angle.
[0010] Optionally, within the first preset range, the compensation angle is adjusted multiple times starting from the historical initial compensation angle, including: determining the adjustment step size of the compensation angle to obtain the first step size; determining the number of adjustments of the compensation angle based on m and the first step size to obtain the first number of adjustments; and adjusting the compensation angle within the first preset range, starting from the historical initial compensation angle, according to the first step size and the first number of adjustments.
[0011] Optionally, keeping the historical initial compensation depth unchanged, the compensation angle is adjusted multiple times starting from the historical initial compensation angle, and the first speed difference, the first current component error, and the second current component error are obtained after each adjustment of the compensation angle. This includes: keeping the historical initial compensation depth unchanged, adjusting the compensation angle multiple times starting from the historical initial compensation angle; determining whether the compressor has been running at the same frequency for a period of time exceeding a preset time, and if the compressor has been running at the same frequency for a period of time exceeding the preset time, obtaining the first speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle.
[0012] Optionally, obtaining the historical compensation parameters corresponding to the target historical operating state further includes: keeping the historical compensation angle unchanged, adjusting the compensation depth multiple times starting from the historical initial compensation depth, and obtaining the first speed difference, the third current component error, and the fourth current component error after each adjustment of the compensation depth. The third current component error is the difference between the second d-axis reference current value given by the current loop PID algorithm and the actual detected feedback d-axis current value, and the fourth current component error is the difference between the second q-axis reference current value given by the current loop PID algorithm and the actual detected feedback q-axis current value. Based on the first speed difference, the third current component error, and the fourth current component error obtained after each adjustment of the historical initial compensation depth, the total error value after each adjustment of the compensation depth is calculated to obtain a second total error value. The compensation depth value corresponding to the smallest second total error value is determined as the historical compensation depth, and the compensation depth value is the adjusted compensation depth.
[0013] Optionally, adjusting the compensation depth multiple times starting from the historical initial compensation depth includes: when the compressor is running stably at a preset operating frequency, determining the adjustment range of the compensation depth as a second preset range [a0-n, a0+n], where n is the preset depth and a0 is the historical initial compensation depth; and adjusting the compensation depth multiple times within the second preset range starting from the historical initial compensation depth.
[0014] Optionally, within the second preset range, adjusting the compensation depth multiple times starting from the historical initial compensation depth includes: determining the adjustment step size of the compensation depth to obtain a second step size; determining the number of adjustments to the compensation depth based on n and the second step size to obtain a second number of adjustments; and adjusting the compensation depth according to the second step size and the second number of adjustments starting from the historical initial compensation depth within the second preset range.
[0015] Optionally, adjusting the initial compensation parameters according to the historical compensation parameters to obtain the target compensation parameters includes: when the current initial compensation depth and the historical initial compensation depth are different, calculating the ratio of the historical compensation depth to the historical initial compensation depth to obtain an adjustment ratio; calculating the product of the current initial compensation depth and the adjustment ratio to obtain the target compensation depth; and adjusting the current initial compensation angle to the historical compensation angle to obtain the target compensation angle.
[0016] Optionally, in the process of obtaining the target compensation parameter, the method further includes: obtaining the operating frequency of the compressor in real time; determining that the current load of the compressor does not change, at least when the operating frequency remains unchanged; and adjusting the wind speed of the fan associated with the compressor or adjusting the throttling device connected to the compressor, at least when the current load changes significantly, to ensure that the current load of the compressor does not change.
[0017] Optionally, the method for determining the single / dual rotor structure of the compressor includes: controlling the compressor to operate at a preset frequency without torque compensation; obtaining the first speed difference of the compressor within at least one first mechanical operating cycle; obtaining a first time interval of the maximum values of two adjacent first speed differences within at least one first mechanical operating cycle; and determining the compressor structure as a single rotor structure when the first time interval is equal to the first mechanical operating cycle and the maximum value of the first speed difference is greater than a second preset threshold.
[0018] Optionally, the method for determining the structure of the compressor further includes: when the first time interval and the first mechanical operating cycle are not equal or the maximum value of the first speed difference is not greater than the second preset threshold, obtaining a second speed difference of the compressor within at least one second mechanical operating cycle, wherein the second mechanical operating cycle is an operating cycle after a preset time interval of the mechanical operating cycle; and obtaining a second time interval of the maximum values of two adjacent second speed differences within at least one second mechanical operating cycle; and determining that the structure of the compressor is a dual-rotor structure when at least the second time interval and the second mechanical operating cycle are not equal.
[0019] According to another aspect of this application, a device for adjusting compensation parameters during compressor operation is provided, comprising:
[0020] The first acquisition unit acquires the first speed difference of the compressor;
[0021] The second acquisition unit acquires target compensation parameters when the absolute value of the first speed difference is greater than or equal to a first preset threshold. The target compensation parameters include at least one of target compensation depth and target compensation angle. The target compensation depth is a torque compensation depth value set to offset the torque fluctuation of the compressor, and the target compensation angle is a torque compensation angle value set to offset the torque fluctuation of the compressor.
[0022] The compressor is controlled by a unit that uses at least the target compensation parameters, such that the absolute value of the corresponding first speed difference is less than the first preset threshold.
[0023] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the above-described methods for adjusting compensation parameters during compressor operation.
[0024] According to another aspect of this application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including a method for performing adjustment of compensation parameters during compressor operation as described above.
[0025] The technical solution of this application involves, firstly, obtaining the first speed difference of the compressor; secondly, obtaining a target compensation parameter when the absolute value of the first speed difference is greater than or equal to a first preset threshold; and finally, controlling the compressor operation using at least the target compensation parameter, such that the absolute value of the corresponding first speed difference is less than the first preset threshold. Compared with the prior art, which involves debugging the compressor with a fixed compensation angle and depth coefficient in the early stages of development but cannot automatically adjust torque compensation under different operating loads, the solution of this application, under various loads, obtains the first speed difference and determines whether the first speed difference is less than the first preset threshold. If it is less than the first preset threshold, the compressor maintains its original operation. If the first speed difference is greater than or equal to the first preset threshold, the compensation coefficient is adjusted, and the obtained compensation coefficient is used to control the compressor operation so that the first speed difference is less than the first preset threshold, making the compensation parameter suitable for the current operating state and achieving a stable operating state. This ensures that the compressor meets the different torque compensation requirements under different loads, thereby solving the problem of large differences in vibration stress effects of single-rotor compressors under different loads in the prior art. Attached Figure Description
[0026] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0027] Figure 1 A hardware structure block diagram of a mobile terminal for performing a method for adjusting compensation parameters during compressor operation, according to an embodiment of this application, is shown.
[0028] Figure 2 A schematic flowchart of a method for adjusting compensation parameters during compressor operation according to an embodiment of this application is shown.
[0029] Figure 3 A flowchart illustrating the method for adjusting compensation depth coefficients and controlling compressor operation according to an embodiment of this application is provided.
[0030] Figure 4 A flowchart is provided below illustrating a method for adjusting compensation parameters during compressor operation according to an embodiment of this application, which involves adjusting the target compensation depth by means of the relationship between the compensation depth and the initial compensation depth.
[0031] Figure 5 A flowchart illustrating the method for adjusting compensation parameters during compressor operation according to an embodiment of this application is provided, which involves determining the compressor structure.
[0032] Figure 6 A structural block diagram of a compressor operation compensation parameter adjustment device provided according to an embodiment of this application is shown. Detailed Implementation
[0033] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0034] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0036] As described in the background section, existing single-rotor compressors suffer from significant differences in vibration stress effects under various loads. To address this issue, embodiments of this application provide a method, device, computer-readable storage medium, and electronic device for adjusting compensation parameters during compressor operation.
[0037] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0038] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of adjusting compensation parameters during compressor operation according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0039] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device information display method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0040] This embodiment provides a method for adjusting compensation parameters during the operation of a compressor running on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0041] Figure 2 This is a flowchart of a method for adjusting compensation parameters during compressor operation according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:
[0042] Step S201: Obtain the first speed difference of the compressor.
[0043] Specifically, the first speed difference is the difference between the estimated speed and the preset speed.
[0044] Step S202: When the absolute value of the first speed difference is greater than or equal to the first preset threshold, a target compensation parameter is obtained. The target compensation parameter includes at least one of a target compensation depth and a target compensation angle. The target compensation depth is a torque compensation depth value set to offset the abnormal torque fluctuation of the compressor. The target compensation angle is a torque compensation angle value set to offset the abnormal torque fluctuation of the compressor.
[0045] Specifically, if the first speed difference is greater than the first preset threshold (set manually, assuming that the first speed difference is large at this time and the control deviation is large), the torque compensation scheme is corrected.
[0046] Step S203: At least the above-mentioned target compensation parameters are used to control the operation of the compressor, and the absolute value of the corresponding first speed difference is less than the first preset threshold.
[0047] Specifically, compensation control is performed using the aforementioned target compensation parameters, i.e., the torque compensation strategy is updated, and the compressor's operating state is adjusted using at least the target compensation angle and the target compensation depth.
[0048] In the above embodiments, firstly, the first speed difference of the compressor is obtained; secondly, if the absolute value of the first speed difference is greater than or equal to a first preset threshold, a target compensation parameter is obtained; finally, the compressor is controlled to operate using at least the target compensation parameter, and the absolute value of the corresponding first speed difference is less than the first preset threshold. Compared with the prior art, which debugs a fixed compensation angle and depth coefficient for the compressor under all loads in the early stage of development, but cannot automatically adjust torque compensation under different operating loads, the solution of this application, under various loads, obtains the first speed difference and determines whether the first speed difference is less than the first preset threshold. If it is less than the first preset threshold, the compressor maintains its original operation. If the first speed difference is greater than or equal to the first preset threshold, the compensation coefficient is adjusted, and the obtained compensation coefficient is used to control the compressor operation so that the first speed difference is less than the first preset threshold, making the compensation parameter suitable for the current operating state and achieving a stable operating state. This ensures that the compressor meets the different torque compensation requirements under different loads, thereby solving the problem of large differences in vibration stress effects of single-rotor compressors under different loads in the prior art.
[0049] To help the system better adapt to the current operating conditions and thereby further improve performance and efficiency, in one embodiment of this application, when the absolute value of the first speed difference is greater than or equal to a first preset threshold, a target compensation parameter is obtained, including: determining whether the operating state of the compressor is a target historical operating state, wherein the operating state is determined based on the phase current value, operating frequency, and operating ambient temperature of the compressor; when the operating state of the compressor is the target historical operating state, obtaining the historical compensation parameter corresponding to the target historical operating state, and adjusting the current initial compensation parameter according to the historical compensation parameter to obtain the target compensation parameter, wherein the historical compensation parameter includes a historical compensation depth and a historical compensation angle, and the current initial compensation parameter is the compensation parameter at the current moment and includes the current initial compensation depth and the current initial compensation angle.
[0050] Specifically, if the target is not in its historical operating state, then the current initial state is directly determined as the target.
[0051] In one embodiment of this application, obtaining the historical compensation parameters corresponding to the target historical operating state includes: when the absolute value of the first speed difference at the historical time is greater than or equal to the first preset threshold, obtaining the initial compensation depth and initial compensation angle at the historical time, respectively obtaining the historical initial compensation depth and historical initial compensation angle; keeping the historical initial compensation depth unchanged, adjusting the compensation angle multiple times starting from the historical initial compensation angle, and obtaining the first speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle, wherein the first current component error is the difference between the first d-axis reference current value given by the current loop PID algorithm and the actual detected feedback d-axis current value, and the second current component error is the difference between the first q-axis reference current value given by the current loop PID algorithm and the actual detected feedback q-axis current value; calculating the total error value after each adjustment of the compensation angle based on the first speed difference, the first current component error, and the second current component error, obtaining the first total error value, determining the compensation angle value corresponding to the minimum first total error value as the historical compensation angle, and the compensation angle value as the adjusted compensation angle. This method involves repeatedly adjusting the compensation angle to find the angle that minimizes the total error, thereby obtaining the target compensation parameters. This allows for the identification of the optimal torque compensation scheme under the current operating conditions, further improving the system's stability and accuracy. Simultaneously, by calculating the total error, the optimal historical compensation angle can be determined more accurately, further enhancing the system's control precision and efficiency.
[0052] Specifically, when the compressor phase current value stabilizes and no longer changes at a certain frequency, the torque compensation depth is finely adjusted. In order to make it easier to observe the effects of different parameters when adjusting the parameters, the historical initial compensation depth with a large error value is selected. At the same time, considering that the compensation effect is not greatly affected, the historical initial compensation depth a0' (such as 0.5 to 1 times the historical initial compensation depth) is selected.
[0053] Specifically, the initial historical compensation depth a0' is kept constant. Based on the initial historical compensation depth a0', the initial historical compensation angle θ is adjusted. After each adjustment, the magnitude of the first speed difference △Wr, the error of the first current component △Id, and the error of the second current component △Iq are read. The historical compensation angle θ1 with the smallest total first error value (m*|△Wr|+n*|△Id|+p*|△Iq|, where m, n, and p are proportional coefficients) is found.
[0054] In order to obtain the target compensation angle more accurately and thereby further optimize the performance of the system, in one embodiment of this application, the compensation angle is adjusted multiple times starting from the above-mentioned historical initial compensation angle, including: determining the adjustment range of the compensation angle as a first preset range [θ0-m, θ0+m], where m is a preset angle and θ0 is the above-mentioned historical initial compensation angle; within the above-mentioned first preset range, the compensation angle is adjusted multiple times starting from the above-mentioned historical initial compensation angle.
[0055] In another embodiment, within the aforementioned first preset range, the compensation angle is adjusted multiple times starting from the aforementioned historical initial compensation angle. This includes: determining the adjustment step size of the compensation angle to obtain a first step size; determining the number of adjustments of the compensation angle based on m and the aforementioned first step size to obtain a first number of adjustments; and adjusting the compensation angle within the aforementioned first preset range, starting from the aforementioned historical initial compensation angle, according to the aforementioned first step size and the aforementioned first number of adjustments. In this method, the adjustment step size and the number of adjustments of the compensation angle are first determined, and then multiple adjustments are performed according to the set step size and number of adjustments. Through this method, the compensation angle can be further refined and optimized step by step, making the target compensation angle more accurate, thereby further improving the performance and stability of the system.
[0056] Specifically, adjustments are made within the angle range of [θ0-m, θ0+m]. The first step length is divisible by m. The first adjustment count can be obtained by dividing m by the first step length and then multiplying by 2. The compensation angle is adjusted based on the first adjustment count and the first step length.
[0057] To make the historical compensation parameters obtained after each adjustment of the compensation angle more effective, in one embodiment of this application, the historical initial compensation depth is kept constant, and the compensation angle is adjusted multiple times starting from the historical initial compensation angle, and the first speed difference, the first current component error, and the second current component error are obtained after each adjustment of the compensation angle. This includes: keeping the historical initial compensation depth constant, adjusting the compensation angle multiple times starting from the historical initial compensation angle; determining whether the compressor has been running at the same frequency for a period of time exceeding a preset time, and if the compressor has been running at the same frequency for a period of time exceeding the preset time, obtaining the first speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle.
[0058] In another embodiment, obtaining the historical compensation parameters corresponding to the target historical operating state includes: keeping the historical compensation angle unchanged, adjusting the compensation depth multiple times starting from the initial historical compensation depth, and obtaining the first speed difference, third current component error, and fourth current component error after each adjustment of the compensation depth. The third current component error is the difference between the second d-axis reference current value given by the current loop PID algorithm and the actual detected feedback d-axis current value, and the fourth current component error is the difference between the second q-axis reference current value given by the current loop PID algorithm and the actual detected feedback q-axis current value. Based on the first speed difference, third current component error, and fourth current component error obtained after each adjustment of the initial historical compensation depth, the total error value after each adjustment of the compensation depth is calculated to obtain a second total error value. The compensation depth value corresponding to the minimum second total error value is determined as the historical target compensation depth, and the compensation depth value is the adjusted compensation depth. The target compensation depth is determined based on the initial target compensation depth. This method involves repeatedly adjusting the compensation depth to find the one that minimizes the total error, thus obtaining the target compensation depth. This allows for more effective adjustment of the compensation depth even when the initial speed difference is large, further improving the system's stability and accuracy. Simultaneously, by calculating the total error, the optimal compensation depth can be determined more accurately, further enhancing the system's control precision and efficiency.
[0059] Specifically, with the historical compensation angle unchanged, the compensation depth is adjusted multiple times, and the total second error is calculated based on the first speed difference, the third current component error, and the fourth current error after each adjustment. The compensation depth that minimizes the total second error is then used as the adjusted compensation depth.
[0060] In order to obtain the target compensation depth more accurately and further optimize the system performance, in one embodiment of this application, the compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: when the compressor is running stably at a preset operating frequency, determining the adjustment range of the compensation depth as a second preset range [a0-n, a0+n], where n is the preset depth and a0 is the historical initial compensation depth; and adjusting the compensation depth multiple times within the second preset range starting from the historical initial compensation depth.
[0061] In another embodiment, within the aforementioned second preset range, the compensation depth is adjusted multiple times starting from the aforementioned historical initial compensation depth, including: determining the adjustment step size of the compensation depth to obtain a second step size; determining the number of adjustments to the compensation depth based on n and the aforementioned second step size to obtain a second adjustment number; and adjusting the compensation depth within the aforementioned second preset range, starting from the aforementioned historical initial compensation depth, according to the aforementioned second step size and the aforementioned second adjustment number. In this method, by adjusting the compensation depth multiple times, errors can be further minimized, thereby further improving the accuracy and stability of the system.
[0062] Specifically, with the historical compensation angle unchanged, and at the current stable operating frequency of the machine, starting from the initial historical compensation depth, adjustments are made within the range of [a0-n, a0+n]. The first speed difference △Wr, the third current component error △Id, and the fourth current component error △Iq are read, and the historical compensation depth with the smallest second total error value (m*|△Wr|+n*|△Id|+p*|△Iq|, where m, n, and p are proportional coefficients) is found.
[0063] Specifically, such as Figure 3 As shown, the compressor operates stably. When the absolute value of the first speed difference is greater than or equal to the first preset threshold, the compensation angle is adjusted within the first preset range and the target compensation angle is obtained. When the historical compensation angle remains unchanged, the compensation depth is adjusted and the historical compensation depth is obtained. The compressor operation is controlled by the historical compensation angle and the historical compensation depth.
[0064] To more accurately control the operation of the compressor and make its operation more stable and efficient, in one embodiment of this application, the initial compensation parameters are adjusted according to the aforementioned historical compensation parameters to obtain the aforementioned target compensation parameters, including: when the current initial compensation depth and the historical initial compensation depth are different, calculating the ratio of the aforementioned historical compensation depth to the aforementioned historical initial compensation depth to obtain an adjustment ratio; calculating the product of the aforementioned current initial compensation depth and the aforementioned adjustment ratio to obtain the aforementioned target compensation depth; and adjusting the aforementioned current initial compensation angle to the aforementioned historical compensation angle to obtain the aforementioned target compensation angle.
[0065] Specifically, the target compensation angle is recorded, covering the initial compensation angle. Simultaneously, the adjustment ratio a1 / a0 of the compressor's torque compensation depth coefficient under this load is recorded. When the compressor operates under this load condition again, the compensation depth coefficient is actively adjusted to a*(a1 / a0) to adapt to the compressor's operation under this load condition. The conditions for determining whether the compressor is operating under this load are based on the detected ambient temperature range, compressor phase current, and frequency. When all three conditions are met, the recorded ratio coefficient can be retrieved.
[0066] Specifically, the system detects that the first speed difference is continuously greater than a first preset threshold. The time interval can be set by the user, such as 1 minute. The frequency is the current operating frequency (within the set torque compensation range). If the frequency exceeds the set torque compensation range, the first speed difference judgment process will not be performed.
[0067] Specifically, such as Figure 4 As shown, the target compensation angle at a historical moment in this state is recorded and the compensation angle in this state is covered. The adjustment ratio of the compensation depth coefficient at a historical moment in this state is recorded as historical compensation depth / historical initial compensation depth. When running in this state again and this state is under high load (the conditions for judging high load are: external ambient temperature is greater than T1℃ (e.g., 46℃), compressor phase current value is greater than I1 in the low frequency torque compensation range, then it is judged that the low frequency high load operation state has been reached), the compensation depth is actively adjusted to the current initial compensation depth * adjustment ratio. Otherwise, the target compensation depth is determined to be the current initial compensation depth.
[0068] To further ensure stable operation under constant load and make the adjustment process results more comparable, thereby further improving the efficiency and performance of the compressor, in one embodiment of this application, the method further includes, during the process of obtaining the target compensation parameters: acquiring the operating frequency of the compressor in real time; determining that the current load of the compressor does not change, at least when the operating frequency remains unchanged; and adjusting the fan speed of the fan associated with the compressor or adjusting the throttling device connected to the compressor, at least when the current load changes significantly, to ensure that the current load of the compressor does not change.
[0069] Specifically, the compressor phase current value is read in real time throughout the process to ensure that the compressor load remains basically stable during adjustment. If a sudden change in load or a large change in phase current occurs during adjustment, the load is actively adjusted and the phase current remains stable by adjusting the fan speed or other throttling devices such as the expansion valve.
[0070] To more accurately determine whether a compressor has a single-rotor structure, in one embodiment of this application, the method for determining the compressor structure includes: controlling the compressor to operate at a preset frequency; obtaining the first speed difference of the compressor within at least one first mechanical operating cycle; obtaining a first time interval between the maximum values of two adjacent first speed differences within at least one first mechanical operating cycle; and determining that the compressor has a single-rotor structure when the first time interval is equal to the first mechanical operating cycle and the maximum value of the first speed difference is greater than a second preset threshold.
[0071] To more accurately determine whether a compressor has a dual-rotor structure, in one embodiment of this application, the method for determining the compressor structure further includes: obtaining a second speed difference of the compressor within at least one second mechanical operating cycle when the first time interval and the first mechanical operating cycle are not equal or the maximum value of the first speed difference is not greater than the second preset threshold, wherein the second mechanical operating cycle is an operating cycle after a preset time interval of the mechanical operating cycle; and obtaining a second time interval between the maximum values of two adjacent second speed differences within at least one second mechanical operating cycle; and determining that the compressor has a dual-rotor structure when at least the second time interval and the second mechanical operating cycle are not equal.
[0072] Specifically, for variable displacement twin-cylinder compressors, re-determining and confirming the number of cylinders after changing between single and dual cylinders is more beneficial for the stability and reliability of subsequent program control operation.
[0073] Specifically, the magnitude and periodicity of the speed difference are used to determine whether it is a single-rotor or twin-rotor compressor, such as... Figure 5 As shown, when the compressor starts and runs to a preset frequency without torque compensation, the first mechanical operating cycle of at least one compressor is obtained, and the first speed difference (the difference between the estimated speed and the given speed) within this cycle is obtained. The magnitude and variation pattern of the speed difference are then determined. If the first speed difference is greater than a first preset threshold and the variation period of the first speed difference is equal to the first mechanical operating cycle, then the compressor is determined to be a single-rotor compressor. Otherwise, after running for a preset time, a second mechanical operating cycle is obtained. If the variation period of the first speed difference is not equal to the second mechanical operating cycle, then it is determined to be a dual-rotor compressor. Otherwise, it is a single-rotor compressor.
[0074] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the method for adjusting compensation parameters during compressor operation will be described in detail below with reference to specific embodiments.
[0075] This embodiment relates to a specific method for adjusting compensation parameters during compressor operation, including the following steps:
[0076] Step 1: Obtain the first speed difference of the compressor, determine whether the compressor's operating state is the target historical operating state, and if the compressor's operating state is the target historical operating state, obtain the historical compensation parameters corresponding to the target historical operating state, and adjust the current initial compensation parameters according to the historical compensation parameters to obtain the target compensation parameters;
[0077] Step 2: When the absolute value of the first speed difference corresponding to the historical moment is greater than or equal to the first preset threshold, keep the historical initial compensation depth unchanged, start from the historical initial compensation angle within the first preset range, adjust the compensation angle each time with a determined first step length, and after each adjustment, when the compressor runs stably at the preset frequency for a preset time, obtain the first current component error and the second current component error, calculate the first error total value based on the first current component error, the second current component error and the first speed difference, and determine the compensation angle with the smallest first error total value as the historical compensation angle;
[0078] Step 3: With the historical compensation angle unchanged and the operation at the preset frequency, within the second preset range, starting from the historical initial compensation depth, adjust the compensation depth each time with a determined second step size, and after each adjustment, obtain the third current component error and the fourth current component error. Calculate the second total error value based on the third current component error, the fourth current component error, and the first speed difference, and determine the compensation depth with the minimum second total error value as the historical compensation depth.
[0079] Step 4: Control the compressor to operate at the historical compensation angle and historical compensation depth;
[0080] Step 5: When the current initial compensation depth is not the historical initial compensation depth, redetermine the target compensation depth as a*(a1 / a0), where a is the initial compensation depth of the compressor under the current load, a1 is the target compensation depth under the historical load, and a0 is the initial compensation depth under the historical load. If the current compensation depth is the initial compensation depth, determine the initial compensation depth as the target compensation depth and adjust the current initial compensation angle to the historical compensation angle.
[0081] Step Six: During the process of obtaining the target compensation parameters, at least with the operating frequency unchanged, ensure that the current load of the compressor does not change. If the current load changes significantly, raise or lower the fan connected to the compressor or adjust the throttling device connected to the compressor to ensure that the current load does not change.
[0082] Step 7: Control the compressor to run at a preset frequency, obtain the first speed difference and the first time interval between two adjacent maximum values of the first speed difference within at least one first mechanical operating cycle. If the first time interval is equal to the first mechanical operating cycle and the maximum value is greater than the second preset threshold, determine that the compressor structure is a single rotor structure. Otherwise, obtain the second mechanical operating cycle within a preset time after the first mechanical operating cycle and re-determine the second time interval between two adjacent maximum values of the second speed difference. If the time interval is different from the second mechanical operating cycle, determine that the compressor structure is a dual rotor structure. Otherwise, determine that the compressor structure is a single rotor structure.
[0083] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0084] This application also provides a device for adjusting compensation parameters during compressor operation. It should be noted that this device can be used to execute the method for adjusting compensation parameters during compressor operation provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0085] The following describes the adjustment device for compensation parameters during compressor operation provided in the embodiments of this application.
[0086] Figure 6 This is a schematic diagram of a compressor operation compensation parameter adjustment device according to an embodiment of this application. Figure 6 As shown, the device includes:
[0087] The first acquisition unit 10 acquires the first speed difference of the compressor.
[0088] Specifically, the speed difference is the difference between the estimated speed and the preset speed.
[0089] The second acquisition unit 20 acquires target compensation parameters when the absolute value of the first speed difference is greater than or equal to the first preset threshold. The target compensation parameters include at least one of target compensation depth and target compensation angle. The target compensation depth is a torque compensation depth value set to offset the torque fluctuation of the compressor, and the target compensation angle is a torque compensation angle value set to offset the torque fluctuation of the compressor.
[0090] Specifically, if the first speed difference is greater than the first preset threshold (set manually, assuming that the first speed difference is large at this time and the control deviation is large), the torque compensation scheme is corrected.
[0091] Unit 30 is used to control the operation of the compressor using at least the aforementioned target compensation parameters, such that the absolute value of the corresponding first speed difference is less than the aforementioned first preset threshold.
[0092] Specifically, compensation control is performed using the aforementioned target compensation parameters, i.e., the torque compensation strategy is updated, and the compressor's operating state is adjusted using at least the target compensation angle and the target compensation depth.
[0093] In the above embodiments, firstly, the first speed difference of the compressor is obtained; secondly, if the absolute value of the first speed difference is greater than or equal to a first preset threshold, a target compensation parameter is obtained; finally, the compressor is controlled to operate using at least the target compensation parameter, and the absolute value of the corresponding first speed difference is less than the first preset threshold. Compared with the prior art, which debugs a fixed compensation angle and depth coefficient for the compressor under all loads in the early stage of development and cannot automatically adjust torque compensation under different operating loads, the solution of this application obtains the first speed difference under various loads and determines whether the first speed difference is less than the first preset threshold. If it is less than the first preset threshold, the compressor maintains its original operation. If the first speed difference is greater than or equal to the first preset threshold, the compensation coefficient is adjusted, and the obtained compensation coefficient is used to control the compressor operation so that the first speed difference is less than the first preset threshold, making the compensation parameter suitable for the current operating state and achieving a stable operating state. In this way, the compressor meets the different torque compensation requirements under different loads, thereby solving the problem of large differences in vibration stress effects of single-rotor compressors under different loads in the prior art.
[0094] To help the system better adapt to the current operating conditions and thereby further improve performance and efficiency, in one embodiment of this application, the second acquisition unit includes a first determining subunit and a first acquisition subunit. The first determining subunit is used to determine whether the operating state of the compressor is a target historical operating state, which is determined based on the phase current value of the compressor, the current ambient temperature, and the operating frequency. The first acquisition subunit is used to acquire the historical compensation parameters corresponding to the target historical operating state when the operating state of the compressor is the target historical operating state, and adjust the current initial compensation parameters according to the historical compensation parameters to obtain the target compensation parameters. The historical compensation parameters include historical compensation depth and historical compensation angle, and the current initial compensation parameters are the compensation parameters at the current moment and include the current initial compensation depth and the current initial compensation angle.
[0095] In one embodiment of this application, the second acquisition unit includes a second acquisition subunit, a first adjustment subunit, and a first calculation subunit. The second acquisition subunit is used to acquire the initial compensation depth and initial compensation angle corresponding to the historical time when the absolute value of the first speed difference at the historical time is greater than or equal to the first preset threshold, thereby obtaining the historical initial compensation depth and historical initial compensation angle respectively. The first adjustment subunit is used to keep the historical initial compensation depth unchanged, adjust the compensation angle multiple times starting from the historical initial compensation angle, and acquire the first speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle. The first current component error is the difference between the first d-axis reference current value given by the current loop PID algorithm and the actual detected feedback d-axis current value. The second current component error is the difference between the first q-axis reference current value given by the current loop PID algorithm and the actual detected feedback q-axis current value. The first calculation subunit is used to calculate the total error value after each adjustment of the compensation angle based on the first speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle, obtaining a first total error value, and determining the compensation angle value corresponding to the minimum first total error value as the historical compensation angle, and the compensation angle value as the adjusted compensation angle. This scheme involves repeatedly adjusting the compensation angle to find the angle that minimizes the total error, thereby obtaining the target compensation parameters. This allows for the identification of the optimal torque compensation scheme under the current operating conditions, further improving the system's stability and accuracy. Simultaneously, by calculating the total error, the optimal historical compensation angle can be determined more accurately, further enhancing the system's control precision and efficiency.
[0096] Specifically, when the compressor phase current value stabilizes and no longer changes at a certain frequency, the torque compensation depth is finely adjusted. In order to make it easier to observe the effects of different parameters when adjusting the parameters, the historical initial compensation depth with a large error value is selected. At the same time, considering that the compensation effect is not greatly affected, the historical initial compensation depth a0' (such as 0.5 to 1 times the historical initial compensation depth) is selected.
[0097] Specifically, the initial historical compensation depth a0' is kept constant. The initial historical compensation angle θ is adjusted based on the initial historical compensation depth a0'. After each adjustment, the magnitude of the first speed difference ΔWr, the error of the first current component ΔId, and the error of the second current component ΔIq are read. The historical compensation angle θ1 with the smallest total first error value (m*|ΔWr|+n*|ΔId|+p*|ΔIq|, where m, n, and p are proportional coefficients) is found.
[0098] In order to obtain the target compensation angle more accurately and thus further optimize the system performance, in one embodiment of this application, the first adjustment subunit includes a first determining module and a first adjusting module. The first determining module is used to determine the adjustment range of the compensation angle as a first preset range [θ0-m, θ0+m], where m is the preset angle and θ0 is the historical initial compensation angle. The first adjusting module is used to adjust the compensation angle multiple times within the first preset range, starting from the historical initial compensation angle.
[0099] In another embodiment, the first adjustment module includes a first determining submodule, a second determining submodule, and a first adjustment submodule. The first determining submodule determines the adjustment step size of the compensation angle to obtain a first step size. The second determining submodule determines the number of adjustments to the compensation angle based on m and the first step size to obtain a first adjustment number. The first adjustment submodule adjusts the compensation angle within the first preset range, starting from the historical initial compensation angle, according to the first step size and the first adjustment number. In this scheme, the adjustment step size and the number of adjustments for the compensation angle are first determined, and then multiple adjustments are performed according to the set step size and number of adjustments. Through this method, the compensation angle can be further refined and optimized step by step, making the target compensation angle more accurate, thereby further improving the performance and stability of the system.
[0100] Specifically, adjustments are made within the angle range of [θ0-m, θ0+m]. The first step length is divisible by m. The first adjustment count can be obtained by dividing m by the first step length and then multiplying by 2. The compensation angle is adjusted based on the first adjustment count and the first step length.
[0101] To make the parameters obtained after each adjustment of the compensation angle more effective, in one embodiment of this application, the first adjustment subunit includes a second adjustment module and a second determination module. The second adjustment module is used to keep the historical initial compensation depth unchanged and adjust the compensation angle multiple times starting from the historical initial compensation angle. The second determination module is used to determine whether the compressor has been running at the same frequency for a period of time exceeding a preset time. If the compressor has been running at the same frequency for a period of time exceeding the preset time, the first speed difference, the first current component error, and the second current component error are obtained after each adjustment of the compensation angle.
[0102] In another embodiment, the second acquisition unit includes a second adjustment subunit, a second calculation subunit, and a second determination subunit. The second adjustment subunit is used to maintain the historical compensation angle unchanged, adjust the compensation depth multiple times starting from the historical initial compensation depth, and acquire the first speed difference, the third current component error, and the fourth current component error after each adjustment of the compensation depth. The third current component error is the difference between the second d-axis reference current value given by the current loop PID algorithm and the actual detected feedback d-axis current value. The fourth current component error is the difference between the second q-axis reference current value given by the current loop PID algorithm and the actual detected feedback q-axis current value. The second calculation subunit is used to calculate the total error value after each adjustment of the compensation depth based on the first speed difference, the third current component error, and the fourth current component error acquired after each adjustment of the historical initial compensation depth, obtain a second total error value, and determine the compensation depth value corresponding to the minimum second total error value as the initial target compensation depth. The compensation depth value is the adjusted compensation depth. The first determination subunit is used to determine the target compensation depth based on the initial target compensation depth. This scheme finds the compensation depth that minimizes the total error by repeatedly adjusting the compensation depth, thus obtaining the target compensation depth. This allows for more effective adjustment of the compensation depth even when the initial speed difference is large, further improving the system's stability and accuracy. Simultaneously, by calculating the total error, the optimal compensation depth can be determined more accurately, further enhancing the system's control precision and efficiency.
[0103] Specifically, with the historical compensation angle unchanged, the compensation depth is adjusted multiple times, and the total second error is calculated based on the first speed difference, the third current component error, and the fourth current error after each adjustment. The compensation depth that minimizes the total second error is then used as the historical compensation depth.
[0104] In order to obtain the target compensation depth more accurately and further optimize the system performance, in one embodiment of this application, the second adjustment subunit includes a third determining module and a third adjusting module. The third determining module is used to determine the adjustment range of the compensation depth as a second preset range [a0-n, a0+n] when the compressor is running stably at a preset operating frequency, where n is the preset depth and a0 is the initial compensation depth. The third adjusting module is used to adjust the compensation depth multiple times within the second preset range, starting from the historical initial compensation depth.
[0105] In another embodiment, within the aforementioned second preset range, the second adjustment subunit further includes a fourth determining module, a fifth determining module, and a third adjusting module. The fourth determining module determines the adjustment step size of the compensation depth to obtain a second step size; the fifth determining module determines the number of adjustments to the compensation depth based on n and the second step size to obtain a second adjustment number; and the third adjusting module adjusts the compensation depth within the aforementioned second preset range, starting from the aforementioned historical initial compensation depth, according to the second step size and the second adjustment number. In this scheme, by adjusting the compensation depth multiple times, errors can be further minimized, thereby further improving the accuracy and stability of the system.
[0106] Specifically, with the historical compensation angle unchanged, and under the current stable operating frequency of the machine, starting from the initial historical compensation depth, adjustments are made within the range of [a0-n, a0+n]. The first speed difference △Wr, the third current component error △Id, and the fourth current component error △Iq are read, and the historical compensation depth with the smallest second total error value (m*|△Wr|+n*|△Id|+p*|△Iq|, where m, n, and p are proportional coefficients) is found.
[0107] To more accurately control the operation of the compressor and make its operation more stable and efficient, in one embodiment of this application, the first acquisition subunit includes a first calculation module, a second calculation module, and a third adjustment module. The first calculation module is used to calculate the ratio of the historical compensation depth to the historical initial compensation depth when the current initial compensation depth and the historical initial compensation depth are different, to obtain an adjustment ratio. The second calculation module is used to calculate the product of the current initial compensation depth and the adjustment ratio to obtain the target compensation depth. The third adjustment module is used to adjust the current initial compensation angle to the historical compensation angle to obtain the target compensation angle.
[0108] Specifically, the target compensation angle is recorded, covering the initial compensation angle. Simultaneously, the adjustment ratio a1 / a0 of the compressor's torque compensation depth coefficient under this load is recorded. When the compressor operates under this load condition again, the compensation depth coefficient is actively adjusted to a*(a1 / a0) to adapt to the compressor's operation under this load condition. The conditions for determining whether the compressor is operating under this load are based on the detected ambient temperature range, compressor phase current, and frequency. When all three conditions are met, the recorded ratio coefficient can be retrieved.
[0109] Specifically, the system detects that the first speed difference is continuously greater than a first preset threshold. The time interval can be set by the user, such as 1 minute. The frequency is the current operating frequency (within the set torque compensation range). If the frequency exceeds the set torque compensation range, the first speed difference judgment process will not be performed.
[0110] To further ensure stable operation under constant load and make the adjustment process results more comparable, thereby further improving the efficiency and performance of the compressor, in one embodiment of this application, the second acquisition unit further includes a second acquisition subunit, a fourth determination subunit, and a assurance subunit in the process of acquiring the above-mentioned target compensation parameters. The second acquisition subunit is used to acquire the phase current value and operating frequency of the compressor in real time; the fourth determination subunit is used to determine that the current load of the compressor does not change, at least when the operating frequency remains unchanged; the assurance subunit adjusts the fan speed of the fan associated with the compressor or the throttling device connected to the compressor, at least when the current load changes significantly, to ensure that the current load of the compressor does not change.
[0111] Specifically, the compressor phase current value is read in real time throughout the process to ensure that the compressor load remains basically stable during adjustment. If a sudden change in load or a large change in phase current occurs during adjustment, the load is actively adjusted and the phase current remains stable by adjusting the fan speed or other throttling devices such as the expansion valve.
[0112] To more accurately determine whether the compressor structure is a single-rotor structure, in one embodiment of this application, the device includes a control unit, a third acquisition unit, a fourth acquisition unit, and a determination unit. The control unit controls the compressor to operate at a preset frequency; the third acquisition unit acquires the first speed difference of the compressor within at least one first mechanical operating cycle; the fourth acquisition unit acquires the time interval between the maximum values of two adjacent first speed differences within at least one first mechanical operating cycle; and the determination unit determines that the compressor structure is a single-rotor structure when the time interval is equal to the first mechanical operating cycle and the maximum value of the first speed difference is greater than a second preset threshold.
[0113] To more accurately determine whether a compressor has a dual-rotor structure, in one embodiment of this application, the compressor structure determination unit includes a third acquisition subunit, a fourth acquisition subunit, and a fifth determination subunit. The third acquisition subunit is used to acquire the second speed difference of the compressor within at least one second mechanical operating cycle when the first time interval and the first mechanical operating cycle are not equal, or when the maximum value of the first speed difference is not greater than the second preset threshold. The second mechanical operating cycle is an operating cycle following a preset time interval of the mechanical operating cycle. The fourth acquisition subunit is used to acquire the second time interval between the maximum values of two adjacent second speed differences within at least one second mechanical operating cycle. The fifth determination subunit is used to determine that the compressor has a dual-rotor structure at least when the second time interval and the second mechanical operating cycle are not equal.
[0114] Specifically, for variable displacement twin-cylinder compressors, re-determining and confirming the number of cylinders after changing between single and dual cylinders is more beneficial for the stability and reliability of subsequent program control operation.
[0115] The aforementioned compressor operation compensation parameter adjustment device includes a processor and a memory. The first acquisition unit, the second acquisition unit, and the adoption unit are all stored as program units in the memory, and the processor executes the program units stored in the memory to achieve the corresponding functions. All of the above modules are located in the same processor; alternatively, the modules may be located in different processors in any combination.
[0116] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and adjusting the kernel parameters addresses the problem of significant differences in vibration stress effects under various loads in existing single-rotor compressors.
[0117] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0118] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform a method for adjusting compensation parameters during compressor operation, the method comprising:
[0119] Step S201: Obtain the first speed difference of the compressor.
[0120] Step S202: When the absolute value of the first speed difference is greater than or equal to the first preset threshold, a target compensation parameter is obtained. The target compensation parameter includes at least one of a target compensation depth and a target compensation angle. The target compensation depth is a torque compensation depth value set to offset the torque fluctuation of the compressor, and the target compensation angle is a torque compensation angle value set to offset the torque fluctuation of the compressor.
[0121] Step S203: At least the above-mentioned target compensation parameters are used to control the operation of the compressor, and the absolute value of the corresponding first speed difference is less than the first preset threshold.
[0122] This invention provides a processor for running a program, wherein the program executes a method for adjusting compensation parameters during compressor operation, the method comprising:
[0123] Step S201: Obtain the first speed difference of the compressor.
[0124] Step S202: When the absolute value of the first speed difference is greater than or equal to the first preset threshold, a target compensation parameter is obtained. The target compensation parameter includes at least one of a target compensation depth and a target compensation angle. The target compensation depth is a torque compensation depth value set to offset the torque fluctuation of the compressor, and the target compensation angle is a torque compensation angle value set to offset the torque fluctuation of the compressor.
[0125] Step S203: At least the above-mentioned target compensation parameters are used to control the operation of the compressor, and the absolute value of the corresponding first speed difference is less than the first preset threshold.
[0126] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:
[0127] Step S201: Obtain the first speed difference of the compressor.
[0128] Step S202: When the absolute value of the first speed difference is greater than or equal to the first preset threshold, a target compensation parameter is obtained. The target compensation parameter includes at least one of a target compensation depth and a target compensation angle. The target compensation depth is a torque compensation depth value set to offset the torque fluctuation of the compressor, and the target compensation angle is a torque compensation angle value set to offset the torque fluctuation of the compressor.
[0129] Step S203: At least the above-mentioned target compensation parameters are used to control the operation of the compressor, and the absolute value of the corresponding first speed difference is less than the first preset threshold.
[0130] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0131] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:
[0132] Step S201: Obtain the first speed difference of the compressor.
[0133] Step S202: When the absolute value of the first speed difference is greater than or equal to the first preset threshold, a target compensation parameter is obtained. The target compensation parameter includes at least one of a target compensation depth and a target compensation angle. The target compensation depth is a torque compensation depth value set to offset the torque fluctuation of the compressor, and the target compensation angle is a torque compensation angle value set to offset the torque fluctuation of the compressor.
[0134] Step S203: At least the above-mentioned target compensation parameters are used to control the operation of the compressor, and the absolute value of the corresponding first speed difference is less than the first preset threshold.
[0135] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0136] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0137] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0138] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0139] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0140] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0141] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0142] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0143] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0144] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0145] In the above embodiments, firstly, the first speed difference of the compressor is obtained; secondly, if the absolute value of the first speed difference is greater than or equal to a first preset threshold, a target compensation parameter is obtained; finally, the compressor is controlled to operate using at least the target compensation parameter, and the absolute value of the corresponding first speed difference is less than the first preset threshold. Compared with the prior art, which debugs a fixed compensation angle and depth coefficient for the compressor under all loads in the early stage of development, but cannot automatically adjust torque compensation under different operating loads, the solution of this application, under various loads, obtains the first speed difference and determines whether the first speed difference is less than the first preset threshold. If it is less than the first preset threshold, the compressor maintains its original operation. If the first speed difference is greater than or equal to the first preset threshold, the compensation depth coefficient is adjusted, and the obtained compensation depth coefficient is used to control the compressor operation so that the first speed difference is less than the first preset threshold, making the compensation parameter suitable for the current operating state and achieving a stable operating state. This ensures that the compressor meets the needs of different torque compensation under different loads, thereby solving the problem of large differences in vibration stress effect of single-rotor compressors under different loads in the prior art.
[0146] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for adjusting compensation parameters during compressor operation, characterized in that, include: Obtain the first speed difference of the compressor; When the absolute value of the first speed difference is greater than or equal to the first preset threshold, a target compensation parameter is obtained. The target compensation parameter includes at least one of a target compensation depth and a target compensation angle. The target compensation depth is a torque compensation depth value set to offset the torque fluctuation of the compressor, and the target compensation angle is a torque compensation angle value set to offset the torque fluctuation of the compressor. The compressor operation is controlled at least using the target compensation parameters, and the absolute value of the corresponding first speed difference is less than the first preset threshold. When the absolute value of the first speed difference is greater than or equal to a first preset threshold, the target compensation parameter is obtained, including: determining whether the compressor's operating state is a target historical operating state, wherein the operating state is determined based on the compressor's phase current value, frequency, and ambient temperature; when the compressor's operating state is the target historical operating state, obtaining the historical compensation parameter corresponding to the target historical operating state, and adjusting the current initial compensation parameter according to the historical compensation parameter to obtain the target compensation parameter, wherein the historical compensation parameter includes a historical compensation depth and a historical compensation angle, and the current initial compensation parameter is the compensation parameter at the current moment and includes the current initial compensation depth and the current initial compensation angle. In the process of obtaining the target compensation parameters, the method further includes: obtaining the operating frequency of the compressor in real time; determining that the current load of the compressor does not change, at least when the operating frequency remains unchanged; and adjusting the wind speed of the fan connected to the compressor or the throttling device connected to the compressor, at least when the current load changes significantly, to ensure that the current load of the compressor does not change.
2. The method for adjusting compensation parameters during compressor operation according to claim 1, characterized in that, Obtaining the historical compensation parameters corresponding to the target's historical operating state includes: If the absolute value of the first speed difference at a historical moment is greater than or equal to the first preset threshold, the initial compensation depth and initial compensation angle at the historical moment are obtained, and the historical initial compensation depth and historical initial compensation angle are obtained respectively. Keeping the historical initial compensation depth unchanged, the compensation angle is adjusted multiple times starting from the historical initial compensation angle, and the first speed difference, the first current component error and the second current component error are obtained after each adjustment of the compensation angle. The first current component error is the difference between the first d-axis reference current value given by the current loop PID algorithm and the actual detected feedback d-axis current value. The second current component error is the difference between the first q-axis reference current value given by the current loop PID algorithm and the actual detected feedback q-axis current value. Based on the first speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle, the total error value after each adjustment of the compensation angle is calculated to obtain the first total error value. The compensation angle value corresponding to the minimum first total error value is determined as the historical compensation angle, and the compensation angle value is the adjusted compensation angle.
3. The method for adjusting compensation parameters during compressor operation according to claim 2, characterized in that, The compensation angle is adjusted multiple times starting from the initial historical compensation angle, including: The adjustment range of the compensation angle is determined to be a first preset range [θ0-m, θ0+m], where m is the preset angle and θ0 is the historical initial compensation angle; Within the first preset range, the compensation angle is adjusted multiple times starting from the historical initial compensation angle.
4. The method for adjusting compensation parameters during compressor operation according to claim 3, characterized in that, Within the first preset range, the compensation angle is adjusted multiple times starting from the historical initial compensation angle, including: Determine the adjustment step size of the compensation angle to obtain the first step size; Based on m and the first step length, determine the number of adjustments to the compensation angle to obtain the first number of adjustments; Within the first preset range, starting from the historical initial compensation angle, the compensation angle is adjusted according to the first step length and the first number of adjustments.
5. The method for adjusting compensation parameters during compressor operation according to claim 2, characterized in that, Keeping the historical initial compensation depth unchanged, the compensation angle is adjusted multiple times starting from the historical initial compensation angle, and the first speed difference, the first current component error, and the second current component error are obtained after each adjustment of the compensation angle, including: Keeping the historical initial compensation depth unchanged, the compensation angle is adjusted multiple times starting from the historical initial compensation angle; Determine whether the compressor has been running at the same frequency for a period of time exceeding a preset time. If the compressor has been running at the same frequency for a period of time exceeding the preset time, obtain the first speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle.
6. The method for adjusting compensation parameters during compressor operation according to claim 2, characterized in that, Obtaining the historical compensation parameters corresponding to the target's historical operating state also includes: Keeping the historical compensation angle unchanged, the compensation depth is adjusted multiple times starting from the historical initial compensation depth, and the first speed difference, third current component error, and fourth current component error are obtained after each adjustment of the compensation depth. The third current component error is the difference between the second d-axis reference current value given by the current loop PID algorithm and the actual detected feedback d-axis current value. The fourth current component error is the difference between the second q-axis reference current value given by the current loop PID algorithm and the actual detected feedback q-axis current value. Based on the first speed difference, the third current component error, and the fourth current component error obtained after each adjustment of the compensation depth, the total error value after each adjustment of the compensation depth is calculated to obtain the second total error value. The compensation depth value corresponding to the smallest second total error value is determined as the historical compensation depth, and the compensation depth value is the adjusted compensation depth.
7. The method for adjusting compensation parameters during compressor operation according to claim 6, characterized in that, The compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: When the compressor is running stably at a preset operating frequency, the adjustment range of the compensation depth is determined to be a second preset range [a0-n, a0+n], where n is the preset depth and a0 is the historical initial compensation depth; Within the second preset range, the compensation depth is adjusted multiple times starting from the historical initial compensation depth.
8. The method for adjusting compensation parameters during compressor operation according to claim 7, characterized in that, Within the second preset range, the compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: Determine the adjustment step size for the compensation depth to obtain the second step size; Based on n and the second step size, the number of adjustments to the compensation depth is determined, thus obtaining the second number of adjustments; Within the second preset range, starting from the historical initial compensation depth, the compensation depth is adjusted according to the second step size and the second number of adjustments.
9. The method for adjusting compensation parameters during compressor operation according to claim 6, characterized in that, The target compensation parameters are obtained by adjusting the initial compensation parameters based on the historical compensation parameters, including: When the current initial compensation depth and the historical initial compensation depth are different, the ratio of the historical compensation depth to the historical initial compensation depth is calculated to obtain the adjustment ratio; The target compensation depth is obtained by multiplying the current initial compensation depth by the adjustment ratio. The current initial compensation angle is adjusted to the historical compensation angle to obtain the target compensation angle.
10. The method for adjusting compensation parameters during compressor operation according to claim 1, characterized in that, Determining the structure of the compressor, the method includes: Control the compressor to operate at a preset frequency; The first speed difference of the compressor is obtained during at least one first mechanical operating cycle; A first time interval is used to obtain the maximum value of two adjacent first speed differences within at least one first mechanical operating cycle; If the first time interval and the first mechanical operating cycle are equal and the maximum value of the first speed difference is greater than the second preset threshold, the compressor is determined to be a single-rotor structure.
11. The method for adjusting compensation parameters during compressor operation according to claim 10, characterized in that, The method for determining the structure of the compressor further includes: If the first time interval and the first mechanical operating cycle are not equal or the maximum value of the first speed difference is not greater than the second preset threshold, the second speed difference of the compressor in at least one second mechanical operating cycle is obtained, where the second mechanical operating cycle is the operating cycle after the preset time interval of the first mechanical operating cycle. And obtain a second time interval for the maximum value of two adjacent second speed differences within at least one second mechanical operating cycle; At least when the second time interval and the second mechanical operating cycle are not equal, the compressor is determined to be a dual-rotor structure.
12. A device for adjusting compensation parameters during compressor operation, applied to the method for adjusting compensation parameters during compressor operation as described in any one of claims 1 to 11, characterized in that, include: The first acquisition unit acquires the first speed difference of the compressor; The second acquisition unit acquires target compensation parameters when the absolute value of the first speed difference is greater than or equal to a first preset threshold. The target compensation parameters include at least one of target compensation depth and target compensation angle. The target compensation depth is a torque compensation depth value set to offset the torque fluctuation of the compressor, and the target compensation angle is a torque compensation angle value set to offset the torque fluctuation of the compressor. The compressor is controlled by a unit that uses at least the target compensation parameters, such that the absolute value of the corresponding first speed difference is less than the first preset threshold.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the method for adjusting compensation parameters during compressor operation as described in any one of claims 1 to 11.
14. An electronic device, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including a method for performing the adjustment of compensation parameters during compressor operation as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Control method and system of compressor
CN103470483A
Compressor direct torque control method and device, compressor device and air conditioning equipment
CN111224603A