Refrigerant reversing valve control method and device, storage medium and equipment
By installing a Hall sensor on the refrigerant reversing valve and monitoring the reverse electromotive force, the precise control of the refrigerant reversing valve is achieved, which solves the problem that the valve is not actually running in place during the reversing operation, and improves the reversing accuracy and impurity resistance. ability to reduce failure rate.
Patent Information
- Application Number
- CN202411405063.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2024-12-06
AI Technical Summary
During the refrigerant reversing valve, it is easy to cause the valve to not actually operate in place, resulting in unqualified internal leakage.
By installing a Hall sensor on the refrigerant reversing valve, the jump count value is used to determine whether the valve has been initialized and reversed in place, and combined with reverse electromotive force monitoring, precise control is achieved to avoid blockage and failure.
It effectively avoids the internal leakage caused by the failure of the actual operation of the valve, improves the reversing accuracy and impurity resistance of the refrigerant reversing valve, and reduces the failure rate.
Smart Images

Figure CN119085182A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of valve technology, and in particular to a refrigerant reversing valve control method, device, storage medium and equipment. Background Art
[0002] The refrigerant reversing valve is a control element widely used in refrigeration systems. It is mainly used to change the flow direction of the refrigerant to achieve switching between cooling and heating. The key performance indicator of the refrigerant reversing valve lies in the accuracy of its reversing operation, that is, to ensure that the valve can reach the specified position completely and accurately each time the direction is changed, so that the refrigerant reversing valve meets the internal leakage requirements at each reversing position. At present, the upper computer generally uses a stepper motor as the power output end to drive the valve core, thereby controlling the operating position of the refrigerant reversing valve. Due to the lack of a feedback mechanism, the upper computer cannot confirm whether the refrigerant reversing valve is in place when reversing, which easily leads to the situation that the valve is not actually in place and causes internal leakage failure. Summary of the invention
[0003] The purpose of the present application is to provide a refrigerant reversing valve control method, device, storage medium and equipment, aiming to solve the problem that the switching control scheme of the refrigerant reversing valve in the related art is prone to the situation where the valve is not actually operated in place and causes internal leakage.
[0004] In the first aspect, a refrigerant reversing valve control method provided in the present application is applied to a host computer, comprising: during the initialization process of the refrigerant reversing valve, judging whether the refrigerant reversing valve has completed initialization according to the jump count value of the Hall sensor carried on the refrigerant reversing valve; if the refrigerant reversing valve has completed initialization, when the refrigerant reversing valve needs to switch operation, outputting a first target instruction to the valve motor of the refrigerant reversing valve, and collecting the jump count value of the Hall sensor; controlling the valve motor according to the jump count value so that the refrigerant reversing valve reaches the target position.
[0005] In the above implementation process, during the initialization of the refrigerant reversing valve, the host computer determines whether the refrigerant reversing valve has completed initialization based on the jump count value of the Hall sensor on the refrigerant reversing valve. When the refrigerant reversing valve is reversing normally, the valve motor of the host computer refrigerant reversing valve outputs the first target instruction, and collects the jump count value of the Hall sensor, and controls the valve motor according to the jump count value to make the refrigerant reversing valve reach the target position. In this way, the valve operating position is determined based on the jump count of the Hall sensor of the refrigerant reversing valve, so as to detect whether the refrigerant reversing valve has actually completed initialization and whether it has run in place during reversing, thereby effectively avoiding the situation where the valve is not actually running in place and causing internal leakage failure.
[0006] Furthermore, in some examples, it also includes: monitoring the reverse electromotive force of the refrigerant reversing valve and the jump count value of the Hall sensor; when no initialization instruction is sent, if the jump count value of the Hall sensor does not change within a preset time, or the reverse electromotive force is abnormal, determining that a stall control logic occurs.
[0007] In the above implementation process, a control method for the stall of the refrigerant reversing valve is provided. By simultaneously monitoring the reverse electromotive force and the Hall sensor jump count, it is possible to more accurately determine whether the refrigerant reversing valve is stalled.
[0008] Further, in some examples, judging whether the refrigerant reversing valve has completed initialization based on the jump count value of the Hall sensor carried on the refrigerant reversing valve includes: obtaining the jump count value of the Hall sensor carried on the refrigerant reversing valve during the process of the refrigerant reversing valve returning from the second stop position to the first stop position; when the obtained jump count value is within the full stroke error range and the stall control logic occurs, outputting a second target instruction to the valve motor of the refrigerant reversing valve to make the refrigerant reversing valve rotate a specified number of steps from the first stop position to the second stop position; if the jump count value of the Hall sensor is within the segment error range during the process of the refrigerant reversing valve rotating a specified number of steps from the first stop position to the second stop position, it is determined that the refrigerant reversing valve has completed initialization.
[0009] In the above implementation process, an initialization control method for the refrigerant reversing valve is provided. Through this initialization control logic, the host computer can accurately detect the completion status of the initialization of the refrigerant reversing valve.
[0010] Further, in some examples, the first target instruction includes an operation instruction; the controlling the valve motor according to the jump count value so that the refrigerant reversing valve reaches the target position includes: when the jump count value reaches the target value, outputting a stop instruction to the valve motor so that the refrigerant reversing valve reaches the target position.
[0011] In the above implementation process, a switching control method for the refrigerant reversing valve is provided, which effectively avoids the situation where the valve is not actually operated properly and causes internal leakage.
[0012] Further, in some examples, the first target instruction includes a pulse step instruction; the controlling the valve motor according to the jump count value so that the refrigerant reversing valve reaches the target position includes: when the valve motor completes the pulse step, if the jump count value is within the target error range, determining that the refrigerant reversing valve has reached the target position; if the jump count value is not within the target error range, outputting a compensation pulse step instruction to the valve motor so that the Hall sensor continues to jump count until the jump count value of the Hall sensor reaches the target error range.
[0013] In the above implementation process, another switching control method for the refrigerant reversing valve is provided, which effectively avoids the situation where the valve is not actually operated in place and causes internal leakage.
[0014] Furthermore, in some examples, it also includes: when it is determined that the refrigerant reversing valve is blocked, resending an initialization instruction to the refrigerant reversing valve; if the refrigerant reversing valve completes initialization, re-outputting the last required position instruction, and when the refrigerant reversing valve arrives normally, determining that the refrigerant reversing valve has returned to normal; if the refrigerant reversing valve has not completed initialization, or the refrigerant reversing valve is blocked again during the execution of the position instruction, outputting an alarm message indicating that the refrigerant reversing valve is blocked.
[0015] In the above implementation process, a control method for coping with a jam of the refrigerant reversing valve is provided. When the upper computer detects that the refrigerant reversing valve is jammed, the jam is not reported first, and then an initialization instruction is given to the refrigerant reversing valve. Whether to report the jam is determined based on the performance of the refrigerant reversing valve during this initialization process. In this way, the failure rate of the refrigerant reversing valve can be effectively reduced through this jam response logic.
[0016] Further, in some examples, before the re-sending of the initialization instruction to the refrigerant reversing valve, it includes: setting the initialization drive current of the refrigerant reversing valve to a target multiple of the normal working drive current, or outputting a specified number of rotation steps instruction to the refrigerant reversing valve.
[0017] In the above implementation process, in response to the detection of the refrigerant reversing valve being blocked, the upper computer increases the initialization drive current of the refrigerant reversing valve so that the refrigerant reversing valve re-executes the initialization process under the condition of this initialization drive current, or first outputs a rotation instruction for a specified number of steps to the refrigerant reversing valve, and then gives the refrigerant reversing valve an initialization instruction so that the refrigerant reversing valve first rotates the specified number of steps and then executes the initialization process. In this way, the refrigerant reversing valve's ability to resist impurities is enhanced and the failure rate of the refrigerant reversing valve is reduced.
[0018] In the second aspect, a refrigerant reversing valve control device provided in the present application is applied to a host computer, and the device includes: a judgment module, which is used to judge whether the refrigerant reversing valve has completed initialization according to the jump count value of the Hall sensor carried on the refrigerant reversing valve during the initialization process of the refrigerant reversing valve; an acquisition module, which is used to output a first target instruction to the valve motor of the refrigerant reversing valve and acquire the jump count value of the Hall sensor if the refrigerant reversing valve has completed initialization and when the refrigerant reversing valve needs to switch operation; a control module, which is used to control the valve motor according to the jump count value so that the refrigerant reversing valve reaches the target position.
[0019] In a third aspect, the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0020] In a fourth aspect, the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.
[0021] In a fifth aspect, the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0022] Other features and advantages disclosed in the present application will be described in the following description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology disclosed in the present application.
[0023] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 A flow chart of a refrigerant reversing valve control method provided in an embodiment of the present application;
[0026] Figure 2A schematic diagram of a first switching control method in a refrigerant reversing valve control solution provided in an embodiment of the present application;
[0027] Figure 3 A schematic diagram of a second switching control method in a refrigerant reversing valve control solution provided in an embodiment of the present application;
[0028] Figure 4 A schematic diagram of the reverse electromotive force of a refrigerant reversing valve under different working conditions provided in an embodiment of the present application, from left to right, respectively, a reverse electromotive force diagram under a normal valve operation condition, a reverse electromotive force diagram under a small valve jam condition, and a reverse electromotive force diagram under a valve stall condition;
[0029] Figure 5 A schematic diagram of a first stall response control method in a refrigerant reversing valve control solution provided in an embodiment of the present application;
[0030] Figure 6 A schematic diagram of a second stall response control method in a refrigerant reversing valve control solution provided in an embodiment of the present application;
[0031] Figure 7 A block diagram of a refrigerant reversing valve control device provided in an embodiment of the present application;
[0032] Figure 8 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0034] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0035] As described in the background art, the switching control scheme of the refrigerant reversing valve in the related art has the problem that the valve is not actually operated properly, resulting in internal leakage. Based on this, the embodiment of the present application provides a refrigerant reversing valve control scheme to solve the above problem.
[0036] Next, the embodiments of the present application are introduced:
[0037] like Figure 1 As shown, Figure 11 is a flow chart of a refrigerant reversing valve control method provided by an embodiment of the present application. The method can be applied to a host computer, where the host computer can be considered as a computer or advanced computing device that can issue control instructions and monitor the system status in the refrigerant reversing valve control system. The types of refrigerant reversing valves here can include a two-position two-way reversing valve, a two-position three-way reversing valve, a three-position four-way reversing valve, and the like.
[0038] The method comprises:
[0039] Step 101: during the initialization process of the refrigerant reversing valve, judging whether the refrigerant reversing valve has completed initialization according to the jump count value of the Hall sensor carried on the refrigerant reversing valve;
[0040] The Hall sensor, also known as the Hall effect sensor, is a magnetic field sensor made based on the Hall effect, which converts the changing magnetic field into a change in output voltage. In this embodiment, the refrigerant reversing valve is equipped with a Hall sensor. During the operation of the refrigerant reversing valve, the magnetic field inside the refrigerant reversing valve will change with the opening and closing or reversing of the valve. This change will be captured by the Hall sensor and converted into a change in the electrical signal, thereby causing the counter to jump. Therefore, the host computer can collect the jump count value of the Hall sensor in real time to realize the initialization control and switching control of the refrigerant reversing valve.
[0041] In actual applications, the refrigerant reversing valve may be blocked during the initialization process due to internal blockage, environmental factors, etc., resulting in incomplete initialization. Therefore, in some embodiments, the above-mentioned refrigerant reversing valve control method also includes: monitoring the reverse electromotive force of the refrigerant reversing valve and the jump count value of the Hall sensor; when the initialization instruction is not sent, if the jump count value of the Hall sensor does not change within a preset time, or the reverse electromotive force is abnormal, it is determined that the blocking control logic occurs. That is to say, the host computer monitors the reverse electromotive force and the Hall sensor jump count, and when the host computer does not send the initialization instruction and the Hall sensor jump count value does not change within a certain period of time, it is determined that the refrigerant reversing valve is blocked; when the host computer does not send the initialization instruction, the Hall sensor jump count is stable, but the reverse electromotive force is abnormal, it is also determined that the refrigerant reversing valve is blocked. If only the Hall sensor jump count is monitored, when the refrigerant reversing valve is stuck at the intersection of the N / S poles of the magnetic rotor, the Hall sensor will continue to jump and count. At this time, the host computer will not report the refrigerant reversing valve jam. Therefore, by simultaneously monitoring the reverse electromotive force and the Hall sensor jump count, it is possible to more accurately determine whether the refrigerant reversing valve is stuck.
[0042] Further, in some embodiments, the step mentioned in this invention determines whether the refrigerant reversing valve has completed initialization based on the jump count value of the Hall sensor carried on the refrigerant reversing valve, including: obtaining the jump count value of the Hall sensor carried on the refrigerant reversing valve in the process of the refrigerant reversing valve returning from the second stop position to the first stop position; when the obtained jump count value is within the full stroke error interval and the stall control logic occurs, outputting a second target instruction to the valve motor of the refrigerant reversing valve to make the refrigerant reversing valve rotate a specified number of steps from the first stop position to the second stop position; if the jump count value of the Hall sensor is within the segment error interval during the process of the refrigerant reversing valve rotating a specified number of steps from the first stop position to the second stop position, it is determined that the refrigerant reversing valve has completed initialization.
[0043] The first stop position and the second stop position here can be two mechanical stop positions set in the refrigerant reversing valve, which are used to control the rotation angle of the valve core inside the valve body. In other words, the initialization control logic of the refrigerant reversing valve is: during initialization, the refrigerant reversing valve first reaches the second stop position, and this process does not count the Hall sensor jumps. After that, the refrigerant reversing valve returns from the second stop position to the first stop position. This process counts the Hall sensor jumps. If the jump count value of this process is within the full stroke error range, and the stall control logic finally appears, indicating that the collision end is completed, the refrigerant reversing valve will then rotate from the first stop position to the second stop position by the instruction number of steps, that is, the refrigerant reversing valve is in normal operation at 0 o'clock. If the jump count value of the Hall sensor in this process is within the segment error range, it is determined that the refrigerant reversing valve has completed initialization. The full-stroke error interval here can be the error interval of the Hall sensor jump count value of the full-stroke refrigerant reversing valve defined by the product, and the segment error interval can be the error interval of the jump count value corresponding to the Hall sensor when the refrigerant reversing valve runs a specified number of steps. Both of these error intervals can be obtained through calibration testing. In addition, in the process of the refrigerant reversing valve returning from the second stop position to the first stop position, if the jump count value of the Hall sensor is not within the full-stroke error interval, and the stall control logic finally appears, the refrigerant reversing valve is determined to be stalled. In this way, through this initialization control logic, the host computer can accurately detect the completion of the initialization of the refrigerant reversing valve.
[0044] Step 102: If the refrigerant reversing valve is initialized, when the refrigerant reversing valve needs to be reversing, a first target instruction is output to the valve motor of the refrigerant reversing valve, and a jump count value of the Hall sensor is collected;
[0045] This step means that when the refrigerant reversing valve is in normal reversing operation, the host computer outputs the first target instruction to the valve motor of the refrigerant reversing valve, so that the valve motor drives the refrigerant reversing valve to move to the target position, and the host computer collects the jump count value of the Hall sensor. This process actually uses the jump count value of the Hall sensor as a feedback signal, and the host computer uses it to determine whether the refrigerant reversing valve is in place when reversing, thereby avoiding the situation where the valve is not actually in place and causes internal leakage failure.
[0046] Step 103: Control the valve motor according to the jump count value so that the refrigerant reversing valve reaches a target position.
[0047] In this embodiment, the host computer uses the jump count value of the Hall sensor to accurately detect the operating position of the refrigerant reversing valve. Therefore, when the refrigerant reversing valve is operating normally, the host computer can control the valve motor according to the jump count value, so that the refrigerant reversing valve can accurately reach the target position.
[0048] In some embodiments, the first target instruction mentioned above includes an operation instruction; then the control of the valve motor according to the jump count value mentioned in this step so that the refrigerant reversing valve reaches the target position includes: when the jump count value reaches the target value, outputting a stop instruction to the valve motor so that the refrigerant reversing valve reaches the target position. In other words, the host computer outputs an operation instruction to the refrigerant reversing valve motor, and at the same time collects the jump count value of the Hall sensor on the refrigerant reversing valve. When the jump count value reaches the target value, it indicates that the refrigerant reversing valve has accurately reached the target position. At this time, the host computer outputs a stop instruction to the refrigerant reversing valve motor. Among them, the target value corresponds to the target position, which can be obtained by repeatedly measuring the jump count value of the Hall sensor when the refrigerant reversing valve is normally reversing.
[0049] In some other embodiments, the first target instruction mentioned above includes a pulse step instruction; then the control of the valve motor according to the jump count value mentioned in this step so that the refrigerant reversing valve reaches the target position includes: when the valve motor completes the pulse step, if the jump count value is within the target error range, it is determined that the refrigerant reversing valve has reached the target position; if the jump count value is not within the target error range, a compensation pulse step instruction is output to the valve motor so that the Hall sensor continues to jump count until the jump count value of the Hall sensor reaches the target error range. In other words, the host computer can adopt another switching control logic, that is, outputting a pulse step instruction to the refrigerant reversing valve motor, and collecting the jump count value of the Hall sensor on the refrigerant reversing valve at the same time. When the pulse step is completed, if the jump count value is within the target error range, it indicates that the refrigerant reversing valve has accurately reached the target position. If the jump count value is not within the target error range, it indicates that the refrigerant reversing valve has not reached the target position. At this time, the host computer outputs a compensation pulse step instruction to the refrigerant reversing valve motor, and the Hall sensor continues to jump count until the jump count value reaches the target error range. Similarly, the target error range corresponds to the target position, which can be obtained by repeatedly measuring the pulse step number output by the host computer to the refrigerant reversing valve when the refrigerant reversing valve is normally reversing.
[0050] In the traditional solution, when the refrigerant reversing valve is blocked, the upper computer will directly report the refrigerant reversing valve blocking, which leads to a high failure rate of the refrigerant reversing valve. Based on this, in some embodiments, the upper computer can also adopt the following blocking response logic: when it is determined that the refrigerant reversing valve is blocked, the initialization instruction is resent to the refrigerant reversing valve; if the refrigerant reversing valve completes initialization, the position instruction required last time is re-output, and when the refrigerant reversing valve arrives normally, it is determined that the refrigerant reversing valve has returned to normal; if the refrigerant reversing valve has not completed initialization, or the refrigerant reversing valve is blocked again during the execution of the position instruction, an alarm message indicating that the refrigerant reversing valve is blocked is output.
[0051] That is to say, when the host computer detects that the refrigerant reversing valve is blocked, it will not report the blockage first, and then give the refrigerant reversing valve an initialization command. If the initialization is not completed this time, the host computer outputs an alarm message to report that the refrigerant reversing valve is blocked. If the initialization is completed this time, the host computer re-outputs the position command required last time to the refrigerant reversing valve. If the refrigerant reversing valve arrives normally, it is determined that the refrigerant reversing valve has returned to normal, and the host computer does not report the blockage. If the host computer detects that the refrigerant reversing valve is blocked again during the process of the refrigerant reversing valve executing the position command, the host computer outputs an alarm message to report that the refrigerant reversing valve is blocked. In this way, through this blocking response logic, the failure rate of the refrigerant reversing valve is effectively reduced.
[0052] Further, in some embodiments, before the aforementioned re-sending of the initialization instruction to the refrigerant reversing valve, it includes: setting the initialization drive current of the refrigerant reversing valve to the target multiple of the normal working drive current, or outputting the specified number of rotation steps instruction to the refrigerant reversing valve. That is to say, in response to the detection of the blocking of the refrigerant reversing valve, the host computer can set the initialization drive current of the refrigerant reversing valve to the target multiple of the normal working drive current, such as 1.5 times or 2 times, etc., that is, increase the initialization drive current of the refrigerant reversing valve, so that the refrigerant reversing valve re-executes the initialization process under the condition of this initialization drive current, or, the host computer can first output the specified number of rotation steps instruction to the refrigerant reversing valve, and then give the refrigerant reversing valve an initialization instruction, so that the refrigerant reversing valve first rotates the specified number of steps and then executes the initialization process. In this way, the refrigerant reversing valve's ability to resist impurities is enhanced and the failure rate of the refrigerant reversing valve is reduced.
[0053] In the embodiment of the present application, during the initialization process of the refrigerant reversing valve, the host computer determines whether the refrigerant reversing valve has completed initialization based on the jump count value of the Hall sensor carried on the refrigerant reversing valve. When the refrigerant reversing valve is in normal reversing operation, the valve motor of the refrigerant reversing valve of the host computer outputs the first target instruction, and collects the jump count value of the Hall sensor, and controls the valve motor according to the jump count value to make the refrigerant reversing valve reach the target position. In this way, the valve operating position is determined based on the jump count of the Hall sensor of the refrigerant reversing valve, so as to detect whether the refrigerant reversing valve has actually completed initialization and whether it has run in place during reversing, thereby effectively avoiding the situation where the valve is not actually running in place and causing internal leakage failure.
[0054] In order to explain the solution of this application in more detail, a specific embodiment is introduced below:
[0055] This embodiment provides a refrigerant reversing valve control scheme. This embodiment scheme includes four parts: switching control, stall control, initialization control and stall response control, among which:
[0056] In this embodiment, there are two switching control modes. In the first switching control mode, when the refrigerant reversing valve is in normal reversing operation, the working process of the host computer is as follows: Figure 2 As shown, including:
[0057] S201, outputting an operation instruction to the refrigerant reversing valve;
[0058] S202, collecting the jump count value of the Hall sensor on the refrigerant reversing valve;
[0059] S203, determine whether the jump count value reaches the target value, if yes, execute S204, otherwise return to S202;
[0060] S204, output a stop command to the refrigerant reversing valve.
[0061] In the second switching control mode, when the refrigerant reversing valve is in normal reversing operation, the working process of the host computer is as follows: Figure 3 As shown, including:
[0062] S301, outputting a pulse step number instruction to the refrigerant reversing valve;
[0063] S302, collecting the jump count value of the Hall sensor on the refrigerant reversing valve;
[0064] S303, waiting for the pulse steps to be completed;
[0065] S304, determine whether the jump count value is within the target error range, if yes, execute S306, otherwise execute S305;
[0066] S305, outputting a compensation pulse step number instruction to the refrigerant reversing valve, and then returning to S303;
[0067] S306: Determine whether the refrigerant reversing valve has reached the target position.
[0068] In the present embodiment, the stall control method is as follows: the upper computer monitors the reverse electromotive force and the Hall sensor jump count simultaneously, and when the upper computer does not send an initialization instruction and the Hall sensor jump count value does not change within a certain period of time, it is determined that the refrigerant reversing valve is stalled; when the upper computer does not send an initialization instruction, the Hall sensor jump count is stable, but the reverse electromotive force is abnormal, it is also determined that the refrigerant reversing valve is stalled; wherein, the threshold value of the abnormal reverse electromotive force can be set according to the reverse electromotive force of the refrigerant reversing valve under different working conditions, such as Figure 4 As shown, Figure 4 is a schematic diagram of the reaction electromotive force of a refrigerant reversing valve under different working conditions provided by this embodiment, Figure 4 From left to right in the figure are the reverse electromotive force diagram under normal valve operation, the reverse electromotive force diagram under a slightly stuck valve condition, and the reverse electromotive force diagram under a blocked valve condition, so as to reasonably set the threshold for judging the abnormal reverse electromotive force, thereby eliminating the situation where the reverse electromotive force is abnormal when the valve is slightly stuck but operating normally;
[0069] In the present embodiment, the initialization control method is: the refrigerant reversing valve first goes to the second stop position, and the Hall sensor jump count is not counted in this process. Then the refrigerant reversing valve returns to the first stop position from the second stop position, and the Hall sensor jump count is counted in this process. If the jump count value of this process is within the error interval of the Hall sensor jump count value of the full stroke of the refrigerant reversing valve defined by the product, and the blocking control logic finally appears, it indicates that the collision end is completed, and the refrigerant reversing valve rotates from the first stop position to the second stop position for the instruction number of steps, that is, the refrigerant reversing valve operates normally at 0 o'clock. If the jump count value of the Hall sensor in this process is within the error interval of the jump count value corresponding to the specified number of steps, it is determined that the refrigerant reversing valve has completed initialization; if the jump count value of the Hall sensor is not within the error interval of the Hall sensor jump count value of the full stroke of the refrigerant reversing valve defined by the product during the process of the refrigerant reversing valve returning to the first stop position, and the blocking control logic finally appears, it is determined that the refrigerant reversing valve is blocked;
[0070] In this embodiment, there are two control modes for dealing with stall. In the first control mode for dealing with stall, when the refrigerant reversing valve is detected to be stalled, the working process of the host computer is as follows: Figure 5 As shown, including:
[0071] S501, setting the initialization drive current of the refrigerant reversing valve to 1.5 times the normal working drive current;
[0072] S502, outputting an initialization instruction to the refrigerant reversing valve;
[0073] S503, determine whether the refrigerant reversing valve has completed initialization, if yes, execute S504, otherwise execute 507;
[0074] S504, re-output the position instruction required last time;
[0075] S505, judging whether the refrigerant reversing valve reaches the position normally, if yes, executing S506, otherwise executing S507;
[0076] S506: Determine that the refrigerant reversing valve has returned to normal, and do not report a jam;
[0077] S507, reporting that the refrigerant reversing valve is blocked.
[0078] In the second stall control mode, when the refrigerant reversing valve is detected to be stalled, the host computer's workflow is as follows: Figure 6 As shown, including:
[0079] S601, outputting a specified number of rotation steps instruction to the refrigerant reversing valve;
[0080] S602, outputting an initialization instruction to the refrigerant reversing valve;
[0081] S603, determine whether the refrigerant reversing valve has completed initialization, if yes, execute S604, otherwise execute 607;
[0082] S604, re-output the position instruction required last time;
[0083] S605, judging whether the refrigerant reversing valve reaches the position normally, if yes, executing S606, otherwise executing S607;
[0084] S606: Determine that the refrigerant reversing valve has returned to normal, and do not report a jam;
[0085] S607, report that the refrigerant reversing valve is blocked.
[0086] In the present embodiment, the upper computer determines the valve operating position based on the Hall sensor jump count of the refrigerant reversing valve. Compared with the traditional method without position feedback, it can effectively avoid the situation where the valve does not actually operate in place and causes internal leakage failure; at the same time, the upper computer determines whether the refrigerant reversing valve is blocked by simultaneously monitoring the reverse electromotive force and the Hall sensor jump count, and can more accurately detect the blocking condition of the refrigerant reversing valve; and, through the above-mentioned blocking response control method, the impurity resistance of the refrigerant reversing valve is effectively enhanced, and the failure rate of the refrigerant reversing valve is reduced.
[0087] Corresponding to the embodiments of the aforementioned method, the present application also provides embodiments of a refrigerant reversing valve control device and a terminal using the same:
[0088] like Figure 7 As shown, Figure 7 : is a block diagram of a refrigerant reversing valve control device provided in an embodiment of the present application, the device is applied to a host computer, and the device includes:
[0089] The judging module 71 is used to judge whether the refrigerant reversing valve has completed initialization according to the jump count value of the Hall sensor carried on the refrigerant reversing valve during the initialization process of the refrigerant reversing valve;
[0090] The acquisition module 72 is used for outputting a first target instruction to the valve motor of the refrigerant reversing valve and acquiring a jump count value of the Hall sensor when the refrigerant reversing valve needs to be reversing if the refrigerant reversing valve has completed initialization;
[0091] The control module 73 is used to control the valve motor according to the jump count value so that the refrigerant reversing valve reaches the target position.
[0092] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0093] This application also provides an electronic device, see Figure 8, Figure 8 A block diagram of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 810, a communication interface 820, a memory 830, and at least one communication bus 840. The communication bus 840 is used to realize direct connection and communication between these components. The communication interface 820 of the electronic device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 810 may be an integrated circuit chip with signal processing capabilities.
[0094] The processor 810 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 810 can also be any conventional processor, etc.
[0095] The memory 830 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 830 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 810, the electronic device can execute the above-mentioned Figure 1 The method embodiment involves various steps.
[0096] Optionally, the electronic device may further include a storage controller and an input / output unit.
[0097] The memory 830, storage controller, processor 810, peripheral interface, input and output unit components are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 840. The processor 810 is used to execute executable modules stored in the memory 830, such as software function modules or computer programs included in the electronic device.
[0098] The input and output unit is used to provide users with the task creation and to create a start optional time period or preset execution time for the task to realize the interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0099] Understandably, Figure 8 The structure shown is for illustration only, and the electronic device may also include Figure 8 More or fewer components as shown, or with Figure 8 Different configurations shown. Figure 8 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0100] An embodiment of the present application further provides a storage medium having instructions stored thereon. When the instructions are run on a computer, the computer program is executed by a processor to implement the method described in the method embodiment. To avoid repetition, the method will not be described here.
[0101] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.
[0102] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0103] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0104] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0105] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0106] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0107] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A refrigerant reversing valve control method, characterized in that: Applied to the host computer, including: During the initialization process of the refrigerant reversing valve, judging whether the refrigerant reversing valve has completed initialization according to the jump count value of the Hall sensor carried on the refrigerant reversing valve; If the refrigerant reversing valve has completed initialization, when the refrigerant reversing valve needs to be reversing, a first target instruction is output to the valve motor of the refrigerant reversing valve, and a jump count value of the Hall sensor is collected; The valve motor is controlled according to the jump count value so that the refrigerant reversing valve reaches a target position.
2. The method according to claim 1, characterized in that Also includes: Monitoring the reverse electromotive force of the refrigerant reversing valve and the jump count value of the Hall sensor; When the initialization instruction is not sent, if the jump count value of the Hall sensor does not change within a preset time, or the reverse electromotive force is abnormal, it is determined that the stall control logic occurs.
3. The method according to claim 2, characterized in that The step of judging whether the refrigerant reversing valve has completed initialization according to the jump count value of the Hall sensor carried on the refrigerant reversing valve comprises: Acquiring a jump count value of a Hall sensor carried on the refrigerant reversing valve during a process in which the refrigerant reversing valve returns from the second stop position to the first stop position; When the acquired jump count value is within the full stroke error interval and the stall control logic occurs, outputting a second target instruction to the valve motor of the refrigerant reversing valve so that the refrigerant reversing valve rotates a specified number of steps from the first stop position to the second stop position; If the jump count value of the Hall sensor is within the segment error interval during the process of the refrigerant reversing valve rotating a specified number of steps from the first stop position to the second stop position, it is determined that the refrigerant reversing valve has completed initialization.
4. The method according to claim 1, characterized in that: The first target instruction includes an operation instruction; the controlling the valve motor according to the jump count value so that the refrigerant reversing valve reaches the target position includes: When the jump count value reaches the target value, a stop command is output to the valve motor to make the refrigerant reversing valve reach the target position.
5. The method according to claim 1, characterized in that The first target instruction includes a pulse step number instruction; the controlling the valve motor according to the jump count value so that the refrigerant reversing valve reaches the target position includes: When the valve motor completes the pulse step number, if the jump count value is within the target error range, it is determined that the refrigerant reversing valve has reached the target position; if the jump count value is not within the target error range, a compensation pulse step instruction is output to the valve motor to allow the Hall sensor to continue jump counting until the jump count value of the Hall sensor reaches the target error range.
6. The method according to claim 3, characterized in that Also includes: When it is determined that the refrigerant reversing valve is blocked, resending an initialization instruction to the refrigerant reversing valve; If the refrigerant reversing valve completes initialization, the position command required last time is re-outputted, and when the refrigerant reversing valve arrives normally, it is determined that the refrigerant reversing valve has returned to normal; If the refrigerant reversing valve has not completed initialization, or the refrigerant reversing valve is blocked again during the execution of the position instruction, an alarm message indicating that the refrigerant reversing valve is blocked is output.
7. The method according to claim 6, characterized in that Before the re-sending of the initialization instruction to the refrigerant reversing valve, the method includes: The initialization driving current of the refrigerant reversing valve is set to a target multiple of the normal working driving current, or a rotation specified number of steps instruction is output to the refrigerant reversing valve.
8. A refrigerant reversing valve control device, characterized in that: Applied to a host computer, the device comprises: A judgment module, used to judge whether the refrigerant reversing valve has completed initialization according to the jump count value of the Hall sensor carried on the refrigerant reversing valve during the initialization process of the refrigerant reversing valve; A collection module, used for outputting a first target instruction to a valve motor of the refrigerant reversing valve and collecting a jump count value of the Hall sensor when the refrigerant reversing valve needs to be reversing if the refrigerant reversing valve has completed initialization; A control module is used to control the valve motor according to the jump count value so that the refrigerant reversing valve reaches a target position.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Control method of driving assembly, electronic equipment and storage medium
CN120335338A
