A hot water equipment control method, device, equipment and medium

By calculating the rate of change of inlet water flow and response time, the heat load value is adjusted in advance, which solves the problem of outlet water temperature fluctuation when the flow rate of the gas water heater changes suddenly, and achieves faster response and more stable constant temperature control.

CN122149089APending Publication Date: 2026-06-05GUANGDONG WANHE THERMAL ENERGY TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG WANHE THERMAL ENERGY TECH CO LTD
Filing Date
2026-03-31
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing gas-fired water heaters have a slow response time when there are sudden changes in the inlet water flow, resulting in large fluctuations in the outlet water temperature and poor temperature stability.

Method used

A hot water equipment control method is adopted, which calculates the rate of change of inlet water flow and the response time of hot water equipment, calculates the feedforward compensation heat load value in advance, and optimizes the actual heat load value in combination with feedback parameters to improve response speed and constant temperature effect.

Benefits of technology

It effectively reduces the fluctuation of outlet water temperature when the flow rate of the hot water equipment changes abruptly, and improves the accuracy and response speed of constant temperature control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122149089A_ABST
    Figure CN122149089A_ABST
Patent Text Reader

Abstract

The application provides a hot water equipment control method and device, equipment and medium. In the case of stable water flow, the difference between the target outlet water temperature and the inlet water temperature is used to directly calculate the basic heat load value in combination with the inlet water flow. Before the inlet water flow mutation affects the outlet water temperature of the hot water equipment, the first flow change rate is calculated to capture the change trend at the moment of flow change. The feedforward compensation heat load value is calculated in advance according to the real-time inlet water flow change rate, the response time length of the hot water equipment, and the temperature difference between the target outlet water temperature and the current inlet water temperature, and is added to the basic heat load value to obtain the actual heat load value. The hot water equipment is controlled to operate at the actual heat load value, the response speed of the hot water equipment to the water flow mutation can be improved, the outlet water temperature fluctuation of the hot water equipment is reduced, and the constant temperature effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to constant temperature control technology, and in particular to a control method, device, equipment and medium for hot water equipment. Background Technology

[0002] Gas-fired water heaters are water heaters that use natural gas, liquefied petroleum gas, or other energy sources to heat water to the required temperature for daily life through combustion.

[0003] To improve the user's water experience, thermostatic control methods are typically used to regulate the outlet water temperature of gas-fired water heaters, maintaining it within the preset range of the user-defined target temperature and preventing significant temperature fluctuations. Existing thermostatic control methods usually employ PID feedback control to adjust the outlet water temperature. This involves determining the initial load based on parameters such as inlet water temperature, inlet flow rate, and target temperature, and then adjusting the load accordingly during combustion.

[0004] PID feedback control relies on the difference between the outlet water temperature and the target temperature to adjust the load. However, when the influent flow rate changes abruptly, the system may experience large temperature fluctuations in the early stages of the disturbance due to the lag in feedback, resulting in an excessively long system response time and poor temperature control. Summary of the Invention

[0005] The first technical problem solved by this invention is to provide a hot water equipment control method that can improve the response speed of the hot water equipment to sudden changes in water flow, reduce the fluctuation of the outlet water temperature of the hot water equipment, and improve the constant temperature effect.

[0006] The second technical problem solved by the present invention is to provide a hot water equipment control device that can improve the response speed of the hot water equipment to sudden changes in water flow, reduce the fluctuation of the outlet water temperature of the hot water equipment, and improve the constant temperature effect.

[0007] The third technical problem solved by the present invention is to provide an electronic device for executing the hot water equipment control method described in the present invention, which can improve the response speed of the hot water equipment to sudden changes in water flow, reduce the fluctuation of the outlet water temperature of the hot water equipment, and improve the constant temperature effect.

[0008] The fourth technical problem solved by the present invention is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the hot water equipment control method as described in the present invention, which can improve the response speed of the hot water equipment to sudden changes in water flow, reduce the fluctuation of the outlet water temperature of the hot water equipment, and improve the constant temperature effect.

[0009] The first technical problem mentioned above is solved by the following technical solution: A method for controlling a hot water device, comprising: The current inlet water temperature of the hot water equipment is used as the first inlet water temperature, and the current inlet water flow rate is used as the first inlet water flow rate. The difference between the user-set target outlet water temperature and the first inlet water temperature is calculated as the first temperature difference; The basic heat load value of the hot water equipment is calculated based on the first temperature difference and the first inlet water flow rate. Calculate the first flow rate change rate based on the first influent flow rate, and determine whether the first flow rate change rate is greater than the flow rate change rate threshold. When the first flow rate change rate is greater than the flow rate change rate threshold, the product of the first temperature difference, the specific heat capacity of water, and the response time of the hot water equipment is calculated as a feedforward parameter, wherein the response time represents the time required for the hot water equipment to adjust the heat load from the start of the flow rate change. Calculate the product of the first flow rate change rate and the feedforward parameter to obtain the feedforward compensation heat load value; The sum of the base heat load value and the feedforward compensation heat load value is calculated as the actual heat load value; The hot water equipment is controlled to operate at the actual heat load value.

[0010] The hot water equipment control method provided by this invention firstly calculates the basic heat load value directly based on the difference between the target outlet water temperature and the inlet water temperature, combined with the first inlet water flow rate, when the first inlet water flow rate changes and the first flow rate change rate is greater than the flow rate change rate threshold, the change trend can be captured instantaneously by calculating the first flow rate change rate before the sudden change in inlet water flow affects the outlet water temperature of the hot water equipment. Based on the real-time inlet water flow rate change rate, the response time of the hot water equipment, and the temperature difference between the target outlet water temperature and the current inlet water temperature, the feedforward compensation heat load value is calculated in advance. This process considers the response time of the equipment from flow rate change to completion of heat load adjustment. Within this system, the amount of water that increases or decreases according to the current rate of flow change is determined by calculating the feedforward compensation heat load value during this lag period. This value is then added to the base heat load value, reducing the fluctuations in outlet water temperature caused by heat gaps or excess heat due to equipment response lag. This allows for advance adjustment to obtain the actual heat load value, and the hot water equipment is controlled to operate at the actual heat load value. Compared with the existing regulation logic of "adjusting the load after the temperature deviates from the target", this invention senses the direction of heat demand changes caused by flow changes in advance, which can improve the response speed of the hot water equipment to sudden changes in water flow, reduce the fluctuation of outlet water temperature, and improve the constant temperature effect.

[0011] In some embodiments of the present invention, calculating the basic heat load value of the hot water equipment based on the first temperature difference and the first inlet water flow rate includes: The basic heat load value of the hot water equipment is obtained by calculating the product of the first inlet water flow rate, the specific heat capacity of water, and the first temperature difference.

[0012] In some embodiments of the present invention, the hot water equipment control method further includes: The outlet water temperature is obtained as the first outlet water temperature; The difference between the target outlet water temperature and the first outlet water temperature is calculated as the second temperature difference; The product of the second temperature difference, the first inlet water flow rate, and the specific heat capacity of water is calculated as the load difference between the expected load value and the current load value. The second temperature difference is input into the calculation function of the feedback parameter to calculate the feedback parameter, which is positively correlated with the second temperature difference and negatively correlated with the influent flow rate. Calculate the product of the load difference and the feedback parameter to obtain the feedback compensation heat load value; The sum of the base heat load value, the feedforward compensation heat load value, and the feedback compensation heat load value is calculated as the actual heat load value.

[0013] In some embodiments of the present invention, the function for calculating the feedback parameter is: in, For feedback parameters, It is an adaptive parameter that is inversely correlated with the influent flow rate. The second temperature difference, It is a natural constant.

[0014] In some embodiments of the present invention, the process of controlling the hot water equipment to operate at the actual heat load value further includes: The outlet water temperature is obtained as the second outlet water temperature; The difference between the target outlet water temperature and the second outlet water temperature is calculated as the third temperature difference; Determine whether the third temperature difference is greater than the first threshold. If the third temperature difference is greater than the first threshold, the hot water equipment is controlled to operate at the actual heat load value, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature. If the third temperature difference is less than or equal to the first threshold, then determine whether the third temperature difference is greater than the second threshold. If the third temperature difference is greater than the second threshold, the hot water equipment is controlled to operate at a first heat load value that is less than the actual heat load value, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature. If the third temperature difference is less than or equal to the second threshold, the hot water equipment is controlled to operate at a second heat load value that is less than the first heat load value, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature until the second outlet water temperature is equal to the target outlet water temperature.

[0015] In some embodiments of the present invention, the process of controlling the hot water equipment to operate at the actual heat load value further includes: The inlet water temperature is used as the second inlet water temperature, and the inlet water flow rate is used as the second inlet water flow rate; The rate of change of inlet water temperature is calculated based on the second inlet water temperature, and the rate of change of second flow rate is calculated based on the second inlet water flow rate. Determine whether the rate of change of the inlet water temperature is greater than the temperature change rate threshold, or whether the second rate of change of the flow rate is greater than the flow rate change rate threshold; If so, return to the step of obtaining the current inlet water temperature of the hot water device as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate, until the inlet water flow rate is less than the start-up threshold of the hot water device, and stop heating; If not, then control the hot water equipment to operate at the actual heat load value, and return to the step of obtaining the inlet water temperature as the second inlet water temperature and the inlet water flow rate as the second inlet water flow rate.

[0016] In some embodiments of the present invention, the process of controlling the hot water equipment to operate at the actual heat load value further includes: The outlet water temperature is used as the second outlet water temperature, and the inlet water flow rate is used as the second inlet water flow rate. Determine whether the second outlet water temperature has reached the target outlet water temperature; If the outlet water temperature of the hot water equipment does not reach the target outlet water temperature, then return to the step of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate; If the outlet water temperature of the hot water equipment reaches the target outlet water temperature, then it is determined whether the second inlet water flow rate is less than the heating start-up threshold flow rate of the hot water equipment; If not, then control the hot water equipment to operate at the actual heat load value, and return to the step of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate; If so, it is determined that the user has turned off the water, and the hot water equipment is controlled to operate at the actual heat load value, and the duration of water being turned off is accumulated; When the water shut-off time reaches the first preset time, the hot water equipment is controlled to stop heating and enter the internal circulation state, using the residual heat of the hot water equipment to keep the water in the internal circulation pipe warm. When the water shut-off time reaches the second preset time, the hot water equipment is controlled to stop, and the second preset time is longer than the first preset time.

[0017] In some embodiments of the present invention, within the first preset duration and the second preset duration, the method further includes: The influent flow rate is used as the third influent flow rate; Determine whether the third inlet water flow rate is greater than or equal to the heating start-up threshold flow rate of the hot water equipment; If so, return to the step of obtaining the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate.

[0018] The second technical problem mentioned above is solved by the following technical solution: A hot water equipment control device, comprising: The data acquisition module is used to acquire the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate; The first temperature difference calculation module is used to calculate the difference between the user-set target outlet water temperature and the first inlet water temperature as the first temperature difference; The basic heat load calculation module is used to calculate the basic heat load value of the hot water equipment based on the first temperature difference and the first inlet water flow rate. The first flow rate change rate calculation module is used to calculate the first flow rate change rate based on the first influent flow rate and determine whether the first flow rate change rate is greater than the flow rate change rate threshold. The feedforward parameter calculation module is used to calculate the product of the first temperature difference, the specific heat capacity of water, and the response time of the hot water equipment as a feedforward parameter when the first flow rate change rate is greater than the flow rate change rate threshold. The response time represents the time required for the hot water equipment to adjust the heat load from the start of the flow rate change. The feedforward compensation calculation module is used to calculate the product of the first flow rate change rate and the feedforward parameter to obtain the feedforward compensation heat load value. The actual load calculation module is used to calculate the sum of the basic heat load value and the feedforward compensation heat load value as the actual heat load value. The operation control module is used to control the hot water equipment to operate at the actual heat load value.

[0019] The third technical problem mentioned above is solved by the following technical solution: An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the hot water equipment control method as described in the foregoing embodiments of the present invention.

[0020] The fourth technical problem mentioned above is solved by the following technical solution: A computer-readable storage medium storing a computer program that, when executed by a processor, implements the hot water equipment control method as described in the foregoing embodiments of the present invention. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart of a hot water equipment control method provided by the present invention; Figure 2 A flowchart of another hot water equipment control method provided by the present invention; Figure 3 A flowchart of staged combustion provided by the present invention; Figure 4 This invention provides a schematic diagram of the structure of a hot water equipment control device; Figure 5 This is a schematic diagram of the structure of an electronic device provided by the present invention. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. In the description of this application, unless otherwise stated, "a plurality of" means two or more. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0025] The technical solution of the present invention will be illustrated below through specific embodiments.

[0026] Figure 1 This is a flowchart of a hot water equipment control method provided by the present invention. This embodiment can be used to solve the problem of large fluctuations in the outlet water temperature and poor temperature constantness caused by the lag in the feedback control of hot water equipment. This method can be executed by the hot water equipment control device provided by the present invention. This device can be implemented by software and / or hardware, and is usually configured in electronic devices, such as... Figure 1 As shown, the control method for this hot water equipment includes the following steps: S101. Obtain the current inlet water temperature of the hot water equipment as the first inlet water temperature, and the current inlet water flow rate as the first inlet water flow rate.

[0027] For example, during the operation of the hot water equipment, the current inlet water temperature of the hot water equipment is obtained as the first inlet water temperature T1, and the current inlet water flow rate is obtained as the first inlet water flow rate Q1.

[0028] S102. Calculate the difference between the target outlet water temperature set by the user and the first inlet water temperature as the first temperature difference.

[0029] In this embodiment of the invention, the target outlet water temperature Tset is preset by the user. After obtaining the current first inlet water temperature T1 and the first inlet water flow rate Q1, the difference between the user-set target outlet water temperature Tset and the first inlet water temperature T1 is calculated as the first temperature difference ΔT1.

[0030] S103. Calculate the basic heat load value of the hot water equipment based on the first temperature difference and the first inlet water flow rate.

[0031] For example, in some embodiments of the present invention, the product of the first inlet water flow rate Q1, the specific heat capacity of water C, and the first temperature difference ΔT1 is calculated to obtain the basic heat load value P0 of the hot water equipment.

[0032] S104. Calculate the first flow rate change rate based on the first influent flow rate, and determine whether the first flow rate change rate is greater than the flow rate change rate threshold.

[0033] In this embodiment of the invention, the first flow rate change rate dQ1 / dt is calculated based on the first influent flow rate Q1. For example, the current first influent flow rate Q1 can be subtracted from the influent flow rate collected at the previous collection time to obtain the flow difference, and then the flow difference can be divided by the duration between the two collection times to obtain the first flow rate change rate; alternatively, the current first influent flow rate can be directly differentiated to obtain the first flow rate change rate. This invention does not limit the calculation. After calculating the first flow rate change rate based on the first influent flow rate, it is determined whether the first flow rate change rate is greater than a flow rate change rate threshold.

[0034] S105. When the first flow rate change rate is greater than the flow rate change rate threshold, calculate the product of the first temperature difference, the specific heat capacity of water, and the response time of the hot water equipment as the feedforward parameter.

[0035] In this embodiment of the invention, when the first flow rate change rate is greater than the flow rate change rate threshold, the product of the first temperature difference ΔT1, the specific heat capacity of water C, and the response time τ of the hot water device is calculated as the feedforward parameter K. The response time τ represents the time required for the hot water device to adjust the heat load from the start of a flow rate change. The response time τ is related to the specific structural parameters of the hot water device, such as the thermal inertia of the heat exchanger, the length of the hot water exchange path, and sensor delay. It can be determined through prior experiments and stored in the controller after determination. For example, the greater the thermal inertia of the heat exchanger, when the water flow rate suddenly increases and the heat load needs to be increased, the additional heat needs to heat the heat exchanger body first before it can be transferred to the flowing water. This process lengthens the time for heat transfer to the outlet water, resulting in a longer system dynamic response time. Similarly, the longer the hot water exchange path, the higher the delay in water flow sensing and temperature transfer, and the longer the system dynamic response time.

[0036] When the first flow rate change rate is less than or equal to the flow rate change rate threshold, it indicates that the flow rate change has little impact on the outlet water temperature. In this case, the basic heat load value is taken as the actual heat load value, and the hot water equipment is controlled to operate at the actual heat load value.

[0037] S106. Calculate the product of the first flow rate change rate and the feedforward parameter to obtain the feedforward compensation heat load value.

[0038] In this embodiment of the invention, the product of the first flow rate change rate dQ1 / dt and the feedforward parameter K is calculated to obtain the feedforward compensation heat load value P1.

[0039] S107. Calculate the sum of the basic heat load value and the feedforward compensation heat load value as the actual heat load value.

[0040] In this embodiment of the invention, the sum of the basic heat load value P0 and the feedforward compensation heat load value P1 is calculated as the actual heat load value Pr.

[0041] S108. Control the hot water equipment to operate at the actual heat load value.

[0042] In this embodiment of the invention, the hot water equipment is controlled to operate at the actual heat load value Pr.

[0043] If the hot water equipment operates only at its base heat load, it may fail to respond instantaneously to sudden changes due to factors such as delayed heat transfer in pipes or combustion lag, leading to temperature overshoot or undershoot. For example, a sudden decrease in inlet water flow will cause the excess heat to cause a rapid rise in water temperature, while a sudden increase in inlet water flow will cause a rapid drop in water temperature due to insufficient heating. When the inlet water flow changes abruptly, such as a sudden increase, the amount of water flowing through the heat exchanger per unit time increases. Since hot water equipment generally has an inherent delay, i.e., a response time τ, failure to adjust the heating load in time will result in a decrease in the outlet water temperature.

[0044] The hot water equipment control method provided by this invention firstly calculates the basic heat load value directly based on the difference between the target outlet water temperature and the inlet water temperature, combined with the inlet water flow rate, under stable water flow conditions. Before a sudden change in inlet water flow affects the outlet water temperature of the hot water equipment, the first flow rate change rate is calculated to capture the trend of change at the instant of flow change. Based on the real-time inlet flow rate change rate, the response time of the hot water equipment, and the temperature difference between the target outlet water temperature and the current inlet water temperature, the feedforward compensation heat load value is calculated in advance. Within the response time of the equipment from flow change to completion of heat load adjustment, the water flow rate will increase according to the current flow rate change rate. The amount of heat added during this lag period (or the amount of heat that needs to be reduced) is determined by calculating the feedforward compensation heat load value and adding it to the base heat load value. This reduces the fluctuations in outlet water temperature caused by heat gaps or excess heat due to equipment response lag. It allows for advance adjustment to obtain the actual heat load value and controls the hot water equipment to operate at the actual heat load value. Compared with the existing regulation logic of "adjusting the load after the temperature deviates from the target", this invention can detect the direction of heat demand changes in advance, which can improve the response speed of the hot water equipment to sudden changes in water flow, reduce the fluctuation of outlet water temperature, and improve the constant temperature effect.

[0045] For example, when the inlet water flow suddenly increases, the positive rate of change of flow will generate positive compensation, and the actual heat load will increase in advance, just enough to cover the heat demand of the newly added cold water. This avoids the sudden drop in water output caused by the load being increased only after the temperature drops in the traditional solution. When the inlet water flow suddenly decreases, the negative rate of change of flow will generate negative compensation, and the actual heat load will decrease in advance, avoiding the sudden rise in water output caused by excess heat. This timely resolution of temperature fluctuations after the flow changes improves the response speed of the hot water equipment to sudden changes in flow, reduces the fluctuation of the hot water output temperature, and improves the constant temperature effect.

[0046] Figure 2 The flowchart illustrates another hot water equipment control method provided by the present invention. This embodiment, based on the feedforward control of the aforementioned embodiment, incorporates feedback control. This improves the response speed of the hot water equipment to sudden changes in water flow, reduces fluctuations in the outlet water temperature, and simultaneously enhances the accuracy of the outlet water temperature, making it closer to the user-set target outlet water temperature. Figure 2 As shown, the control method for this hot water equipment includes the following steps: S201. Obtain the current inlet water temperature of the hot water equipment as the first inlet water temperature, the current inlet water flow rate as the first inlet water flow rate, and the current outlet water temperature as the first outlet water temperature.

[0047] For example, during the operation of the hot water equipment, the current inlet water temperature is obtained as the first inlet water temperature T1, the current inlet water flow rate is obtained as the first inlet water flow rate Q1, and the current outlet water temperature is obtained as the first outlet water temperature T2.

[0048] S202. Calculate the difference between the target outlet water temperature set by the user and the first inlet water temperature as the first temperature difference.

[0049] In this embodiment of the invention, the target outlet water temperature Tset is preset by the user. After obtaining the current first inlet water temperature T1 and the first inlet water flow rate Q1, the difference between the user-set target outlet water temperature Tset and the first inlet water temperature T1 is calculated as the first temperature difference ΔT1.

[0050] S203. Calculate the basic heat load value of the hot water equipment based on the first temperature difference and the first inlet water flow rate.

[0051] For example, in some embodiments of the present invention, the product of the first inlet water flow rate Q1, the specific heat capacity of water C, and the first temperature difference ΔT1 is calculated to obtain the basic heat load value P0 of the hot water equipment.

[0052] S204. Calculate the first flow rate change rate based on the first influent flow rate, and determine whether the first flow rate change rate is greater than the flow rate change rate threshold.

[0053] In this embodiment of the invention, the first flow rate change rate dQ1 / dt is calculated based on the first influent flow rate Q1. For example, the current first influent flow rate Q1 can be subtracted from the influent flow rate collected at the previous collection time to obtain the flow difference, and then the flow difference can be divided by the duration between the two collection times to obtain the first flow rate change rate; alternatively, the current first influent flow rate can be directly differentiated to obtain the first flow rate change rate. This invention does not limit the calculation. After calculating the first flow rate change rate based on the first influent flow rate, it is determined whether the first flow rate change rate is greater than a flow rate change rate threshold.

[0054] S205. When the first flow rate change rate is greater than the flow rate change rate threshold, calculate the product of the first temperature difference, the specific heat capacity of water, and the response time of the hot water equipment as the feedforward parameter.

[0055] In this embodiment of the invention, when the first flow rate change rate is greater than the flow rate change rate threshold, the product of the first temperature difference ΔT1, the specific heat capacity of water C, and the response time τ of the hot water device is calculated as the feedforward parameter K. The response time τ represents the time required for the hot water device to adjust the heat load from the start of a flow rate change. The response time τ is related to the specific structural parameters of the hot water device, such as the thermal inertia of the heat exchanger, the length of the hot water exchange path, and sensor delay. It can be determined through prior experiments and stored in the controller after determination. For example, the greater the thermal inertia of the heat exchanger, when the water flow rate suddenly increases and the heat load needs to be increased, the additional heat needs to heat the heat exchanger body first before it can be transferred to the flowing water. This process lengthens the time for heat transfer to the outlet water, resulting in a longer system dynamic response time. Similarly, the longer the hot water exchange path, the higher the delay in water flow sensing and temperature transfer, and the longer the system dynamic response time.

[0056] When the first flow rate change rate is less than or equal to the flow rate change rate threshold, it indicates that the flow rate change has little impact on the outlet water temperature. Therefore, no feedforward compensation is required, i.e., the feedforward compensation heat load value is zero, and steps S205 and S206 do not need to be executed.

[0057] S206. Calculate the product of the first flow rate change rate and the feedforward parameter to obtain the feedforward compensation heat load value.

[0058] In this embodiment of the invention, the product of the first flow rate change rate dQ1 / dt and the feedforward parameter K is calculated to obtain the feedforward compensation heat load value P1.

[0059] S207. Calculate the difference between the target outlet water temperature and the first outlet water temperature as the second temperature difference.

[0060] In this embodiment of the invention, the difference between the user-set target outlet water temperature Tset and the current first outlet water temperature T2 is calculated as the second temperature difference ΔT2.

[0061] S208. Calculate the product of the second temperature difference, the first inlet flow rate, and the specific heat capacity of water as the load difference between the expected load value and the current load value.

[0062] In this embodiment of the invention, the product of the second temperature difference ΔT2, the first inlet water flow rate Q1, and the specific heat capacity of water C is calculated as the load difference ΔP between the expected load value and the current load value.

[0063] S209. Input the second temperature difference into the calculation function of the feedback parameter, calculate the feedback parameter. The feedback parameter is positively correlated with the second temperature difference and negatively correlated with the influent flow rate.

[0064] In this embodiment of the invention, the second temperature difference ΔT2 is input into the calculation function of the feedback parameter to calculate the feedback parameter. The feedback parameter is positively correlated with the second temperature difference and inversely correlated with the influent flow rate. The larger the second temperature difference ΔT2, the larger the feedback parameter N, to achieve a rapid response; conversely, the smaller the second temperature difference ΔT2, the smaller the feedback parameter N, to avoid overshoot. Furthermore, the feedback parameter is inversely correlated with the influent flow rate. When the current influent flow rate is higher, the water flow velocity is faster, the heat transfer efficiency is higher, and the feedback response is faster. Therefore, it is necessary to reduce the feedback coefficient to avoid overshoot.

[0065] In some embodiments of the present invention, the calculation process of the feedback parameter is as follows: A first parameter is calculated using the natural constant e as the base and the negative of the absolute value of the second temperature difference as the exponent. The difference between 1 and the first parameter is calculated as the second parameter. The product of the adaptive parameter a and the second parameter is calculated as the feedback parameter.

[0066] For example, the function for calculating the feedback parameter is as follows: The larger the second temperature difference ΔT2, the larger the feedback parameter N, to achieve a rapid response; conversely, the smaller the second temperature difference ΔT2, the smaller the feedback parameter N, to avoid overshoot. Furthermore, the adaptive parameter 'a' is inversely correlated with the influent flow rate. A higher influent flow rate results in faster water velocity, higher heat transfer efficiency, and a faster feedback response; therefore, the feedback coefficient needs to be reduced to avoid overshoot. The mapping relationship between the adaptive parameter 'a' and the influent flow rate is determined through prior experiments. Experiments are conducted under fixed conditions at different flow rates to determine the relationship, and the results are then stored in the controller.

[0067] It should be noted that in other embodiments of the present invention, the calculation function of the feedback parameter can also adopt other functional forms, as long as it can satisfy the requirement that the feedback parameter is positively correlated with the second temperature difference and negatively correlated with the influent flow rate.

[0068] In another embodiment of the present invention, the calculation function of the feedback parameter can be a piecewise linear function, dividing the second temperature difference into multiple intervals, setting a fixed second parameter for each interval, and calculating the result of the second parameter and the adaptive parameter as the feedback parameter. For example, the piecewise linear function is: Among them, the adaptive parameter 'a' is inversely correlated with the influent flow rate.

[0069] In another embodiment of the present invention, the calculation function of the feedback parameter can be in the form of a logarithmic function, as follows: Among them, the adaptive parameter 'a' is inversely correlated with the influent flow rate. The slope parameter is adjustable. Greater than 0, This refers to the maximum temperature difference between the allowable outlet water temperature and the target outlet water temperature of the hot water equipment.

[0070] In another embodiment of the present invention, the calculation function of the feedback parameter can be in the form of a power function, as follows: Among them, the adaptive parameter 'a' is inversely correlated with the influent flow rate. This refers to the maximum temperature difference between the allowable outlet water temperature and the target outlet water temperature of the hot water equipment. A constant that is greater than 0 and less than 1. S210. Calculate the product of the load difference and the feedback parameter to obtain the feedback compensation heat load value.

[0071] In this embodiment of the invention, the product of the load difference ΔP and the feedback parameter N is calculated to obtain the feedback compensation heat load value P2.

[0072] S211. Calculate the sum of the basic heat load value, the feedforward compensation heat load value, and the feedback compensation heat load value, and use it as the actual heat load value.

[0073] In this embodiment of the invention, the sum of the basic heat load value P0, the feedforward compensation heat load value P1, and the feedback compensation heat load value P2 is calculated as the actual heat load value Pr.

[0074] S212. Control the hot water equipment to operate at the actual heat load value.

[0075] In this embodiment of the invention, the hot water equipment is controlled to operate at the actual heat load value Pr.

[0076] The hot water equipment control method provided by this invention firstly calculates the basic heat load value directly based on the difference between the target outlet water temperature and the inlet water temperature, combined with the inlet water flow rate, under stable water flow conditions. Before a sudden change in inlet water flow affects the outlet water temperature of the hot water equipment, the first flow rate change rate is calculated to capture the trend of change at the instant of flow change. Based on the real-time inlet flow rate change rate, the response time of the hot water equipment, and the temperature difference between the target outlet water temperature and the current inlet water temperature, the feedforward compensation heat load value is calculated in advance. Within the response time of the equipment from flow change to completion of heat load adjustment, the water flow rate will increase according to the current flow rate change rate. The additional heat (or excess heat that needs to be reduced) during this lag period is determined by calculating the feedforward compensation heat load value and adding it to the base heat load value. This reduces the fluctuations in outlet water temperature caused by heat gaps or excess heat due to equipment response lag. It adjusts in advance to obtain the actual heat load value and controls the hot water equipment to operate at the actual heat load value. Compared with the existing regulation logic of "adjusting the load after the temperature deviates from the target", this invention senses the direction of heat demand changes in advance, which can improve the response speed of the hot water equipment to sudden changes in water flow, reduce the fluctuation of the outlet water temperature, and improve the constant temperature effect. Simultaneously, based on the temperature difference between the target outlet water temperature and the current outlet water temperature, a feedback compensation heat load value is calculated. The sum of the base heat load value, the feedforward compensation heat load value, and the feedback compensation heat load value is calculated as the actual heat load value, and the hot water equipment is controlled to operate at the actual heat load value, improving the accuracy of the outlet water temperature and making the outlet water temperature closer to the user-set target outlet water temperature, thus improving the constant temperature effect. In addition, the feedback parameters used to calculate the feedback compensation heat load value are positively correlated with the temperature difference between the target outlet water temperature and the current outlet water temperature to achieve rapid response and avoid overshoot. The feedback parameters are also inversely correlated with the inlet water flow rate. The larger the inlet water flow rate, the faster the feedback response. Therefore, it is necessary to reduce the feedback coefficient to avoid overshoot, further reduce the outlet water temperature fluctuation of the hot water equipment, and improve the constant temperature effect.

[0077] In the aforementioned embodiments, during the operation of the hot water equipment at the actual heat load value, staged combustion control can be adopted. Based on the detected outlet water temperature, the load is gradually reduced until the outlet water temperature reaches the target temperature, thus avoiding overshoot. The load proportionality coefficient M can be expressed as a function M=f(Q1, ΔT3) of the inlet water flow rate Q1 and the temperature difference ΔT3 between the target outlet water temperature Tset and the actual outlet water temperature. In actual combustion, the load proportionality coefficient M can be obtained through a pre-stored mapping relationship between flow rate, temperature difference, and load proportionality coefficient. Then, the actual heat load value Pr is multiplied by the load proportionality coefficient M to obtain the load required for staged combustion. As combustion progresses, the temperature difference ΔT3 decreases, and the corresponding load proportionality coefficient M also decreases, resulting in a smaller load required for staged combustion, thus avoiding water temperature overshoot. The smaller the inlet water flow rate Q1, the smaller the load required for staged combustion, further preventing overshoot.

[0078] For example, in one specific embodiment of the present invention, in order to reduce the amount of computation and ensure the real-time performance of combustion control, the graded combustion control can be divided into three levels. Figure 3 A flowchart of staged combustion provided by the present invention, such as Figure 3 As shown, the staged combustion control process is as follows: S11. Obtain the outlet water temperature as the second outlet water temperature.

[0079] During the operation of the hot water equipment at the actual heat load value Pr, the outlet water temperature is obtained as the second outlet water temperature T3.

[0080] S12. Calculate the difference between the target outlet water temperature and the second outlet water temperature as the third temperature difference.

[0081] The difference between the target outlet water temperature Tset and the second outlet water temperature T3 is calculated as the third temperature difference ΔT3.

[0082] S13. Determine whether the third temperature difference is greater than the first threshold.

[0083] The third temperature difference ΔT3 is compared with the first threshold to determine whether the third temperature difference ΔT3 is greater than the first threshold. If yes, step S14 is executed; otherwise, step S15 is executed.

[0084] S14. Control the hot water equipment to operate at the actual heat load value.

[0085] If the third temperature difference ΔT3 is greater than the first threshold, it means that the current outlet water temperature and the target outlet water temperature are significantly different. Then, the hot water equipment is controlled to operate at the actual heat load value Pr, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature. The second outlet water temperature is monitored until the third temperature difference is less than or equal to the first threshold, and then S15 is executed.

[0086] S15. Determine whether the third temperature difference is greater than the second threshold. If the third temperature difference ΔT3 is less than or equal to the first threshold, then it is further determined whether the third temperature difference ΔT3 is greater than the second threshold. If yes, then step S16 is executed; otherwise, step S17 is executed.

[0087] S16. Control the hot water equipment to operate at a first heat load value that is lower than the actual heat load value.

[0088] If the third temperature difference ΔT3 is greater than the second threshold, the hot water equipment is controlled to operate at a first heat load value Pr1 that is less than the actual heat load value Pr, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature. The second outlet water temperature is monitored until the third temperature difference is less than or equal to the second threshold, and then S17 is executed.

[0089] S17. Control the hot water equipment to operate at a second heat load value that is less than the first heat load value.

[0090] If the third temperature difference ΔT3 is less than or equal to the second threshold, it means that the outlet water temperature is close to the target outlet water temperature. Then, the hot water equipment is controlled to operate at a second heat load value Pr2 that is less than the first heat load value Pr1, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature. The second outlet water temperature is monitored until the second outlet water temperature is equal to the target outlet water temperature, or until the difference between the second outlet water temperature and the target outlet water temperature is within the preset error range, and then combustion is stopped.

[0091] In the foregoing embodiments, if the inlet water temperature or inlet water flow rate changes significantly due to other reasons (e.g., a user turning on a new water-using device) during the process of controlling the hot water equipment to operate at the actual heat load value, the basic heat load value, the feedforward compensation heat load value, the feedback compensation heat load value, and the actual heat load value can be recalculated. For example, during the process of controlling the hot water equipment to operate at the actual heat load value, the following further steps are included: S21. Obtain the inlet water temperature as the second inlet water temperature and the inlet water flow rate as the second inlet water flow rate.

[0092] During the process of controlling the hot water equipment to operate at the actual heat load value, the current inlet water temperature is obtained as the second inlet water temperature, and the current inlet water flow rate is obtained as the second inlet water flow rate.

[0093] S22. Calculate the rate of change of inlet water temperature based on the second inlet water temperature, and calculate the rate of change of second flow rate based on the second inlet water flow rate.

[0094] For example, the current second inlet water temperature can be subtracted from the inlet water temperature collected at the previous sampling time to obtain the temperature difference. Then, the temperature difference can be divided by the duration between the two sampling times to obtain the inlet water temperature change rate. Alternatively, the current second inlet water temperature can be directly differentiated to obtain the inlet water temperature change rate. This invention does not limit this approach. For example, the current second inlet water flow rate can be subtracted from the inlet water flow rate collected at the previous sampling time to obtain the flow rate difference. Then, the flow rate difference can be divided by the duration between the two sampling times to obtain the second flow rate change rate. Alternatively, the current second inlet water flow rate can be directly differentiated to obtain the second flow rate change rate. This invention does not limit this approach.

[0095] S23. Determine whether the rate of change of inlet water temperature is greater than the temperature change rate threshold, or whether the second flow rate change rate is greater than the flow rate change rate threshold.

[0096] In this embodiment of the invention, it is determined whether the rate of change of inlet water temperature is greater than the temperature change rate threshold, or whether the second flow rate change rate is greater than the flow rate change rate threshold.

[0097] S24. If so, it means that the inlet water temperature or inlet water flow rate has changed significantly. Then, return to the step of obtaining the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate, recalculate the actual heat load value, and run with the new actual heat load value until the inlet water flow rate is less than the start-up threshold of the hot water equipment and stop heating.

[0098] S25. If not, it means that the changes in inlet water temperature and inlet water flow rate are small. Then control the hot water equipment to operate at the current actual heat load value, and return to the step of obtaining the inlet water temperature as the second inlet water temperature and the inlet water flow rate as the second inlet water flow rate. Continue to monitor the inlet water temperature and inlet water flow rate until the inlet water flow rate is less than the start-up threshold of the hot water equipment, and stop heating.

[0099] In the foregoing embodiments of the present invention, the process of controlling the hot water equipment to operate at the actual heat load value further includes: S31. Obtain the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate.

[0100] During the process of controlling the hot water equipment to operate at the actual heat load value, the current inlet water temperature is obtained as the second inlet water temperature, and the current inlet water flow rate is obtained as the second inlet water flow rate.

[0101] S32. Determine whether the second outlet water temperature has reached the target outlet water temperature.

[0102] The second outlet water temperature is compared with the target outlet water temperature to determine whether the second outlet water temperature has reached the target outlet water temperature.

[0103] S33. If the outlet water temperature of the hot water equipment does not reach the target outlet water temperature, then return to the step of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate.

[0104] If the outlet water temperature of the hot water equipment does not reach the target outlet water temperature, the hot water equipment will continue to operate at the actual heat load value, and the process will return to the step of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate, and continue to monitor the outlet water temperature and inlet water flow rate.

[0105] S34. If the outlet water temperature of the hot water equipment reaches the target outlet water temperature, then determine whether the second inlet water flow rate is less than the heating start-up threshold flow rate of the hot water equipment.

[0106] For example, if the outlet water temperature of the hot water device reaches the target outlet water temperature, it is further determined whether the second inlet water flow rate is less than the heating start threshold flow rate of the hot water device, that is, whether the user should turn off the water.

[0107] S35. If not, control the hot water equipment to operate at the actual heat load value, and return to the step of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate.

[0108] If not, it means the user is still using water. In this case, the hot water equipment is controlled to operate at the actual heat load value, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate.

[0109] S36. If yes, then determine that the user has turned off the water, control the hot water equipment to operate at the actual heat load value, and accumulate the water-off time.

[0110] If so, the system determines that the user has turned off the water, controls the hot water equipment to operate at the actual heat load value, and accumulates the water-off time from the moment the user is determined to have turned off the water.

[0111] S36. When the water shut-off time reaches the first preset time, control the hot water equipment to stop heating and enter the internal circulation state, using the residual heat of the hot water equipment to keep the water in the internal circulation pipe warm.

[0112] When the water shut-off time reaches the first preset duration, the hot water equipment stops heating and enters internal circulation mode, utilizing the residual heat of the hot water equipment to keep the water in the internal circulation pipe warm. Internal circulation mode refers to the hot water equipment connecting the inlet and outlet pipes through a bypass pipe to form an internal circulation pipe. During this time, the water pump continues to run, and as the water flows through the heat exchanger, the residual heat from the heat exchanger keeps the water in the internal circulation pipe warm. This avoids the need for users to flush out a section of cold water and wait a long time before using hot water again in a short period, improving energy efficiency and saving water resources.

[0113] S37. When the water shut-off time reaches the second preset time, control the hot water equipment to stop. The second preset time is longer than the first preset time.

[0114] When the water shut-off time reaches the second preset time, the hot water equipment is controlled to stop, that is, the water pump also stops running. The second preset time is longer than the first preset time.

[0115] In the foregoing embodiments of the present invention, within the first preset duration and the second preset duration, the method further includes: S41. Obtain the inlet flow rate as the third inlet flow rate.

[0116] Within the first preset time period and the second preset time period, the influent flow rate is obtained as the third influent flow rate.

[0117] S42. Determine whether the third inlet water flow rate is greater than or equal to the heating start-up threshold flow rate of the hot water equipment.

[0118] The third inlet water flow rate is compared with the heating start-up threshold flow rate of the hot water equipment to determine whether the third inlet water flow rate is greater than or equal to the heating start-up threshold flow rate of the hot water equipment.

[0119] S43. If yes, then return to the step of obtaining the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate.

[0120] If so, it means the user has restarted using water. In this case, return to the step of obtaining the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate, and recalculate the actual heat load value.

[0121] It should be noted that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0122] The present invention provides a hot water equipment control device. By applying this device, the steps in the aforementioned method embodiments can be realized, and it has the corresponding functional modules and beneficial effects of executing the hot water equipment control device method. Figure 4 This is a schematic diagram of the structure of a hot water equipment control device provided by the present invention, as shown below. Figure 4 As shown, the hot water equipment control device includes: The data acquisition module 301 is used to acquire the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate; The first temperature difference calculation module 302 is used to calculate the difference between the target outlet water temperature set by the user and the first inlet water temperature as the first temperature difference; The basic heat load calculation module 303 is used to calculate the basic heat load value of the hot water equipment based on the first temperature difference and the first inlet water flow rate. The first flow rate change rate calculation module 304 is used to calculate the first flow rate change rate based on the first influent flow rate and determine whether the first flow rate change rate is greater than the flow rate change rate threshold. The feedforward parameter calculation module 305 is used to calculate the product of the first temperature difference, the specific heat capacity of water, and the response time of the hot water equipment as the feedforward parameter when the first flow rate change rate is greater than the flow rate change rate threshold. The response time represents the time required for the hot water equipment to adjust the heat load from the start of the flow rate change. The feedforward compensation calculation module 306 is used to calculate the product of the first flow rate change rate and the feedforward parameter to obtain the feedforward compensation heat load value; The actual load calculation module 307 is used to calculate the sum of the basic heat load value and the feedforward compensation heat load value as the actual heat load value. The operation control module 308 is used to control the hot water equipment to operate at the actual heat load value.

[0123] In some embodiments of the present invention, the basic heat load calculation module 303 includes: The basic heat load calculation submodule is used to calculate the product of the first inlet water flow rate, the specific heat capacity of water, and the first temperature difference to obtain the basic heat load value of the hot water equipment.

[0124] In some embodiments of the present invention, the hot water equipment control device further includes: The first outlet water temperature acquisition module is used to acquire the outlet water temperature as the first outlet water temperature. The second temperature difference calculation module is used to calculate the difference between the target outlet water temperature and the first outlet water temperature as the second temperature difference; The load difference calculation module is used to calculate the load difference between the expected load value and the current load value by multiplying the second temperature difference, the first inlet flow rate, and the specific heat capacity of water. The feedback parameter calculation module is used to input the second temperature difference into the feedback parameter calculation function to calculate the feedback parameter. The feedback parameter is positively correlated with the second temperature difference and negatively correlated with the influent flow rate. The feedback compensation calculation module is used to calculate the product of the load difference and the feedback parameters to obtain the feedback compensation heat load value; The heat load calculation module is used to calculate the sum of the basic heat load value, the feedforward compensation heat load value, and the feedback compensation heat load value, which is used as the actual heat load value.

[0125] In some embodiments of the present invention, the function for calculating the feedback parameter is: in, For feedback parameters, It is an adaptive parameter that is inversely correlated with the influent flow rate. The second temperature difference, It is a natural constant.

[0126] In some embodiments of the present invention, the hot water equipment control device further includes: The second outlet water temperature acquisition module is used to acquire the outlet water temperature as the second outlet water temperature during the process of controlling the hot water equipment to operate at the actual heat load value. The third temperature difference calculation module is used to calculate the difference between the target outlet water temperature and the second outlet water temperature as the third temperature difference; The first judgment module is used to determine whether the third temperature difference is greater than the first threshold. The first control module is used to control the hot water equipment to operate at the actual heat load value when the third temperature difference is greater than the first threshold, and return to execute the step of obtaining the outlet water temperature as the second outlet water temperature. The second judgment module is used to determine whether the third temperature difference is greater than the second threshold when the third temperature difference is less than or equal to the first threshold. The second control module is used to control the hot water equipment to operate at a first heat load value that is less than the actual heat load value when the third temperature difference is greater than the second threshold, and return to execute the step of obtaining the outlet water temperature as the second outlet water temperature. The third control module is used to control the hot water equipment to operate at a second heat load value that is less than the first heat load value when the third temperature difference is less than or equal to the second threshold, and return to the step of obtaining the outlet water temperature as the second outlet water temperature until the second outlet water temperature is equal to the target outlet water temperature.

[0127] In some embodiments of the present invention, the hot water equipment control device further includes: The first data monitoring module is used to obtain the inlet water temperature as the second inlet water temperature and the inlet water flow rate as the second inlet water flow rate during the process of controlling the hot water equipment to operate at the actual heat load value. The rate of change calculation module is used to calculate the rate of change of the inlet water temperature based on the second inlet water temperature and to calculate the rate of change of the second flow rate based on the second inlet water flow rate. The third judgment module is used to determine whether the rate of change of inlet water temperature is greater than the temperature change rate threshold, or whether the second flow rate change rate is greater than the flow rate change rate threshold. The first return execution module is used to return to the execution step of obtaining the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate when the inlet water temperature change rate is greater than the temperature change rate threshold or the second flow rate change rate is greater than the flow rate change rate threshold, until the inlet water flow rate is less than the start-up threshold of the hot water equipment and heating is stopped. The fourth control module is used to control the hot water equipment to operate at the actual heat load value when the rate of change of the inlet water temperature is not greater than the temperature change rate threshold and the rate of change of the second flow rate is not greater than the flow rate change rate threshold, and to return to the execution of the steps of obtaining the inlet water temperature as the second inlet water temperature and the inlet water flow rate as the second inlet water flow rate.

[0128] In some embodiments of the present invention, the hot water equipment control device further includes: The second data monitoring module is used to obtain the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate during the process of controlling the hot water equipment to operate at the actual heat load value. The fourth judgment module is used to determine whether the second outlet water temperature has reached the target outlet water temperature; The second return execution module is used to return to the execution of the steps of obtaining the outlet temperature as the second outlet temperature and the inlet flow rate as the second inlet flow rate when the outlet temperature of the hot water equipment does not reach the target outlet temperature. The fifth judgment module is used to determine whether the second inlet flow rate is less than the heating start-up threshold flow rate of the hot water equipment when the outlet water temperature of the hot water equipment reaches the target outlet water temperature. The fifth control module is used to control the hot water equipment to operate at the actual heat load value when the second inlet water flow rate is not less than the heating start threshold flow rate of the hot water equipment, and return to execute the steps of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate. The sixth control module is used to determine when the user turns off the water when the second inlet water flow rate is less than the heating start threshold flow rate of the hot water equipment, control the hot water equipment to operate at the actual heat load value, and accumulate the water-off time. The seventh control module is used to control the hot water equipment to stop heating and enter the internal circulation state when the water shut-off time reaches the first preset time, and to use the waste heat of the hot water equipment to keep the water in the internal circulation pipe warm. The eighth control module is used to control the hot water equipment to stop when the water shut-off time reaches the second preset time, and the second preset time is longer than the first preset time.

[0129] In some embodiments of the present invention, the hot water equipment control device further includes: The third inlet flow rate acquisition module is used to acquire the inlet flow rate as the third inlet flow rate within the first preset time period and the second preset time period. The sixth judgment module is used to determine whether the third inlet water flow rate is greater than or equal to the heating start-up threshold flow rate of the hot water equipment; The third return execution module is used to return to the execution step of obtaining the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate when the third inlet water flow rate is greater than or equal to the heating start threshold flow rate of the hot water equipment.

[0130] It should be noted that the module division in the various hot water equipment control devices provided in the above embodiments is illustrative and only represents one logical functional division. In actual implementation, other division methods may also be used. Furthermore, the functional modules in the various embodiments of this invention can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0131] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the technical solution of the embodiments of the present invention can be embodied in the form of a computer program product, which is stored in a computer storage medium and includes several instructions to cause an electronic device or processor to execute all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned computer storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0132] Furthermore, the hot water equipment control device and the hot water equipment control method provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.

[0133] Figure 5 This is a schematic diagram of the structure of an electronic device provided by the present invention, such as... Figure 5 As shown, the electronic device in this embodiment of the invention includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps in the above-described hot water device control method embodiment. Alternatively, when the processor executes the computer program, it implements the functions of each module in the above-described hot water device control apparatus embodiment.

[0134] For example, a computer program can be divided into one or more modules, one or more of which are stored in memory and executed by a processor to complete this application. The one or more modules can be a series of computer program instruction segments capable of performing a specific function, which can be used to describe the execution process of the computer program in an electronic device.

[0135] Electronic devices can be computing devices such as desktop computers and cloud servers. Electronic devices may include, but are not limited to, processors and memory. Those skilled in the art will understand that... Figure 5 This is merely one example of an electronic device and does not constitute a limitation on the electronic device. It may include more or fewer components than illustrated, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.

[0136] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0137] Memory can be an internal storage unit of an electronic device, such as a hard drive or RAM. Memory can also be an external storage device, such as a plug-in hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, Flash Card, etc. Furthermore, memory can include both internal and external storage units. Memory is used to store computer programs and other programs and data required by the electronic device. Memory can also be used to temporarily store data that has been output or will be output.

[0138] This invention also discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the hot water equipment control method as described in the foregoing embodiments.

[0139] This invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the hot water equipment control method as described in the foregoing embodiments.

[0140] This invention also discloses a computer program product that, when run on a computer, causes the computer to execute the hot water equipment control methods of the aforementioned embodiments.

[0141] In the specific implementation of the above embodiments, the technical features can be combined in any non-contradictory way. For the sake of brevity, not all possible combinations of the above technical features are described. However, as long as the combination of these technical features is not contradictory, it should be considered to be within the scope of this specification.

[0142] The specific embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.

Claims

1. A method for controlling a hot water device, characterized in that, include: The current inlet water temperature of the hot water equipment is used as the first inlet water temperature, and the current inlet water flow rate is used as the first inlet water flow rate. The difference between the user-set target outlet water temperature and the first inlet water temperature is calculated as the first temperature difference; The basic heat load value of the hot water equipment is calculated based on the first temperature difference and the first inlet water flow rate. Calculate the first flow rate change rate based on the first influent flow rate, and determine whether the first flow rate change rate is greater than the flow rate change rate threshold. When the first flow rate change rate is greater than the flow rate change rate threshold, the product of the first temperature difference, the specific heat capacity of water, and the response time of the hot water equipment is calculated as a feedforward parameter, wherein the response time represents the time required for the hot water equipment to adjust the heat load from the start of the flow rate change. Calculate the product of the first flow rate change rate and the feedforward parameter to obtain the feedforward compensation heat load value; The sum of the base heat load value and the feedforward compensation heat load value is calculated as the actual heat load value; The hot water equipment is controlled to operate at the actual heat load value.

2. The hot water equipment control method according to claim 1, characterized in that, The basic heat load value of the hot water equipment is calculated based on the first temperature difference and the first inlet water flow rate, including: The basic heat load value of the hot water equipment is obtained by calculating the product of the first inlet water flow rate, the specific heat capacity of water, and the first temperature difference.

3. The hot water equipment control method according to claim 1 or 2, characterized in that, Also includes: The outlet water temperature is obtained as the first outlet water temperature; The difference between the target outlet water temperature and the first outlet water temperature is calculated as the second temperature difference; The product of the second temperature difference, the first inlet water flow rate, and the specific heat capacity of water is calculated as the load difference between the expected load value and the current load value. The second temperature difference is input into the calculation function of the feedback parameter to calculate the feedback parameter, which is positively correlated with the second temperature difference and negatively correlated with the influent flow rate. Calculate the product of the load difference and the feedback parameter to obtain the feedback compensation heat load value; The sum of the base heat load value, the feedforward compensation heat load value, and the feedback compensation heat load value is calculated as the actual heat load value.

4. The hot water equipment control method according to claim 3, characterized in that, The function for calculating the feedback parameters is: in, For feedback parameters, It is an adaptive parameter that is inversely correlated with the influent flow rate. The second temperature difference, It is a natural constant.

5. The hot water equipment control method according to claim 3, characterized in that, The process of controlling the hot water equipment to operate at the actual heat load value also includes: The outlet water temperature is obtained as the second outlet water temperature; The difference between the target outlet water temperature and the second outlet water temperature is calculated as the third temperature difference; Determine whether the third temperature difference is greater than the first threshold. If the third temperature difference is greater than the first threshold, the hot water equipment is controlled to operate at the actual heat load value, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature. If the third temperature difference is less than or equal to the first threshold, then determine whether the third temperature difference is greater than the second threshold. If the third temperature difference is greater than the second threshold, the hot water equipment is controlled to operate at a first heat load value that is less than the actual heat load value, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature. If the third temperature difference is less than or equal to the second threshold, the hot water equipment is controlled to operate at a second heat load value that is less than the first heat load value, and the process returns to the step of obtaining the outlet water temperature as the second outlet water temperature until the second outlet water temperature is equal to the target outlet water temperature.

6. The hot water equipment control method according to claim 3, characterized in that, The process of controlling the hot water equipment to operate at the actual heat load value also includes: The inlet water temperature is used as the second inlet water temperature, and the inlet water flow rate is used as the second inlet water flow rate; The rate of change of inlet water temperature is calculated based on the second inlet water temperature, and the rate of change of second flow rate is calculated based on the second inlet water flow rate. Determine whether the rate of change of the inlet water temperature is greater than the temperature change rate threshold, or whether the second rate of change of the flow rate is greater than the flow rate change rate threshold; If so, return to the step of obtaining the current inlet water temperature of the hot water device as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate, until the inlet water flow rate is less than the start-up threshold of the hot water device, and stop heating; If not, then control the hot water equipment to operate at the actual heat load value, and return to the step of obtaining the inlet water temperature as the second inlet water temperature and the inlet water flow rate as the second inlet water flow rate.

7. The hot water equipment control method according to claim 3, characterized in that, The process of controlling the hot water equipment to operate at the actual heat load value also includes: The outlet water temperature is used as the second outlet water temperature, and the inlet water flow rate is used as the second inlet water flow rate. Determine whether the second outlet water temperature has reached the target outlet water temperature; If the outlet water temperature of the hot water equipment does not reach the target outlet water temperature, then return to the step of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate. If the outlet water temperature of the hot water equipment reaches the target outlet water temperature, then it is determined whether the second inlet water flow rate is less than the heating start-up threshold flow rate of the hot water equipment; If not, then control the hot water equipment to operate at the actual heat load value, and return to the step of obtaining the outlet water temperature as the second outlet water temperature and the inlet water flow rate as the second inlet water flow rate; If so, it is determined that the user has turned off the water, and the hot water equipment is controlled to operate at the actual heat load value, and the duration of water being turned off is accumulated; When the water shut-off time reaches the first preset time, the hot water equipment is controlled to stop heating and enter the internal circulation state, using the residual heat of the hot water equipment to keep the water in the internal circulation pipe warm. When the water shut-off time reaches the second preset time, the hot water equipment is controlled to stop, and the second preset time is longer than the first preset time.

8. The hot water equipment control method according to claim 7, characterized in that, Within the first preset duration and the second preset duration, it also includes: The influent flow rate is used as the third influent flow rate; Determine whether the third inlet water flow rate is greater than or equal to the heating start-up threshold flow rate of the hot water equipment; If so, return to the step of obtaining the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate.

9. A control device for a hot water equipment, characterized in that, include: The data acquisition module is used to acquire the current inlet water temperature of the hot water equipment as the first inlet water temperature and the current inlet water flow rate as the first inlet water flow rate; The first temperature difference calculation module is used to calculate the difference between the user-set target outlet water temperature and the first inlet water temperature as the first temperature difference; The basic heat load calculation module is used to calculate the basic heat load value of the hot water equipment based on the first temperature difference and the first inlet water flow rate. The first flow rate change rate calculation module is used to calculate the first flow rate change rate based on the first influent flow rate and determine whether the first flow rate change rate is greater than the flow rate change rate threshold. The feedforward parameter calculation module is used to calculate the product of the first temperature difference, the specific heat capacity of water, and the response time of the hot water equipment as a feedforward parameter when the first flow rate change rate is greater than the flow rate change rate threshold. The response time represents the time required for the hot water equipment to adjust the heat load from the start of the flow rate change. The feedforward compensation calculation module is used to calculate the product of the first flow rate change rate and the feedforward parameter to obtain the feedforward compensation heat load value. The actual load calculation module is used to calculate the sum of the basic heat load value and the feedforward compensation heat load value as the actual heat load value. The operation control module is used to control the hot water equipment to operate at the actual heat load value.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the hot water equipment control method as described in any one of claims 1-8.

11. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the hot water equipment control method as described in any one of claims 1-8.