An emergency mutual backup intelligent control method for water supply source failure
By using a state machine-based hierarchical control method, the system achieves fault prediction and smooth switching in the emergency backup system for water supply source failures. This solves problems such as delayed fault triggering, large impact on backup water sources, and interrupted rotation in existing technologies, thereby improving the continuity and reliability of the water supply system.
Patent Information
- Application Number
- CN202611287722.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-24
- Publication Date
- 2026-11-27
AI Technical Summary
The existing emergency backup system for water supply source failures has problems such as delayed fault triggering, large impact from direct start-up of backup water sources, crude switching control, disconnect between rotation and backup, and reliance on manual fault recovery, resulting in insufficient continuity and reliability of the water supply system.
By adopting a state machine-based hierarchical control method, a closed-loop control architecture is constructed through fault classification and identification, gradual pre-start, synchronous and seamless switching of valves and pumps, and integrated fault self-healing and rotation, so as to realize the early prediction, smooth switching and autonomous operation and maintenance of multi-source water systems.
It improves the responsiveness and continuous operation of the water supply system, reduces the hydraulic shock during switching, ensures the stability and autonomous operation and maintenance capabilities of the water supply system, and solves the multi-dimensional defects of traditional systems.
Smart Images

Figure CN123177338A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital processing and control technology, and more specifically, to an intelligent control method for emergency backup in the event of a water supply source failure. Background Technology
[0002] In urban multi-source water supply systems, digital processing devices are typically used to achieve mutual backup switching control between primary and backup water sources. By collecting parameters such as pipeline pressure and pump operating status, switching commands are triggered to ensure the continuity and stability of the water supply process.
[0003] Existing digitally controlled water source backup systems can achieve automated fault switching, reducing manual operation intensity and shortening water outage time under obvious faults to some extent. However, there are still multi-dimensional defects in practical engineering applications: On the one hand, the fault triggering mechanism is lagging. Most systems only use hard faults such as pump shutdown and water pressure drop below the threshold as switching trigger conditions, lacking classification, identification, and early response to early hidden faults such as water intake blockage, pump mechanical deterioration, and intrusion of characteristic pollutants. The backup water source lacks a preparation process before switching, and direct start-up can easily generate a large hydraulic shock. On the other hand, the switching control method is crude, generally adopting a hard switching mode of stopping the main pump first and then starting the backup pump or quick valve switching, lacking a coordinated matching between the hydraulic inertia of the pipeline network and the operating characteristics of valves and pumps. The logic is flawed, easily leading to sudden changes in pipeline pressure and water hammer risks, with a particularly significant impact on end-users. Furthermore, the regular rotation and emergency backup are independent of each other; water source rotation is only performed on a fixed cycle, lacking dynamic adjustment based on the actual health status of the equipment. The rotation process also lacks simultaneous verification of the backup system's complete switching capability, and the long-term idleness of the backup water source can easily lead to its failure. Moreover, there is a lack of self-healing mechanisms after switching; although the control process terminates upon completion of the water source switch, it is difficult to automatically locate the fault type and trigger auxiliary measures. The restoration of the faulty water source relies entirely on manual investigation, resulting in a long fault recovery cycle. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides an intelligent control method for emergency backup of water supply sources. Based on a programmable digital program control architecture, it constructs a state machine-based hierarchical control method, integrating core technologies such as fault classification and identification, progressive pre-start, synchronous and disturbance-free switching of valves and pumps, transient pressure constraint regulation, fault self-healing handling, and rotational backup. This enables advance prediction, smooth switching, and autonomous operation and maintenance of multi-source water systems, improving the operational reliability and control precision of the water supply backup system.
[0005] To achieve the above objectives, the present invention provides the following technical solution: an intelligent control method for emergency backup of water supply source failure, comprising: S1. Build a closed-loop control architecture and simultaneously complete the calibration, classification, and storage of multi-dimensional data; S2. Divide into multiple fault modes, obtain the corresponding fault data for each, and combine with the graded early warning threshold to realize automatic transition triggering of operating status and fault type marking. S3. Match the differentiated total pre-start duration according to the fault type, and simultaneously connect to the three progressive stages to prepare for the commissioning of the backup water source, supporting reverse pre-start exit when the fault deteriorates and falls back. S4. Based on the goal of constant total water supply flow during the switching process, obtain the valve-pump rate matching relationship, distinguish between nonlinear and linear intervals to perform differentiated switching control, and realize smooth flow relay and seamless handover of main and backup water sources. S5. Based on the upper limit of the valve opening change rate constrained by the hydraulic inertia of the pipeline network, and superimposed with the closed-loop correction and regulation of the real-time pipeline network pressure, a composite control architecture is formed to suppress pressure fluctuations during the switching process. S6. After the switch is completed, trace the main fault type, automatically lock the automatic return permission of the faulty water source, trigger the corresponding auxiliary handling procedure according to the fault type, and perform an unloaded availability test to verify the recovery status after the handling is completed. S7. Dynamically adjust the rotation cycle based on the actual deterioration rate of the equipment, reuse the entire state machine switching logic to perform regular water source rotation, and simultaneously complete the backup water source load test and parameter calibration verification. S8. Based on the measured operating data of each switch, the core control parameters are fitted and corrected, and full benchmark verification is performed regularly to ensure that the control logic continuously adapts to the gradually changing operating conditions of the equipment and pipeline network.
[0006] Preferably, the four-state closed-loop control architecture is built within a programmable digital controller, defining trigger boundaries, execution unit sets, and state transition rules for normal water supply state, early warning and pre-start state, switching transition state, and steady-state self-healing state. The normal water supply state represents the system's normal operating condition; the early warning and pre-start state is the preparatory state after a fault precursor is triggered; the switching transition state is the execution state for the handover of primary and backup water sources; and the steady-state self-healing state is the fault handling and recovery state after the switch is completed. The calibration classification storage specifically includes equipment process reference parameter calibration and pipeline characteristic parameter calibration. All calibration parameters are mapped to the corresponding control logic according to their respective control states. The equipment process reference parameters include: the reference water level difference before and after the rotating filter. Rated absolute pressure of water pump suction pipe Reference value for oil concentration in water Rated insulation resistance of motor stator winding Rated water supply pressure of the pipeline network Permissible pressure deviation of pipeline network Valve rated relative opening change rate The baseline rotation cycle and the steady-state determination time.
[0007] Preferably, the multiple fault modes are classified into hydraulic blockage, water pollution, and mechanical deterioration, which correspond to the water level difference before and after the rotating filter screen. Absolute pressure of water pump suction pipe Oil concentration in water and the insulation resistance of the motor stator winding to ground The fault data includes single-type deterioration degree and comprehensive deterioration degree; among which, the hydraulic blockage deterioration degree is calculated by the filter screen water level difference and the suction pipe pressure, the water pollution deterioration degree is calculated by the oil concentration in the water, and the mechanical deterioration degree is calculated by the motor insulation resistance. , Simultaneously, all single-type degradation degrees are subject to lower limit constraints: if the calculation result is less than 0, the corresponding degradation degree is taken as 0, that is, when the parameters are better than the baseline state, it is considered as no degradation; the maximum value among the three single-type degradation degrees is taken as the comprehensive degradation degree, and a 10-second sliding window and a 1-second sampling step size are used to calculate the rate of change of the comprehensive degradation degree per unit time; the automatic transition triggering and fault type marking method is as follows: when the comprehensive degradation degree reaches the first-level warning threshold, the system transitions from the normal water supply state to the warning pre-start state, and at the same time, the fault type is marked according to the fault category corresponding to the maximum value, and the corresponding pre-start total duration is matched.
[0008] Preferably, the matching rule for the differentiated pre-start total time is as follows: the corresponding pre-start total time is matched according to the fault type, and the faster the fault deterioration rate, the shorter the pre-start total time; the three progressive stages of backup water source commissioning preparation are executed in three consecutive stages: pipeline pre-charging and venting, water pump low-speed warm-up, and no-load pressure boosting and docking; the reverse pre-start exit: if the overall degradation degree falls below the first-level warning threshold during the pre-start process, the system exits the pre-start state in reverse order: first, the water pump speed is linearly reduced to the low-speed warm-up state, then the bypass water filling valve is closed, the electric venting valve is opened to release pressure, and finally the water pump is stopped, returning to the normal water supply state.
[0009] Preferably, the method for obtaining the valve-pump rate matching relationship is as follows: based on the core objective of a constant total water supply flow during the switching process, the flow rate decrease rate on the main water source side is equal to the flow rate increase rate on the backup water source side; under the premise that the pressure difference across the valve is approximately constant, the valve's relative flow rate change rate is proportional to its relative opening rate change rate; according to the pump similarity law, the pump's relative flow rate change rate is proportional to its relative speed change rate; thus, the matching ratio between the relative opening rate change rate and the relative speed rate change rate is derived; the method for executing differentiated switching control is as follows: when the overall degradation reaches the secondary switching threshold, the system transitions from the early warning pre-start state to the switching transition state; in the initial stage of switching, a fixed low opening rate change rate is adopted for operation; Once both valves have entered the 20%~80% linear range, the system switches to valve-pump synchronous slope matching control. The specific control process for the smooth relay and seamless handover of the main and backup water sources is as follows: the valves on the main water source side close linearly at the calculated rate, and the relative speed of the main water pump decreases synchronously according to the matching ratio; the valves on the backup water source side open linearly at the same rate, and the relative speed of the backup water pump increases synchronously according to the matching ratio. This ensures that the total water supply capacity of the main and backup water sources remains basically constant, significantly reducing flow fluctuations and avoiding obvious water supply interruptions. At the same time, a boundary protection rule is set: when the pipeline pressure deviation exceeds 1.2 times the allowable value, the valve and pump operation is automatically paused, maintaining the current opening and speed, and the switching continues after the pressure drops back to the allowable range.
[0010] Preferably, the closed-loop correction and adjustment method specifically involves: during the switching execution process, real-time acquisition of the pipeline water supply pressure. The pressure deviation is obtained and substituted into the closed-loop correction model to obtain the rate correction amount. ,in The rated relative opening change rate of the valve is used; at the same time, boundary constraints are applied to the rate correction amount: the absolute value of the correction amount does not exceed 30% of the reference rate; the composite control architecture is as follows: the upper limit of the rate obtained by hydraulic inertia constraint is used as the safety boundary, real-time pressure closed-loop correction is used as the accuracy adjustment means, the programmable digital controller superimposes the reference rate and the correction amount, and adjusts the action rate of the valves and pumps on both the main and backup sides in real time to constrain the pipeline pressure fluctuation amplitude within the allowable range.
[0011] Preferably, the method for tracing the dominant fault type is as follows: when the pipeline pressure stabilizes within the rated range and the duration reaches the steady-state determination time, the system transitions from the switching transition state to the steady-state self-healing state; fault type tracing is performed based on the single-type degradation data before the switch, and the fault category corresponding to the single-type degradation with the largest value is locked as the dominant fault; the method for automatically locking the automatic return permission of the faulty water source is as follows: after locking the dominant fault category, the automatic return permission of the faulty water source is automatically locked, prohibiting the faulty water source from directly entering the system without verification; the corresponding auxiliary handling procedures are triggered according to the fault category; the method for verifying the recovery state by the no-load availability test is as follows: after the auxiliary handling is completed, the system automatically performs the no-load availability test of the faulty water source, and the return lockout is released after the test is passed.
[0012] Preferably, the method for dynamically correcting the rotation cycle is as follows: during normal operation, the average rate of decrease in motor insulation resistance and the average rate of increase in filter screen water level difference are calculated cumulatively over a 24-hour statistical period, and then substituted into the rotation cycle correction coefficient formula to obtain the dynamic rotation cycle correction coefficient. Simultaneously, boundary constraints are applied to the rotation cycle correction coefficient, limiting its value range to [value range missing]. When the boundary is exceeded, the corresponding boundary value is taken; the actual rotation cycle is obtained by multiplying the benchmark rotation cycle by the correction coefficient; the specific method of the periodic water source rotation is as follows: when the running time reaches the actual rotation cycle, the system automatically triggers a complete water source switching process, fully executing the entire process of early warning pre-start, switching transition and steady-state self-healing, turning the original main water source into a backup and the original backup water source into the main water supply; the specific method of the backup water source load test and parameter calibration verification is as follows: the full process parameters collected during the rotation process are synchronously used for the calibration verification of the control benchmark, realizing the normalized verification of mutual backup capability.
[0013] Preferably, the method of fitting and correcting the core control parameters specifically involves: recording all operational data for each switch and rotation, fitting and correcting the core control parameters based on the measured data, and updating the control benchmark library; the method of full benchmark verification specifically involves: performing a full benchmark verification once after each set number of switches or rotations; the method of adapting to the gradually changing operating conditions of equipment and pipeline networks specifically involves: through continuous parameter calibration and benchmark verification, enabling the control logic to continuously adapt to three typical gradually changing operating conditions: equipment aging, pipeline scaling, and changes in water source conditions.
[0014] The technical effects and advantages of this invention are as follows: 1. This invention constructs a state machine-based hierarchical control system based on a programmable digital program control architecture. Through fault classification and identification and progressive three-stage pre-start control, it upgrades the passive switching triggered by traditional hard faults to predictive active preparation, solving the problems of delayed switching and large impact of direct start of backup water source in existing technologies. It not only ensures the timeliness of fault response, but also significantly reduces the hydraulic impact during the switching process, improves the continuous operation capability of the water supply system, and realizes unattended operation under full-process digital program control. 2. This invention adopts a composite switching control that combines valve-pump synchronous slope matching with pipeline network transient constraint closed-loop regulation. It establishes a strict match between the relative valve opening and the relative pump speed, and introduces hydraulic inertia and allowable deviation rate constraints to achieve a smooth and uninterrupted handover between the main and backup water sources. This solves the problems of large pressure fluctuations and water hammer caused by the traditional hard switching mode, effectively protects the safety of the pipeline network and equipment, and especially improves the water supply stability for users at the end of the pipeline network. 3. This invention sets up a steady-state self-healing state fault tracing interlock and auxiliary disposal control, extending the control boundary of water source mutual backup from the completion of switching to fault recovery. It can automatically locate the fault type and trigger the corresponding disposal procedure. At the same time, the interlock mechanism avoids the accidental release of faulty water sources, solving the problems of existing technologies that rely on manual investigation after a fault and have a long recovery cycle, and improving the system's autonomous operation and maintenance capabilities. 4. This invention uses a dynamic scheduling mechanism that integrates rotation and mutual backup to reuse the entire set of switching control logic to perform periodic rotation. It also dynamically adjusts the rotation cycle based on the actual deterioration rate of the equipment. Furthermore, the rotation process simultaneously completes the load test and parameter calibration of the backup water source. This solves the problems of traditional rotation and mutual backup being disconnected and the backup water source being prone to failure due to long-term idleness. It continuously ensures the reliability of the mutual backup system while balancing equipment wear and tear. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the method steps of the present invention; Figure 2 This is a flowchart of the three-stage progressive pre-start control process for the backup water source in S3 of the present invention. Figure 3 This is the flowchart of the valve-pump synchronization slope matching disturbance-free switching control for S4 of the present invention; Figure 4 This is a flowchart of the composite pressure regulation process in S5 of the present invention; Figure 5 The flowchart for fault tracing, healing, and interlocking control of S6 in this invention is shown. Detailed Implementation
[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0017] An intelligent control method for emergency backup of water supply source failures uses a programmable digital controller (PDC) as the control core, and is equipped with a water source monitoring unit, a pipeline monitoring unit, a pump execution unit, a valve execution unit, and a host computer monitoring unit. Through state transition-type hierarchical control logic, it realizes early response to failures, smooth and uninterrupted switching, and full-cycle self-healing management, effectively alleviating industry pain points such as switching lag and large hydraulic impact, and improving the operational reliability of the water source backup system. The closed-loop control body constructed by the PDC is communicatively connected to each monitoring unit, execution unit, and host computer monitoring unit to realize data acquisition, logic operation, and control command output. The system is set with four transitionable operating states: normal water supply state, early warning pre-start state, switching transition state, and steady-state self-healing state.
[0018] Both the water source monitoring unit and the pipeline monitoring unit are connected to the programmable digital controller (PDC) via RS485 bus and use the Modbus-RTU protocol to upload field-acquired data. The PDC is physically connected to the pump unit and valve unit via analog output channels to output control signals to drive equipment actions. The PDC also communicates with the host computer monitoring unit via PROFINET Ethernet to realize the uploading of operating data and the writing of calibration parameters.
[0019] The water source monitoring unit collects four types of water source data: filter differential pressure, suction pipe pressure, oil concentration in water, and motor insulation resistance. The pipeline monitoring unit collects two types of pipeline data: pipeline supply pressure and pipeline full-pipe status. After verification, both types of data are uploaded to the programmable digital controller. The controller completes the degradation degree calculation, status judgment, and control quantity calculation according to preset logic, and then issues speed control commands to the pump unit and opening control commands to the valve unit. At the same time, the controller periodically uploads all operating data to the host computer monitoring unit. After the host computer completes parameter fitting and calibration, it writes the updated reference parameters back to the controller, forming a complete data flow closed loop.
[0020] The core hardware main control unit adopts Siemens SIMATIC S7-1200 series CPU1214CDC / DC / DC, model 6ES7214-1AG40-0XB0; the core working frequency is 100MHz, with integrated working memory of 100KB, load memory of 4MB, and holding memory of 10KB; it has 14 digital inputs, 10 digital outputs, 2 analog inputs, and 2 analog outputs; it is equipped with 1 PROFINET Ethernet interface and 1 RS485 serial interface, and is powered by DC24V.
[0021] The key peripheral hardware includes a MIK-P300 diffused silicon pressure transmitter with a range of 0-1MPa, accuracy of ±0.2%FS, output of 4-20mA analog signal + RS485 digital signal, DC24V power supply, and IP65 protection rating. The communication protocol is Modbus-RTU, with a baud rate of 9600, 8 data bits, 1 stop bit, and even parity. The oil-in-water monitor uses the BO-200UV online oil-in-water analyzer from Boqu Instruments, with a measurement range of 0-50mg / L, accuracy of ±5%FS, RS485 Modbus-RTU output, and AC220V power supply. The motor insulation monitoring module uses the Schneider EOCR-ISEM insulation monitoring unit, with a measurement range of 0-100MΩ, response time ≤1s, RS485 interface, Modbus-RTU protocol, and AC220V power supply. The capacitive full-pipe detection unit is equipped with a dedicated DN200 PVC detection section and external capacitive electrodes. The measurement range is from empty to full pipe, corresponding to a capacitance value of 10-100pF. The accompanying signal transmitter module outputs a 4-20mA analog signal and is powered by DC24V. The electric regulating valve uses a Liangong ZDLP electric single-seat regulating valve with a nominal diameter of DN200, a pressure rating of 1.6MPa, linear flow characteristics, and an effective regulation range of 20%-80%. It receives a 4-20mA input control signal and an 4-20mA opening feedback signal, and is powered by AC220V. The water pump frequency converter uses a Huichuan MD290 series frequency converter with a rated power of 55kW, a speed range of 0-50Hz, supports 4-20mA analog speed regulation, and features an RS485 communication interface, Modbus-RTU protocol, and is powered by AC380V. The host computer uses an Advantech IPC-610L industrial computer, equipped with an Intel i5-10400 processor, 8GB DDR4 memory, and a 1TB 7200rpm hard drive; it is equipped with 2 gigabit Ethernet ports, 4 RS485 serial ports, and AC220V power supply.
[0022] The main control unit programming environment uses TIAPortalV17 engineering software, with the programming language being Structured Text (ST) + Sequential Function Chart (SFC). After compilation, the program is downloaded to the CPU for execution. All control logic is executed as periodic tasks, with a main loop cycle of 100ms. The host computer software environment uses Windows 10 IoT Enterprise Edition 2021 as its operating system. Configuration monitoring uses KingSCADA version 3.7 to achieve data visualization, alarm recording, and historical storage functions. Data storage uses SQL Server 2019 Express Edition, with a default storage period of 30 days. Parameter calibration uses a Python 3.9 environment, calling the least_squares function of the scipy 1.9.1 library to perform least squares fitting calculations.
[0023] In addition, all RS485 communication frames carry a CRC16 checksum. Data packets that fail the checksum are discarded and a retransmission command is triggered. The retransmission interval is 1 second. If three consecutive retransmissions fail, the sensor communication is considered faulty, an alarm is triggered, and the previous valid frame is used as a replacement. When the host computer is offline or communication is interrupted, the programmable logic control unit can independently run all control logic, only suspending the parameter self-calibration function. Basic fault backup, switching, and rotation functions are unaffected, ensuring minimum system availability. All reference parameters, current operating status, and cumulative operating data are stored in the CPU holding register, and the data is not lost after power failure. After power-on restart, the system automatically restores to the state before power failure. The entire process is completed automatically without manual operation.
[0024] As attached Figure 1 The method for intelligent emergency backup control of water supply source failure, as shown, includes the following steps: S1. Establish a closed-loop control architecture and simultaneously complete the calibration, classification, and storage of multi-dimensional data to provide a unified benchmark for the entire process of digital program control operations; The four-state closed-loop control architecture is built within a programmable digital controller (PDC), clearly defining the trigger boundaries, execution unit sets, and state transition rules for the normal water supply state, early warning and pre-start state, switching transition state, and steady-state self-healing state. The normal water supply state represents the system's normal operating condition; the early warning and pre-start state is the preparatory state after a fault precursor is triggered; the switching transition state is the execution state for the handover of primary and backup water sources; and the steady-state self-healing state is the fault handling and recovery state after the switch is completed. The calibration classification and storage specifically includes the calibration of equipment process reference parameters and pipeline characteristic parameters. All calibration parameters are mapped to the corresponding control logic according to their respective control states, serving as the reference basis for subsequent control calculations. The equipment process reference parameters include: the reference water level difference before and after the rotating filter. Unit: m; Rated absolute pressure of water pump suction pipe Unit: kPa; Reference value for oil concentration in water Unit: mg / L; Rated insulation resistance of motor stator winding ,unit Rated water supply pressure of the pipeline network Unit: kPa; Allowable pressure deviation of pipeline network Unit: kPa; Valve rated relative opening change rate ,unit Rated speed of water pump Unit: r / min; Rated flow rate of water pump ,unit Valve rated flow coefficient ,unit Rated insulation degradation rate of motor ,unit Rated clogging rate of the filter Unit: m / h; Baseline rotation cycle Units: d; Baseline pre-start time, s; Docking pressure difference, kPa; Steady-state determination time, s; Filter backwashing time, min; Connecting pipe empty state capacitance value. Unit: pF; Capacitance value of the interconnecting tube in full state. The unit is pF; where the pump rated flow rate and valve rated flow rate coefficient are used for the theoretical initial value calculation of the valve-pump synchronization matching ratio coefficient; the pipeline characteristic parameter is the pipeline hydraulic inertia time constant. The unit is seconds (s). Calibration is performed through a step test: the calibration condition is the system no-load commissioning stage (the pipeline network is not under load, and the water pump is running in closed-loop circulation), or a period of low load at night with sufficient pressure margin; during the test, the main water source pump runs at its rated speed, the pipeline network pressure is stable at the rated value, and the main water source outlet regulating valve is controlled by the programmable digital controller to perform a step change in opening from 100% to 90%, and the step response curve of the pipeline network pressure is collected simultaneously. The equivalent hydraulic inertia time constant is obtained by fitting the first-order inertial element method; during the test, a pressure stop protection is set. If the pressure deviation exceeds the allowable value, the test is immediately terminated and the valve is restored to full opening.
[0025] This step is performed when the system is first put into operation, after major equipment overhaul, or when manually triggered, and is a prerequisite step for the entire control method.
[0026] First, a four-state closed-loop control logic is built in the programmable digital controller. Four operating modes are predefined: normal water supply state, early warning and pre-start state, switching transition state, and steady-state self-healing state. At the same time, the trigger boundary, the execution device called, and the state jump rules for each state are clearly defined. Among them, the normal water supply state is the default operating condition of the system, the early warning and pre-start state is the preparation state after the fault precursor is triggered, the switching transition state is the execution state of the handover between the main and backup water sources, and the steady-state self-healing state is the fault handling and recovery state after the switching is completed.
[0027] Subsequently, the calibration and storage of two types of reference parameters were completed. All parameters were uniformly stored in the controller's holding register and the host computer database, serving as the unified basis for subsequent full-process calculations. The first type is the equipment process reference parameters, with specific values and definitions as follows: the reference water level difference before and after the rotating filter screen is 0.05m, which is the initial differential pressure value of the filter screen under rated operating conditions; the rated absolute pressure of the water pump suction pipeline is 0.4MPa, which is the standard pressure value of the water pump inlet under rated operating conditions; the reference value of oil concentration in the water is 0.5mg / L, which is the initial concentration value of qualified water source; the rated insulation resistance of the motor stator winding is 100MΩ, which is the initial insulation value of the dry motor; the rated water supply pressure of the pipeline network is 0.4MPa, which is the standard pressure value of municipal water supply; the allowable pressure deviation of the pipeline network is ±0.02MPa, which is the acceptable pressure fluctuation range on the user side; the rated relative opening change rate of the valve is 0.05 / s, which is the maximum allowable steady-state adjustment speed of the valve; the rated speed of the water pump is 1480r / min, which is the standard speed of the water pump operating at industrial frequency; the rated flow rate of the water pump is... This refers to the standard output flow rate of the water pump at its rated speed; the valve's rated flow coefficient. The parameters are: valve flow capacity under rated differential pressure; motor insulation rated degradation rate 0.1 MΩ / h, the natural aging rate of motor insulation under normal conditions; filter screen rated clogging rate 0.005 m / h, the clogging development rate of the filter screen under normal incoming water conditions; baseline replacement cycle 30 days, the default replacement interval under healthy equipment conditions; baseline pre-start time 60 seconds, the standard preparation time for backup water source under normal fault conditions; docking differential pressure 0.01 MPa, the threshold for judging backup water pump pressure matching; steady-state judgment time 30 seconds, the judgment time for pressure stabilization after switching; filter screen backwashing time 5 minutes, the standard rinsing time for filter screen cleaning; and the capacitance value of the connecting pipe in empty state 20 pF and in full state 48 pF, which are the dry and wet calibration benchmark values of the capacitance detection system. Among them, the rated flow rate of the water pump and the rated flow rate coefficient of the valve are used to calculate the theoretical initial value of the valve-pump synchronization matching ratio coefficient.
[0028] The second category is pipeline characteristic parameters, namely the pipeline hydraulic inertia time constant, which is calibrated through a step test. The test must be performed during the system's no-load commissioning phase (the pipeline is unloaded, and the pumps are operating in a closed-loop cycle) or at night during periods of low load and sufficient pressure margin. The test prerequisites are that a single main water source pump is operating at its rated speed and the pipeline pressure is stable within ±1% of its rated value. Subsequently, the controller controls the main water source outlet regulating valve to step down from 100% to 90%, and the pipeline pressure response curve is collected at 100ms sampling intervals. The equivalent hydraulic inertia time constant is calculated using a first-order inertial element fitting method, with a reference value of 8s. A pressure stop protection is set during the test: when the pipeline pressure deviation exceeds 1.5 times the allowable value, the test is immediately terminated and the valve is restored to the fully open state to avoid affecting normal water supply.
[0029] S2. Divide into multiple fault modes, obtain the corresponding fault data for each, and combine with the graded early warning threshold to realize automatic transition triggering of operating status and fault type marking. The multiple fault modes are classified into hydraulic blockage, water pollution, and mechanical deterioration, which correspond to the water level difference before and after the rotating filter screen, respectively. Absolute pressure of water pump suction pipe Oil concentration in water and the insulation resistance of the motor stator winding to ground The fault data includes single-type deterioration degree and comprehensive deterioration degree; among which, the hydraulic blockage deterioration degree is calculated by the filter screen water level difference and the suction pipe pressure, the water pollution deterioration degree is calculated by the oil concentration in the water, and the mechanical deterioration degree is calculated by the motor insulation resistance. , ,in The reference water level difference before and after the rotating filter screen is expressed in meters (m). The rated absolute pressure of the water pump suction pipeline, in kPa; This is the baseline value for oil concentration in water, in mg / L. Rated insulation resistance of motor stator winding, unit Simultaneously, all single-type degradation degrees are subject to lower limit constraints: if the calculation result is less than 0, the corresponding degradation degree is taken as 0, that is, when the parameters are better than the baseline state, it is considered as no degradation; the maximum value among the three single-type degradation degrees is taken as the comprehensive degradation degree, and a 10-second sliding window and a 1-second sampling step size are used to calculate the rate of change of the comprehensive degradation degree per unit time; the graded early warning threshold sets a first-level early warning threshold and a second-level switching threshold. The first-level early warning threshold corresponds to the critical value of slight equipment degradation that does not affect normal operation, with a reference value of 0.2; the second-level switching threshold corresponds to the critical degradation value of the equipment approaching the upper limit of safe operation, with a reference value of 0.5; the specific values can be adjusted according to the equipment level and water supply requirements; the automatic transition triggering and fault type marking method is as follows: when the comprehensive degradation degree reaches the first-level early warning threshold, the system transitions from the normal water supply state to the early warning pre-start state, and at the same time, the fault type is marked according to the fault category corresponding to the maximum value, and the corresponding pre-start total duration is matched.
[0030] This step is executed periodically under normal water supply conditions, with an execution cycle of 1 second. It is the core sensing step for fault warning and triggering.
[0031] First, four types of operating parameters are collected in real time, corresponding to three independent fault modes: hydraulic blockage, water pollution, and mechanical deterioration. The water level difference before and after the rotating filter and the absolute pressure of the water pump suction pipe are collected to determine hydraulic blockage faults; the oil concentration in the water is collected to determine water pollution faults; and the insulation resistance of the motor stator winding to ground is collected to determine mechanical deterioration faults.
[0032] Subsequently, the individual degradation degree corresponding to the three types of faults was calculated separately: the hydraulic blockage degradation degree was calculated by taking the square root of the sum of the squares of the relative deviations of the filter screen water level difference and the relative deviations of the suction pipe pressure; the water pollution degradation degree was the relative deviation of the oil concentration in the water; and the mechanical degradation degree was the relative deviation of the motor insulation resistance. All individual degradation degrees were subject to a lower limit constraint: if the calculated result was less than 0, the degradation degree was set to 0, indicating that the parameters were better than the baseline state and there was no degradation. The maximum value among the three individual degradation degrees was taken as the comprehensive degradation degree. Simultaneously, a first-order difference operation was performed using a 10-second sliding window and a 1-second sampling step size to obtain the rate of change of the comprehensive degradation degree.
[0033] Finally, automatic state transitions are achieved through two levels of thresholds: the first-level warning threshold is 0.2, corresponding to a critical state of slight equipment degradation that does not affect normal operation; the second-level switching threshold is 0.5, corresponding to a critical degradation state where the equipment is approaching its safe operating limit. Specific values can be adjusted according to equipment level and water supply requirements. When the overall degradation level is below 0.2, the system maintains normal water supply; when the overall degradation level reaches 0.2, the system automatically transitions from normal water supply to a warning pre-start state, simultaneously marking the fault type corresponding to the single degradation level with the highest value for matching subsequent pre-start durations; when the overall degradation level reaches 0.5, the system automatically transitions to a switching transition state, triggering the water source switching process.
[0034] Anomaly handling rules: If the data from a single-channel sensor times out for more than 3 seconds, the degradation degree of that channel will be set to 0.1 by default, and a sensor alarm will be triggered simultaneously without blocking the overall status determination; if the collected value exceeds the range, a fault alarm for the corresponding channel will be triggered immediately, and the degradation degree will be set to 0.8 times the secondary switching threshold to prevent the fault from escalating.
[0035] As attached Figure 2 As shown, S3 matches the differentiated total pre-start time according to the fault type, and simultaneously connects to the three progressive stages to prepare for the commissioning of the backup water source, supporting reverse pre-start exit when the fault deteriorates and falls back. The matching rule for the differentiated pre-start total time is as follows: the corresponding pre-start total time is matched according to the fault type, and the faster the fault deterioration rate, the shorter the pre-start total time; the pre-start total time for water pollution faults is 0.6 times the baseline pre-start time, for mechanical deterioration faults it is 0.8 times, and for hydraulic blockage faults it is 1.0 times; based on this, a linear scaling is applied in conjunction with the fault deterioration rate: for every 1-fold increase in the rate of change of the overall deterioration degree, the pre-start total time is shortened by 30%, with a minimum of no less than 40% of the baseline pre-start time; the three progressive stages involve preparing for the commissioning of the backup water source, including pipeline pre-charging and venting, and water pump... The process is executed in three consecutive stages: low-speed warm-up, no-load pressure boosting, and connection. The duration of each stage is allocated according to a default ratio of 3:2:5, which can be adapted to the project based on the pipeline volume and pump power. The pipeline pre-filling and venting stage specifically involves: opening the bypass filling valve of the backup water source connecting pipe, and simultaneously opening the electric venting valve at the highest point of the connecting pipe to fill the backup water source main pipeline with water at the matched filling flow rate; a dedicated non-metallic detection section (or a metal detection section with an insulating lining) is set up on the connecting pipe, and capacitive detection electrodes are symmetrically attached to the outer wall of the horizontal section at the highest point of this detection section to collect the capacitance value of the connecting pipe wall in real time. When the capacitance value is stable for three consecutive sampling cycles (sampling interval 1s), After the electric air vent valve continuously and stably discharges water within the specified range, the pipeline is deemed full. The electric air vent valve is then closed, and the next stage begins. The low-speed warm-up stage of the water pump specifically involves: starting the standby water pump and continuously rotating it at the lowest rated speed to preheat the motor windings and lubricate the pump body bearings. The duration of this operation matches the total pre-start time. After this period, the next stage begins. The lowest rated speed is the lowest continuous operating speed allowed by the water pump inverter, typically 20% to 30% of the rated speed. Specific values are subject to the official parameters from the water pump manufacturer. The no-load pressure increase stage specifically involves: gradually increasing the speed of the standby water pump so that the pump outlet pressure gradually approaches the current pressure in the pipeline network. When the outlet pressure and the pipeline network pressure... When the pressure difference is less than the docking pressure difference, the pump remains at its current speed and waits for the switching command. After the no-load pressurization is completed, the pump's standby time shall not exceed 5 minutes. If the switching is not triggered within the time limit, the pump will automatically drop to a low-speed warm-up state and run for 3 minutes before re-executing the no-load pressurization docking process. This process is repeated until the switching is triggered or the warning is lifted to avoid overheating due to pressure buildup. The reverse pre-start exit is as follows: if the overall degradation falls below the first-level warning threshold during the pre-start process, the system will exit the pre-start state in reverse order: first, the pump speed will be linearly reduced to a low-speed warm-up state, then the bypass filling valve will be closed and the electric exhaust valve will be opened to release pressure, and finally the pump will be stopped to return to normal water supply, thus avoiding energy consumption and equipment damage caused by ineffective pre-start.
[0036] This step is executed after being triggered by a Level 1 warning and is a core step in achieving predictive preparation and reducing the impact of switching.
[0037] First, differentiated total pre-start time is matched based on the marked fault type: water pollution faults develop rapidly and have short tolerance time, so the total pre-start time is 0.6 times the baseline pre-start time; mechanical deterioration faults develop at a moderate rate, so it is 0.8 times; hydraulic blockage faults develop slowly, so it is 1.0 times. Based on this, linear scaling is applied according to the rate of change of the overall deterioration degree: for every doubling of the rate of change, the total pre-start time is shortened by 30%, with the final pre-start time being no less than 40% of the baseline pre-start time to avoid insufficient preparation.
[0038] The pre-start process is executed in three consecutive stages: pipeline pre-charging and venting, low-speed water pump warm-up, and no-load pressure boosting and connection. The duration of each stage is split according to the default ratio of 3:2:5, and can be adapted to the project according to the pipeline volume and water pump power.
[0039] The first stage is pipeline pre-filling and venting: Open the bypass filling valve of the backup water source connecting pipe and simultaneously open the electric venting valve at the highest point of the connecting pipe; set up a dedicated non-metallic detection section (or a metal detection section with an insulating lining) on the connecting pipe, and symmetrically attach capacitive detection electrodes to the outer wall of the detection section to collect the pipe wall capacitance value in real time; when the capacitance value is stable within ±5% of the full pipe reference value for 3 consecutive sampling cycles (sampling interval 1s) and the electric venting valve continuously and stably discharges water, it is determined that the pipeline is full of water, and the electric venting valve is closed to enter the next stage.
[0040] The second stage is low-speed warm-up of the water pump: start the standby water pump and run it continuously at the lowest rated speed to complete the preheating of the motor windings and the lubrication of the pump body bearings; the lowest rated speed refers to the lowest continuous operating speed allowed by the water pump frequency converter, which is usually 20% to 30% of the rated speed. In this embodiment, 25% of the rated speed, i.e., 370 r / min, is taken; after running for the corresponding time, proceed to the next stage.
[0041] The third stage is no-load pressure boosting and docking: the pump speed is linearly increased so that the pump outlet pressure gradually approaches the current pipeline pressure; when the difference between the outlet pressure and the pipeline pressure is less than the docking pressure difference of 0.01MPa, the current speed is maintained in standby mode, waiting for the switching command. The standby time after no-load pressure boosting is completed shall not exceed 5 minutes. If the switching is not triggered within the time limit, the pump will automatically reduce to a low-speed warm-up state for 3 minutes, and then the pressure boosting and docking process will be executed again. This cycle will continue until the switching is triggered or the warning is lifted, to avoid the pump overheating due to prolonged pressure buildup.
[0042] If the overall degradation rate falls below the first-level warning threshold during the pre-start process, the system will exit the pre-start state in reverse order: first, the water pump speed will be linearly reduced to a low-speed warm-up state, then the bypass water filling valve will be closed and the electric air vent valve will be opened to release pressure, and finally the water pump will be stopped to return to normal water supply state, thereby reducing ineffective energy consumption and equipment wear.
[0043] As attached Figure 3As shown, S4 obtains the valve-pump rate matching relationship based on the goal of constant total water supply flow during the switching process, distinguishes between nonlinear and linear intervals to perform differentiated switching control, and realizes smooth flow relay and disturbance-free handover of main and backup water sources. The method for obtaining the valve-pump rate matching relationship is as follows: Based on the core objective of maintaining a constant total water supply flow during the switching process, the rate of decrease in flow on the main water source side is equal to the rate of increase in flow on the backup water source side; under the premise that the pressure difference across the valve is approximately constant, the valve's relative flow rate change rate is proportional to its relative opening change rate; according to the pump similarity law, the pump's relative flow rate change rate is proportional to its relative speed change rate; thus, the matching ratio between the relative opening change rate and the relative speed change rate is derived to ensure seamless flow handover; this method is applicable when the regulating valve adopts linear flow characteristics and the valve operates at 20%~ during the switching process. The system operates within an 80% effective linear range, assuming that the pipeline pressure remains near its rated value with slight fluctuations during the switching transition, and the pressure difference across the valve is approximately equal to the rated water supply pressure of the pipeline. Specifically, the differentiated switching control method is as follows: when the overall degradation reaches the secondary switching threshold, the system transitions from the early warning pre-start state to the switching transition state; in the initial switching phase (0%~20% for the backup valve, 80%~100% for the main valve), a fixed low-speed opening change rate is used; after both valves enter the 20%~80% linear range, the system switches to valve-pump synchronization slope matching control; the valve-pump synchronization slope matching formula is: ,in These represent the relative opening rates of the valves on the main and backup water source sides, in units of... ; These represent the relative speed change rates of the main and standby water pumps, respectively; that is, the ratio of the absolute speed change rate to the rated speed, in units of... ; The valve-pump synchronization matching ratio coefficient is a dimensionless constant, and it can be obtained in two ways: ① Theoretical initial value calculation: the initial value is calculated based on the valve's rated flow coefficient, the pump's rated flow and rated speed; ② Experimental calibration: the flow change corresponding to unit relative opening and unit relative speed is measured under rated operating conditions, and the ratio of the two is the engineering calibration value, which takes precedence over the theoretical initial value. The specific control process for the smooth relay and seamless handover of the main and backup water sources is as follows: the valve on the main water source side closes linearly at the calculated rate, and the relative speed of the main water pump decreases synchronously according to the matching ratio; the valve on the backup water source side opens linearly at the same rate, and the relative speed of the backup water pump increases synchronously according to the matching ratio. This can keep the total water supply capacity of the main and backup water sources basically constant, greatly reduce flow fluctuations, and avoid obvious water supply interruptions. At the same time, a boundary protection rule is set: when the pipeline pressure deviation exceeds 1.2 times the allowable value, the valve and pump operation is automatically suspended, the current opening and speed are maintained, and the switching is continued after the pressure drops back to the allowable range.
[0044] This step is executed after being triggered by the secondary switching command, and is the core step to achieve a smooth handover of primary and backup water sources and eliminate flow interruptions.
[0045] The control objective of this step is to maintain a constant total water supply flow during the switching process, with the rate of decrease in flow on the main water source side equal to the rate of increase in flow on the backup water source side. The physical derivation logic is as follows: Under the premise that the pressure difference across the valve is approximately constant, the valve's relative flow rate change rate is proportional to its relative opening change rate. According to the pump similarity law, the pump's relative flow rate change rate is proportional to its relative speed change rate. Therefore, a fixed matching ratio between the valve's relative opening change rate and the pump's relative speed change rate can be derived to ensure smooth flow transition. This control logic is applicable under the following conditions: the regulating valve adopts linear flow characteristics; the valve operates within the 20%~80% effective linear range during the switching process; and the pipeline pressure remains slightly fluctuating near the rated value during the switching transition, with the pressure difference across the valve approximately equal to the rated water supply pressure of the pipeline network.
[0046] When the overall degradation reaches the level 2 switching threshold, the system transitions from the early warning and pre-start state to the switching transition state, and performs differentiated control in two stages: During the initial switching phase, when the standby valve opening is in the range of 0%~20% and the main valve opening is in the range of 80%~100%, a fixed low-speed opening change rate of 0.02 / s is adopted to avoid the valve nonlinearity range; after both valves enter the 20%~80% linear range, the valve-pump synchronous slope matching control is switched.
[0047] Valve-pump synchronization slope matching is achieved through a fixed proportional coefficient, meaning the ratio of the relative opening rate of the main and standby valves to the corresponding relative speed rate of change of the pump is constant; the relative speed rate of change refers to the ratio of the absolute speed rate of change to the rated speed, with dimensions of... There are two ways to obtain the matching ratio coefficient: one is theoretical initial value calculation, which is derived based on the valve's rated flow coefficient, the pump's rated flow and rated speed; the other is experimental calibration, which measures the flow change corresponding to unit relative opening and unit relative speed under rated operating conditions, and the ratio of the two is the engineering calibration value. In actual use, the calibration value takes precedence over the theoretical initial value.
[0048] During the control process, the valves on the main water source side are linearly closed at the calculated rate, and the relative speed of the main water pump is synchronously reduced according to the matching ratio; the valves on the standby water source side are linearly opened at the same rate, and the relative speed of the standby water pump is synchronously increased according to the matching ratio, so as to maintain the sum of the main and standby water supply capacities constant throughout the process and eliminate flow interruptions.
[0049] Boundary protection rule: When the pipeline pressure deviation exceeds 1.2 times the allowable value, the valve and pump operation will be automatically suspended, the current opening and speed will be maintained, and the switching will continue after the pressure drops back to the allowable range to avoid loss of control of the operating conditions.
[0050] As attached Figure 4As shown, S5, based on the upper limit of the valve opening change rate constrained by the hydraulic inertia of the pipeline network, and superimposed with the closed-loop correction and regulation of the real-time pipeline network pressure, forms a composite control architecture to suppress pressure fluctuations during the switching process. The upper limit of the valve opening change rate constrained by the hydraulic inertia of the pipeline network is calculated based on the hydraulic inertia time constant of the pipeline network and the allowable pressure deviation, and is a constraint value for the upper limit of the valve opening change rate. This upper limit is derived from a lumped parameter equivalent model and is applicable to urban water supply scenarios involving water source switching at the pump station outlet. The derivation is based on the following: under the first-order lumped parameter inertia model, the pipeline pressure change rate is approximately proportional to the valve relative opening change rate, and the proportionality coefficient is determined by both the rated pressure and the hydraulic inertia time constant. Therefore, the upper limit of the opening rate can be constrained by the allowable pressure deviation and the inertia time constant. The maximum allowable valve relative opening change rate is: , The maximum permissible rate of change of relative valve opening, in units ; For the allowable pressure deviation of the pipeline network, the unit is... The rated water supply pressure of the pipeline network is expressed in kPa. The hydraulic inertia time constant of the pipeline network is expressed in seconds. The rate of change of the relative opening of the reference valve is compared with the maximum allowable value, and the smaller of the two is taken as the actual reference rate. The closed-loop correction adjustment method specifically involves: during the switching process, real-time acquisition of the pipeline network water supply pressure. The pressure deviation is obtained and substituted into the closed-loop correction model to obtain the rate correction amount. ,in The rated relative opening rate of the valve, in units Simultaneously, boundary constraints are applied to the rate correction: the absolute value of the correction does not exceed 30% of the base rate to prevent over-correction from causing system oscillations. The composite control architecture specifically uses the upper limit of the rate obtained from hydraulic inertia constraints as a safety boundary, real-time pressure closed-loop correction as a precision adjustment means, and a programmable digital controller superimposes the base rate and the correction to adjust the operating rates of the valves and pumps on both the main and backup sides in real time, thereby constraining the pressure fluctuation amplitude of the pipeline network within the allowable range and avoiding the risks of water hammer and negative pressure. The suppression of pressure fluctuations during the switching process is achieved through the above composite control architecture, controlling the pressure fluctuations within the allowable deviation range and ensuring the stability of water supply during the switching process.
[0051] This step is executed in parallel with the valve-pump synchronization switching step, with an execution cycle of 100ms. It is used to suppress pressure fluctuations caused by the hydraulic inertia of the pipeline network during the switching process. Together with the valve-pump synchronization control, it forms a composite control system of upper limit constraint + closed-loop correction.
[0052] This control logic is derived based on a first-order lumped parameter equivalent model and is applicable to urban water supply scenarios where the water source is switched at the pump station outlet. The derivation is based on the fact that, under the first-order inertial model, the rate of change of pipeline pressure is approximately proportional to the rate of change of valve relative opening. The proportionality coefficient is determined by the rated pressure and the hydraulic inertia time constant. Therefore, the safe upper limit of the valve opening change rate can be deduced by the allowable pressure deviation.
[0053] First, based on the hydraulic inertia time constant of the pipeline network and the allowable pressure deviation, the maximum allowable rate of change of the relative valve opening is calculated as a safety boundary for the switching speed. The reference rate of change of the valve opening output by the valve-pump synchronization step is compared with this upper limit value, and the smaller of the two is taken as the actual reference rate, thus limiting the pressure overshoot amplitude from the source.
[0054] During the switching process, the water supply pressure of the pipeline network is collected in real time, the deviation between the current pressure and the rated pressure is calculated, and the deviation is substituted into the closed-loop correction formula to obtain the rate correction amount, which is then used to dynamically fine-tune the reference rate. The rate correction amount is subject to boundary constraints: the absolute value of the correction amount does not exceed 30% of the reference rate to prevent over-correction from causing system oscillations.
[0055] Finally, the controller superimposes the reference rate and the correction amount to obtain the final valve opening control command, synchronously adjusts the water pump speed, and constrains the fluctuation range of pipeline pressure within the allowable deviation range in real time to avoid the risks of water hammer and negative pressure.
[0056] As attached Figure 5 As shown in Figure S6, after the switch is completed, the source of the main fault type is traced, the automatic return permission of the faulty water source is automatically locked, the corresponding auxiliary handling procedure is triggered according to the fault type, and the no-load availability test is performed to verify the recovery status after the handling is completed. The method for tracing the dominant fault type is as follows: when the pipeline pressure stabilizes within the rated range and the duration reaches the steady-state determination time, the system transitions from the switching transition state to the steady-state self-healing state; fault type tracing is performed based on the single-type degradation data before the switch, and the fault category corresponding to the single-type degradation with the largest value is locked as the dominant fault; the method for automatically locking the automatic return permission of the faulty water source is as follows: after locking the dominant fault category, the automatic return permission of the faulty water source is automatically locked, prohibiting the faulty water source from directly entering the system without verification; the corresponding auxiliary handling procedures are triggered according to the fault category: if the dominant fault is hydraulic blockage, the backwashing procedure of the rotating filter screen of the faulty water source is automatically started: the filter screen drain valve is opened, the backwashing water pump is started to backwash the filter screen, and the drain valve and backwashing pump are closed after the filter screen backwashing time is completed; if the dominant fault is mechanical degradation, the dehumidification and heating procedure of the motor of the faulty water source is automatically started: the motor space heating is started. The device is continuously heated until the insulation resistance rises back to the qualified range and stabilizes for 30 minutes, then it stops. If the main fault is water pollution, the inlet valve of the faulty water source is automatically closed, and the water quality parameters of the water source are continuously monitored until the concentration drops back to the benchmark range. The no-load availability test verifies the recovery state as follows: After the auxiliary treatment is completed, the system automatically performs the no-load availability test of the faulty water source: the inlet valve of the faulty water source is opened, the outlet regulating valve of the faulty water source is kept fully closed, the water pump is started to run at the lowest rated speed for 2 minutes without load, and the insulation resistance of the motor stator winding, the water level difference before and after the rotating filter screen, and the water pump outlet pressure are continuously monitored. If all parameters are within the allowable deviation range of ±10% of the benchmark value, the test is deemed qualified, and the lockout of the faulty water source is released. When the no-load availability test of the faulty water source is qualified and the lockout is released, the system automatically transitions from the steady-state self-healing state back to the normal water supply state, and restores normalized fault monitoring and rotation scheduling.
[0057] This step is performed after the switchover is complete and the pipeline network enters a steady state. It is the core step that extends the control boundary from the completion of the switchover to fault recovery.
[0058] Once the pipeline pressure stabilizes within the rated range and remains so for 30 seconds (the steady-state determination time), the system transitions from the switching transition state to the steady-state self-healing state. First, the dominant fault is traced based on the single-type degradation data before the switchover; that is, the fault category corresponding to the single-type degradation with the highest value is taken as the dominant fault.
[0059] Once the dominant fault is identified, the system automatically locks the automatic return permission of the faulty water source, prohibiting the faulty water source from directly switching into the water supply link without verification, thus avoiding repeated fault-triggered switching.
[0060] Then, the corresponding auxiliary handling procedure is triggered based on the dominant fault type: If the fault is hydraulic blockage, start the rotary filter backwashing procedure: open the filter drain valve, start the backwashing water pump to backwash the filter, and run the filter backwashing for 5 minutes. Then close the drain valve and the backwashing pump. If the fault is mechanical deterioration, start the motor dehumidification and heating program: turn on the motor space heater and continue heating until the insulation resistance rises back to the qualified range and stabilizes for 30 minutes, then stop heating. Reduce the risk of aging by running the dehumidification program. If the fault is related to water pollution, close the inlet valve of the faulty water source and continuously monitor the water quality parameters of the source until the concentration drops back to the baseline range.
[0061] After the auxiliary treatment is completed, perform an unloaded availability test of the faulty water source to verify the equipment recovery status: open the inlet gate valve of the faulty water source, keep the outlet regulating valve fully closed, start the water pump to the lowest rated speed and run it unloaded for 2 minutes, and continuously monitor three parameters: the insulation resistance of the motor stator winding, the water level difference before and after the rotating filter screen, and the water pump outlet pressure; if all parameters are within the allowable deviation range of ±10% of the reference value, the test is deemed qualified, and the automatic restart interlock of the faulty water source is released.
[0062] After the test is passed and the lockout is lifted, the system automatically transitions from a steady-state self-healing state back to a normal water supply state, resuming routine fault monitoring and rotation scheduling. If the no-load test fails, the corresponding handling procedure is repeated once; if the test fails again, an equipment fault alarm is triggered, and the lockout state is maintained pending manual maintenance.
[0063] S7. Dynamically adjust the rotation cycle based on the actual deterioration rate of the equipment, reuse the entire state machine switching logic to perform regular water source rotation, and simultaneously complete the backup water source load test and parameter calibration verification. The specific method for dynamically correcting the rotation cycle is as follows: During normal operation, the average rate of decrease in motor insulation resistance and the average rate of increase in filter screen water level difference are calculated cumulatively over a 24-hour statistical period. These are then substituted into the rotation cycle correction coefficient formula to obtain the dynamic rotation cycle correction coefficient. The causal factors are as follows: An increased rate of motor insulation degradation indicates a higher risk of moisture aging in the standby motor; shortening the rotation cycle can be achieved by using heating to remove moisture. An increased rate of filter clogging indicates a high content of impurities in the current main water source; shortening the rotation cycle allows for timely switching of high-load filters to standby for cleaning and maintenance, preventing further deterioration. The formula for calculating the rotation cycle correction factor is: ,in The decrease in motor insulation resistance per unit time, unit ; The rated degradation rate of motor insulation, unit ; The increase in water level difference on the rotating filter screen per unit time, in m / h; The rated clogging rate of the filter is given in m / h; simultaneously, boundary constraints are applied to the replacement cycle correction factor, limiting its value range to [value range missing]. When the boundary is exceeded, the corresponding boundary value is taken; the reference rotation period is set. With correction factor Multiply to obtain the actual rotation period The unit is d; the specific method of periodic water source rotation is as follows: when the running time reaches the actual rotation cycle, the system automatically triggers a complete water source switching process, fully executing the entire process of early warning pre-start, switching transition, and steady-state self-healing, turning the original main water source into a backup and the original backup water source into the main water supply; the specific method of backup water source load testing and parameter calibration verification is as follows: the full process parameters collected during the rotation process are synchronously used for the calibration verification of the control benchmark, realizing the normalized verification of mutual backup capability.
[0064] This step is performed periodically under normal water supply conditions, with a statistical cycle of 24 hours. It is the core step in achieving health-oriented rotation and solving the problem of unused backups.
[0065] First, using a 24-hour statistical period, the average rate of decrease in motor insulation resistance and the average rate of increase in filter water level difference are cumulatively calculated to dynamically adjust the replacement cycle. The causal logic is as follows: an increased rate of motor insulation degradation indicates an increased risk of moisture aging in the standby motor; shortening the replacement cycle can be achieved by using heating to remove moisture. An increased rate of filter clogging indicates a high content of impurities in the current main water source; shortening the replacement cycle allows for timely switching of the high-load filter to standby for cleaning and maintenance, preventing further clogging and subsequent malfunctions.
[0066] The two types of degradation rates obtained from statistics are substituted into the rotation cycle correction coefficient formula to calculate the dynamic rotation cycle correction coefficient. The correction coefficient is limited to a range of 0.5 to 2.0. When the value exceeds the boundary, the corresponding boundary value is used to avoid the cycle being too short or too long. The actual rotation cycle is obtained by multiplying the baseline rotation cycle by the correction coefficient, in days.
[0067] When the system's cumulative runtime reaches the actual rotation cycle, a complete water source switching process is automatically triggered, reusing the entire set of logic for early warning and pre-start, switching transition, and steady-state self-healing, switching the original primary water source to backup and the original backup water source to primary water supply, thus completing the primary and backup role conversion.
[0068] During the rotation process, all operational data are collected simultaneously for calibration and verification of the control benchmark. This achieves the equipment maintenance goal of regular rotation and completes the load test and parameter verification of the backup water source, forming a normalized mutual backup verification mechanism of training instead of backup. This solves the problem of backup water sources being idle for a long time, resulting in them being prepared but not used, or failing when needed.
[0069] S8. Based on the measured operating data of each switch, the core control parameters are fitted and corrected, and full benchmark verification is performed regularly to ensure that the control logic continuously adapts to the gradually changing operating conditions of the equipment and pipeline network.
[0070] The specific method for fitting and correcting the core control parameters is as follows: Record all operational data for each switch and rotation; perform fitting and correction of the core control parameters based on the measured data; update the control benchmark library; the programmable digital controller automatically records all operational data for each switch and rotation process, including the degradation degree change curve, valve action speed sequence, pipeline pressure fluctuation curve, and rotation cycle correction coefficient, and periodically uploads this data to the host computer monitoring unit; the host computer monitoring unit performs least-squares fitting and correction of the core control parameters based on the measured data: using the valve opening sequence, pump speed sequence, and pipeline pressure sequence collected during each switch as input, and the square of the pipeline pressure fluctuation... With the goal of minimizing the time constant, the hydraulic inertia time constant of the pipeline network is fitted and the synchronization matching ratio coefficient of the valve and pump is matched. The calibrated parameters are then written back to the controller's control reference library to complete the reference update. The full reference verification method is as follows: after each set number of switching or rotations, a full reference verification is performed. The default set number is 10 times, which can be adjusted according to the system's operational stability and equipment aging rate. The method of adapting to the gradually changing operating conditions of the equipment and pipeline network is as follows: through continuous parameter calibration and reference verification, the control logic continuously adapts to three typical gradually changing operating conditions: equipment aging, pipeline scaling, and changes in water source conditions, ensuring the control accuracy and reliability of the system's long-term operation.
[0071] This step is triggered after each switch or rotation, and is an iterative step to ensure the long-term operational accuracy of the system.
[0072] During each switching or rotation process, the controller automatically records all operating data, including the degradation degree change curve, valve action speed sequence, pipeline pressure fluctuation curve, and rotation cycle correction coefficient, and periodically uploads it to the host computer for storage.
[0073] Parameter fitting calibration is performed by the host computer: Using the valve opening sequence, pump speed sequence, and pipeline pressure sequence of each switching process as input, and minimizing the sum of squares of pipeline pressure fluctuations as the optimization objective, the least squares method is used to fit and correct the pipeline hydraulic inertia time constant and the valve-pump synchronization matching ratio coefficient. After fitting, the parameter deviation rate is checked. If the deviation rate is ≤15%, the calibrated parameters are written back to the controller's baseline library to complete the parameter update; if the deviation rate is >15%, the fitting is deemed invalid, and the original baseline parameters are retained. If the controller's computing power is sufficient, single-batch calculations can also be performed offline in the background after steady-state operation; if computing power is insufficient, the host computer calculations will prevail.
[0074] After every 10 switching or rotation cycles, a full baseline verification is performed to confirm that all parameters are within reasonable ranges. Through continuous parameter calibration and baseline verification, the control logic can automatically adapt to three typical slowly changing operating conditions: equipment aging, pipe scaling, and changes in water source conditions, ensuring the control accuracy and reliability of the system during long-term operation.
[0075] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A smart control method for emergency backup in case of water supply source failure, characterized in that, include: S1. Build a closed-loop control architecture and simultaneously complete the calibration, classification, and storage of multi-dimensional data; S2. Divide into multiple fault modes, obtain the corresponding fault data for each, and combine with the graded early warning threshold to realize automatic transition triggering of operating status and fault type marking. S3. Match the differentiated total pre-start duration according to the fault type, and simultaneously connect to the three progressive stages to prepare for the commissioning of the backup water source, supporting reverse pre-start exit when the fault deteriorates and falls back. S4. Based on the goal of constant total water supply flow during the switching process, obtain the valve-pump rate matching relationship, distinguish between nonlinear and linear intervals to perform differentiated switching control, and realize smooth flow relay and seamless handover of main and backup water sources. S5. Based on the upper limit of the valve opening change rate constrained by the hydraulic inertia of the pipeline network, and superimposed with the closed-loop correction and regulation of the real-time pipeline network pressure, a composite control architecture is formed to suppress pressure fluctuations during the switching process. S6. After the switch is completed, trace the main fault type, automatically lock the automatic return permission of the faulty water source, trigger the corresponding auxiliary handling procedure according to the fault type, and perform an unloaded availability test to verify the recovery status after the handling is completed. S7. Dynamically adjust the rotation cycle based on the actual deterioration rate of the equipment, reuse the entire state machine switching logic to perform regular water source rotation, and simultaneously complete the backup water source load test and parameter calibration verification. S8. Based on the measured operating data of each switch, the core control parameters are fitted and corrected, and full benchmark verification is performed regularly to ensure that the control logic continuously adapts to the gradually changing operating conditions of the equipment and pipeline network.
2. The intelligent control method for emergency backup of water supply source failure as described in claim 1, characterized in that: The four-state closed-loop control architecture is built within a programmable digital controller, defining trigger boundaries, execution unit sets, and state transition rules for normal water supply state, early warning and pre-start state, switching transition state, and steady-state self-healing state. Normal water supply state represents the system's normal operating condition; early warning and pre-start state is the preparatory state after a fault precursor is triggered; switching transition state is the execution state for the handover of primary and backup water sources; and steady-state self-healing state is the fault handling and recovery state after the switch is completed. The calibration classification storage specifically includes equipment process reference parameter calibration and pipeline characteristic parameter calibration. All calibration parameters are mapped to the corresponding control logic according to their respective control states. The equipment process reference parameters include: the reference water level difference before and after the rotating filter screen. Rated absolute pressure of water pump suction pipe Reference value for oil concentration in water Rated insulation resistance of motor stator winding Rated water supply pressure of the pipeline network Permissible pressure deviation of pipeline network Valve rated relative opening change rate The baseline rotation cycle and the steady-state determination time.
3. The intelligent control method for emergency backup in water supply source failure according to claim 2, characterized in that: The multiple fault modes are classified into hydraulic blockage, water pollution, and mechanical deterioration, which correspond to the water level difference before and after the rotating filter screen, respectively. Absolute pressure of water pump suction pipe Oil concentration in water and the insulation resistance of the motor stator winding to ground The fault data includes single-type deterioration degree and comprehensive deterioration degree; among which, the hydraulic blockage deterioration degree is calculated by the filter screen water level difference and the suction pipe pressure, the water pollution deterioration degree is calculated by the oil concentration in the water, and the mechanical deterioration degree is calculated by the motor insulation resistance. , Simultaneously, all single-type degradation degrees are subject to lower limit constraints: if the calculation result is less than 0, the corresponding degradation degree is taken as 0, that is, when the parameters are better than the baseline state, it is considered as no degradation; the maximum value among the three single-type degradation degrees is taken as the comprehensive degradation degree, and a 10-second sliding window and a 1-second sampling step size are used to calculate the rate of change of the comprehensive degradation degree per unit time; the automatic transition triggering and fault type marking method is as follows: when the comprehensive degradation degree reaches the first-level warning threshold, the system transitions from the normal water supply state to the warning pre-start state, and at the same time, the fault type is marked according to the fault category corresponding to the maximum value, and the corresponding pre-start total duration is matched.
4. The intelligent control method for emergency backup in water supply source failure as described in claim 2, characterized in that: The matching rule for the differentiated pre-start total time is as follows: the corresponding pre-start total time is matched according to the fault type, and the faster the fault deterioration rate, the shorter the pre-start total time; the three progressive stages of backup water source commissioning preparation are executed in three consecutive stages: pipeline pre-charging and venting, water pump low-speed warm-up, and no-load pressure boosting and docking; the reverse pre-start exit: if the overall degradation degree falls below the first-level warning threshold during the pre-start process, the system exits the pre-start state in reverse order: first, the water pump speed is linearly reduced to the low-speed warm-up state, then the bypass water filling valve is closed, the electric venting valve is opened to release pressure, and finally the water pump is stopped, returning to the normal water supply state.
5. The intelligent control method for emergency backup in water supply source failure according to claim 1, characterized in that: The method for obtaining the valve-pump rate matching relationship is as follows: Based on the core objective of maintaining a constant total water supply flow during the switching process, the rate of decrease in flow on the main water source side is equal to the rate of increase in flow on the backup water source side; under the premise that the pressure difference across the valve is approximately constant, the valve's relative flow rate change rate is proportional to its relative opening rate change rate; according to the pump similarity law, the pump's relative flow rate change rate is proportional to its relative speed change rate; thus, the matching ratio between the relative opening rate change rate and the relative speed rate change rate is derived; the method for executing differentiated switching control is as follows: when the overall degradation reaches the secondary switching threshold, the system transitions from the early warning pre-start state to the switching transition state; in the initial stage of switching, a fixed low-speed opening rate change is adopted. Operation; after both valves enter the 20%~80% linear range, switch to valve-pump synchronous slope matching control; the specific control process of smooth relay and seamless handover of the main and backup water sources is as follows: the valve on the main water source side closes linearly at the calculated rate, and the relative speed of the main water pump decreases synchronously according to the matching ratio; the valve on the backup water source side opens linearly at the same rate, and the relative speed of the backup water pump increases synchronously according to the matching ratio; this can keep the total water supply capacity of the main and backup water sources basically constant and greatly reduce flow fluctuations; at the same time, a boundary protection rule is set: when the pipeline pressure deviation exceeds 1.2 times the allowable value, the valve and pump operation is automatically suspended, the current opening and speed are maintained, and the switching is continued after the pressure drops back to the allowable range.
6. The intelligent control method for emergency backup in water supply source failure according to claim 2, characterized in that: The closed-loop correction and adjustment method specifically involves: during the switching execution process, real-time acquisition of the pipeline water supply pressure. The pressure deviation is obtained and substituted into the closed-loop correction model to obtain the rate correction amount. ,in The rated relative opening change rate of the valve is used; at the same time, boundary constraints are applied to the rate correction amount: the absolute value of the correction amount does not exceed 30% of the reference rate; the composite control architecture is as follows: the upper limit of the rate obtained by hydraulic inertia constraint is used as the safety boundary, real-time pressure closed-loop correction is used as the accuracy adjustment means, the programmable digital controller superimposes the reference rate and the correction amount, and adjusts the action rate of the valves and pumps on both the main and backup sides in real time to constrain the pipeline pressure fluctuation amplitude within the allowable range.
7. The intelligent control method for emergency backup in water supply source failure according to claim 1, characterized in that: The method for tracing the dominant fault type is as follows: when the pipeline pressure stabilizes within the rated range and the duration reaches the steady-state determination time, the system transitions from the switching transition state to the steady-state self-healing state; fault type tracing is performed based on the single-type degradation data before the switch, and the fault category corresponding to the single-type degradation with the largest value is locked as the dominant fault; the method for automatically locking the automatic return permission of the faulty water source is as follows: after locking the dominant fault category, the automatic return permission of the faulty water source is automatically locked, prohibiting the faulty water source from directly entering the system without verification; the corresponding auxiliary handling procedures are triggered according to the fault category; the method for verifying the recovery state through no-load availability testing is as follows: after the auxiliary handling is completed, the system automatically performs the no-load availability test of the faulty water source, and the return lockout is released after the test is passed.
8. The intelligent control method for emergency backup in water supply source failure according to claim 2, characterized in that: The specific method for dynamically correcting the rotation cycle is as follows: During normal operation, the average rate of decrease in motor insulation resistance and the average rate of increase in filter screen water level difference are calculated cumulatively over a 24-hour statistical period. These are then substituted into the rotation cycle correction coefficient formula to obtain the dynamic rotation cycle correction coefficient. Simultaneously, boundary constraints are applied to the rotation cycle correction coefficient, limiting its value range to [value range missing]. When the boundary is exceeded, the corresponding boundary value is taken; the actual rotation cycle is obtained by multiplying the benchmark rotation cycle by the correction coefficient; the specific method of the periodic water source rotation is as follows: when the running time reaches the actual rotation cycle, the system automatically triggers a complete water source switching process, fully executing the entire process of early warning pre-start, switching transition and steady-state self-healing, turning the original main water source into a backup and the original backup water source into the main water supply; the specific method of the backup water source load test and parameter calibration verification is as follows: the full process parameters collected during the rotation process are synchronously used for the calibration verification of the control benchmark, realizing the normalized verification of mutual backup capability.
9. The intelligent control method for emergency backup in water supply source failure according to claim 1, characterized in that: The specific method for fitting and correcting the core control parameters is as follows: record all operational data for each switch and rotation, fit and correct the core control parameters based on the measured data, and update the control benchmark library; the specific method for full benchmark verification is as follows: perform a full benchmark verification once after each set number of switches or rotations; the specific method for adapting to the gradually changing operating conditions of equipment and pipeline network is as follows: through continuous parameter calibration and benchmark verification, the control logic continuously adapts to three typical gradually changing operating conditions: equipment aging, pipeline scaling, and changes in water source conditions.
