Hot water supply energy-saving control method and device, program product and storage medium
By acquiring real-time water supply pressure and return water temperature, and combining this with adjusting the water pump status and PID control, valve commands are dynamically adjusted, solving the energy waste problem in existing technologies and achieving high efficiency, energy saving, and precise control of the hot water supply system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-12
- Publication Date
- 2026-04-03
AI Technical Summary
Existing hot water supply systems rely on fixed parameter adjustments to cope with changes in users' hot water consumption, resulting in excessively high water pressure or excessively high circulation frequency, leading to energy waste.
By acquiring real-time water supply pressure, return water temperature, and regulating pump status, valve commands are dynamically adjusted. Combined with PID control and feedforward compensation strategies, water supply parameters are optimized to accurately match users' heating needs.
It reduces energy waste, improves control precision and system operating efficiency, and ensures water supply quality and user experience.
Smart Images

Figure CN121782631A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of centralized hot water supply system control, specifically to a hot water supply energy-saving control method, equipment, program product, and storage medium. Background Technology
[0002] With the continuous advancement of urbanization, centralized heating systems have been widely used in my country. In centralized heating systems, the hot water supply system is a crucial component, and its operating efficiency and energy consumption directly affect the performance of the entire heating system.
[0003] Currently, hot water supply systems typically employ a combination of variable frequency pumps and electric regulating valves for control. This control method adjusts the water supply parameters by regulating the pump to meet users' heating needs. Specifically, the control system adjusts the pump according to preset water supply parameters, thereby controlling the water supply temperature and pressure.
[0004] In actual operation, the hydraulic conditions of the heating system change dynamically with the changes in users' hot water consumption. Existing control methods mainly rely on preset fixed parameters to adjust for these dynamic changes. This can lead to situations where the system experiences excessively high water pressure or excessively high circulation frequency at certain times, resulting in unnecessary energy waste. Summary of the Invention
[0005] This application provides a method, device, program product, and storage medium for energy-saving control of hot water supply, which can reduce energy waste in hot water supply.
[0006] The first aspect of this application provides a method for energy-saving control of hot water supply, specifically including: Real-time acquisition of water supply pressure, return water temperature, and current operating mode; Obtain the operating status of the regulating water pump in the current hot water control cycle, and determine the basic valve command based on the current operating mode, the operating status of the regulating water pump, and the return water temperature value; The current hydraulic impedance state is determined based on the operating status of the regulating water pump, and the basic valve command is adjusted according to the hydraulic impedance state to obtain the final valve command. The water supply parameters are calculated based on the water supply pressure value and the operating status of the regulating water pump, and the hot water supply is controlled based on the water supply parameters and the final valve command.
[0007] By adopting the above technical solution, operating parameters such as supply water pressure and return water temperature are acquired in real time. Combined with the dynamic determination of the hydraulic impedance state by adjusting the operating status of the water pump, the basic valve commands are adjusted accordingly to obtain the final valve commands. This allows the system to flexibly adjust the control strategy based on changes in actual hydraulic conditions, avoiding problems such as excessively high supply water pressure and excessive circulation frequency caused by traditional fixed-parameter control methods. Simultaneously, through real-time calculation and feedback adjustment of supply water parameters, the system can more accurately match the user's actual heating needs, reducing energy waste in hot water supply.
[0008] Optionally, the regulating water pump operating state includes an on state and a off state, and the step of determining the basic valve command based on the current operating mode, the regulating water pump operating state, and the return water temperature value includes: Obtain the basic cycle start temperature threshold and basic cycle stop temperature threshold corresponding to the current operating mode from the preset mode-threshold mapping table, wherein the basic cycle start temperature threshold is less than the basic cycle stop temperature threshold; When the regulating water pump is in the off state, if the return water temperature is less than or equal to the basic circulation opening temperature threshold, the basic valve command is set to open command; if the return water temperature is greater than the basic circulation opening temperature threshold, the basic valve command is set to remain closed command. When the regulating water pump is in the on state, if the return water temperature is greater than or equal to the basic circulation stop temperature threshold, the basic valve command is set to the closed command; if the return water temperature is less than the basic circulation stop temperature threshold, the basic valve command is set to the kept open command.
[0009] By adopting the above technical solution, a correspondence between the current operating mode and temperature thresholds is established through a preset mode-threshold mapping table. A temperature control mechanism with hysteresis characteristics is formed by setting a difference control strategy where the basic cycle start temperature threshold is less than the basic cycle stop temperature threshold. Based on the on / off status of the regulating water pump and the comparison result between the return water temperature value and the corresponding temperature threshold, the system can adaptively adjust the basic valve commands, avoiding frequent switching caused by temperature fluctuations. This control logic based on multiple judgment conditions ensures the stability of system operation while reducing unnecessary adjustment actions, thereby reducing equipment wear and improving control accuracy and energy utilization efficiency.
[0010] Optionally, the step of determining the current hydraulic impedance state based on the operating state of the regulating water pump, and adjusting the basic valve command according to the hydraulic impedance state to obtain the final valve command, includes: If the regulating water pump is in the off state, the current hydraulic impedance state is determined to be a high impedance state; if the regulating water pump is in the on state, the current hydraulic impedance state is determined to be a low impedance state. The current water load status is determined based on the water supply pressure value within the preset time window and the current hydraulic impedance status. If the current water load state is a high load state, the intermediate valve command is set to a close command or a keep-close command; if the current water load state is not a high load state, the intermediate valve command is set to the basic valve command. If the regulating water pump is in the off state, the cumulative off time of the regulating water pump is updated to the sum of the cumulative off time of the regulating water pump in the previous hot water control cycle and the current hot water control cycle duration. If the regulating water pump is in the on state, the cumulative off time of the regulating water pump is cleared to zero. If the cumulative shutdown time of the regulating water pump is greater than or equal to the preset maximum allowable shutdown time, the final valve command is set to an open command; if the cumulative shutdown time of the regulating water pump is less than the maximum allowable shutdown time, the final valve command is set to the intermediate valve command.
[0011] By adopting the above technical solution, the hydraulic impedance state is dynamically determined by adjusting the operating status of the water pump, and the water load state is comprehensively evaluated by combining the water supply pressure value within a preset time window, thus achieving accurate identification of the system's operating conditions. Furthermore, by introducing a monitoring mechanism to regulate the cumulative duration of water pump shutdown, the system can effectively prevent water quality problems caused by prolonged stagnation. Simultaneously, by differentially setting intermediate valve commands, unnecessary cyclic opening under high load conditions is avoided while ensuring normal system operation. This multi-level control strategy not only ensures the safe and reliable operation of the heating system but also achieves the goal of precise adjustment based on actual water demand, thereby improving the system's operating efficiency and energy-saving effect.
[0012] Optionally, determining the current water load state based on the water supply pressure value within a preset time window and the current hydraulic impedance state includes: Calculate the pressure change rate and pressure variance based on the water supply pressure value within the preset time window; When the current hydraulic impedance state is a high impedance state, if the pressure variance value is greater than or equal to a preset low load variance threshold and less than a preset high load variance threshold, then the current water load state is determined to be a non-high load state; if the pressure variance value is greater than or equal to the high load variance threshold, then the current water load state is determined to be a high load state. When the current hydraulic impedance state is a low impedance state, the current pressure change rate is obtained. If the absolute value of the current pressure change rate is greater than the preset static pressure change rate threshold, the current water load state is determined to be a high load state. If the absolute value of the current pressure change rate is less than the preset static pressure change rate threshold, the current water load state is determined to be a non-high load state.
[0013] By adopting the above technical solution, under high impedance conditions, the system primarily determines the water load status based on the pressure variance value, achieving graded identification of water usage fluctuations by setting low and high load variance thresholds. Under low impedance conditions, the system focuses on the pressure change rate, determining the load status by judging the dynamic characteristics of pressure changes. This differentiated judgment mechanism fully considers the characteristic differences of system pressure fluctuations under different hydraulic impedance conditions, making the load status judgment more accurate and reliable. Because the system is more sensitive to water usage disturbances under high impedance conditions, using pressure variance for judgment can better capture the characteristics of water usage fluctuations; while under low impedance conditions, the system pressure is relatively stable, and judging the pressure change rate can more effectively identify sudden water demand, thus achieving accurate identification and timely response to system load status.
[0014] Optionally, calculating the water supply parameters based on the water supply pressure value and the operating status of the regulating water pump includes: Select the corresponding PID control parameter group based on the current hydraulic impedance state; The target water supply pressure required at present is determined based on the operating status of the water pump. Calculate the water supply pressure deviation based on the target water supply pressure and the water supply pressure value, and calculate the PID base frequency based on the PID control parameter group and the water supply pressure deviation. The water supply parameters are determined based on the PID base frequency, the operating status of the regulating water pump, and the final valve command.
[0015] By adopting the above technical solution, appropriate PID control parameter sets are selected according to different hydraulic impedance states, and the target water supply pressure is determined in conjunction with the adjustment of the water pump's operating status. The PID base frequency is dynamically adjusted by calculating the deviation between the actual water supply pressure and the target value. This differentiated parameter selection and dynamic adjustment mechanism can better adapt to the control requirements of the system under different operating conditions, avoiding problems such as overshoot or slow response that may occur with traditional single PID parameter control. Simultaneously, by incorporating the final valve command into the calculation process of the water supply parameters, coordinated valve control and water pump speed regulation are achieved. This ensures both the system's control accuracy and improves the system's response speed to changes in water demand, thereby achieving energy conservation and consumption reduction in system operation while ensuring water supply quality.
[0016] Optionally, determining the current target water supply pressure based on the operating status of the regulating water pump includes: Obtain the basic target water supply pressure corresponding to the current operating mode from the preset mode-threshold mapping table; If the regulating water pump is in the off state, the predicted remaining time is calculated based on the return water temperature value. The predicted remaining time represents the time required from the current moment until the return water temperature value drops to the basic circulation start temperature threshold. When the predicted remaining time is less than or equal to the preset pre-pressurization advance time, the target water supply pressure is calculated as the sum of the basic target water supply pressure and the preset pre-pressurization pressure increment. If the predicted remaining time is greater than the preset pre-pressurization advance time, the target water supply pressure is set as the basic target water supply pressure.
[0017] By adopting the above technical solution, the basic target water supply pressure is first obtained from the mode-threshold mapping table. Then, with the valve closed, the remaining time required for the system to reach the opening conditions is predicted based on the return water temperature. When the predicted remaining time approaches the pre-pressurization advance time, the system increases the target water supply pressure in advance. This predictive pressure regulation mechanism can establish pressure before the system is about to start its cycle, thus avoiding the problem of insufficient water supply pressure that may occur at the moment of valve opening in traditional control methods. Simultaneously, by combining the pre-pressurization strategy with basic water supply pressure control, the system's stability during normal operation is ensured, and the response speed during operating condition switching is improved. This achieves smooth transition and precise control of the water supply pressure, effectively improving system operating efficiency and user experience.
[0018] Optionally, determining the water supply parameters based on the PID base frequency, the adjusted water pump operating status, and the final valve command includes: If the regulating water pump is in a closed state and the final valve command is an open command, then the feedforward compensation is calculated as a preset valve opening speed compensation value. If the regulating water pump is in an open state and the final valve command is a closed command, then the feedforward compensation is calculated as a preset valve closing speed compensation value. If the regulating water pump is in a closed state and the final valve command is a keep-close command, then the feedforward compensation is set to zero. If the regulating water pump is in an open state and the final valve command is a keep-open command, then the feedforward compensation is set to zero. The initial water supply parameters are obtained by adding the PID base frequency and the feedforward compensation amount; The initial water supply parameters are limited by an upper limit and a lower limit to obtain the water supply parameters.
[0019] By adopting the above technical solution, different feedforward compensation strategies are employed based on the combination of the pump's operating state and the final valve command: when the valve state is about to change (opening or closing), the system introduces a corresponding speed compensation value, while no compensation is applied when the valve state remains unchanged. This feedforward compensation mechanism can proactively address system disturbances that may arise from valve state switching, effectively reducing pressure fluctuations during valve operation. Simultaneously, by limiting the initial water supply parameters with upper and lower limits, the system's operating parameters are ensured to remain within a safe and reasonable range, preventing equipment overload while guaranteeing basic water supply needs. This comprehensive control strategy, combining PID control, feedforward compensation, and parameter limiting, significantly improves the system's stability and reliability during operating condition switching, achieving precise adjustment of water supply parameters and safe and controllable system operation.
[0020] In a second aspect, this application provides a hot water supply energy-saving control device, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the hot water supply energy-saving control device to perform the method described in the first aspect and any possible implementation thereof.
[0021] Thirdly, this application provides a computer program product containing instructions that, when the computer program product is run on a hot water supply energy-saving control device, cause the hot water supply energy-saving control device to perform the method described in the first aspect and any possible implementation thereof.
[0022] Fourthly, this application provides a computer-readable storage medium including instructions that, when executed on a hot water supply energy-saving control device, cause the hot water supply energy-saving control device to perform the method described in the first aspect and any possible implementation thereof. Attached Figure Description
[0023] Figure 1 This is a schematic flowchart of a hot water supply energy-saving control method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a system structure provided in an embodiment of this application; Figure 3 This is an exemplary hardware structure diagram of a hot water supply energy-saving control device provided in an embodiment of this application. Detailed Implementation
[0024] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification 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.
[0025] In the description of the embodiments of this application, the words "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design that is described as "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Rather, the use of the words "for example" or "for instance" is intended to present the relevant concepts in a specific manner.
[0026] In the description of the embodiments of this application, the term "multiple" means two or more. For example, multiple systems means two or more systems, and multiple screen terminals means two or more screen terminals. Furthermore, 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 indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0027] This application provides an energy-saving control method for hot water supply, referencing... Figure 1 , Figure 1 This is a flowchart illustrating an energy-saving control method for hot water supply provided in an embodiment of this application, including steps S101 to S104, as follows: S101: Real-time acquisition of water supply pressure, return water temperature, and current operating mode.
[0028] In this embodiment, the water supply pressure value refers to the pressure of the water flow in the water supply pipe of the hot water circulation system. It is typically monitored in real time by a pressure sensor installed on the water supply pipe. For example, when the system is operating normally, the water supply pressure value may be 0.3 MPa. The return water temperature value represents the temperature of the water flow in the return water pipe of the hot water circulation system, reflecting the system's heat loss and circulation effect. It is usually obtained by measuring a temperature sensor. For example, a return water temperature of 45°C indicates that the system's heat loss is relatively small. The current operating mode refers to the preset operating state category of the hot water circulation system based on the current time period. This indicates that the system executes corresponding operating strategies according to the water demand characteristics of different time intervals. For example, a high-frequency circulation mode is executed from 6:00 AM to 8:00 AM, and an energy-saving standby mode is executed from 11:00 PM to 5:00 AM.
[0029] Specifically, the electronic device establishes communication connections with various sensors through pre-configured data acquisition interfaces and periodically reads sensor data according to a set acquisition frequency. For acquiring water supply pressure, the electronic device sends a data request command to the pressure sensor connected to the main water supply line. The pressure sensor converts the currently detected pressure value in the pipeline into a standard electrical or digital signal. The electronic device receives this signal and performs analog-to-digital conversion and unit conversion to obtain the water supply pressure value in MPa or kPa. For acquiring return water temperature, the electronic device similarly sends an acquisition command to the temperature sensor installed on the return water pipeline. The temperature sensor converts the detected water temperature information into a corresponding electrical signal. The electronic device processes and calibrates the received signal to obtain an accurate temperature value in degrees Celsius. For acquiring the current operating mode, the electronic device first obtains the current real-time time information through the system clock, and then performs a query and matching based on a pre-stored time-mode mapping table. This mapping table defines the operating modes corresponding to different time periods. The electronic device compares the current time with the time interval in the mapping table to determine the time period to which the current moment belongs and obtains the corresponding operating mode for that time period.
[0030] S102: Obtain the operating status of the regulating water pump in the current hot water control cycle, and determine the basic valve command based on the current operating mode, the operating status of the regulating water pump, and the return water temperature value.
[0031] In this embodiment, the current hot water control cycle refers to a periodic time period during which the system executes a complete control logic once at a preset time interval. This ensures the regular updating of the system status and the timely execution of control decisions. For example, a control cycle is every 30 seconds. Adjusting the water pump operating status refers to adjusting the operating status of the water pump within the current hot water control cycle. This status is determined by detecting the user's hot water usage behavior. For example, when it is detected that the user has turned on the hot water tap or hot water equipment, the water pump operating status is adjusted to the on state; when the user turns off all hot water equipment, the water pump operating status is adjusted to the off state.
[0032] Specifically, the electronic device first reads the operating status information of the regulating water pump recorded in the system status register. This status information is updated and stored at the end of the previous control cycle. Then, it queries the preset mode-threshold mapping table for the basic cycle start temperature threshold and basic cycle stop temperature threshold corresponding to the current operating mode. The basic cycle start temperature threshold being lower than the basic cycle stop temperature threshold creates a hysteresis characteristic in temperature control. When the regulating water pump is detected to be in a closed state, the electronic device compares the acquired return water temperature value with the basic cycle start temperature threshold. If the return water temperature value is less than or equal to the basic cycle start temperature threshold, the basic valve command is set to open; if the return water temperature value is greater than the basic cycle start temperature threshold, the basic valve command is set to remain closed. When the regulating water pump is detected to be in a closed state, the electronic device compares the return water temperature value with the basic cycle stop temperature threshold. If the return water temperature value is greater than or equal to the basic cycle stop temperature threshold, the basic valve command is set to close; if the return water temperature value is less than the basic cycle stop temperature threshold, the basic valve command is set to remain open.
[0033] S103: Determine the current hydraulic impedance state based on the operating status of the regulating water pump, and adjust the basic valve commands according to the hydraulic impedance state to obtain the final valve commands.
[0034] In this embodiment, the current hydraulic impedance state refers to the descriptive state of the water flow resistance characteristics in the hot water circulation system pipeline, used to represent the current water flow resistance level of the system. For example, a high impedance state indicates that the pipeline has significant resistance to water flow. The current water load state represents the water demand level of the system within a specific time window, used to reflect the actual water consumption and load changes at the user end. For example, a high load state indicates that there is a large water demand at the user end. The final valve command refers to the final valve control command generated after multiple condition judgments and safety protection logic processing, used to ensure the reliable operation of the system under various operating conditions. For example, when the final valve command is an open command, the system will forcibly start the circulation pump.
[0035] Specifically, the electronic device maps and determines the hydraulic impedance state based on the operating status of the regulating water pump. If the regulating water pump is detected to be in a closed state, the current hydraulic impedance state is determined to be high impedance; if the regulating water pump is detected to be in an open state, the current hydraulic impedance state is determined to be low impedance. Next, the electronic device calculates the water supply pressure change characteristics within a preset time window and performs a comprehensive analysis based on the current hydraulic impedance state. The current water load state is determined by combining the pressure fluctuation amplitude and impedance state. Then, the electronic device sets intermediate valve commands based on the water load state. If the current water load state is high load, the intermediate valve command is set to a closed command or a kept closed command; if the current water load state is not high load, the intermediate valve command is set to a basic valve command. Simultaneously, the electronic device maintains the cumulative calculation of valve closing time. If the regulating water pump is in a closed state, the cumulative closing time is updated to the sum of the cumulative closing time of the regulating water pump in the previous hot water control cycle and the current hot water control cycle duration; if the regulating water pump is in an open state, the cumulative closing time is reset to zero. Finally, the electronic device performs a safety protection judgment. If the cumulative time of the water pump being shut down is greater than or equal to the preset maximum allowable shut-off time, the final valve command is set to an open command to prevent the system from stopping and circulating for a long time. If the cumulative time of the water pump being shut down is less than the maximum allowable shut-off time, the final valve command is set to an intermediate valve command.
[0036] S104: Calculate water supply parameters based on water supply pressure and the operating status of the water pump, and control hot water supply based on water supply parameters and final valve commands.
[0037] In this embodiment, the water supply parameter refers to the key values controlling the operating frequency and power of the water supply pump in the hot water circulation system, used to adjust the system's water supply capacity and circulation effect. For example, a water supply parameter of 45Hz indicates that the water supply pump operates at this frequency. The PID control parameter set represents the set of parameters in the proportional-integral-derivative control algorithm, used to provide corresponding control response characteristics according to different hydraulic impedance states. For example, in the high impedance state, the parameter set (Kp=2.5, Ki=0.8, Kd=0.3) is used. The target water supply pressure refers to the ideal water supply pressure value determined based on the current system valve state, used as the setpoint for pressure control. For example, the target water supply pressure is set to 0.35MPa when the valve is open.
[0038] Specifically, the electronic device first selects the corresponding PID control parameter set from the pre-stored parameter configuration table based on the previously determined current hydraulic impedance state. Different impedance states correspond to different combinations of proportional, integral, and derivative coefficients to adapt to changes in system characteristics. Then, the electronic device queries a preset valve status-target pressure mapping table based on the operating status of the regulating pump to determine the target water supply pressure value required under the current operating conditions. The water supply pressure deviation is obtained by subtracting the target water supply pressure from the real-time collected water supply pressure value. Next, the electronic device uses the selected PID control parameter set to perform proportional-integral-derivative operations on the water supply pressure deviation to calculate the PID base frequency, which serves as the base control frequency for the water supply pump. Finally, the electronic device comprehensively considers three factors: the PID base frequency, the operating status of the regulating pump, and the final valve command. It then corrects and optimizes the PID base frequency using a preset frequency adjustment algorithm to generate the final water supply parameters for the variable frequency controller driving the water supply pump. This achieves precise regulation of the hot water circulation system's water supply capacity, thus completing the closed-loop control process of the entire hot water supply.
[0039] Based on the above embodiments, as an optional embodiment, S102: the step of determining the basic valve command according to the current operating mode, the adjusted water pump operating status, and the return water temperature value may specifically include the following steps: S201: Obtain the basic circulation start temperature threshold and basic circulation stop temperature threshold corresponding to the current operating mode from the preset mode-threshold mapping table. The basic circulation start temperature threshold is less than the basic circulation stop temperature threshold. When the water pump operation status is adjusted to the off state, if the return water temperature value is less than or equal to the basic circulation start temperature threshold, the basic valve command is set to the open command. If the return water temperature value is greater than the basic circulation start temperature threshold, the basic valve command is set to the keep closed command.
[0040] In this embodiment, the basic circulation start temperature threshold refers to the critical return water temperature that triggers the hot water circulation system to start its circulation function. When the return water temperature drops below this threshold, the system needs to start circulation to maintain the hot water supply effect. For example, the basic circulation start temperature threshold is set to 40°C. The basic circulation stop temperature threshold represents the critical return water temperature at which the hot water circulation system stops operating. When the return water temperature reaches this threshold, it indicates that the hot water temperature has risen sufficiently and circulation can be stopped. For example, the basic circulation stop temperature threshold is set to 50°C.
[0041] Specifically, the electronic device first accesses a pre-stored mode-threshold mapping table data structure. This mapping table establishes a correspondence between the current operating mode and temperature threshold parameters, using the current operating mode as the index key. The electronic device performs a lookup operation in the mapping table based on the current operating mode, retrieving the corresponding basic circulation start temperature threshold and basic circulation stop temperature threshold values. When the system detects that the regulating water pump is in a closed state, the electronic device compares the real-time acquired return water temperature value with the basic circulation start temperature threshold. If the comparison result shows that the return water temperature value is less than or equal to the basic circulation start temperature threshold, it indicates that the current return water temperature is too low and hot water circulation needs to be started; the electronic device sets the value of the basic valve command to the start command flag. If the comparison result shows that the return water temperature value is greater than the basic circulation start temperature threshold, it indicates that the current return water temperature has not yet reached the condition requiring circulation; the electronic device sets the value of the basic valve command to the stay closed command flag.
[0042] S202: When the water pump is in the open state, if the return water temperature is greater than or equal to the basic circulation stop temperature threshold, the basic valve command is set to the closed command; if the return water temperature is less than the basic circulation stop temperature threshold, the basic valve command is set to the open command.
[0043] Specifically, when the system detects that the regulating water pump is in the "on" state, it indicates that the hot water circulation system is running. The electronic equipment needs to determine whether to stop the circulation based on changes in the return water temperature. The electronic equipment compares the real-time collected return water temperature value with the basic circulation stop temperature threshold obtained from the mode-threshold mapping table. If the comparison result shows that the return water temperature value is greater than or equal to the basic circulation stop temperature threshold, it indicates that after a period of hot water circulation, the return water temperature has risen to a sufficiently high level, and the temperature in the hot water pipes has been effectively increased. Continuing circulation at this point would cause unnecessary energy consumption, so the electronic equipment sets the value of the basic valve command to the "closed" command. If the comparison result shows that the return water temperature value is less than the basic circulation stop temperature threshold, it indicates that the current hot water circulation effect has not yet reached the expected goal, and the return water temperature is still too low. Hot water circulation needs to continue to further increase the pipe temperature, so the electronic equipment sets the value of the basic valve command to the "keep open" command, allowing the system to maintain its current circulation operation.
[0044] Based on the above embodiments, as an optional embodiment, S103: the step of determining the current hydraulic impedance state based on the operating state of the regulating water pump, and adjusting the basic valve command according to the hydraulic impedance state to obtain the final valve command, may specifically include the following steps: S301: If the water pump is set to the off state, the current hydraulic impedance state is determined to be high impedance. If the water pump is set to the on state, the current hydraulic impedance state is determined to be low impedance.
[0045] In this embodiment, a high-resistance state refers to an operating state in which the water flow resistance in the hot water circulation system is relatively high. This typically occurs when the circulation valve is closed or the pipe flow is poor; for example, in a high-resistance state, the water flow velocity is low and the pressure loss is large. A low-resistance state indicates an operating state in which the water flow resistance in the hot water circulation system is relatively low. This typically occurs when the circulation valve is open and the pipe is unobstructed; for example, in a low-resistance state, the water flow velocity is high and the pressure loss is small.
[0046] Specifically, the electronic equipment directly maps the hydraulic impedance state based on the operating status of the regulating water pump. When the system detects that the regulating water pump is in a closed state, it indicates that the regulating water pump in the circulation pipeline is in the closed position. At this time, the water flow channel inside the pipeline is blocked or restricted, and the water flow resistance increases significantly. Therefore, the electronic equipment sets the current hydraulic impedance state to a high impedance state. When the system detects that the regulating water pump is in a closed state, it indicates that the regulating water pump in the circulation pipeline is in the open position. At this time, the water flow channel inside the pipeline remains unobstructed, and the water flow can pass through the pipeline system relatively freely with relatively low water flow resistance. Therefore, the electronic equipment sets the current hydraulic impedance state to a low impedance state.
[0047] S302: Determine the current water load status based on the water supply pressure value within the preset time window and the current hydraulic impedance status.
[0048] Specifically, the electronic device first performs statistical analysis and calculation on multiple water supply pressure values collected within a preset time window. By performing a difference operation on adjacent pressure data points in the time series and dividing by the corresponding time interval, the pressure change rate at each moment is calculated. Simultaneously, the electronic device calculates the mean of all water supply pressure values within the preset time window, then calculates the sum of squared deviations of each pressure value from the mean, and divides this by the sample size minus one to obtain the pressure variance value. When a high-impedance state is detected, the electronic device compares the calculated pressure variance value with preset low-load and high-load variance thresholds. If the pressure variance value is greater than or equal to the low-load variance threshold and less than the high-load variance threshold, it indicates that the system pressure fluctuation is at a moderate level and the water demand is relatively stable; the electronic device determines the current water load state as a non-high-load state. If the pressure variance value is greater than or equal to the high-load variance threshold, it indicates that the system pressure fluctuates drastically and there is frequent water use; the electronic device determines the current water load state as a high-load state. When a low-impedance state is detected, the electronic device obtains the latest calculated pressure change rate value, calculates its absolute value, and compares it with a preset static pressure change rate threshold. If the absolute value of the pressure change rate is greater than the static pressure change rate threshold, it indicates that the system pressure is changing rapidly and there is significant water usage activity. The electronic equipment determines the current water load state as a high load state. If the absolute value of the pressure change rate is less than the static pressure change rate threshold, it indicates that the system pressure is relatively stable and water usage activity is low. The electronic equipment determines the current water load state as a low load state.
[0049] S303: If the current water load is high, set the intermediate valve command to a close command or a keep-close command; if the current water load is not high, set the intermediate valve command to a basic valve command.
[0050] Specifically, when a high water load is detected, it indicates active water usage or high demand. To ensure timely and sufficient hot water supply, priority should be given to maintaining the hot water circulation system. Therefore, the electronic equipment checks the current valve status. If the pump is set to closed, the intermediate valve command is set to closed or remain closed; if the pump is set to open, the intermediate valve command is set to remain open to maintain circulation and ensure uninterrupted hot water supply during periods of high water load. When a low water load is detected, the system's water demand is relatively stable and not urgent. In this case, valve control can be performed according to basic temperature control logic without a special load response strategy. Therefore, the electronic equipment directly sets the intermediate valve command to the basic valve command.
[0051] S304: If the regulating water pump is in the off state, the cumulative off time of the regulating water pump will be updated to the sum of the cumulative off time of the regulating water pump in the previous hot water control cycle and the current hot water control cycle duration. If the regulating water pump is in the on state, the cumulative off time of the regulating water pump will be cleared to zero.
[0052] Specifically, when the system detects that the regulating water pump is in a closed state, it indicates that the hot water circulation system is still in a stopped state within the current control cycle, and the duration of the regulating water pump's closure needs to be accumulated. The electronic device reads the accumulated duration of the regulating water pump's closure recorded in the previous hot water control cycle from the system memory, then adds it to the duration of the current hot water control cycle, and stores the calculated result as the updated accumulated duration of the regulating water pump's closure in the system memory, thus achieving continuous accumulation of the closure duration. When the system detects that the regulating water pump is in an open state, it indicates that the hot water circulation system has switched from a closed state to an open state, and the previously counted duration of the regulating water pump's closure has lost its continuity, requiring a recalculation. Therefore, the electronic device resets the value of the accumulated duration of the regulating water pump's closure to zero, clears the previous accumulated record, and prepares for the next possible regulating water pump closure cycle statistics.
[0053] S305: If the cumulative time of the regulating water pump being shut down is greater than or equal to the preset maximum allowable shut-down time, then the final valve command is set to the open command; if the cumulative time of the regulating water pump being shut down is less than the maximum allowable shut-down time, then the final valve command is set to the intermediate valve command.
[0054] Specifically, the electronic device compares the cumulative shutdown time of the regulating water pump updated in step S304 with the system's preset maximum allowable shutdown time. If the comparison shows that the cumulative shutdown time of the regulating water pump is greater than or equal to the maximum allowable shutdown time, it indicates that the hot water circulation system has been shut down for too long, and the water temperature in the hot water pipes may have dropped significantly. Continuing to keep it closed will affect the user's hot water experience. To avoid users having to wait too long for hot water when turning on the tap, the electronic device forcibly sets the final valve command to an open command, initiating hot water circulation to restore the pipe temperature. This command has the highest priority and overrides the judgment results of other control logic. If the comparison shows that the cumulative shutdown time of the regulating water pump is less than the maximum allowable shutdown time, it indicates that the valve shutdown time is still within a reasonable range, the hot water pipe temperature has not dropped excessively, and the system can continue to operate according to the normal control logic. Therefore, the electronic device sets the final valve command to a predetermined intermediate valve command.
[0055] Based on the above embodiments, as an optional embodiment, S302: the step of determining the current water load state based on the water supply pressure value within the preset time window and the current hydraulic impedance state may specifically include the following steps: S401: Calculate the pressure change rate and pressure variance based on the water supply pressure value within the preset time window.
[0056] Specifically, the electronic device first retrieves multiple water supply pressure samples arranged chronologically within a preset time window from the system memory, forming a pressure data sequence for statistical analysis. For calculating the pressure change rate, the electronic device uses the adjacent data point difference method to calculate the difference between every two adjacent pressure values in the time series, and then divides it by the corresponding time interval to obtain the instantaneous pressure change rate. The system can further calculate the average of all instantaneous pressure change rates within the preset time window as the representative pressure change rate for that time window, or select the latest instantaneous pressure change rate as the current pressure change rate. For calculating the pressure variance, the electronic device first calculates the arithmetic mean of all water supply pressure values within the preset time window as a reference benchmark. Then, it calculates the deviation of each pressure sample value from the average value, squaring each deviation value to eliminate the influence of positive or negative signs. The electronic device sums all the squared deviation values, then divides by the sample size minus one to obtain the sample variance, which is used as the pressure variance value within that time window.
[0057] S402: When the current hydraulic impedance state is high impedance state, if the pressure variance value is greater than or equal to the preset low load variance threshold and less than the preset high load variance threshold, then the current water load state is determined to be non-high load state; if the pressure variance value is greater than or equal to the high load variance threshold, then the current water load state is determined to be high load state.
[0058] Specifically, when the electronic device detects a high-impedance hydraulic impedance state, the system uses a water load judgment logic based on pressure variance for analysis. The electronic device compares the pressure variance value with two preset variance thresholds. When the pressure variance value is greater than or equal to the low-load variance threshold and strictly less than the high-load variance threshold, it indicates that the system pressure fluctuation is at a moderate level. It is neither a completely static low-load state nor a drastically fluctuating high-load state. At this time, there is a moderate level of water usage activity, but it will not cause a significant impact on the system. Therefore, the electronic device determines the current water load state as a non-high-load state, and the system can operate according to the conventional control strategy. When the pressure variance value is greater than or equal to the high-load variance threshold, it indicates that the water supply pressure has fluctuated frequently and drastically within the preset time window, reflecting intensive water usage or a large flow of water demand in the system. In this case, to ensure the timeliness and stability of hot water supply, the electronic device determines the current water load state as a high-load state.
[0059] S403: When the current hydraulic impedance state is low impedance state, obtain the current pressure change rate. If the absolute value of the current pressure change rate is greater than the preset static pressure change rate threshold, determine that the current water load state is high load state. If the absolute value of the current pressure change rate is less than the preset static pressure change rate threshold, determine that the current water load state is not high load state.
[0060] Specifically, when the electronic device detects a low hydraulic impedance state, the system switches to a water load judgment logic based on the pressure change rate for analysis. The electronic device acquires the current pressure change rate value and performs an absolute value calculation to eliminate differences in the direction of pressure increase or decrease, focusing on analyzing the severity of pressure changes. When the calculated absolute value of the current pressure change rate is greater than a preset static pressure change rate threshold, it indicates that the system pressure has still experienced a relatively significant and rapid change even under low impedance conditions. This usually means that there is a sudden surge in water usage or multiple water points starting simultaneously. In this case, to ensure that the hot water circulation system can respond promptly to high-intensity water demand, the electronic device determines the current water load state as a high load state. When the absolute value of the current pressure change rate is less than the static pressure change rate threshold, it indicates that the system pressure changes slowly and steadily, reflecting that there is little water usage activity or no large-flow water usage in the current period, and the system is operating relatively stably. Therefore, the electronic device determines the current water load state as a non-high load state.
[0061] Based on the above embodiments, as an optional embodiment, S104: the step of calculating the water supply parameters based on the water supply pressure value and adjusting the water pump operating status may specifically include the following steps: S501: Select the corresponding PID control parameter group according to the current hydraulic impedance state.
[0062] In the embodiments of this application, the PID control parameter group refers to the set of parameters, namely the proportional gain coefficient, integral time constant and derivative time constant, used for temperature control of hot water circulation system. Different parameter combinations correspond to different control response characteristics and stability performance.
[0063] Specifically, when the current hydraulic impedance state is high impedance, the system faces significant flow resistance and a relatively slow heat transfer response. The electronic equipment selects a PID control parameter set optimized for high impedance conditions. This parameter set typically features a large proportional gain coefficient to enhance the response to temperature deviations, a small integral time constant to accelerate the elimination of steady-state errors, and a moderate derivative time constant to provide necessary lead compensation without introducing excessive noise. Conversely, when the current hydraulic impedance state is low impedance, the system experiences less flow resistance and a relatively fast heat transfer response. The electronic equipment selects a PID control parameter set optimized for low impedance conditions. This parameter set employs a relatively small proportional gain coefficient to avoid system oscillations caused by over-response, a large integral time constant to provide a smooth error elimination process, and a small derivative time constant to reduce sensitivity to measurement noise.
[0064] S502: Determine the target water supply pressure required at present based on the operating status of the regulating water pump; calculate the water supply pressure deviation based on the target water supply pressure and the water supply pressure value; and calculate the PID base frequency based on the PID control parameter group and the water supply pressure deviation.
[0065] Specifically, the electronic device first executes the logic for determining the target water supply pressure based on the operating status of the regulating water pump. The regulating water pump's operating status includes both on and off states, and the system's water supply pressure requirements differ significantly between these states. The electronic device retrieves the baseline target water supply pressure corresponding to the current operating mode from a preset mode-threshold mapping table as the benchmark value for pressure control. If the regulating water pump is off, the system enters the pre-pressurization judgment process. The electronic device calculates the predicted remaining time based on the current return water temperature value. This predicted remaining time represents the estimated time required for the return water temperature to naturally decrease to the baseline cycle opening temperature threshold from the current moment. When the predicted remaining time is less than or equal to the preset pre-pressurization advance time, it indicates that the valve is about to open and enter the cycle mode. At this time, the electronic device calculates the target water supply pressure as the sum of the baseline target water supply pressure and the preset pre-pressurization pressure increment, preparing for cycle startup by establishing pressure in advance. When the predicted remaining time is greater than the preset pre-pressurization advance time, it indicates that there is still a long time before the next cycle startup. The electronic device sets the target water supply pressure to the baseline target water supply pressure to maintain the normal pressure level. If the water pump is set to the on state, the electronic equipment will directly set the target water supply pressure to the basic target water supply pressure.
[0066] Subsequently, the electronic device calculates the water supply pressure deviation, subtracting the current actual water supply pressure from the target water supply pressure to obtain the pressure deviation signal. Based on this water supply pressure deviation and the selected PID control parameter set, the electronic device executes the PID control algorithm calculation process. The system calculates the control outputs for the proportional, integral, and derivative terms respectively. The proportional term equals the proportional gain coefficient multiplied by the current pressure deviation, the integral term equals the integral gain coefficient multiplied by the cumulative value of historical pressure deviations, and the derivative term equals the derivative gain coefficient multiplied by the rate of change of the pressure deviation. The electronic device weighted and sums the three control outputs to obtain the total output value of the PID controller, which serves as the PID fundamental frequency.
[0067] S503: Determines water supply parameters based on PID base frequency, pump operating status, and final valve commands.
[0068] Specifically, when the water pump is set to the off state and the final valve command is an open command, it indicates that the valve is about to switch from the off state to the open state. At this time, the system pressure will drop rapidly due to the sudden increase in water flow. To prevent the impact of the sudden pressure drop on the user experience, the electronic equipment calculates the feedforward compensation amount to the preset valve opening speed compensation value and increases the water pump speed in advance to maintain pressure stability. When the water pump is set to the open state and the final valve command is a close command, it indicates that the valve is about to switch from the open state to the closed state. At this time, the system pressure will rise rapidly due to the sudden decrease in water flow. To avoid excessive pressure impacting the pipeline and equipment, the electronic equipment calculates the feedforward compensation amount to the preset valve closing speed compensation value and reduces the water pump speed in advance to prevent pressure overshoot. When the water pump is set to the off state and the final valve command is a hold-close command, it indicates that the valve remains closed and does not switch. The system operation is relatively stable, and the electronic equipment sets the feedforward compensation amount to zero, relying solely on PID feedback control to meet the pressure regulation requirements. When the water pump is set to the open state and the final valve command is to remain open, it indicates that the valve remains open and does not switch, and the system is also in steady-state operation. The electronic equipment sets the feedforward compensation to zero.
[0069] Next, the electronic equipment adds the PID base frequency and the feedforward compensation value to obtain the initial water supply parameters, which combine the functions of feedback control and feedforward compensation. To ensure the safe operation of the water pump and prevent the control signal from exceeding the physical limitations of the equipment, the electronic equipment performs amplitude limiting processing on the initial water supply parameters. The system first performs upper limit amplitude limiting; when the initial water supply parameters exceed the preset maximum allowable frequency value, it limits them to the maximum allowable frequency value to prevent the water pump from overloading. Subsequently, it performs lower limit amplitude limiting; when the initial water supply parameters are lower than the preset minimum operating frequency value, it limits them to the minimum operating frequency value or zero to prevent the water pump from operating in an inefficient range or to achieve complete shutdown. After the upper and lower limit amplitude limiting processing, the electronic equipment obtains the final water supply parameters.
[0070] Based on the above embodiments, as an optional embodiment, S502: the step of determining the current target water supply pressure according to the operating status of the water pump may specifically include the following steps: S601: Obtain the basic target water supply pressure corresponding to the current operating mode from the preset mode-threshold mapping table; if the water pump operating status is adjusted to the off state, calculate the predicted remaining time based on the return water temperature value. The predicted remaining time represents the time required from the current moment until the return water temperature value drops to the basic circulation opening temperature threshold.
[0071] Specifically, the electronic equipment retrieves the corresponding baseline target water supply pressure value from a preset mode-threshold mapping table based on the current system operating mode. Different operating modes correspond to different water demand and energy-saving requirements. For example, in energy-saving mode, the baseline target water supply pressure is relatively low to reduce energy consumption; in high-efficiency mode, the baseline target water supply pressure is relatively high to ensure rapid response; and in standard mode, the baseline target water supply pressure is at a medium level to balance performance and energy consumption. The electronic equipment directly obtains the pressure benchmark value that should be maintained in the current mode through table lookup, providing a target reference for subsequent pressure control.
[0072] When the electronic equipment detects that the regulating water pump is in the off state, the system initiates the calculation process for predicting the remaining time. Since the valve is closed, indicating no hot water circulation, the water temperature in the return pipe will gradually decrease due to heat loss. When the temperature drops to the basic circulation start temperature threshold, the system will automatically activate the circulation function. The electronic equipment first calculates the temperature difference between the current return water temperature and the basic circulation start temperature threshold, and then calculates the real-time temperature drop rate based on the preset temperature drop rate coefficient and the current ambient temperature compensation parameter. The predicted remaining time equals the temperature difference divided by the real-time temperature drop rate, i.e., predicted remaining time = (current return water temperature - basic circulation start temperature threshold) / (temperature drop rate coefficient × ambient temperature compensation parameter).
[0073] S602: When the predicted remaining time is less than or equal to the preset pre-pressurization advance time, calculate the target water supply pressure as the sum of the basic target water supply pressure and the preset pre-pressurization pressure increment; when the predicted remaining time is greater than the preset pre-pressurization advance time, set the target water supply pressure to the basic target water supply pressure.
[0074] In the embodiments of this application, the pre-charge advance time refers to the length of the time window during which the system performs pressure pre-adjustment in advance before predicting that the cycle is about to start. This parameter determines the timing of the pressure pre-charge operation.
[0075] Specifically, the electronic device compares the calculated predicted remaining time with the preset pre-pressurization advance time. When the predicted remaining time is less than or equal to the preset pre-pressurization advance time, it indicates that the time before the automatic start of the hot water circulation system has entered the pre-pressurization operation time window. At this time, the system needs to establish a higher water supply pressure in advance to prepare for the upcoming circulation start-up. The electronic device executes the pre-pressurization pressure calculation logic, mathematically adding the basic target water supply pressure to the preset pre-pressurization pressure increment to obtain the increased target water supply pressure value, i.e., target water supply pressure = basic target water supply pressure + pre-pressurization pressure increment. By increasing the water supply pressure in advance, the system can ensure sufficient pressure reserve at the moment the valve opens, avoiding a sudden drop in water supply pressure caused by a sudden increase in water demand, thus ensuring that users can obtain stable water supply pressure and a good water experience at the beginning of the circulation start-up.
[0076] When the predicted remaining time is greater than the preset pre-pressurization advance time, it indicates that there is still a long time interval before the next hot water circulation starts. Pre-pressurization is not required at this moment, and the system can continue to maintain its normal pressure control state to achieve better energy savings. The electronic equipment directly sets the target water supply pressure to the base target water supply pressure value obtained from the mode-threshold mapping table without any pressure increment compensation.
[0077] Based on the above embodiments, as an optional embodiment, S503: the step of determining the water supply parameters according to the PID base frequency, the adjusted water pump operating status, and the final valve command may specifically include the following steps: S701: If the regulating water pump is in the closed state and the final valve command is the open command, the feedforward compensation is calculated to the preset valve opening speed compensation value. If the regulating water pump is in the open state and the final valve command is the close command, the feedforward compensation is calculated to the preset valve closing speed compensation value. If the regulating water pump is in the closed state and the final valve command is the keep closed command, the feedforward compensation is set to zero. If the regulating water pump is in the open state and the final valve command is the keep open command, the feedforward compensation is set to zero.
[0078] In this embodiment, the feedforward compensation value refers to a pre-set pump frequency compensation value based on valve state changes, used to proactively address predictable disturbances to the system's water supply pressure caused by valve actions. The valve opening speed compensation value refers to the pre-set pump speed increment value to offset the pressure drop caused by a sudden increase in water flow when the valve is about to switch from a closed to an open state. The valve closing speed compensation value refers to the pre-set pump speed decrement value to prevent a pressure rise caused by a sudden decrease in water flow when the valve is about to switch from an open to a closed state.
[0079] Specifically, the electronic equipment determines the required feedforward compensation value under the current operating condition through logical judgment. When the water pump is in the closed state and the final valve command is an open command, it indicates that the system is about to perform a valve switching action from closed to open. At this time, the water flow in the pipeline will rapidly increase from zero to normal flow, and the water supply pressure will show a significant downward trend due to the sudden increase in water load. In order to actively counteract this pressure disturbance and maintain the stability of the water supply pressure, the electronic equipment calculates the feedforward compensation value to the preset valve opening speed compensation value, and prevents the pressure drop by increasing the water pump operating frequency in advance.
[0080] When the water pump is set to the open state and the final valve command is set to close, it indicates that the system is about to switch the valve from open to closed. At this time, the water flow in the pipeline will rapidly decrease from the normal flow rate to zero, and the water supply pressure will show a significant upward trend due to the sudden decrease in the water load. In order to actively counteract this pressure disturbance and avoid the adverse effects of pressure overshoot on the system, the electronic equipment calculates the feedforward compensation amount to the preset valve closing speed compensation value, and prevents the pressure rise phenomenon by reducing the water pump operating frequency in advance.
[0081] When the regulating pump is in the closed state and the final valve command is a hold-close command, it indicates that the valve will remain closed without any change in state. The system's output water volume remains zero, and the operating state is relatively stable, with no pressure disturbances caused by valve action. The electronic equipment sets the feedforward compensation to zero, and good pressure regulation can be achieved solely through PID feedback control. When the regulating pump is in the open state and the final valve command is a hold-open command, it indicates that the valve will remain open without any change in state. The system's output water volume remains stable, and the operating state is balanced. Similarly, there are no pressure disturbances caused by valve action. The electronic equipment sets the feedforward compensation to zero, and normal pressure regulation requirements can be met through PID feedback control.
[0082] S702: The initial water supply parameters are obtained by adding the PID base frequency and the feedforward compensation amount; the upper limit amplitude and lower limit amplitude of the initial water supply parameters are then applied to obtain the water supply parameters.
[0083] In this embodiment of the application, the initial water supply parameter refers to the unrestricted pump control frequency parameter obtained by adding the PID base frequency and the feedforward compensation amount.
[0084] Specifically, the electronic device performs a mathematical addition operation on the PID base frequency value and the feedforward compensation value. The calculation formula is: Initial water supply parameter = PID base frequency + feedforward compensation value, resulting in an initial water supply parameter value that incorporates both feedback control and feedforward compensation. Next, the electronic device performs upper limit amplitude limiting processing on the initial water supply parameter, determining whether the initial water supply parameter is greater than a preset maximum allowable frequency threshold. If the initial water supply parameter is greater than the maximum allowable frequency threshold, the initial water supply parameter value is reassigned to the maximum allowable frequency threshold; otherwise, the initial water supply parameter value remains unchanged. Subsequently, the electronic device performs lower limit amplitude limiting processing on the parameter after the upper limit amplitude limiting, determining whether the parameter is less than a preset minimum allowable frequency threshold. If the parameter is less than the minimum allowable frequency threshold, the parameter value is reassigned to the minimum allowable frequency threshold; otherwise, the parameter value remains unchanged. After the upper limit amplitude limiting and lower limit amplitude limiting processing, the electronic device obtains the final water supply parameter.
[0085] Figure 2 This is a schematic diagram of a system structure provided in an embodiment of this application, showing the composition and connection relationship between the programmable controller, temperature / pressure controller, frequency converter and heat source, hot water tank, heating circulation pump, hot water supply pump, solenoid valve and supply and return water pipelines.
[0086] The following describes an exemplary energy-saving control device for hot water supply provided in an embodiment of this application. Figure 3 This is an exemplary hardware structure diagram of a hot water supply energy-saving control device provided in an embodiment of this application.
[0087] In some embodiments, the energy-saving control device for hot water supply is a computer device or includes a computer device. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device stores data. The network interface of the computer device is used to communicate with other external terminals or servers via a network connection. In some embodiments, the network interface can be a wired network interface; in some embodiments, the network interface can also be a wireless network interface. When the computer program is executed by the processor, it implements the methods in the embodiments of this application.
[0088] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0089] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0090] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".
[0091] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0092] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for energy-saving control of hot water supply, characterized in that, The method includes: Real-time acquisition of water supply pressure, return water temperature, and current operating mode; Obtain the operating status of the regulating water pump in the current hot water control cycle, and determine the basic valve command based on the current operating mode, the operating status of the regulating water pump, and the return water temperature value; The current hydraulic impedance state is determined based on the operating status of the regulating water pump, and the basic valve command is adjusted according to the hydraulic impedance state to obtain the final valve command. The water supply parameters are calculated based on the water supply pressure value and the operating status of the regulating water pump, and the hot water supply is controlled based on the water supply parameters and the final valve command.
2. The energy-saving control method for hot water supply according to claim 1, characterized in that, The regulating water pump's operating state includes an on state and a off state. Determining the basic valve command based on the current operating mode, the regulating water pump's operating state, and the return water temperature value includes: Obtain the basic cycle start temperature threshold and basic cycle stop temperature threshold corresponding to the current operating mode from the preset mode-threshold mapping table, wherein the basic cycle start temperature threshold is less than the basic cycle stop temperature threshold; When the regulating water pump is in the off state, if the return water temperature is less than or equal to the basic circulation opening temperature threshold, the basic valve command is set to open command; if the return water temperature is greater than the basic circulation opening temperature threshold, the basic valve command is set to remain closed command. When the regulating water pump is in the on state, if the return water temperature is greater than or equal to the basic circulation stop temperature threshold, the basic valve command is set to the closed command; if the return water temperature is less than the basic circulation stop temperature threshold, the basic valve command is set to the kept open command.
3. The energy-saving control method for hot water supply according to claim 1, characterized in that, The step of determining the current hydraulic impedance state based on the operating state of the regulating water pump, and adjusting the basic valve command according to the hydraulic impedance state to obtain the final valve command, includes: If the regulating water pump is in the off state, the current hydraulic impedance state is determined to be a high impedance state; if the regulating water pump is in the on state, the current hydraulic impedance state is determined to be a low impedance state. The current water load status is determined based on the water supply pressure value within the preset time window and the current hydraulic impedance status. If the current water load state is a high load state, the intermediate valve command is set to a close command or a keep-close command; if the current water load state is not a high load state, the intermediate valve command is set to the basic valve command. If the regulating water pump is in the off state, the cumulative off time of the regulating water pump is updated to the sum of the cumulative off time of the regulating water pump in the previous hot water control cycle and the current hot water control cycle duration. If the regulating water pump is in the on state, the cumulative off time of the regulating water pump is cleared to zero. If the cumulative shutdown time of the regulating water pump is greater than or equal to the preset maximum allowable shutdown time, the final valve command is set to an open command; if the cumulative shutdown time of the regulating water pump is less than the maximum allowable shutdown time, the final valve command is set to the intermediate valve command.
4. The energy-saving control method for hot water supply according to claim 3, characterized in that, The step of determining the current water load state based on the water supply pressure value within a preset time window and the current hydraulic impedance state includes: Calculate the pressure change rate and pressure variance based on the water supply pressure value within the preset time window; When the current hydraulic impedance state is a high impedance state, if the pressure variance value is greater than or equal to a preset low load variance threshold and less than a preset high load variance threshold, then the current water load state is determined to be a non-high load state; if the pressure variance value is greater than or equal to the high load variance threshold, then the current water load state is determined to be a high load state. When the current hydraulic impedance state is a low impedance state, the current pressure change rate is obtained. If the absolute value of the current pressure change rate is greater than the preset static pressure change rate threshold, the current water load state is determined to be a high load state. If the absolute value of the current pressure change rate is less than the preset static pressure change rate threshold, the current water load state is determined to be a non-high load state.
5. The energy-saving control method for hot water supply according to claim 1, characterized in that, The calculation of water supply parameters based on the water supply pressure value and the operating status of the regulating water pump includes: Select the corresponding PID control parameter group based on the current hydraulic impedance state; The target water supply pressure required at present is determined based on the operating status of the water pump. Calculate the water supply pressure deviation based on the target water supply pressure and the water supply pressure value, and calculate the PID base frequency based on the PID control parameter group and the water supply pressure deviation. The water supply parameters are determined based on the PID base frequency, the operating status of the regulating water pump, and the final valve command.
6. The energy-saving control method for hot water supply according to claim 5, characterized in that, Determining the current target water supply pressure based on the operating status of the regulating water pump includes: Obtain the basic target water supply pressure corresponding to the current operating mode from the preset mode-threshold mapping table; If the regulating water pump is in the off state, the predicted remaining time is calculated based on the return water temperature value. The predicted remaining time represents the time required from the current moment until the return water temperature value drops to the basic circulation start temperature threshold. When the predicted remaining time is less than or equal to the preset pre-pressurization advance time, the target water supply pressure is calculated as the sum of the basic target water supply pressure and the preset pre-pressurization pressure increment. If the predicted remaining time is greater than the preset pre-pressurization advance time, the target water supply pressure is set as the basic target water supply pressure.
7. The energy-saving control method for hot water supply according to claim 5, characterized in that, The process of determining water supply parameters based on the PID base frequency, the regulating pump operating status, and the final valve command includes: If the regulating water pump is in a closed state and the final valve command is an open command, then the feedforward compensation is calculated as a preset valve opening speed compensation value. If the regulating water pump is in an open state and the final valve command is a closed command, then the feedforward compensation is calculated as a preset valve closing speed compensation value. If the regulating water pump is in a closed state and the final valve command is a keep-close command, then the feedforward compensation is set to zero. If the regulating water pump is in an open state and the final valve command is a keep-open command, then the feedforward compensation is set to zero. The initial water supply parameters are obtained by adding the PID base frequency and the feedforward compensation amount; The initial water supply parameters are limited by an upper limit and a lower limit to obtain the water supply parameters.
8. A hot water supply energy-saving control device, characterized in that, The hot water supply energy-saving control device includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the hot water supply energy-saving control device to perform the method as described in any one of claims 1-7.
9. A computer program product containing instructions, characterized in that, When the computer program product is run on the hot water supply energy-saving control device, the hot water supply energy-saving control device performs the method as described in any one of claims 1-7.
10. A computer-readable storage medium comprising instructions, characterized in that, When the instruction is executed on the hot water supply energy-saving control device, the hot water supply energy-saving control device performs the method as described in any one of claims 1-7.