A PLC control circuit relay master / slave redundancy switching system

By combining main and backup relay modules, multi-parameter online monitoring units, and PLC core controllers, the self-diagnosis of relay faults, life prediction, and seamless switching in the PLC control circuit are realized, solving the problems of single-point failure and synchronous wear, and improving the operational reliability of hydropower plants.

CN123113282APending Publication Date: 2026-11-17YUNNAN HUADIAN LUDILA HYDROPOWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611153089.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing PLC control circuits, the single-relay direct-drive structure has the potential for single-point failure, while the traditional dual-relay direct parallel connection method has the problems of synchronous wear and difficulty in early warning of faults, which cannot meet the requirements of unattended operation and long-term stable operation of hydropower plants.

Method used

It adopts a main and backup relay module, a multi-parameter online monitoring unit and a PLC core controller to monitor the relay operating parameters in real time. Through health assessment algorithm, life prediction algorithm and switching decision algorithm, it realizes fault self-diagnosis, life prediction and seamless switching between main and backup.

Benefits of technology

Eliminating potential single-point failures, distributing wear and tear, and enabling online health assessment and predictive switching of relays improves the reliability and stability of PLC control circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123113282A_ABST
    Figure CN123113282A_ABST
Patent Text Reader

Abstract

This invention discloses a primary / backup redundancy switching system for relays in a PLC control loop, comprising: a primary / backup relay module, a multi-parameter online monitoring unit, and a PLC core controller. The primary / backup relay module is used to configure a primary relay and a backup relay in the same control loop. The coil drive terminals of the primary and backup relays are respectively connected to two independent digital output channels of the PLC core controller, and their contact output terminals are connected to the load circuit. The multi-parameter online monitoring unit is used to collect the operating parameters of the primary and backup relays in real time. The PLC core controller receives the operating parameters, sequentially executes a health assessment algorithm, a lifespan prediction algorithm, and a switching decision algorithm, and outputs a switching command to control the primary / backup relay module to perform the primary / backup switching action. This invention aims to achieve fault self-diagnosis, lifespan prediction, and seamless primary / backup switching through real-time monitoring and dynamic health assessment of relay operating parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hydropower technology, and in particular to a primary / backup redundancy switching system for PLC control circuit relays. Background Technology

[0002] In the automated control system of hydropower plants, intermediate relays are commonly used in the PLC digital output circuit as isolation and power amplification units for weak current control of strong current, thereby driving key equipment such as solenoid valves, speed controllers, and trip coils. Currently, the existing technologies mainly include the following two types of technical solutions. One is the single relay direct drive structure, in which a single digital output channel of the PLC controls a single relay, and the relay contacts directly drive the load circuit. The drawback of this scheme is that the relay has a single point of failure risk. Any fault such as contact erosion, coil burnout, or contact sticking will directly lead to the failure of the control circuit. Moreover, after the fault occurs, it will cause equipment to malfunction, threaten the safety of the unit, and may cause unplanned downtime and significant economic losses. The second is the redundancy method of direct parallel connection of dual relay contacts / coils, that is, the coils of two relays are connected in parallel and the contacts are also connected in parallel to the circuit. Although this scheme can still maintain conduction after one of them fails, its defects are more prominent. That is, the two relays are energized and act synchronously. The arc impact and mechanical wear of the contacts are completely synchronized, which cannot distribute the action loss. Instead, it accelerates the damage to the contact material. Moreover, there is no early warning in case of failure. Once one fails, it is difficult for maintenance personnel to quickly locate the damaged part. It cannot meet the stringent requirements of unattended operation and long-term stable operation of hydropower plants. Therefore, there is an urgent need in this field for a relay redundancy switching system that can eliminate single points of failure, distribute wear and tear, and has online health assessment and predictive switching capabilities. Summary of the Invention

[0003] This invention aims to eliminate the single-point failure risk of a single-relay direct-drive structure, overcome the synchronous wear defect of the traditional dual-relay direct parallel connection method, and achieve fault self-diagnosis, life prediction and seamless switching between main and backup by real-time monitoring of relay operating parameters and dynamic health assessment.

[0004] To achieve the above objectives, the present invention provides a primary / backup redundancy switching system for PLC control circuit relays, comprising: primary / backup relay modules, a multi-parameter online monitoring unit, and a PLC core controller; The main and backup relay module is used to configure a main relay and a backup relay in the same control circuit. The coil drive terminals of the main relay and the backup relay are respectively connected to two independent digital output channels of the PLC core controller, and their contact output terminals are connected to the load circuit. The multi-parameter online monitoring unit is connected to the main and backup relay module and is used to collect the operating parameters of the main and backup relays in real time. The PLC core controller is connected to the multi-parameter online monitoring unit and the main / standby relay module. It is used to receive the operating parameters, execute the health assessment algorithm, the life prediction algorithm and the switching decision algorithm in sequence, and output switching instructions to control the main / standby relay module to perform the main / standby switching action.

[0005] Preferably, the main and backup relay module further includes an electronic switching switch; the contact output terminals of the main relay and the backup relay are connected to the load circuit through the electronic switching switch, and the electronic switching switch performs a first-off-then-on action during the switching process.

[0006] Preferably, the operating parameters collected by the multi-parameter online monitoring unit include, but are not limited to: coil current, contact voltage drop, pull-in time, release time, cumulative number of operations, and ambient temperature parameters of the main relay and the backup relay.

[0007] Preferably, the health assessment algorithm executed internally by the PLC core controller is configured to calculate the dynamic health index of the main relay at time t. Its calculation process includes: Define the contact health sub-index A comprehensive evaluation is conducted based on the cumulative arc energy and the contact overtravel time degradation term. The calculation formula is as follows:

[0008] in, This represents the cumulative arc energy during the Nth operation. The critical cumulative arc energy of the relay contact material. For material properties, This is a material property index. The measured overtravel time for the Nth operation. This is the initial overtravel time. The failure threshold timeout The weighting coefficients and ; Define coil health sub-index The calculation is based on the real-time rate of change of the coil's equivalent resistance and temperature compensation, and the calculation formula is as follows:

[0009] in, For real-time monitoring of the coil's equivalent DC resistance, The initial resistance, For ambient temperature, As the reference temperature, The temperature coefficient of resistance of the coil material; The contact health sub-index and coil health sub-index The dynamic health index is obtained by weighting. :

[0010] in, and These are the weighting coefficients for the contacts and the coil, respectively. .

[0011] Preferably, the life prediction algorithm executed internally by the PLC core controller is configured to analyze the dynamic health index. The degradation trajectory is modeled, and the remaining lifetime is calculated. and its 95% confidence interval; wherein, the remaining lifetime The calculation formula is:

[0012] in, The preset failure threshold, The drift coefficient is estimated in real time using sliding window linear regression, and its calculation formula is as follows: In the formula, For the current moment The drift coefficient, To adjust the sliding window size, This represents the index of each sampling point within the sliding window. For the first in the window The timestamp of each sampling point For all within the sliding window The arithmetic mean, Let be the dynamic health index value corresponding to the i-th sampling point, and be the value of all samples within the sliding window. The arithmetic mean; 95% confidence interval of remaining life for:

[0013] in, The diffusion coefficient is derived from the dynamic health index within the sliding window. Historical data statistics are used to characterize the impact of uncertainty factors on the dynamic health index. The extent of the impact.

[0014] Preferably, the switching decision algorithm executed internally by the PLC core controller is configured to perform a pre-switching action during the idle window of the next operating cycle when any of the following conditions are met: Condition A: Remaining life of the main relay satisfy ,in Pre-switching coefficient, The historical average remaining lifespan of relays of the same model. Condition B: The rate of decline of the dynamic health index of the main relay meets the following requirements. ,in The set degradation rate threshold.

[0015] Preferably, the switching decision algorithm executed internally by the PLC core controller is configured to perform an emergency switching action upon detecting any of the following immediate fault characteristics: After the disconnect command is issued, the contact resistance Still below the preset disconnect resistance threshold ; After the closing command is issued, the contact resistance Still higher than the preset closing resistance threshold ; Coil current satisfy ,in Rated coil current, This is the allowable deviation coefficient.

[0016] Preferably, the PLC core controller also executes a wear leveling algorithm, configured to perform active switching during idle windows when the difference in dynamic health index between the primary and backup relays meets preset conditions; the preset conditions include: ,and ; in, The dynamic health index of the main relay. The dynamic health index of the backup relay. The maximum permissible difference in health indicators threshold. This is to pre-set a safety margin.

[0017] Preferably, it also includes an arc suppression buffer unit, which includes an RC buffer circuit connected in parallel across the contacts or load of the electronic switching switch to absorb arc energy when the contacts are broken.

[0018] Preferably, it also includes a human-machine interaction module, which is used to receive and display the dynamic health index calculated by the PLC core controller. and remaining lifespan

[0019] Compared with existing designs, the present invention has the following advantages: The main and backup relays of this invention are independently configured, and the system can automatically and seamlessly switch when any relay fails, eliminating equipment malfunctions caused by relay failure. At the same time, it eliminates the problem of shortened lifespan caused by the direct parallel synchronous operation of traditional dual relays. The health status of the relays is quantified in real time through dynamic health index, and the degradation trend of the relays can be continuously monitored and predicted by combining the remaining lifespan point. It can be adapted to all critical PLC execution circuits such as protection tripping, speed governor control, water inlet valve opening and closing, cooling system switching, and gate control in hydropower plants. Attached Figure Description

[0020] The above and other objects, features and advantages of the present invention will become more apparent from the more detailed description of exemplary embodiments of the invention in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same parts.

[0021] Figure 1 This embodiment provides a schematic diagram of a primary / backup redundancy switching system for a PLC control loop relay. Figure 2 This is a schematic diagram of the workflow of the primary / standby redundancy switching system provided in this embodiment. Detailed Implementation

[0022] 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.

[0023] Example 1: Please refer to Figure 1 A primary / backup redundancy switching system for PLC control circuit relays is disclosed. This system is suitable for critical execution circuits in PLC control systems of large and medium-sized hydropower plants and pumped storage power stations, particularly in control applications involving frequent relay operation, high start-stop loads, and situations where unplanned shutdowns due to relay failures are not permitted. Examples include unit protection trip control circuits, inlet valve (ball valve / butterfly valve) opening / closing control circuits, governor electro-hydraulic switching valve control circuits (for frequent fine-tuning conditions), unit cooling system switching control circuits, gate opening / closing control circuits, and hydraulic pump start / stop control circuits. The primary / backup redundancy switching system comprises: primary / backup relay modules, a multi-parameter online monitoring unit, and a PLC core controller. The main and backup relay module is used to configure a main relay and a backup relay in the same control circuit. The coil drive terminals of the main relay and the backup relay are respectively connected to two independent digital output channels of the PLC core controller, and their contact output terminals are connected to the load circuit. The main and backup relay modules also include an electronic switching switch. The contact outputs of the main and backup relays are connected to the load circuit through the electronic switching switch. During the switching process, the electronic switching switch performs a first-off-then-on action to ensure that only one relay contact supplies power to the load at any given time, avoiding the risk of circuit conflict or short circuit caused by two circuits being turned on at the same time.

[0024] It should be noted that the roles of primary and backup relays are not fixed in different application scenarios. The system dynamically assigns the relay with the better health status as primary based on the health assessment results, and the other relay as backup. After the active rotation or pre-switch is completed, the original backup relay becomes primary, and the original primary relay becomes backup or enters the maintenance queue.

[0025] The multi-parameter online monitoring unit connects to the main and backup relay modules to collect the operating parameters of the main and backup relays in real time. The operating parameters collected by the multi-parameter online monitoring unit include, but are not limited to: coil current, contact voltage drop, pull-in time, release time, cumulative number of operations, and ambient temperature parameters of the main relay and the backup relay.

[0026] It should be noted that the contact voltage drop refers to the voltage difference between the two ends of the contact when the relay contact is closed. The smaller the voltage drop, the lower the contact resistance and the better the contact conduction. The voltage drop gradually increases, indicating that the contact resistance is increased due to electro-erosion or oxidation of the contact surface, which is a typical sign of contact degradation. The contact voltage drop is measured in real time by a differential amplifier connected across the two ends of the contact input and output lines. The so-called "engagement time" refers to the time interval from the moment the PLC core controller issues the command to energize the relay coil until the relay contacts are fully closed and the contact voltage drop stabilizes below a preset threshold. The so-called "release time" refers to the time interval from the moment the PLC core controller issues the command to de-energize the relay coil until the relay contacts are fully open and the circuit current returns to zero. The continuous increase of the above-mentioned action time usually reflects the degradation of the relay's mechanical structure, such as fatigue, jamming, or decreased spring performance, and is used to assess the health status of the relay. The action time is obtained by the PLC core controller by recording the difference between the state change time of the digital output channel and the signal jump time of the contact voltage drop sensor. The cumulative number of operations refers to the total number of complete on / off actions performed by the relay from the date it was put into operation until the current moment. This value is automatically incremented and updated by the internal counter of the PLC core controller after each complete on-off cycle is detected.

[0027] The PLC core controller is connected to the multi-parameter online monitoring unit and the main and backup relay modules. It is used to receive operating parameters, execute the health assessment algorithm, life prediction algorithm and switching decision algorithm in sequence, and output switching commands to control the main and backup relay modules to perform the main and backup switching action.

[0028] The health assessment algorithm executed internally by the PLC core controller is configured to calculate the dynamic health index of the main relay at time t. Its calculation process includes: Define the contact health sub-index A comprehensive evaluation is conducted based on the cumulative arcing energy and contact overtravel time degradation. Arcing refers to the continuous gas discharge phenomenon that occurs in the contact gap during the disconnection process of a relay contact when the gap between the two contacts is broken down by the circuit voltage. The high-temperature energy released during arcing is the root cause of the melting, vaporization, and splashing of the contact material, and is used in this embodiment to determine the contact health status. The calculation formula is as follows:

[0029] In the formula, The cumulative arc energy during the Nth operation is given by the following formula: , In the formula, This represents the single arcing energy during the nth operation of the relay. The voltage across the contacts during arcing. For load current, , These are the arc start and end times, respectively; the above integral calculations are performed in real time by the PLC core controller through numerical integration of the operating parameters. The critical cumulative arc energy of the relay contact material is provided by the relay manufacturer through standard electrical life type testing, or obtained by this system through batch sampling tests before the relay is put into operation; this parameter reflects the upper limit of the total arc thermal shock that the contact material can withstand during its effective life cycle. For material properties, This is a material property index used to reflect the accelerating characteristics of the contact material's electrical wear rate as a function of cumulative arc energy; when A value >1 indicates that wear is accelerating, meaning that each action in the early stages of contact failure consumes more of the contact's lifespan than in the later stages. and The lifespan can be determined by fitting a standard accelerated life test on relays of the same model, or it can be preset by maintenance personnel.

[0030] The overtravel time is the measured overtravel time for the Nth operation. The overtravel time refers to the time interval from the moment the relay contacts first make contact to the moment the contacts are completely and stably closed. It is used to reflect the degree of mechanical wear of the contacts. For example, as the surface material of the contacts is eroded by electrical corrosion, the moving contact needs to move a longer distance to form a stable contact with the stationary contact, and the overtravel time gradually decreases. The initial overtravel time is obtained from the relay's factory inspection report or by averaging the values ​​of the first 10 actions during the initial operation of the system. It serves as a benchmark to characterize the relay in its brand-new state. The failure threshold overtravel time is provided by the relay manufacturer or determined through mechanical life testing, representing the critical value at which the mechanical wear of the contacts has developed to the point where stable contact can no longer be guaranteed; The preset weighting coefficients and Preferred =0.65, which means that about 65% of the failures are dominated by contact electrical erosion, and 35% are dominated by mechanical fatigue and overtravel degradation; This touchpoint health sub-index The value range is [0,1]. The two dominant physical mechanisms of contact failure, namely electrical wear and mechanical wear, are quantified and weighted together to reflect both the cumulative consumption of contact material by arc erosion and the fatigue damage to the contact structure caused by mechanical action, thereby achieving the assessment of the health status of the contact.

[0031] Define coil health sub-index The calculation is based on the real-time rate of change of the coil's equivalent resistance and temperature compensation, and the calculation formula is as follows:

[0032] In the formula, The equivalent DC resistance of the coil for real-time monitoring is calculated based on Ohm's law by applying a measurement signal to the coil circuit and sampling the response current at the instant of power de-energization after each release of the relay. The initial resistance is obtained from the relay's factory inspection report; For ambient temperature, As the reference temperature, This represents the temperature coefficient of resistance of the coil material, expressed in units of 1 / ℃. It is obtained by referring to a table of coil materials; for example, 0.00393 / ℃ is used for copper conductors. The DC resistance of the coil increases with increasing temperature, decreases with the development of inter-turn short-circuit faults, and increases with the development of partial open-circuit faults. This is the coil's health sub-index. The value range is [0,1]. A temperature compensation coefficient is introduced. This eliminates the interference of temperature changes on resistance measurements, making It truly reflects the structural health status of the coil body, when A significant decrease indicates that the coil may have internal faults such as inter-turn short circuit (low resistance) or partial open circuit (high resistance), thus enabling a quantitative assessment of the coil's insulation and conductor integrity.

[0033] From the Touchpoint Health Sub-index and coil health sub-index Weighted dynamic health index :

[0034] In the formula, the dynamic health index The value range is [0,1]. The closer the value is to 1, the closer the relay is to a brand new state. The closer the value is to 0, the closer it is to failure. and These are the weighting coefficients for the contacts and the coil, respectively. It should be noted that, usually Greater than Preferred =0.70、 =0.30.

[0035] Among them, the life prediction algorithm executed inside the PLC core controller is configured to monitor the dynamic health index. The degradation trajectory is modeled, and the remaining lifetime is calculated. and its 95% confidence interval; among which, remaining lifetime The calculation formula is:

[0036] In the formula, The preset failure threshold can be the equivalent value corresponding to the minimum permissible contact voltage drop provided by the relay manufacturer. The value is determined, and is usually between 0.30 and 0.40. In this embodiment, 0.35 is preferred. The drift coefficient is estimated in real time using sliding window linear regression, and its calculation formula is as follows: In the formula, For the current moment The drift coefficient, The preferred sliding window size is M=20, representing the most recent 20 historical sampling times participating in the calculation; This represents the index of each sampling point within the sliding window. For the first in the window The timestamp of each sampling point For all within the sliding window The arithmetic mean, Let be the dynamic health index value corresponding to the i-th sampling point, and be the value of all samples within the sliding window. The arithmetic mean of the drift coefficient; the formula for this drift coefficient is the slope expression of the least squares estimate of a univariate linear regression, which represents the average rate of decline of the dynamic health index over time within the time span covered by the sliding window, when... When the value is negative (which is necessarily negative in the actual degradation process), it indicates that the health index decreases monotonically over time, and the greater the rate of decrease, the faster the relay ages. 95% confidence interval of remaining life for:

[0037] In the formula, This is the diffusion coefficient, in units of... Dynamic health index within the sliding window Historical data statistics have determined that this is used to characterize the impact of uncertain factors (such as random fluctuations in arc energy, minute changes in load current, short-term drift in ambient temperature and humidity, and discreteness of mechanical actions) on the dynamic health index. The degree of impact; Specifically, this diffusion coefficient The calculation method is as follows: First, within the sliding window, based on the obtained drift coefficient... and the linear regression intercept b ( ), calculate the residual for each sampling point The residual represents the random fluctuation component of the health index after removing deterministic degradation trends; secondly, the sample standard deviation of the residual sequence is calculated. ,in The arithmetic mean of the residual sequence; finally, the sampling interval... The standard deviation of the sample is calculated by dividing the square root of the time interval between two consecutive samples (in hours). This calculation process is automatically executed by the PLC core controller or host computer in each life prediction update cycle.

[0038] The remaining lifespan The degradation process of a relay is equated to the current health index. With rate Continuing towards the failure threshold Approximate linear motion, remaining lifetime point estimate This is the current health margin. Degradation per unit time The ratio of the two values ​​represents the time elapsed from the current moment until the health index first drops to the failure threshold, assuming the future degradation rate remains constant. The 95% confidence interval, based on the point estimate, further quantifies the range of prediction deviations caused by uncertainties such as random fluctuations in arc energy, slight changes in load current, and ambient temperature drift during each operation. The diffusion coefficient... The larger the confidence interval, the greater the dispersion of the health index around the degradation trend line in historical observation data, and the greater the possibility and magnitude of deviation of the actual life expectancy from the estimated point. Conversely, the smaller the confidence interval, the more reliable the prediction result. Through this confidence interval, the system can distinguish between two working conditions when making decisions: one with clear predictions and safe switching, and the other with scattered data and the need for continued observation. This avoids unnecessary pre-switching triggered by a single accidental fluctuation.

[0039] The switching decision algorithm executed internally by the PLC core controller is configured to perform a pre-switching action during the idle window of the next operating cycle when any of the following conditions are met: Condition A: Remaining life of the main relay satisfy ,in Pre-switching coefficient, The historical average remaining lifespan of relays of the same model. It should be noted that, during the initial commissioning of the system, the rated electrical life (unit: cycles) provided by the relay manufacturer is divided by the average daily number of operations of the relay (determined by the design conditions) to convert it into the rated remaining life hours. The initial value is set; as the system operates, whenever a relay retires due to natural aging, the PLC core controller automatically records the actual service time of that relay from commissioning to retirement, adds it to the historical database, and calculates the weighted moving average of the actual lifespan of all retired relays, continuously updating the data. Pre-switching coefficient The preferred value is 1.5 to 2.0, which reflects the conservatism of the operation and maintenance strategy. When the value is 1.5, it means that the pre-switching will be started when the remaining life of the main relay is 1.5 times the historical average level, leaving a sufficient maintenance window. When the value is 2.0, it is more conservative and is suitable for extremely important circuits that do not allow any risk of switching failure.

[0040] Condition A indicates that the remaining lifespan of the main relay is close to or below the normal retirement level of relays of the same model, and continuing to maintain its main service status will face a high risk of failure.

[0041] Condition B: The rate of decline of the dynamic health index of the main relay meets the following requirements. ,in The set degradation rate threshold.

[0042] It should be noted that during the initial stable operation phase after the system is put into operation, the PLC core controller automatically collects the average degradation rate of the health index during this phase. (correspond Use this as a baseline value, and then set... ,in The rate factor is preferred. =2.0~3.0, the specific value is set by the operation and maintenance personnel; Condition B indicates that the health index of the relay is deteriorating at an abnormally accelerated rate, suggesting that the contacts or coil may have entered the accelerated failure stage. Even if the estimated remaining life point has not yet triggered condition A, pre-switching should be performed in advance to avoid sudden failure.

[0043] In a preferred embodiment, the switching decision algorithm executed within the PLC core controller can also be configured to perform an emergency switching action upon detecting any of the following immediate fault characteristics: After the disconnect command is issued, the contact resistance Still below the preset disconnect resistance threshold ; This represents a contact adhesion fault, where the contacts cannot be mechanically separated due to the high-temperature welding of the electric arc, resulting in the load circuit being unable to disconnect power. After the closing command is issued, the contact resistance Still higher than the preset closing resistance threshold ; This represents a contact erosion open circuit fault, where a high-resistance layer forms on the contact surface due to severe electrical erosion or the contact gap is too large, causing the load circuit to be unable to conduct power normally. Coil current satisfy ,in Rated coil current, This is the preset allowable deviation coefficient; it represents a coil fault. When the measured coil current is significantly lower than the rated value, it indicates that there is a partial open circuit in the coil. When it is significantly higher than the rated value, it indicates that there is an inter-turn short circuit in the coil. Both situations will cause the relay to fail to generate sufficient electromagnetic attraction to drive the contacts to operate normally.

[0044] It should be noted that when the above-mentioned fault is detected, the PLC core controller immediately enters the emergency switching process, without waiting for the operation idle window, directly forcibly engages the standby relay and releases the main relay, and at the same time prompts the operation and maintenance personnel to arrange maintenance immediately.

[0045] The PLC core controller also executes a wear leveling algorithm, configured to actively rotate between the primary and backup relays during idle operation windows when the difference in their dynamic health indices meets preset conditions. These preset conditions include: ,and ; in, The dynamic health index of the main relay. The dynamic health index of the backup relay. The maximum permissible difference in health indicators threshold. This is to pre-set a safety margin.

[0046] It should be noted that this preset condition implies that the health status of the primary relay is significantly worse than that of the backup relay, and that the backup relay itself still retains sufficient safety margin (above the failure threshold by at least...). At this point, performing active rotation will not introduce the risk of switching failure, and will put healthier relays into primary use to handle frequent operation loads. Meanwhile, worn primary relays will be converted to standby and only put into use for short periods of time in emergency situations, thus achieving a balanced distribution of wear loads between primary and standby.

[0047] The preferred range for the maximum health index difference threshold is... =0.10-0.15, used to avoid excessively frequent rotation and ensure even wear; the preferred range for the preset safety margin is... =0.10, to ensure that the backup relay will not approach the failure threshold in a short period of time, even if it undergoes normal degradation after switching.

[0048] In a preferred embodiment, the system further includes an arc suppression buffer unit, which includes an RC buffer circuit (composed of a resistor R and a capacitor C connected in series) connected in parallel across the contacts of the electronic switching switch or across the load, for absorbing arc energy when the contacts are broken. It also includes a human-machine interface module, which receives and displays the dynamic health index calculated by the PLC core controller. and remaining lifespan

[0049] This embodiment provides a PLC control circuit relay master / standby redundancy switching system. It collects multi-dimensional physical quantities of the relay in real time and uses a contact health sub-index model based on arc energy accumulation and overtravel time degradation, and a coil health sub-index model based on temperature compensation resistor monitoring, to weightedly synthesize a dynamic health index. This enables continuous assessment of the overall health status of relays; through... Degradation trajectory modeling yielded point estimates of remaining lifetime and their 95% confidence intervals, filtering out prediction jitter caused by random fluctuations in single arcing events. By designing pre-switching logic based on remaining lifetime and degradation rate thresholds, combined with emergency switching logic for three types of immediate faults, a warning-pre-switching-emergency switching protection system was constructed. Ultimately, this system solved the single-point fault vulnerability in single-relay direct-drive structures and the severe synchronous wear and shortened lifespan issues in traditional dual-relay direct parallel connections. It achieved relay fault self-diagnosis, lifespan prediction, and seamless switching between primary and backup, improving the operational reliability of the core control loop of the hydropower plant PLC.

[0050] Please see Figure 2 The main / standby redundancy switching system for PLC control circuit relays provided in this embodiment has the following working process: Step S1: The system is powered on and initialized. The PLC core controller reads the configuration parameters in the storage unit and assigns the initial roles of the main relay and the standby relay. Step S2: The multi-parameter online monitoring unit continuously collects the operating parameters of the main relay and the backup relay and transmits them to the PLC core controller. Step S3: After each relay action is completed, the PLC core controller triggers the health assessment algorithm to calculate the dynamic health index of the current relay. Step S4: The PLC core controller triggers the life prediction algorithm according to a preset cycle, and calculates the estimated value of the remaining life point and its 95% confidence interval based on the dynamic health index. Step S5: The switching decision algorithm is executed in real time. If an immediate fault is detected, an emergency switch is executed immediately. If the remaining lifespan is lower than the warning threshold or the rate of decline of the health index exceeds the degradation threshold, a pre-switch is executed in the next idle window. Step S6: The system repeats steps S2 to S5 until it is shut down for maintenance.

[0051] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A primary / backup redundancy switching system for PLC control circuit relays, characterized in that, include: Main and backup relay modules, multi-parameter online monitoring unit, and PLC core controller; The main and backup relay module is used to configure a main relay and a backup relay in the same control circuit. The coil drive terminals of the main relay and the backup relay are respectively connected to two independent digital output channels of the PLC core controller, and their contact output terminals are connected to the load circuit. The multi-parameter online monitoring unit is connected to the main and backup relay module and is used to collect the operating parameters of the main and backup relays in real time. The PLC core controller is connected to the multi-parameter online monitoring unit and the main / standby relay module. It is used to receive the operating parameters, execute the health assessment algorithm, the life prediction algorithm and the switching decision algorithm in sequence, and output switching instructions to control the main / standby relay module to perform the main / standby switching action.

2. The system according to claim 1, characterized in that, The main and backup relay module also includes an electronic switching switch; the contact output terminals of the main relay and the backup relay are connected to the load circuit through the electronic switching switch, and the electronic switching switch performs the action of disconnecting first and then connecting during the switching process.

3. The system according to claim 1, characterized in that, The operating parameters collected by the multi-parameter online monitoring unit include, but are not limited to: coil current, contact voltage drop, pull-in time, release time, cumulative number of operations, and ambient temperature parameters of the main relay and the backup relay.

4. The system according to claim 1, characterized in that, The health assessment algorithm executed internally by the PLC core controller is configured to calculate the dynamic health index of the main relay at time t. Its calculation process includes: Define the contact health sub-index A comprehensive evaluation is conducted based on the cumulative arc energy and the contact overtravel time degradation term. The calculation formula is as follows: in, This represents the cumulative arc energy during the Nth operation. The critical cumulative arc energy of the relay contact material. For material properties, This is a material property index. The measured overtravel time for the Nth operation. This is the initial overtravel time. The failure threshold timeout The weighting coefficients and ; Define coil health sub-index The calculation is based on the real-time rate of change of the coil's equivalent resistance and temperature compensation, and the calculation formula is as follows: in, For real-time monitoring of the coil's equivalent DC resistance, The initial resistance, For ambient temperature, As the reference temperature, The temperature coefficient of resistance of the coil material; The contact health sub-index and coil health sub-index The dynamic health index is obtained by weighting. : in, and These are the weighting coefficients for the contacts and the coil, respectively. .

5. The system according to claim 4, characterized in that, The life prediction algorithm executed internally by the PLC core controller is configured to analyze the dynamic health index. The degradation trajectory is modeled, and the remaining lifetime is calculated. and its 95% confidence interval; wherein, the remaining lifetime The calculation formula is: in, The preset failure threshold, The drift coefficient is estimated in real time using sliding window linear regression, and its calculation formula is as follows: In the formula, For the current moment The drift coefficient, To adjust the sliding window size, This represents the index of each sampling point within the sliding window. For the first in the window The timestamp of each sampling point For all within the sliding window The arithmetic mean, Let be the dynamic health index value corresponding to the i-th sampling point, and let be the value of all samples within the sliding window. The arithmetic mean; 95% confidence interval of remaining life for: in, The diffusion coefficient is derived from the dynamic health index within the sliding window. Historical data statistics are used to characterize the impact of uncertainty factors on the dynamic health index. The extent of the impact.

6. The system according to claim 5, characterized in that, The switching decision algorithm executed internally by the PLC core controller is configured to perform a pre-switching action during the idle window of the next operating cycle when any of the following conditions are met: Condition A: Remaining life of the main relay satisfy ,in Pre-switching coefficient, The historical average remaining lifespan of relays of the same model. Condition B: The rate of decline of the dynamic health index of the main relay meets the following conditions. ,in The set degradation rate threshold.

7. The system according to claim 5, characterized in that, The switching decision algorithm executed internally by the PLC core controller is configured to perform an emergency switching action upon detecting any of the following immediate fault characteristics: After the disconnect command is issued, the contact resistance Still below the preset disconnect resistance threshold ; After the closing command is issued, the contact resistance Still higher than the preset closing resistance threshold ; Coil current satisfy ,in Rated coil current, This is the allowable deviation coefficient.

8. The system according to claim 5, characterized in that, The PLC core controller also executes a wear leveling algorithm, configured to actively rotate the relays during idle periods when the difference in dynamic health indices between the primary and backup relays meets preset conditions. These preset conditions include: ,and ; in, The dynamic health index of the main relay. The dynamic health index of the backup relay. The maximum permissible difference in health indicators threshold. This is to pre-set a safety margin.

9. The system according to claim 2, characterized in that, It also includes an arc suppression buffer unit, which includes an RC buffer circuit connected in parallel across the contacts or load of the electronic switching switch to absorb arc energy when the contacts are broken.

10. The system according to claim 5, characterized in that, It also includes a human-machine interaction module, which is used to receive and display the dynamic health index calculated by the PLC core controller. and remaining lifespan .