Compressor control method and device, electronic equipment and computer readable storage medium
By calculating the temperature difference value of the variable frequency compressor to match the drag parameters, dragging the motor rotor to the preset position, solving the vibration noise problem caused by the rotor being unforced during startup, achieving smooth start-up and reducing noise.
Patent Information
- Application Number
- CN202411167508.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-12
AI Technical Summary
When starting up, the motor rotor may be in a position without force, causing start-up failure or vibration noise, and dragging multiple times to avoid this situation will increase noise problems.
By calculating the temperature difference between the target control temperature and the shutdown temperature, matching the corresponding drag parameters, drag the motor rotor to the preset shutdown position, and start at this position to avoid the rotor reversal vibration.
It realizes that the rotor is always susceptible to stress during startup, and can be successfully started with just one drag, avoiding the noise problems caused by multiple drags.
Smart Images

Figure CN118935837A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of variable frequency compressors, and in particular to a compressor control method, device, electronic equipment and computer-readable storage medium. Background Art
[0002] At present, the startup control of variable frequency compressors generally includes four stages: (1) DC drag positioning stage; (2) open-loop pulling; (3) open-loop to closed-loop; (4) closed-loop control. In the DC drag positioning stage, if the motor rotor is located at a position where no force is applied, it may cause startup failure. Therefore, in the prior art, the rotor is usually dragged once to avoid the rotor being located at a position where no force is applied, and then normal dragging is performed; however, this method of continuously dragging two angles may cause the rotor to reverse and generate vibration, causing noise. Summary of the invention
[0003] The main purpose of the present invention is to propose a compressor control method, device, electronic device and computer-readable storage medium, aiming to solve the problem in the prior art that continuous dragging of the motor rotor causes the rotor to reverse and vibrate and generate noise.
[0004] To achieve the above object, the present invention provides a compressor control method, the method comprising the steps of:
[0005] If the compressor stops, the target control temperature and the stop temperature are obtained;
[0006] Calculating a first temperature difference between the target control temperature and the shutdown temperature;
[0007] matching a first drag parameter corresponding to the first temperature difference;
[0008] Based on the first drag parameter, dragging the motor rotor of the motor corresponding to the compressor to a preset stop position;
[0009] If the compressor is turned on, a starting operation is performed based on the motor rotor being in the preset stop position.
[0010] Optionally, if the compressor is shut down, obtaining the target control temperature and the shutdown temperature includes:
[0011] If the compressor stops, the downtime of the compressor is measured to obtain the downtime duration;
[0012] Obtaining a preset downtime duration threshold, and determining whether the downtime duration is greater than the preset downtime duration threshold;
[0013] If the shutdown time is greater than the preset shutdown time threshold, the target control temperature and the shutdown temperature are obtained.
[0014] Optionally, the first drag parameter includes a first pre-position current; and the matching of the first drag parameter corresponding to the first temperature difference includes:
[0015] The first pre-positioning current corresponding to the first temperature difference is determined, wherein the first pre-positioning current is positively correlated with the first temperature difference.
[0016] Optionally, the step of dragging the motor rotor of the motor corresponding to the compressor to a preset stop position based on the first drag parameter includes:
[0017] Determining a preset stop angle corresponding to the preset stop position;
[0018] driving the motor rotor to rotate based on the first drag parameter;
[0019] When the rotation angle of the motor rotor is the preset stop angle, the motor rotor is controlled to stop so that the motor rotor stays at the preset stop position.
[0020] Optionally, performing a starting operation based on the motor rotor being in the preset stop position includes:
[0021] Acquire a startup temperature, and calculate a second temperature difference between the target control temperature and the startup temperature;
[0022] Matching a second drag parameter corresponding to the second temperature difference, dragging the motor rotor to a preset start position based on the second drag parameter, and performing an open-loop forced drag start operation;
[0023] Acquiring operating parameters of the compressor, and determining whether the operating parameters meet closed-loop switching conditions;
[0024] If the operating parameters meet the closed-loop switching conditions, the closed-loop operation is switched to complete the startup operation.
[0025] Optionally, the second dragging parameter includes a second pre-positioning current, a starting current, and a preset start-up angle; and the step of dragging the motor rotor to a preset start-up position based on the second dragging parameter and performing an open-loop forced dragging start operation includes:
[0026] driving the motor rotor to rotate based on the second predetermined positioning current;
[0027] When the rotation angle of the motor rotor is the preset start-up angle, controlling the motor rotor to stop so that the motor rotor stays at the preset start-up position;
[0028] An open-loop forced-pull operation is performed based on the starting current.
[0029] Optionally, the operating parameters include a compressor speed and a number of rotations; and judging whether the operating parameters meet a closed-loop switching condition includes:
[0030] Obtaining a preset startup speed or a preset number of startup revolutions, and determining whether the compressor speed reaches the preset startup speed, or whether the number of rotation revolutions reaches the preset number of startup revolutions;
[0031] If the compressor speed reaches the preset startup speed, or the number of rotations reaches the preset startup number of rotations, it is considered that the operating parameters meet the closed-loop switching conditions.
[0032] To achieve the above object, the present invention further provides a compressor control device, the compressor control device comprising:
[0033] A first acquisition module, used for acquiring a target control temperature and a shutdown temperature if the compressor is shut down;
[0034] A first calculation module, used for calculating a first temperature difference between the target control temperature and the shutdown temperature;
[0035] A first matching module, used for matching a first drag parameter corresponding to the first temperature difference;
[0036] A first dragging module, configured to drag a motor rotor of a motor corresponding to the compressor to a preset stop position based on the first dragging parameter;
[0037] The first execution module is used for executing a startup operation based on the motor rotor being in the preset stop position if the compressor is turned on.
[0038] To achieve the above objectives, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the compressor control method as described above when executed by the processor.
[0039] To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the compressor control method as described above are implemented.
[0040] The present invention proposes a compressor control method, device, electronic device and computer-readable storage medium. If the compressor is shut down, the target control temperature and the shutdown temperature are obtained; the first temperature difference between the target control temperature and the shutdown temperature is calculated; the first drag parameter corresponding to the first temperature difference is matched; the motor rotor of the motor corresponding to the compressor is dragged to a preset shutdown position based on the first drag parameter; if the compressor is turned on, a startup operation is performed on the basis that the motor rotor is in the preset shutdown position. By determining the first drag parameter based on the first temperature difference between the target control temperature and the shutdown temperature, the rotor can be dragged to the preset shutdown position based on the first drag parameter, and then the startup operation is performed on the basis of the preset shutdown position, so that the rotor is always susceptible to force during startup, so that the rotor can be dragged only by one drag, and the noise problem caused by multiple drags can be avoided while starting. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0044] Figure 1 It is a flow chart of a first embodiment of a compressor control method of the present invention;
[0045] Figure 2 is a detailed flow chart of the compressor control method of the present invention;
[0046] Figure 3 It is a module structure diagram of the compressor control device of the present invention;
[0047] Figure 4 It is a schematic diagram of the module structure of the electronic device of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, 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 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 making creative work are within the scope of protection of this application.
[0049] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0050] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present application.
[0051] The present invention provides a compressor control method, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a compressor control method according to the present invention, wherein the method comprises the following steps:
[0052] Step S10, if the compressor is shut down, obtaining the target control temperature and the shutdown temperature;
[0053] The compressor control method of the present invention is applied to products equipped with variable frequency compressors, such as variable frequency air conditioners, variable frequency refrigerators, etc.; this embodiment and subsequent embodiments are described using variable frequency refrigerators as an example, and other types of products can be implemented by analogy and will not be described in detail.
[0054] The target control temperature is the temperature that needs to be reached by the temperature control environment set in the product application; for example, for a variable frequency refrigerator, the corresponding target control temperature can be the set temperature of the refrigerator compartment and the set temperature of the freezer compartment; in actual applications, a specific temperature type can be specified as the target control temperature based on needs, such as the set temperature of the freezer compartment in this embodiment and subsequent embodiments as the target control temperature, and other types of target control temperatures can be implemented by analogy and will not be repeated here; the specific value of the target control temperature can be determined based on the operating mode or the specific set temperature value.
[0055] The shutdown temperature is the actual temperature of the temperature control environment when the compressor stops. It can be understood that the shutdown temperature and the target control temperature are for the same temperature control environment. For example, when the target control temperature is set to the set temperature of the freezer, the shutdown temperature is the actual temperature of the freezer when the compressor stops. The shutdown temperature can be detected by setting a temperature sensor in the temperature control environment.
[0056] Step S20, calculating a first temperature difference between the target control temperature and the shutdown temperature;
[0057] Step S30, matching a first drag parameter corresponding to the first temperature difference;
[0058] It can be understood that the difference between the target control temperature and the shutdown temperature reflects the temperature control load of the system; the greater the difference between the target control temperature and the shutdown temperature, the higher the degree of heating or cooling the system needs, the higher the balance pressure in the system, and the greater the starting resistance to the motor rotor dragging, and therefore, a larger drag parameter is required; and the smaller the difference between the target control temperature and the shutdown temperature, the lower the degree of heating or cooling the system needs, the lower the balance pressure in the system, and the smaller the starting resistance to the motor rotor dragging, and therefore, only a smaller drag parameter is required.
[0059] It can be seen from the above description that the difference between the target control temperature and the shutdown temperature will affect the setting of the drag parameters of the motor rotor. Therefore, in this embodiment, a first temperature difference between the target control temperature and the shutdown temperature is set, and the first drag parameter is matched based on the first temperature difference, so that the first drag parameter can meet the drag needs of the motor rotor under actual conditions.
[0060] Step S40, dragging the motor rotor of the motor corresponding to the compressor to a preset stop position based on the first drag parameter;
[0061] It can be understood that the compressor is driven by a motor; the motor corresponding to the compressor is the motor that drives the compressor.
[0062] The preset stop position is a position where the motor rotor is easily subjected to stress. It can be understood that the motor rotor moves based on the magnetic field generated by the motor stator. When the compressor stops, that is, when the motor stops running, if the motor rotor and the motor stator are just in a position where no stress is applied, such as the N pole of the motor rotor and the S pole of the motor stator are just opposite to each other, then the N pole of the motor rotor and the S pole of the motor stator attract each other. At this time, the motor rotor is in a position where no stress is applied and it is difficult to drag. The preset stop position in this embodiment is a position outside these positions where no stress is applied. After the compressor stops, the motor rotor is dragged to the preset stop position, so that in the subsequent startup, it can be ensured that the motor rotor is not in a position where no stress is applied and the startup is smooth.
[0063] It can be understood that this step is still to drag the motor rotor. Therefore, based on the above description, the resistance of dragging the motor rotor is related to the first temperature difference. Therefore, the first dragging parameter determined based on the first temperature difference can successfully drag the motor rotor to the preset stop position.
[0064] Step S50: If the compressor is turned on, a startup operation is performed based on the motor rotor being in the preset stop position.
[0065] After the compressor is turned on, the motor rotor is in a preset stop position. Since the motor rotor is not in a stress-free position, the compressor can be normally started through a general starting operation.
[0066] It should be noted that when the compressor drive controller is powered on again, such as when the system is restarted, the chip bottom layer and control parameters will be initialized; the position of the motor rotor is uncertain, and at this time there is no compressor shutdown to trigger the dragging of the preset stop position. Therefore, when the compressor drive controller is powered on again, the target control temperature and the shutdown temperature can also be obtained, and steps S20 to S40 in this embodiment can be further executed, so that the first start-up of the compressor after the system is restarted can also be started based on the preset stop position.
[0067] This embodiment determines the first dragging parameter based on the first temperature difference between the target control temperature and the shutdown temperature, so that the rotor can be dragged to the preset shutdown position based on the first dragging parameter, and then the starting operation is performed based on the preset shutdown position, so that at startup, the rotor is always easily subjected to force, so that the dragging of the rotor can be achieved by only one dragging, and while achieving startup, the noise problem caused by multiple dragging is avoided.
[0068] Further, see also Figure 2 In the second embodiment of the compressor control method of the present invention proposed based on the first embodiment of the present invention, the step S10 includes the steps of:
[0069] Step S11, if the compressor is shut down, then the downtime of the compressor is measured to obtain the downtime duration;
[0070] Step S12, obtaining a preset downtime threshold, and determining whether the downtime is greater than the preset downtime threshold;
[0071] Step S13: if the shutdown time is greater than the preset shutdown time threshold, the target control temperature and the shutdown temperature are obtained.
[0072] If the downtime duration is less than or equal to the preset downtime duration threshold, the waiting downtime duration is greater than the preset downtime duration threshold.
[0073] It is understandable that after the compressor stops, it takes a certain amount of time for the motor's rotor to stop. If the rotor is dragged before it stops, back pressure dragging is likely to occur, resulting in vibration. Therefore, in order to avoid this problem, a preset shutdown time threshold is set in the present embodiment. After the compressor shutdown time reaches the preset shutdown time threshold, it is considered that the motor's rotor has completely stopped, and dragging the rotor at this time will not cause vibration problems. The specific value of the preset shutdown time threshold can be set based on actual needs.
[0074] It should be noted that there is generally a protection time. During the protection time, the compressor is not allowed to start and stop frequently. Therefore, during the protection time, the compressor generally will not restart; therefore, the preset stop time threshold can be set shorter than the protection time, so that within the protection time, the motor rotor of the motor corresponding to the compressor is dragged to the preset stop position based on the first drag parameter.
[0075] Further, in a third embodiment of the compressor control method of the present invention proposed based on the first embodiment of the present invention, the first drag parameter includes a first pre-position current; the step S30 includes the steps of:
[0076] Step S31, determining the first pre-positioning current corresponding to the first temperature difference, wherein the first pre-positioning current is positively correlated with the first temperature difference.
[0077] The first pre-positioning current is the target current when dragging the motor rotor to the preset stop position; it can be understood that the larger the first pre-positioning current is, the greater the dragging power is; and the difference between the target control temperature and the shutdown temperature, that is, the larger the first temperature difference is, the higher the degree of heating or cooling required by the system, the higher the balance pressure in the system, and the greater the starting resistance encountered by the motor rotor dragging, and therefore, a larger pre-positioning current is required to perform dragging; therefore, in this embodiment, the first pre-positioning current is set to be positively correlated with the first temperature difference, so that the first pre-positioning current can match the actual compressor state.
[0078] The specific values of the first pre-positioning current and the corresponding first temperature difference can be set based on the actual application scenario; for example, when the first temperature difference >30°C, the corresponding first pre-positioning current is 1.5A; when 30°C ≥ the first temperature difference >20°C, the corresponding first pre-positioning current is 1.3A; when 20°C ≥ the first temperature difference >10°C, the corresponding first pre-positioning current is 1.1A; when the first temperature difference ≤10°C, the corresponding first pre-positioning current is 1.0A.
[0079] It should be noted that in actual applications, there may be a problem of failure to obtain the shutdown temperature, such as sensor failure, or no relevant sensor is set in the system; in this case, the default drag parameter can be set in advance, and the default drag parameter includes a default first pre-positioning current; if the shutdown temperature is not obtained, the default drag parameter is executed as the first drag parameter; the subsequent second drag parameter is executed in the same way.
[0080] Further, in a fourth embodiment of the compressor control method of the present invention proposed based on the first embodiment of the present invention, step S40 includes the steps of:
[0081] Step S41, determining a preset stop angle corresponding to the preset stop position;
[0082] Step S42, driving the motor rotor to rotate based on the first drag parameter;
[0083] Step S43, when the rotation angle of the motor rotor is the preset stop angle, controlling the motor rotor to stop so that the motor rotor stays at the preset stop position.
[0084] It can be understood that the rotor of the motor rotates based on the magnetic field generated by the motor stator. Therefore, when rotating to a specific angle, the N pole of the motor rotor may be exactly opposite to the S pole of the motor stator. At this time, the N pole of the motor rotor and the S pole of the motor stator attract each other, and the motor rotor is in a position without force. Therefore, in this embodiment, the preset stop position is set in the form of an angle. By setting the preset stop angle, the motor rotor is rotated to the angle of force, thereby realizing the preset stop position.
[0085] Specifically, the D-axis current of the motor can be assigned to 0, and at the same time, the Q-axis current can be gradually increased to a first preset current to drag the rotor to rotate, and when the rotor rotation angle is a preset stop angle, the motor rotor is controlled to stop so that the motor rotor stays at a preset stop position.
[0086] It is understandable that when the angle of the motor rotor is the preset stop angle, the motor rotor can be subjected to force, so that it can be successfully dragged when the compressor is started subsequently.
[0087] Further, in a fifth embodiment of the compressor control method of the present invention proposed based on the first embodiment of the present invention, step S50 includes the steps of:
[0088] Step S51, obtaining a startup temperature, and calculating a second temperature difference between the target control temperature and the startup temperature;
[0089] Step S52, matching a second drag parameter corresponding to the second temperature difference, dragging the motor rotor to a preset start position based on the second drag parameter, and performing an open-loop forced drag start operation;
[0090] Step S53, obtaining the operating parameters of the compressor, and determining whether the operating parameters meet the closed-loop switching conditions;
[0091] Step S54: If the operating parameters meet the closed-loop switching conditions, the closed-loop operation is switched to complete the startup operation.
[0092] If the operating parameters do not meet the closed-loop switching conditions, the open-loop forced drag start operation is continued; if the operating parameters meet the closed-loop switching conditions.
[0093] The start-up temperature is the actual temperature of the temperature control environment when the compressor is started; it can be understood that the start-up temperature, shutdown temperature and target control temperature are for the same temperature control environment. For example, when the target control temperature is set to the set temperature of the freezer, the start-up temperature is the actual temperature of the freezer when the compressor is started; the shutdown temperature is the actual temperature of the freezer when the compressor is stopped; the shutdown temperature can be detected by setting a temperature sensor in the temperature control environment.
[0094] It can be understood that the difference between the target control temperature and the startup temperature reflects the temperature control load of the system when the compressor is started; the greater the difference between the target control temperature and the startup temperature, the higher the degree of heating or cooling the system needs, the higher the balance pressure in the system, and the greater the starting resistance to the motor rotor dragging, and therefore, a larger drag parameter is required; and the smaller the difference between the target control temperature and the startup temperature, the lower the degree of heating or cooling the system needs, the lower the balance pressure in the system, and the smaller the starting resistance to the motor rotor dragging, and therefore, only a smaller drag parameter is required.
[0095] It can be seen from the above description that the difference between the target control temperature and the power-on temperature will affect the setting of the drag parameters of the motor rotor. Therefore, in this embodiment, a second temperature difference between the target control temperature and the power-on temperature is set, and the second drag parameters are matched based on the second temperature difference, so that the second drag parameters can meet the drag needs of the motor rotor in an actual environment.
[0096] It can be understood that the startup of the variable frequency compressor includes four stages, namely DC drag positioning, open-loop forced drag, open-loop to closed-loop, and closed-loop control.
[0097] The preset start-up position is the target position for DC drag positioning; after the rotor is dragged to the preset start-up position, the DC drag positioning stage is completed, and the open-loop forced drag stage is entered. In the open-loop forced drag stage, the rotor speed is increased at a constant acceleration. When the rotor speed is increased to meet the closed-loop switching conditions, the open-loop to closed-loop stage is entered. After the conversion is completed, the closed-loop control stage is entered for stable operation.
[0098] Furthermore, the second drag parameter includes a second pre-positioning current, a starting current and a preset start-up angle; the step S51 includes the steps of:
[0099] Step S511, driving the motor rotor to rotate based on the second pre-positioning current;
[0100] Step S512, when the rotation angle of the motor rotor is the preset power-on angle, controlling the motor rotor to stop so that the motor rotor stays at the preset power-on position;
[0101] Step S513: performing an open-loop forced-pulling operation based on the starting current.
[0102] The second pre-positioning current is the target current when dragging the motor rotor to the preset start-up position; it can be understood that the larger the second pre-positioning current is, the greater the dragging power is; and the difference between the target control temperature and the shutdown temperature, that is, the larger the second temperature difference is, the higher the degree of heating or cooling required by the system, the higher the balance pressure in the system, and the greater the starting resistance encountered by the motor rotor dragging, and therefore, a larger pre-positioning current is required to perform dragging; therefore, in this embodiment, the second pre-positioning current is set to be positively correlated with the second temperature difference, so that the second pre-positioning current can match the actual compressor state.
[0103] The specific values of the second pre-positioning current and the corresponding second temperature difference can be set in analogy with the first pre-positioning current and the first temperature difference.
[0104] The starting current is the target current of the open-loop forced drag operation; that is, during the open-loop forced drag stage, the current needs to be constantly increased to the starting current.
[0105] In this embodiment, the motor rotor can be dragged to the preset start-up position by the second pre-positioning current; and the open-loop forced dragging operation can be performed by setting the starting current.
[0106] Further, the operating parameters include the compressor speed and the number of revolutions; the step S52 includes the steps of:
[0107] Step S521, obtaining a preset startup speed or a preset startup revolution number, and determining whether the compressor speed reaches the preset startup speed, or whether the rotation revolution number reaches the preset startup revolution number;
[0108] Step S522: If the compressor speed reaches the preset startup speed, or the number of rotations reaches the preset startup number of rotations, it is considered that the operating parameters meet the closed-loop switching conditions.
[0109] It can be understood that the open-loop forced drag stage is to enable the compressor to enter the desired working state as quickly as possible. Therefore, when the operating parameters reach the desired state during the open-loop forced drag stage, it can be switched to closed-loop operation.
[0110] In this embodiment, the working state of the compressor is judged by the compressor speed and the number of rotations; the compressor speed indicates the actual working intensity of the compressor; the number of rotations is the number of rotations of the compressor rotor after the compressor is turned on; the number of rotations indicates the actual working cycle of the compressor; therefore, the actual working state of the compressor can be reflected by the compressor speed and the number of rotations.
[0111] The preset startup speed indicates the expected compressor speed; the specific value of the preset startup speed can be set based on actual needs, such as 1320 rpm.
[0112] The preset number of startup revolutions indicates the expected number of rotations of the compressor; the specific value of the preset number of startup revolutions can be set based on actual needs, such as 10 revolutions.
[0113] When the compressor speed reaches the preset startup speed, or the number of rotations reaches the preset startup number of revolutions, it is considered that the compressor has reached the desired working state and enters the open-loop to closed-loop stage.
[0114] It should be noted that, in actual applications, other types of operating parameters may be selected based on actual needs to set the closed-loop switching conditions.
[0115] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0117] The present application also provides a compressor control device for implementing the above compressor control method, see Figure 3 , the compressor control device comprises:
[0118] A first acquisition module, used for acquiring a target control temperature and a shutdown temperature if the compressor is shut down;
[0119] A first calculation module, used for calculating a first temperature difference between the target control temperature and the shutdown temperature;
[0120] A first matching module, used for matching a first drag parameter corresponding to the first temperature difference;
[0121] A first dragging module, configured to drag a motor rotor of a motor corresponding to the compressor to a preset stop position based on the first dragging parameter;
[0122] The first execution module is used for executing a startup operation based on the motor rotor being in the preset stop position if the compressor is turned on.
[0123] The compressor control device determines the first drag parameter based on the first temperature difference between the target control temperature and the shutdown temperature, so that the rotor can be dragged to the preset shutdown position based on the first drag parameter, and then the starting operation is performed based on the preset shutdown position, so that at startup, the rotor is always easily subjected to force, so that the dragging of the rotor can be achieved by only one dragging, and the noise problem caused by multiple dragging is avoided while achieving startup.
[0124] It should be noted that the first acquisition module in this embodiment can be used to execute step S10 in the embodiment of the present application, the first calculation module in this embodiment can be used to execute step S20 in the embodiment of the present application, the first matching module in this embodiment can be used to execute step S30 in the embodiment of the present application, the first dragging module in this embodiment can be used to execute step S40 in the embodiment of the present application, and the first execution module in this embodiment can be used to execute step S50 in the embodiment of the present application.
[0125] Furthermore, the first acquisition module includes:
[0126] A first timing unit, for timing the downtime of the compressor to obtain the downtime duration if the compressor stops;
[0127] A first acquisition unit, configured to acquire a preset downtime duration threshold, and determine whether the downtime duration is greater than the preset downtime duration threshold;
[0128] The second acquisition unit is used to acquire the target control temperature and the shutdown temperature if the shutdown time is greater than the preset shutdown time threshold.
[0129] Further, the first drag parameter includes a first pre-positioning current; and the first matching module includes:
[0130] a first determining unit, configured to determine the first pre-positioning current corresponding to the first temperature difference, wherein the first pre-positioning current is positively correlated with the first temperature difference;
[0131] The second determining unit is configured to determine the first starting current corresponding to the first temperature difference, wherein the first starting current is positively correlated with the first temperature difference.
[0132] Furthermore, the first drag module includes:
[0133] A third determining unit, used to determine a preset stop angle corresponding to the preset stop position;
[0134] A first driving unit, configured to drive the motor rotor to rotate based on the first drag parameter;
[0135] The first control unit is used to control the motor rotor to stop when the rotation angle of the motor rotor is the preset stop angle, so that the motor rotor stays at the preset stop position.
[0136] Furthermore, the first execution module includes:
[0137] a third acquisition unit, configured to acquire a startup temperature and calculate a second temperature difference between the target control temperature and the startup temperature;
[0138] Matching a second drag parameter corresponding to the second temperature difference, dragging the motor rotor to a preset start position based on the second drag parameter, and performing an open-loop forced drag start operation;
[0139] a fourth acquisition unit, configured to acquire operating parameters of the compressor and determine whether the operating parameters meet a closed-loop switching condition;
[0140] The first switching unit is used to switch to closed-loop operation if the operating parameters meet the closed-loop switching conditions, and the startup operation is completed.
[0141] Furthermore, the second drag parameter includes a second predetermined positioning current, a starting current, and a preset start-up angle; and the third acquisition includes:
[0142] a first driving subunit, configured to drive the motor rotor to rotate based on the second predetermined positioning current;
[0143] A first control subunit is used to control the motor rotor to stop when the rotation angle of the motor rotor is the preset start-up angle, so that the motor rotor stays at the preset start-up position;
[0144] The first execution subunit is used to perform an open-loop forced drag operation based on the starting current.
[0145] Further, the operating parameters include the compressor speed and the number of revolutions; the fourth acquisition unit includes:
[0146] A first acquisition subunit is used to acquire a preset startup speed or a preset startup revolution number, and determine whether the compressor speed reaches the preset startup speed, or whether the rotation revolution number reaches the preset startup revolution number;
[0147] The second execution subunit is used to consider that the operating parameters meet the closed-loop switching condition if the compressor speed reaches the preset startup speed, or the number of rotations reaches the preset startup number of rotations.
[0148] Reference Figure 4 In terms of hardware structure, the electronic device may include components such as a communication module 10, a memory 20, and a processor 30. In the electronic device, the processor 30 is connected to the memory 20 and the communication module 10 respectively, and a computer program is stored in the memory 20. The computer program is executed by the processor 30 at the same time, and the steps of the above method embodiment are implemented when the computer program is executed.
[0149] The communication module 10 can be connected to an external communication device through a network. The communication module 10 can receive requests from an external communication device, and can also send requests, instructions and information to the external communication device, which can be other electronic devices, servers or Internet of Things devices, such as televisions, etc.
[0150] The memory 20 can be used to store software programs and various data. The memory 20 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as obtaining the target control temperature and the shutdown temperature), etc.; the data storage area can include a database, and the data storage area can store data or information created according to the use of the system, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0151] The processor 30 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 20, and calling data stored in the memory 20, so as to monitor the electronic device as a whole. The processor 30 may include one or more processing units; optionally, the processor 30 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 30.
[0152] although Figure 4 Although not shown, the electronic device may further include a circuit control module, which is used to connect to a power source to ensure the normal operation of other components. Figure 4 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0153] The present invention also provides a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be Figure 4 The memory 20 in the electronic device may also be at least one of a ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, and an optical disk. The computer-readable storage medium includes a number of instructions for enabling a terminal device with a processor (which may be a television, a car, a mobile phone, a computer, a server, a terminal, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0154] In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0155] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0156] Although the embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art can change, modify and replace the above embodiments within the scope of the present invention, and these changes, modifications and replacements should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A compressor control method, It is characterized in that The compressor control method comprises: If the compressor stops, the target control temperature and the stop temperature are obtained; Calculating a first temperature difference between the target control temperature and the shutdown temperature; matching a first drag parameter corresponding to the first temperature difference; Based on the first drag parameter, dragging the motor rotor of the motor corresponding to the compressor to a preset stop position; If the compressor is turned on, a starting operation is performed based on the motor rotor being in the preset stop position.
2. The compressor control method according to claim 1, It is characterized in that If the compressor stops, obtaining the target control temperature and the shutdown temperature includes: If the compressor stops, the downtime of the compressor is measured to obtain the downtime duration; Obtaining a preset downtime duration threshold, and determining whether the downtime duration is greater than the preset downtime duration threshold; If the shutdown time is greater than the preset shutdown time threshold, the target control temperature and the shutdown temperature are obtained.
3. The compressor control method according to claim 1, It is characterized in that The first drag parameter includes a first pre-position current; the first drag parameter matched to the first temperature difference includes: The first pre-positioning current corresponding to the first temperature difference is determined, wherein the first pre-positioning current is positively correlated with the first temperature difference.
4. The compressor control method according to claim 1, It is characterized in that The step of dragging the motor rotor of the motor corresponding to the compressor to a preset stop position based on the first drag parameter includes: Determining a preset stop angle corresponding to the preset stop position; driving the motor rotor to rotate based on the first drag parameter; When the rotation angle of the motor rotor is the preset stop angle, the motor rotor is controlled to stop so that the motor rotor stays at the preset stop position.
5. The compressor control method according to claim 1, It is characterized in that The performing of the starting operation based on the motor rotor being in the preset stop position comprises: Acquire a startup temperature, and calculate a second temperature difference between the target control temperature and the startup temperature; Matching a second drag parameter corresponding to the second temperature difference, dragging the motor rotor to a preset start position based on the second drag parameter, and performing an open-loop forced drag start operation; Acquiring operating parameters of the compressor, and determining whether the operating parameters meet closed-loop switching conditions; If the operating parameters meet the closed-loop switching conditions, the closed-loop operation is switched to complete the startup operation.
6. The compressor control method according to claim 5, It is characterized in that The second dragging parameter includes a second pre-positioning current, a starting current, and a preset starting angle; and the step of dragging the motor rotor to a preset starting position based on the second dragging parameter and performing an open-loop forced dragging starting operation includes: driving the motor rotor to rotate based on the second predetermined positioning current; When the rotation angle of the motor rotor is the preset start-up angle, controlling the motor rotor to stop so that the motor rotor stays at the preset start-up position; An open-loop forced-pull operation is performed based on the starting current.
7. The compressor control method according to claim 5, It is characterized in that The operating parameters include the compressor speed and the number of revolutions; and the determination of whether the operating parameters meet the closed-loop switching conditions includes: Obtaining a preset startup speed or a preset number of startup revolutions, and determining whether the compressor speed reaches the preset startup speed, or whether the number of rotation revolutions reaches the preset number of startup revolutions; If the compressor speed reaches the preset startup speed, or the number of rotations reaches the preset startup number of rotations, it is considered that the operating parameters meet the closed-loop switching conditions.
8. A compressor control device, It is characterized in that The compressor control device comprises: A first acquisition module, used for acquiring a target control temperature and a shutdown temperature if the compressor is shut down; A first calculation module, used for calculating a first temperature difference between the target control temperature and the shutdown temperature; A first matching module, used for matching a first drag parameter corresponding to the first temperature difference; A first dragging module, configured to drag a motor rotor of a motor corresponding to the compressor to a preset stop position based on the first dragging parameter; The first execution module is used for executing a startup operation based on the motor rotor being in the preset stop position if the compressor is turned on.
9. An electronic device, It is characterized in that The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the compressor control method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the compressor control method according to any one of claims 1 to 7 are implemented.
