Compensation parameter adjusting method and device in operation of compressor and electronic equipment

By obtaining and adjusting the speed difference-related compensation parameters of the compressor, the problem of large differences in the vibration stress effect of a single rotor compressor under different loads is solved, and stable operation and balanced stress are achieved under different loads.

CN119594003AActive Publication Date: 2025-03-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411906618.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-03-11
Estimated Expiration
2044-12-23

AI Technical Summary

Technical Problem

The vibration stress effects of single-rotor compressors vary greatly under different loads, and it is difficult for the prior art to automatically adjust torque compensation, resulting in unbalanced stress and pose safety hazards.

Method used

By obtaining the speed difference of the compressor, when its absolute value is greater than or equal to the preset threshold, the target compensation parameters are obtained, including the target compensation depth and the target compensation angle, and these parameters are used to control the compressor operation so that the speed difference is smaller than the preset threshold.

Benefits of technology

The torque compensation parameters of the compressor are adaptively adjusted under different loads, which improves vibration stress balance, reduces safety hazards, and ensures the stable operation of the compressor under different loads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119594003A_ABST
    Figure CN119594003A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for adjusting compensation parameters in operation of a compressor and electronic equipment. The method comprises the steps that the rotating speed difference of a compressor is obtained; acquiring a target compensation parameter under the condition that the absolute value of the rotating speed difference is greater than or equal to a preset threshold value; at least the target compensation parameter is adopted to control the compressor to operate, the absolute value of the corresponding rotating speed difference is smaller than a preset threshold value, and the problem that in the prior art, the vibration stress effect difference of a single-rotor compressor under various loads is large is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of compressors, and in particular, to a method for adjusting compensation parameters during compressor operation, an adjusting device, a computer-readable storage medium, and an electronic device. Background Art

[0002] When a single-rotor compressor operates periodically, its structure affects the load moment during the period, causing imbalance and periodic fluctuations, resulting in greater stress on the compressor and pipelines. In severe cases, there are safety hazards such as pipeline rupture. The current common practice is to debug a set of compensation angles and depth coefficients in the early stage of development, without adjustment and optimization during the life cycle of the machine. When the compressor is running at a low frequency, the current is periodically compensated according to the load moment fluctuation curve.

[0003] However, the torque compensation depth required for the compressor under different loads varies. For example, a smaller torque compensation depth under high load has a better effect on stress than under low load. In addition, under subsequent long-term use, the torque compensation angle will change if the foot pad is slightly loose or aged, 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 purpose of the present application is to provide a method for adjusting compensation parameters during compressor operation, an adjusting device, a computer-readable storage medium and an electronic device, so as to at least solve the problem in the prior art that the vibration stress effects of single-rotor compressors under various loads vary greatly.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for adjusting compensation parameters during compressor operation is provided, including: obtaining a speed difference of the compressor; when the absolute value of the speed difference is greater than or equal to a 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 depth value of the torque compensation set to offset the torque fluctuation abnormality of the compressor, and the target compensation angle being an angle value of the torque compensation set to offset the torque fluctuation abnormality of the compressor; at least using the target compensation parameter to control the operation of the compressor, and making the corresponding absolute value of the speed difference less than the preset threshold.

[0007] Optionally, when the absolute value of the speed difference is greater than or equal to a preset threshold, a target compensation parameter is obtained, including: determining whether the operating state of the compressor is a target historical operating state, the operating state being 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 historical compensation parameters corresponding to the target historical operating state, and adjusting the current initial compensation parameters according to the historical compensation parameters to obtain the target compensation parameters, the historical compensation parameters including a historical compensation depth and a historical compensation angle, and the current initial compensation parameters being the compensation parameters at the current moment and including a current initial compensation depth and a current initial compensation angle.

[0008] Optionally, historical compensation parameters corresponding to the target historical operating state are obtained, including: when the absolute value of the speed difference corresponding to the historical moment is greater than or equal to the preset threshold, obtaining the initial compensation depth and the initial compensation angle at the historical moment, and obtaining the historical initial compensation depth and the historical initial compensation angle respectively; keeping the historical initial compensation depth unchanged, adjusting the compensation angle multiple times starting from the historical initial compensation angle, and obtaining the 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 detection 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 detection feedback q-axis current value; according to the 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, and the compensation angle value corresponding to the minimum first total error value is determined to be the historical compensation angle, and the compensation angle value is 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 to be a first preset range [θ0-m, θ0+m], wherein m is a preset angle and θ0 is the historical initial compensation angle; within the first preset range, adjusting the compensation angle multiple times 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 of the compensation angle to obtain the first step; determining the number of adjustments of the compensation angle based on m and the first step to obtain the first adjustment number; within the first preset range, starting from the historical initial compensation angle, the compensation angle is adjusted according to the first step and the first adjustment number.

[0011] Optionally, the historical initial compensation depth is kept unchanged, the compensation angle is adjusted multiple times starting from the historical initial compensation angle, and the 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, and 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 a preset time, obtaining the speed difference, the first current component error and the second current component error after each adjustment of the compensation angle.

[0012] Optionally, obtaining historical compensation parameters corresponding to the target historical operating state also includes: keeping the historical compensation angle unchanged, adjusting the compensation depth multiple times starting from the historical initial compensation depth, and obtaining the speed difference, third current component error and fourth current component error after each adjustment of the compensation depth, the third current component error being the difference between the second d-axis reference current value given by the current loop PID algorithm and the actual detection feedback d-axis current value, and the fourth current component error being the difference between the second q-axis reference current value given by the current loop PID algorithm and the actual detection feedback q-axis current value; calculating the total error value after each adjustment of the compensation depth based on the speed difference, the third current component error and the fourth current component error obtained after each adjustment of the historical initial compensation depth to obtain a second total error value, determining that the compensation depth value corresponding to the minimum second total error value is the historical compensation depth, and the compensation depth value is the adjusted compensation depth.

[0013] Optionally, the compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: when the compressor is operating stably at a preset operating frequency, determining that the adjustment range of the compensation depth is a second preset range [a0-n, a0+n], wherein n is a preset depth and a0 is the historical initial compensation depth; within the second preset range, adjusting the compensation depth multiple times starting from the historical initial compensation depth.

[0014] Optionally, within the second preset range, the compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: determining the adjustment step of the compensation depth to obtain a second step; determining the number of adjustments of the compensation depth based on n and the second step to obtain a second adjustment number; within the second preset range, starting from the historical initial compensation depth, adjusting the compensation depth according to the second step and the second adjustment number.

[0015] Optionally, the initial compensation parameters are adjusted according to the historical compensation parameters to obtain the target compensation parameters, including: 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 parameters, the method also 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 increasing or decreasing the wind speed of the fan related to 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, to determine the single-rotor and double-rotor structures of the compressor, the method includes: controlling the compressor to operate at a preset frequency when torque compensation is not added; obtaining the speed difference of the compressor within at least one mechanical operating cycle; obtaining the time interval between the maximum values ​​of two adjacent speed differences within at least one mechanical operating cycle; and determining that the structure of the compressor is a single-rotor structure when the time interval is equal to the mechanical operating cycle and the maximum value of the speed difference is greater than a second preset threshold.

[0018] Optionally, to determine the structure of the compressor, the method further includes: when the time interval and the mechanical operating cycle are not equal or the maximum value of the 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, the second mechanical operating cycle being an operating cycle after a preset time interval of the mechanical operating cycle; and obtaining a second time interval between two adjacent maximum values ​​of the speed difference within at least one of the second mechanical operating cycles; and determining that the structure of the compressor is a dual-rotor structure at least when the second time interval and the second mechanical operating cycle are not equal.

[0019] According to another aspect of the present application, a device for adjusting compensation parameters during operation of a compressor is provided, comprising:

[0020] A first acquisition unit, for acquiring a rotation speed difference of the compressor;

[0021] a second acquisition unit, when the absolute value of the speed difference is greater than or equal to a preset threshold, acquiring a target compensation parameter, the target compensation parameter comprising at least one of a target compensation depth and a target compensation angle, the target compensation depth being a depth value of the torque compensation set to offset the torque fluctuation of the compressor, and the target compensation angle being an angle value of the torque compensation set to offset the torque fluctuation of the compressor;

[0022] An adopting unit at least adopts the target compensation parameter to control the operation of the compressor, and makes the corresponding absolute value of the rotational speed difference smaller than the preset threshold.

[0023] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is run, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned methods for adjusting compensation parameters in compressor operation.

[0024] According to another aspect of the present 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 are configured to be executed by the one or more processors, and the one or more programs include a method for adjusting compensation parameters in compressor operation as described above.

[0025] By applying the technical solution of the present application, first, the speed difference of the compressor is obtained; secondly, when the absolute value of the speed difference is greater than or equal to the preset threshold, the target compensation parameter is obtained; finally, at least the target compensation parameter is used to control the operation of the compressor, and the absolute value of the corresponding speed difference is less than the preset threshold. Compared with the solution in the prior art that a fixed compensation angle and depth coefficient are debugged for the compressor in the early stage of development, but the torque compensation cannot be automatically adjusted under different operating loads, the solution of the present application obtains the speed difference under various loads and determines whether the speed difference is less than the preset threshold. If it is less than the preset threshold, the compressor maintains the original state of operation. If the speed difference is greater than or equal to the preset threshold, the compensation coefficient is adjusted, and the obtained compensation coefficient is used to control the operation of the compressor so that the speed difference is less than the preset threshold, so that the compensation parameter is suitable for the current operating state and reaches a stable operating state, thus ensuring the compressor's demand for different torque compensation 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. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0027] Figure 1 A hardware structure block diagram of a mobile terminal for executing a method for adjusting compensation parameters in compressor operation provided in an embodiment of the present application is shown;

[0028] Figure 2 A schematic flow chart of a method for adjusting compensation parameters during operation of a compressor provided in accordance with an embodiment of the present application is shown;

[0029] Figure 3 A flowchart of adjusting a compensation depth coefficient and controlling the operation of a compressor according to a method for adjusting compensation parameters in the operation of a compressor provided in an embodiment of the present application is provided;

[0030] Figure 4 A flow chart of adjusting a target compensation depth by using a relationship between a compensation depth and an initial compensation depth in a method for adjusting compensation parameters in compressor operation according to an embodiment of the present application is provided;

[0031] Figure 5 A flowchart of a method for adjusting compensation parameters in compressor operation according to an embodiment of the present application for determining the structure of a compressor is provided;

[0032] Figure 6 A structural block diagram of a device for adjusting compensation parameters during operation of a compressor provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0033] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work 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 and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] As introduced in the background technology, the prior art has the problem that the vibration stress effects of single-rotor compressors operating under various loads vary greatly. To solve the above problem, the embodiments of the present application provide a method for adjusting compensation parameters during compressor operation, an adjusting device, a computer-readable storage medium and an electronic device.

[0037] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0038] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a method for adjusting compensation parameters during operation of a compressor according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0039] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as 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] In this embodiment, a method for adjusting compensation parameters during operation of a compressor running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of 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 can be executed in an order different from that shown here.

[0041] Figure 2 FIG. 1 is a flow chart of a method for adjusting compensation parameters during operation of a compressor according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0042] Step S201, obtaining the rotation speed difference of the compressor.

[0043] Specifically, the rotation speed difference is the difference between the estimated rotation speed and the preset rotation speed.

[0044] Step S202, when the absolute value of the above-mentioned speed difference is greater than or equal to a preset threshold value, obtain a target compensation parameter, the above-mentioned target compensation parameter includes at least one of a target compensation depth and a target compensation angle, the above-mentioned target compensation depth is a depth value of the torque compensation set to offset the torque fluctuation abnormality of the above-mentioned compressor, and the above-mentioned target compensation angle is an angle value of the torque compensation set to offset the torque fluctuation abnormality of the above-mentioned compressor.

[0045] Specifically, if the speed difference is greater than a preset threshold (artificially set, it is considered that the speed difference is large and the control deviation is large at this time), the torque compensation scheme is corrected.

[0046] Step S203: at least use the target compensation parameter to control the operation of the compressor, and make the corresponding absolute value of the rotational speed difference smaller than the preset threshold.

[0047] Specifically, the target compensation parameters are used to perform compensation control, that is, the torque compensation strategy is updated, and at least the target compensation angle and the target compensation depth are used to adjust the operating state of the compressor.

[0048] In the above embodiment, first, the speed difference of the compressor is obtained; second, when the absolute value of the speed difference is greater than or equal to the preset threshold, the target compensation parameter is obtained; finally, at least the target compensation parameter is used to control the operation of the compressor, and the corresponding absolute value of the speed difference is less than the preset threshold. Compared with the prior art, in which a set of fixed compensation angles and depth coefficients are debugged for the compressor at all loads in the early stage of development, but the torque compensation cannot be automatically adjusted under different operating loads, the scheme of the present application obtains the speed difference under various loads and determines whether the speed difference is less than the preset threshold. If it is less than the preset threshold, the compressor maintains the original state of operation. If the speed difference is greater than or equal to the preset threshold, the compensation coefficient is adjusted, and the obtained compensation coefficient is used to control the operation of the compressor so that the speed difference is less than the preset threshold, so that the compensation parameter is suitable for the current operating state and reaches a stable operating state, thus ensuring the compressor's needs for different torque compensation 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] In order to help the system better adapt to the current operating conditions and further improve performance and efficiency, in one embodiment of the present application, when the absolute value of the speed difference is greater than or equal to a preset threshold, the target compensation parameters are obtained, including: determining whether the operating state of the compressor is the target historical operating state, the operating state is determined based on the phase current value, operating frequency and operating environment temperature of the compressor; when the operating state of the compressor is the target historical operating state, the historical compensation parameters corresponding to the target historical operating state are obtained, and the current initial compensation parameters are adjusted 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.

[0050] Specifically, if the target historical operating state is not the target, the current initial state is directly determined as the target.

[0051] In one embodiment of the present application, obtaining the historical compensation parameters corresponding to the above-mentioned target historical operating state includes: when the absolute value of the above-mentioned speed difference corresponding to the historical moment is greater than or equal to the above-mentioned preset threshold, obtaining the initial compensation depth and the initial compensation angle corresponding to the above-mentioned historical moment, and obtaining the historical initial compensation depth and the historical initial compensation angle respectively; keeping the above-mentioned historical initial compensation depth unchanged, adjusting the compensation angle multiple times starting from the above-mentioned historical initial compensation angle, and obtaining the above-mentioned speed difference, the first current component error and the second current component error after each adjustment of the above-mentioned compensation angle, the above-mentioned 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 detection feedback d-axis current value, and the above-mentioned 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 detection feedback q-axis current value; according to the speed difference, the first current component error and the second current component error after each adjustment of the above-mentioned compensation angle, calculating the total error value after each adjustment of the above-mentioned compensation angle, obtaining the first total error value, determining the compensation angle value corresponding to the minimum above-mentioned first total error value as the above-mentioned historical compensation angle, and the above-mentioned compensation angle value after the adjustment. In this method, the compensation angle is adjusted multiple times to find the compensation angle that minimizes the total error value, thereby obtaining the target compensation parameters, so that the optimal torque compensation solution can be found under the current operating state, further improving the stability and accuracy of the system. At the same time, by calculating the total error value, the optimal historical compensation angle can be determined more accurately, thereby further improving the control accuracy and efficiency of the system.

[0052] Specifically, when the compressor phase current value is stable and no longer changes under a certain frequency of stable operation, the torque compensation depth is fine-tuned. In order to facilitate the obvious observation of the impact of different parameters when adjusting the parameters, a historical initial compensation depth with a larger 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, first keep the historical initial compensation depth a0' unchanged, and adjust the historical initial compensation angle θ based on the historical initial compensation depth a0'. After each adjustment, read the speed difference △Wr, the first current component error △Id and the second current component error △Iq, and find the historical compensation angle θ1 with the smallest total first error value (m*|△Wr|+n*|△Id|+p*|△Iq|, m, n, p are proportional coefficients).

[0054] In order to more accurately obtain the target compensation angle, thereby further optimizing the performance of the system, in one embodiment of the present application, the compensation angle is adjusted multiple times starting from the above-mentioned historical initial compensation angle, including: determining the adjustment range of the above-mentioned compensation angle to be a first preset range [θ0-m, θ0+m], wherein m is a preset angle, and θ0 is the above-mentioned historical initial compensation angle; within the above-mentioned first preset range, adjusting the above-mentioned compensation angle multiple times starting from the above-mentioned historical initial compensation angle.

[0055] In another embodiment, within the first preset range, the compensation angle is adjusted multiple times starting from the historical initial compensation angle, including: determining the adjustment step length of the compensation angle to obtain the first step length; determining the number of adjustments of the compensation angle according to m and the first step length to obtain the first adjustment number; within the first preset range, starting from the historical initial compensation angle, adjusting the compensation angle according to the first step length and the first adjustment number. In this method, the adjustment step length and the number of adjustments of the compensation angle are first determined, and then multiple adjustments are made according to the set step length and number of adjustments. Through such a method, the compensation angle can be further refined and optimized step by step, so that the target compensation angle is more accurate, thereby further improving the performance and stability of the system.

[0056] Specifically, adjustment is performed within the angle range of [θ0-m, θ0+m], wherein the first step length is divisible by m, the first adjustment number is obtained by dividing m by the first step length and then multiplying by 2, and the compensation angle is adjusted according to the first adjustment number and the first step length.

[0057] In order to make the historical compensation parameters obtained after each adjustment of the compensation angle more effective, in one embodiment of the present application, the historical initial compensation depth is kept unchanged, the compensation angle is adjusted multiple times starting from the above-mentioned historical initial compensation angle, and the above-mentioned speed difference, first current component error and second current component error after each adjustment of the compensation angle are obtained, including: keeping the above-mentioned historical initial compensation depth unchanged, and adjusting the compensation angle multiple times starting from the above-mentioned historical initial compensation angle; determining whether the above-mentioned compressor has been running at the same frequency for a period of time exceeding a preset time, and if the above-mentioned compressor has been running at the same frequency for a period of time exceeding the preset time, obtaining the above-mentioned speed difference, first current component error and second current component error after each adjustment of the compensation angle.

[0058] In another embodiment, obtaining the historical compensation parameters corresponding to the above-mentioned target historical operating state includes: keeping the above-mentioned historical compensation angle unchanged, adjusting the above-mentioned compensation depth multiple times from the above-mentioned historical initial compensation depth, and obtaining the above-mentioned speed difference, the third current component error and the fourth current component error after each adjustment of the above-mentioned compensation depth, the above-mentioned 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 detection feedback d-axis current value, and the above-mentioned 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 detection feedback q-axis current value; according to the above-mentioned speed difference, the above-mentioned third current component error and the above-mentioned fourth current component error obtained after each adjustment of the above-mentioned historical initial compensation depth, calculating the total error value after each adjustment of the above-mentioned compensation depth to obtain the second total error value, determining the compensation depth value corresponding to the minimum above-mentioned second total error value as the historical target compensation depth, and the above-mentioned compensation depth value after adjustment; determining the above-mentioned target compensation depth according to the above-mentioned initial target compensation depth. In this method, by adjusting the compensation depth multiple times, the compensation depth that minimizes the total error value is found, thereby obtaining the target compensation depth, so that the compensation depth can be adjusted more effectively in the case of a large speed difference, further improving the stability and accuracy of the system. At the same time, by calculating the total error value, the optimal compensation depth can be determined more accurately, thereby further improving the control accuracy and efficiency of the system.

[0059] Specifically, on the basis of keeping the historical compensation angle unchanged, the compensation depth is adjusted multiple times, and the second error total value is calculated according to the rotation speed difference, the third current component error and the fourth current error after each adjustment, and the compensation depth that minimizes the second error total value is found as the adjusted compensation depth.

[0060] In order to more accurately obtain the target compensation depth, thereby further optimizing the performance of the system, in one embodiment of the present application, the compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: when the compressor is operating stably at a preset operating frequency, determining the adjustment range of the compensation depth to be a second preset range [a0-n, a0+n], wherein n is the preset depth and a0 is the historical initial compensation depth; within the second preset range, adjusting the compensation depth multiple times starting from the historical initial compensation depth.

[0061] In another embodiment, within the second preset range, the compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: determining the adjustment step length of the compensation depth to obtain a second step length; determining the number of adjustments of the compensation depth according to n and the second step length to obtain a second adjustment number; within the second preset range, starting from the historical initial compensation depth, adjusting the compensation depth according to the second step length and the second adjustment number. In this method, by adjusting the compensation depth multiple times, the error can be further minimized, thereby further improving the accuracy and stability of the system.

[0062] Specifically, on the basis of the unchanged historical compensation angle, at the current stable operating frequency of the machine, starting from the historical initial compensation depth, adjustments are made within the range of [a0-n, a0+n], and the speed difference △Wr, the third current component error △Id, and the fourth current component error △Iq are read to find the historical compensation depth with the smallest total value of the second error (m*|△Wr|+n*|△Id|+p*|△Iq|, m, n, p are proportional coefficients).

[0063] Specifically, Figure 3 As shown, the compressor operates stably. When the absolute value of the speed difference is greater than or equal to the preset threshold, the compensation angle is adjusted within a 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 historical compensation depth.

[0064] In order to more accurately control the operation of the compressor and make the operation of the compressor more stable and efficient, in an embodiment of the present application, the initial compensation parameters are adjusted according to the above-mentioned historical compensation parameters to obtain the above-mentioned target compensation parameters, including: when the above-mentioned current initial compensation depth and the historical initial compensation depth are different, calculating the ratio of the above-mentioned historical compensation depth to the above-mentioned historical initial compensation depth to obtain the adjustment ratio; calculating the product of the above-mentioned current initial compensation depth and the above-mentioned adjustment ratio to obtain the above-mentioned target compensation depth; adjusting the above-mentioned current initial compensation angle to the above-mentioned historical compensation angle to obtain the above-mentioned target compensation angle.

[0065] Specifically, the target compensation angle is recorded, covering the initial compensation angle. At the same time, the adjustment ratio a1 / a0 of the torque compensation depth coefficient corresponding to the compressor under this load is recorded. When the compressor runs to this load state again, the compensation depth coefficient is actively adjusted to a*(a1 / a0) to adapt to the operation of the compressor under this load state. The condition for judging the operation to this load is to judge the load state according to the detected ambient temperature range, compressor phase current, and frequency. When all three variable conditions are met, the recorded proportional coefficient can be called.

[0066] Specifically, it is detected that the speed difference is continuously greater than the preset threshold value, and the time can be set by yourself, such as 1 minute. The frequency is the current operating frequency (within the set torque compensation interval). If it exceeds the set torque compensation interval range, this speed difference judgment process will not be performed.

[0067] Specifically, Figure 4 As shown, the target compensation angle in the state at the historical moment is recorded and the compensation angle in the state is covered. The adjustment ratio of the compensation depth coefficient in the state at the historical moment is recorded as the historical compensation depth / historical initial compensation depth. When it runs to this state again and the state is high load, (the condition for judging it as high load is: the external ambient temperature is greater than T1℃ (such as 46℃), the compressor runs in the low-frequency torque compensation interval, and the compressor phase current value is greater than I1, then it is judged that the low-frequency and high-load operating state has been reached at this time), 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] In order to further ensure its stable operation under a constant load, make the results of the adjustment process more comparative, and thus further improve the efficiency and performance of the compressor, in one embodiment of the present application, in the process of obtaining the above-mentioned target compensation parameters, the above-mentioned method also includes: obtaining the operating frequency of the above-mentioned compressor in real time; at least when the above-mentioned operating frequency remains unchanged, determining that the current load of the above-mentioned compressor does not change; at least when the above-mentioned current load changes significantly, increasing or decreasing the wind speed of the fan related to the above-mentioned compressor or adjusting the throttling device connected to the above-mentioned compressor to ensure that the above-mentioned current load of the above-mentioned compressor does not change.

[0069] Specifically, the compressor phase current value is read in real time during the entire process to ensure that the compressor load remains basically stable during the adjustment process. If there is a sudden change in load or a significant change in phase current value during the adjustment process, the load can be actively adjusted and the phase current can be kept stable by increasing or decreasing the wind speed or adjusting throttling devices such as the expansion valve.

[0070] In order to more accurately determine whether the structure of the compressor is a single-rotor structure, in one embodiment of the present application, the structure of the above-mentioned compressor is determined, and the above-mentioned method includes: controlling the above-mentioned compressor to operate to a preset frequency; obtaining the above-mentioned speed difference of the above-mentioned compressor in at least one mechanical operating cycle; obtaining the time interval between the maximum values ​​of two adjacent above-mentioned speed differences in at least one above-mentioned mechanical operating cycle; when the above-mentioned time interval is equal to the above-mentioned mechanical operating cycle and the maximum value of the above-mentioned speed difference is greater than a second preset threshold value, determining that the structure of the above-mentioned compressor is a single-rotor structure.

[0071] In order to more accurately determine whether the structure of the compressor is a dual-rotor structure, in one embodiment of the present application, the structure of the above-mentioned compressor is determined, and the above-mentioned method also includes: when the above-mentioned time interval and the above-mentioned mechanical operating cycle are not equal or the above-mentioned maximum value of the above-mentioned speed difference is not greater than the above-mentioned second preset threshold value, obtaining the second speed difference of the above-mentioned compressor in at least one second mechanical operating cycle, and the above-mentioned second mechanical operating cycle is an operating cycle after the preset time interval of the above-mentioned mechanical operating cycle; and obtaining the second time interval of two adjacent maximum values ​​of the above-mentioned speed difference in at least one of the above-mentioned second mechanical operating cycles; at least when the above-mentioned second time interval and the above-mentioned second mechanical operating cycle are not equal, determining that the structure of the above-mentioned compressor is a dual-rotor structure.

[0072] Specifically, for variable capacity twin-cylinder compressors, re-determination and confirmation of the number of cylinders after the change from single cylinder to double cylinder is more beneficial to the stability and reliability of subsequent program control operation.

[0073] Specifically, the speed difference and periodicity are used to determine whether it is a single-rotor or dual-rotor compressor. Figure 5 As shown, when the compressor starts and runs to a preset frequency without adding torque compensation, the mechanical operation cycle of at least one compressor is obtained, and the speed difference (the difference between the estimated speed and the given speed) within the cycle is obtained to determine the size of the speed difference and the change rule. If the speed difference is greater than the second preset threshold and the speed difference change cycle is equal to the mechanical operation cycle, the compressor is judged to be a single-rotor compressor. Otherwise, after running for a preset time, the second mechanical operation cycle is obtained. If the speed difference change cycle is not equal to the second mechanical operation cycle, it is judged to be a dual-rotor compressor. Otherwise, it is a single-rotor compressor.

[0074] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for adjusting the compensation parameters during the operation of the compressor of the present application will be described in detail below in combination with specific embodiments.

[0075] This embodiment relates to a specific method for adjusting compensation parameters during compressor operation, comprising the following steps:

[0076] Step 1: Obtain the speed difference of the compressor, determine whether the operating state of the compressor is the target historical operating state, and when the operating state of the compressor 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 speed difference corresponding to the historical moment is greater than or equal to the preset threshold, the historical initial compensation depth is kept unchanged, starting from the historical initial compensation angle within the first preset range, the compensation angle is adjusted each time with the first step length determined, and after each adjustment, when the compressor stably runs at a preset frequency for a preset time, the first current component error and the second current component error are obtained, the first error total value is calculated according to the first current component error, the second current component error and the speed difference, and the compensation angle with the smallest first error total value is determined as the historical compensation angle;

[0078] Step 3: When the historical compensation angle remains unchanged and the system is running at a preset frequency, within a second preset range, starting from the historical initial compensation depth, the compensation depth is adjusted each time by a determined second step length, and after each adjustment, the third current component error and the fourth current component error are obtained, and the second error total value is calculated according to the third current component error, the fourth current component error and the rotational speed difference, and the compensation depth with the minimum second error total value is determined as the historical compensation depth;

[0079] Step 4: Control the compressor to operate at a historical compensation angle and historical compensation depth;

[0080] Step 5: When the current initial compensation depth is not the historical initial compensation depth, the target compensation depth is re-determined 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, the initial compensation depth is determined to be the target compensation depth, and the current initial compensation angle is adjusted to the historical compensation angle;

[0081] Step 6: In the process of obtaining the target compensation parameters, at least when the operating frequency remains 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 seven: Control the compressor to run at a preset frequency, obtain the speed difference and the time interval between two adjacent speed difference maximum values ​​in at least one first mechanical operating cycle. When the time interval is equal to the first mechanical operating cycle and the maximum value is greater than a second preset threshold, determine that the structure of the compressor is a single-rotor structure. Otherwise, re-obtain the second mechanical operating cycle within the preset time after the first mechanical operating cycle, and re-judge the time interval between two adjacent speed difference maximum values. When the time interval is different from the second mechanical operating cycle, determine that the structure of the compressor is a dual-rotor structure. Otherwise, determine that the structure of the compressor is a single-rotor structure.

[0083] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0084] The embodiment of the present application also provides a device for adjusting compensation parameters during the operation of a compressor. It should be noted that the device for adjusting compensation parameters during the operation of a compressor in the embodiment of the present application can be used to execute the method for adjusting compensation parameters during the operation of a compressor provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been described will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0085] The following is an introduction to the device for adjusting compensation parameters during compressor operation provided in an embodiment of the present application.

[0086] Figure 6 Schematic diagram of a device for adjusting compensation parameters during operation of a compressor according to an embodiment of the present application. Figure 6 As shown, the device comprises:

[0087] The first acquisition unit 10 acquires the rotation speed difference of the compressor.

[0088] Specifically, the rotation speed difference is the difference between the estimated rotation speed and the preset rotation speed.

[0089] The second acquisition unit 20 acquires a target compensation parameter when the absolute value of the speed difference is greater than or equal to a preset threshold value. The target compensation parameter includes at least one of a target compensation depth and a target compensation angle. The target compensation depth is a depth value of the torque compensation set to offset the torque fluctuation of the compressor. The target compensation angle is an angle value of the torque compensation set to offset the torque fluctuation of the compressor.

[0090] Specifically, if the speed difference is greater than a preset threshold (artificially set, it is considered that the speed difference is large and the control deviation is large at this time), the torque compensation scheme is corrected.

[0091] The unit 30 is used to control the operation of the compressor by at least using the target compensation parameter, and to make the absolute value of the corresponding rotational speed difference smaller than the preset threshold.

[0092] Specifically, the target compensation parameters are used to perform compensation control, that is, the torque compensation strategy is updated, and at least the target compensation angle and the target compensation depth are used to adjust the operating state of the compressor.

[0093] In the above embodiment, first, the speed difference of the above compressor is obtained; second, when the absolute value of the above speed difference is greater than or equal to the preset threshold, the target compensation parameter is obtained; finally, at least the above target compensation parameter is used to control the operation of the above compressor, and the corresponding absolute value of the above speed difference is less than the above preset threshold. Compared with the prior art, in which a set of fixed compensation angles and depth coefficients are debugged for the compressor when it is running at all loads in the early stage of development, and the torque compensation cannot be automatically adjusted under different operating loads, the scheme of the present application obtains the speed difference under various loads and determines whether the speed difference is less than the preset threshold. If it is less than the preset threshold, the compressor maintains the original state of operation. If the speed difference is greater than or equal to the preset threshold, the compensation coefficient is adjusted, and the obtained compensation coefficient is used to control the operation of the compressor so that the speed difference is less than the preset threshold, so that the compensation parameter is suitable for the current operating state and reaches a stable operating state. In this way, the compressor meets the needs of different torque compensation 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] In order to help the system better adapt to the current operating conditions and further improve performance and efficiency, in one embodiment of the present application, the second acquisition unit includes a first determination subunit and a first acquisition subunit, wherein the first determination subunit is used to determine whether the operating state of the above-mentioned compressor is the target historical operating state, and the above-mentioned operating state is determined according to the phase current value, current ambient temperature and operating frequency of the above-mentioned compressor; the first acquisition subunit is used to obtain the historical compensation parameters corresponding to the above-mentioned target historical operating state when the operating state of the above-mentioned compressor is the above-mentioned target historical operating state, and adjust the current initial compensation parameters according to the above-mentioned historical compensation parameters to obtain the above-mentioned target compensation parameters, the above-mentioned historical compensation parameters include historical compensation depth and historical compensation angle, and the above-mentioned current initial compensation parameters are compensation parameters at the current moment and include current initial compensation depth and current initial compensation angle.

[0095] In one embodiment of the present application, the second acquisition unit includes a second acquisition subunit, a first adjustment subunit and a first calculation subunit, wherein the second acquisition subunit is used to obtain the initial compensation depth and the initial compensation angle corresponding to the above historical moment when the absolute value of the above speed difference corresponding to the historical moment is greater than or equal to the above preset threshold, and obtain the historical initial compensation depth and the 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 above historical initial compensation angle, and obtain the above speed difference, the first current component error and the second current component error after each adjustment of the above compensation angle, the above 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 detection feedback d-axis current value, and the above 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 detection feedback q-axis current value; the first calculation subunit is used to calculate the total error value after each adjustment of the above compensation angle according to the speed difference, the first current component error and the second current component error after each adjustment of the above compensation angle, obtain the first total error value, determine the compensation angle value corresponding to the minimum above first total error value as the above historical compensation angle, and the above compensation angle value is the above compensation angle after adjustment. In this scheme, by adjusting the compensation angle multiple times, the compensation angle that minimizes the total error value is found, thereby obtaining the target compensation parameters, so that the optimal torque compensation scheme can be found under the current operating state, further improving the stability and accuracy of the system. At the same time, by calculating the total error value, the optimal historical compensation angle can be determined more accurately, thereby further improving the control accuracy and efficiency of the system.

[0096] Specifically, when the compressor phase current value is stable and no longer changes under a certain frequency of stable operation, the torque compensation depth is fine-tuned. In order to facilitate the obvious observation of the impact of different parameters when adjusting the parameters, a historical initial compensation depth with a larger 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, first keep the historical initial compensation depth a0' unchanged, and adjust the historical initial compensation angle θ based on the historical initial depth a0'. After each adjustment, read the speed difference △Wr, the first current component error △Id and the second current component error △Iq, and find the historical compensation angle θ1 with the smallest total first error value (m*|△Wr|+n*|△Id|+p*|△Iq|, m, n, p are proportional coefficients).

[0098] In order to more accurately obtain the target compensation angle, thereby further optimizing the performance of the system, in one embodiment of the present application, the first adjustment subunit includes a first determination module and a first adjustment module, wherein the first determination module is used to determine that the adjustment range of the above-mentioned compensation angle is a first preset range [θ0-m, θ0+m], wherein m is a preset angle, and θ0 is the above-mentioned historical initial compensation angle; the first adjustment module is used to adjust the above-mentioned compensation angle multiple times starting from the above-mentioned historical initial compensation angle within the above-mentioned first preset range.

[0099] In another embodiment, the first adjustment module includes a first determination submodule, a second determination submodule and a first adjustment submodule, wherein the first determination submodule is used to determine the adjustment step size of the compensation angle to obtain the first step size; the second determination submodule is used to determine the number of adjustments of the compensation angle according to m and the first step size to obtain the first adjustment number; the first adjustment submodule is used to adjust the compensation angle according to the first step size and the first adjustment number within the first preset range, starting from the historical initial compensation angle. In this scheme, the adjustment step size and the number of adjustments of the compensation angle are first determined, and then multiple adjustments are made according to the set step size and number of times. Through such a method, the compensation angle can be further refined and optimized step by step, so that the target compensation angle is more accurate, thereby further improving the performance and stability of the system.

[0100] Specifically, adjustment is performed within the angle range of [θ0-m, θ0+m], wherein the first step length is divisible by m, the first adjustment number is obtained by dividing m by the first step length and then multiplying by 2, and the compensation angle is adjusted according to the first adjustment number and the first step length.

[0101] In order to make the parameters obtained after each adjustment of the compensation angle more effective, in one embodiment of the present application, the first adjustment subunit includes a second adjustment module and a second determination module, wherein the second adjustment module is used to keep the above-mentioned historical initial compensation depth unchanged, and adjust the compensation angle multiple times starting from the above-mentioned historical initial compensation angle; the second determination module is used to determine whether the above-mentioned compressor has been running at the same frequency for a period of time exceeding a preset time, and if the above-mentioned compressor has been running at the same frequency for a period of time exceeding a preset time, the above-mentioned speed difference, the first current component error and the second current component error after each adjustment of the compensation angle are obtained.

[0102] In another embodiment, the second acquisition unit includes a second adjustment subunit, a second calculation subunit and a second determination subunit, wherein the second adjustment subunit is used to keep the above-mentioned historical compensation angle unchanged, adjust the above-mentioned compensation depth multiple times starting from the above-mentioned historical initial compensation depth, and obtain the above-mentioned speed difference, the third current component error and the fourth current component error after each adjustment of the above-mentioned compensation depth, the above-mentioned 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 detection feedback d-axis current value, and the above-mentioned 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 detection feedback q-axis current value; the second calculation subunit is used to calculate the total error value after each adjustment of the above-mentioned compensation depth according to the above-mentioned speed difference, the above-mentioned third current component error and the above-mentioned fourth current component error obtained after each adjustment of the above-mentioned historical initial compensation depth, obtain the second total error value, determine the compensation depth value corresponding to the minimum above-mentioned second total error value as the initial target compensation depth, and the above-mentioned compensation depth value is the above-mentioned compensation depth after adjustment; the first determination subunit is used to determine the above-mentioned target compensation depth according to the above-mentioned initial target compensation depth. In this solution, the compensation depth is adjusted multiple times to find the compensation depth that minimizes the total error value, thereby obtaining the target compensation depth. This allows the compensation depth to be adjusted more effectively when the speed difference is large, further improving the stability and accuracy of the system. At the same time, by calculating the total error value, the optimal compensation depth can be determined more accurately, further improving the control accuracy and efficiency of the system.

[0103] Specifically, on the basis of keeping the historical compensation angle unchanged, the compensation depth is adjusted multiple times, and the second error total value is calculated according to the rotation speed difference, the third current component error and the fourth current error after each adjustment, and the compensation depth that minimizes the second error total value is found as the historical compensation depth.

[0104] In order to more accurately obtain the target compensation depth, thereby further optimizing the performance of the system, in one embodiment of the present application, the second adjustment subunit includes a third determination module and a third adjustment module, wherein the third determination module is used to determine that the adjustment range of the compensation depth is a second preset range [a0-n, a0+n] when the compressor is stably operating at a preset operating frequency, wherein n is the preset depth and a0 is the initial compensation depth; the third adjustment 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 second preset range, the second adjustment subunit further includes a fourth determination module, a fifth determination module and a third adjustment module, wherein the fourth determination module is used to determine the adjustment step of the compensation depth to obtain the second step; the fifth determination module is used to determine the number of adjustments of the compensation depth according to n and the second step to obtain the second adjustment number; the third adjustment module is used to adjust the compensation depth within the second preset range, starting from the historical initial compensation depth, according to the second step and the second adjustment number. In this solution, by adjusting the compensation depth multiple times, the error can be further minimized, thereby further improving the accuracy and stability of the system.

[0106] Specifically, on the basis of keeping the historical compensation angle unchanged and at the current stable operating frequency of the machine, start from the historical initial compensation depth and make adjustments within the range of [a0-n, a0+n] to read the speed difference △Wr, the third current component error △Id and the fourth current component error △Iq, and find out the historical compensation depth with the smallest total value of the second error (m*|△Wr|+n*|△Id|+p*|△Iq|, where m, n, and p are proportional coefficients).

[0107] In order to more accurately control the operation of the compressor and make the operation of the compressor more stable and efficient, in an embodiment of the present application, the first acquisition subunit includes a first calculation module, a second calculation module and a third adjustment module, wherein the first calculation module is used to calculate the ratio of the above-mentioned historical compensation depth to the above-mentioned historical initial compensation depth when the above-mentioned current initial compensation depth and the historical initial compensation depth are different, so as to obtain the adjustment ratio; the second calculation module is used to calculate the product of the above-mentioned current initial compensation depth and the above-mentioned adjustment ratio, so as to obtain the above-mentioned target compensation depth; the third adjustment module is used to adjust the above-mentioned current initial compensation angle to the above-mentioned historical compensation angle, so as to obtain the above-mentioned target compensation angle.

[0108] Specifically, the target compensation angle is recorded, covering the initial compensation angle. At the same time, the adjustment ratio a1 / a0 of the torque compensation depth coefficient corresponding to the compressor under this load is recorded. When the compressor runs to this load state again, the compensation depth coefficient is actively adjusted to a*(a1 / a0) to adapt to the operation of the compressor under this load state. The condition for judging the operation to this load is to judge the load state according to the detected ambient temperature range, compressor phase current, and frequency. When all three variable conditions are met, the recorded proportional coefficient can be called.

[0109] Specifically, it is detected that the speed difference is continuously greater than the preset threshold value, and the time can be set by yourself, such as 1 minute. The frequency is the current operating frequency (within the set torque compensation interval). If it exceeds the set torque compensation interval range, this speed difference judgment process will not be performed.

[0110] In order to further ensure its stable operation under a constant load, make the results of the adjustment process more comparative, and thus further improve the efficiency and performance of the compressor, in one embodiment of the present application, in the process of obtaining the above-mentioned target compensation parameters, the second acquisition unit also includes a second acquisition sub-unit, a fourth determination sub-unit and an ensuring sub-unit, wherein the second acquisition sub-unit is used to obtain the phase current value and operating frequency of the above-mentioned compressor in real time; the fourth determination sub-unit is used to determine that the current load of the above-mentioned compressor does not change, at least when the above-mentioned operating frequency remains unchanged; the ensuring sub-unit increases or decreases the wind speed of the fan related to the above-mentioned compressor or adjusts the throttling device connected to the above-mentioned compressor, at least when the above-mentioned current load changes significantly, to ensure that the above-mentioned current load of the above-mentioned compressor does not change.

[0111] Specifically, the compressor phase current value is read in real time during the entire process to ensure that the compressor load remains basically stable during the adjustment process. If there is a sudden change in load or a significant change in phase current value during the adjustment process, the load can be actively adjusted and the phase current can be kept stable by increasing or decreasing the wind speed or adjusting throttling devices such as the expansion valve.

[0112] In order to more accurately determine whether the structure of the compressor is a single-rotor structure, in one embodiment of the present application, the above-mentioned device includes a control unit, a third acquisition unit, a fourth acquisition unit and a determination unit, wherein the control unit is used to control the above-mentioned compressor to operate to a preset frequency; the third acquisition unit is used to obtain the above-mentioned speed difference of the above-mentioned compressor within at least one mechanical operating cycle; the fourth acquisition unit is used to obtain the time interval between the maximum values ​​of two adjacent above-mentioned speed differences within at least one above-mentioned mechanical operating cycle; the determination unit is used to determine that the structure of the above-mentioned compressor is a single-rotor structure when the above-mentioned time interval is equal to the above-mentioned mechanical operating cycle and the maximum value of the above-mentioned speed difference is greater than a second preset threshold value.

[0113] In order to more accurately determine whether the structure of the compressor is a dual-rotor structure, in one embodiment of the present application, the structure of the above-mentioned compressor is determined, and the determination unit includes a third acquisition subunit, a fourth acquisition subunit and a fifth determination subunit, wherein the third acquisition subunit is used to obtain the second speed difference of the above-mentioned compressor in at least one second mechanical operating cycle when the above-mentioned time interval is not equal to the above-mentioned mechanical operating cycle or the above-mentioned maximum value of the above-mentioned speed difference is not greater than the above-mentioned second preset threshold value, and the above-mentioned second mechanical operating cycle is an operating cycle after the preset time interval of the above-mentioned mechanical operating cycle; the fourth acquisition subunit is used to obtain the second time interval of two adjacent maximum values ​​of the above-mentioned speed difference in at least one of the above-mentioned second mechanical operating cycles; the fifth determination subunit is used to determine that the structure of the above-mentioned compressor is a dual-rotor structure at least when the above-mentioned second time interval and the above-mentioned second mechanical operating cycle are not equal.

[0114] Specifically, for variable capacity twin-cylinder compressors, re-determination and confirmation of the number of cylinders after the change from single cylinder to double cylinder is more beneficial to the stability and reliability of subsequent program control operation.

[0115] The device for adjusting compensation parameters during operation of the compressor includes a processor and a memory. The first acquisition unit, the second acquisition unit and the adoption unit are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.

[0116] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of large differences in vibration stress effects of single-rotor compressors under various loads in the prior art is solved by adjusting kernel parameters.

[0117] The memory may include non-permanent memory in a computer-readable medium, 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] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for adjusting compensation parameters in the operation of the compressor, the method comprising:

[0119] Step S201, obtaining the rotation speed difference of the compressor.

[0120] Step S202, when the absolute value of the above-mentioned speed difference is greater than or equal to a preset threshold value, obtain a target compensation parameter, the above-mentioned target compensation parameter includes at least one of a target compensation depth and a target compensation angle, the above-mentioned target compensation depth is a depth value of the torque compensation set to offset the torque fluctuation of the above-mentioned compressor, and the above-mentioned target compensation angle is an angle value of the torque compensation set to offset the torque fluctuation of the above-mentioned compressor.

[0121] Step S203: at least use the target compensation parameter to control the operation of the compressor, and make the corresponding absolute value of the rotational speed difference smaller than the preset threshold.

[0122] An embodiment of the present invention provides a processor, the processor is used to run a program, wherein when the program is run, the method for adjusting the compensation parameters in the operation of the compressor is executed, the method comprising:

[0123] Step S201, obtaining the rotation speed difference of the compressor.

[0124] Step S202, when the absolute value of the above-mentioned speed difference is greater than or equal to a preset threshold value, obtain a target compensation parameter, the above-mentioned target compensation parameter includes at least one of a target compensation depth and a target compensation angle, the above-mentioned target compensation depth is a depth value of the torque compensation set to offset the torque fluctuation of the above-mentioned compressor, and the above-mentioned target compensation angle is an angle value of the torque compensation set to offset the torque fluctuation of the above-mentioned compressor.

[0125] Step S203: at least use the target compensation parameter to control the operation of the compressor, and make the corresponding absolute value of the rotational speed difference smaller than the preset threshold.

[0126] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0127] Step S201, obtaining the rotation speed difference of the compressor.

[0128] Step S202, when the absolute value of the above-mentioned speed difference is greater than or equal to a preset threshold value, obtain a target compensation parameter, the above-mentioned target compensation parameter includes at least one of a target compensation depth and a target compensation angle, the above-mentioned target compensation depth is a depth value of the torque compensation set to offset the torque fluctuation of the above-mentioned compressor, and the above-mentioned target compensation angle is an angle value of the torque compensation set to offset the torque fluctuation of the above-mentioned compressor.

[0129] Step S203: at least use the target compensation parameter to control the operation of the compressor, and make the corresponding absolute value of the rotational speed difference smaller than the preset threshold.

[0130] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0131] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0132] Step S201, obtaining the rotation speed difference of the compressor.

[0133] Step S202, when the absolute value of the above-mentioned speed difference is greater than or equal to a preset threshold value, obtain a target compensation parameter, the above-mentioned target compensation parameter includes at least one of a target compensation depth and a target compensation angle, the above-mentioned target compensation depth is a depth value of the torque compensation set to offset the torque fluctuation of the above-mentioned compressor, and the above-mentioned target compensation angle is an angle value of the torque compensation set to offset the torque fluctuation of the above-mentioned compressor.

[0134] Step S203: at least use the target compensation parameter to control the operation of the compressor, and make the corresponding absolute value of the rotational speed difference smaller than the preset threshold.

[0135] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0137] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions 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] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0142] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0143] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0144] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0145] In the above embodiment, first, the speed difference of the compressor is obtained; second, when the absolute value of the speed difference is greater than or equal to the preset threshold, the target compensation parameter is obtained; finally, at least the target compensation parameter is used to control the operation of the compressor, and the corresponding absolute value of the speed difference is less than the preset threshold. Compared with the prior art, in which a set of fixed compensation angles and depth coefficients are debugged for the compressor at all loads in the early stage of development, but the torque compensation cannot be automatically adjusted under different operating loads, the scheme of the present application obtains the speed difference under various loads and determines whether the speed difference is less than the preset threshold. If it is less than the preset threshold, the compressor maintains the original state of operation. If the speed difference is greater than or equal to the preset threshold, the compensation depth coefficient is adjusted, and the compressor is controlled to operate using the obtained compensation depth coefficient so that the speed difference is less than the preset threshold, so that the compensation parameter is suitable for the current operating state and reaches a stable operating state, thus ensuring the compressor's needs for different torque compensation 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.

[0146] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for adjusting compensation parameters during compressor operation, characterized in that: include: obtaining a rotation speed difference of the compressor; When the absolute value of the speed difference is greater than or equal to a preset threshold, a target compensation parameter is obtained, wherein the target compensation parameter includes at least one of a target compensation depth and a target compensation angle, wherein the target compensation depth is a depth value of the torque compensation set to offset the torque fluctuation of the compressor, and the target compensation angle is an angle value of the torque compensation set to offset the torque fluctuation of the compressor; At least the target compensation parameter is used to control the operation of the compressor, and the absolute value of the corresponding rotational speed difference is made smaller than the preset threshold.

2. The method for adjusting compensation parameters during compressor operation according to claim 1, characterized in that: When the absolute value of the rotation speed difference is greater than or equal to a preset threshold, obtaining a target compensation parameter includes: Determining whether the operating state of the compressor is a target historical operating state, wherein the operating state is determined according to a phase current value, a frequency, and an ambient temperature of the compressor; When the operating state of the compressor is the target historical operating state, the historical compensation parameters corresponding to the target historical operating state are obtained, and the current initial compensation parameters are adjusted according to the historical compensation parameters to obtain the target compensation parameters, the historical compensation parameters include historical compensation depths and historical compensation angles, and the current initial compensation parameters are compensation parameters at the current moment and include current initial compensation depths and current initial compensation angles.

3. 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 historical operating state includes: When the absolute value of the rotation speed difference corresponding to the historical moment is greater than or equal to the preset threshold, obtaining the initial compensation depth and the initial compensation angle at the historical moment, and obtaining the historical initial compensation depth and the historical initial compensation angle respectively; Keeping the historical initial compensation depth unchanged, adjusting the compensation angle multiple times starting from the historical initial compensation angle, and obtaining the 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 detection 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 detection feedback q-axis current value; The total error value after each adjustment of the compensation angle is calculated based on the rotational speed difference, the first current component error and the second current component error after each adjustment of the compensation angle, to obtain the first total error value, and the compensation angle value corresponding to the minimum of the first total error value is determined to be the historical compensation angle, and the compensation angle value is the adjusted compensation angle.

4. The method for adjusting compensation parameters during compressor operation according to claim 3, characterized in that: The compensation angle is adjusted multiple times starting from the historical initial compensation angle, including: Determine that the adjustment range of the compensation angle is a first preset range [θ0-m, θ0+m], wherein m is a 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.

5. The method for adjusting compensation parameters during compressor operation according to claim 4, characterized in that: Within the first preset range, adjusting the compensation angle multiple times starting from the historical initial compensation angle includes: Determine the adjustment step length of the compensation angle to obtain the first step length; Determine the adjustment times of the compensation angle according to m and the first step length, and obtain a first adjustment times; 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 adjustment number.

6. The method for adjusting compensation parameters during compressor operation according to claim 3, characterized in that: Keeping the historical initial compensation depth unchanged, adjusting the compensation angle multiple times starting from the historical initial compensation angle, and obtaining the rotation speed difference, the first current component error, and the second current component error after each adjustment of the compensation angle, including: The historical initial compensation depth is kept unchanged, and the compensation angle is adjusted multiple times starting from the historical initial compensation angle; Determine whether the compressor runs at the same frequency for a period exceeding a preset time. If the compressor runs at the same frequency for a period exceeding a preset time, obtain the speed difference, the first current component error and the second current component error after each adjustment compensation angle.

7. The method for adjusting compensation parameters during compressor operation according to claim 3, characterized in that: Acquiring the historical compensation parameters corresponding to the target historical operating state also includes: Keeping the historical compensation angle unchanged, adjusting the compensation depth multiple times starting from the historical initial compensation depth, and obtaining the rotational speed difference, the third current component error, and the fourth current component error after each adjustment of the compensation depth, wherein 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 detection 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 detection feedback q-axis current value; According to the rotational 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, and the compensation depth value corresponding to the minimum second total error value is determined to be the historical compensation depth, and the compensation depth value is the adjusted compensation depth.

8. The method for adjusting compensation parameters during compressor operation according to claim 7, characterized in that: The compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: When the compressor is stably running at a preset operating frequency, determining the adjustment range of the compensation depth to be a second preset range [a0-n, a0+n], wherein 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.

9. The method for adjusting compensation parameters during compressor operation according to claim 8, characterized in that: In the second preset range, the compensation depth is adjusted multiple times starting from the historical initial compensation depth, including: Determining an adjustment step length of the compensation depth to obtain a second step length; Determine the number of times the compensation depth is adjusted according to n and the second step length to obtain a second number of times of adjustment; Within the second preset range, starting from the historical initial compensation depth, the compensation depth is adjusted according to the second step length and the second adjustment number.

10. The method for adjusting compensation parameters during compressor operation according to claim 7, characterized in that: Adjusting the initial compensation parameter according to the historical compensation parameter to obtain the target compensation parameter includes: When the current initial compensation depth is different from the historical initial compensation depth, 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; The current initial compensation angle is adjusted to the historical compensation angle to obtain the target compensation angle.

11. The method for adjusting compensation parameters during compressor operation according to claim 1, characterized in that: In the process of obtaining the target compensation parameter, the method further includes: Acquiring the operating frequency of the compressor in real time; At least when the operating frequency remains unchanged, determining that the current load of the compressor does not change; At least when the current load changes significantly, the wind speed of the fan connected to the compressor is increased or decreased or the throttling device connected to the compressor is adjusted to ensure that the current load of the compressor does not change.

12. The method for adjusting compensation parameters during compressor operation according to claim 1, characterized in that: Determining the structure of the compressor, the method comprises: Controlling the compressor to run at a preset frequency; Acquiring the speed difference of the compressor in at least one mechanical operation cycle; Obtaining a time interval between two adjacent maximum values ​​of the rotational speed difference within at least one mechanical operation cycle; When the time interval is equal to the mechanical operation cycle and the maximum value of the rotational speed difference is greater than a second preset threshold, it is determined that the structure of the compressor is a single-rotor structure.

13. The method for adjusting compensation parameters during compressor operation according to claim 12, characterized in that: Determining the structure of the compressor, the method further comprises: When the time interval is not equal to the mechanical operation cycle or the maximum value of the speed difference is not greater than the second preset threshold, obtaining a second speed difference of the compressor in at least one second mechanical operation cycle, the second mechanical operation cycle being an operation cycle after a preset time interval of the mechanical operation cycle; and obtaining a second time interval between two adjacent maximum values ​​of the rotational speed difference within at least one of the second mechanical operation cycles; At least when the second time interval and the second mechanical operation cycle are not equal, it is determined that the structure of the compressor is a dual-rotor structure.

14. A device for adjusting compensation parameters during operation of a compressor, characterized in that: include: A first acquisition unit, for acquiring a rotation speed difference of the compressor; a second acquisition unit, when the absolute value of the speed difference is greater than or equal to a preset threshold, acquiring a target compensation parameter, the target compensation parameter comprising at least one of a target compensation depth and a target compensation angle, the target compensation depth being a depth value of the torque compensation set to offset the torque fluctuation of the compressor, and the target compensation angle being an angle value of the torque compensation set to offset the torque fluctuation of the compressor; An adopting unit at least adopts the target compensation parameter to control the operation of the compressor, and makes the corresponding absolute value of the rotational speed difference smaller than the preset threshold.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for adjusting compensation parameters in compressor operation according to any one of claims 1 to 13.

16. 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 are configured to be executed by the one or more processors, and the one or more programs include a method for adjusting compensation parameters in the operation of the compressor as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Control method and system of compressor

    CN103470483A

  • Rotary vibration inhibition method and device of compressor and compressor control system

    CN105515484A

  • Compressor direct torque control method and device, compressor device and air conditioning equipment

    CN111224603A

  • Self-adaptive torque compensation control method and device, compressor and air conditioning equipment

    CN111342724A

  • Torque compensation control method and device and storage medium

    CN115095968A