A method for renovating PLC cabinet with dual power supply redundancy
By real-time monitoring and analyzing the change in the main power supply voltage in the PLC cabinet, calculating the switching time, and adjusting the power switching time, the problem of untimely switching between dual power supplies is solved, ensuring stable power supply in the PLC cabinet when the main power supply fails.
Patent Information
- Application Number
- CN202411546125.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2044-11-01
AI Technical Summary
In the prior art, the problem of untimely switching of dual power supplies when the switching time is short.
By monitoring the main power supply voltage in the PLC cabinet in real time, analyzing the change curve type, obtaining the growth curve determination value and deviation degree coefficient, calculating the switching time, and adjusting the power switching time to ensure timely switching.
The prediction and adjustment of the dual power switching time is realized, ensuring timely switching to the backup power supply when the main power supply fails, and improving the reliability and stability of the PLC cabinet.
Smart Images

Figure CN119519094B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of automatic control, in particular to a method for reconstructing a PLC cabinet with dual power supply redundancy. Background Art
[0002] As the core component of industrial automation control systems, PLC is responsible for executing various control tasks. To ensure the stability and efficiency of the industrial production process, the system needs to have a high degree of reliability. Therefore, dual power supply redundancy technology is widely used in the transformation of PLC cabinets. Dual power supply redundancy technology ensures that when the main power supply fails, the backup power supply can immediately take over the power supply task.
[0003] In the existing technology, power redundancy technology is to configure two or more independent power supplies to ensure that when the main power supply fails, the backup power supply can immediately take over the power supply task. However, it is necessary to analyze and predict before the main power supply fails. By predicting the future changes in the main power supply voltage, data support is provided for the operation of switching the main power supply to the backup power supply in the PLC cabinet, and further analysis is performed to determine whether the dual power supply switching time is timely. If not, the required adjustment of the dual power supply switching time is calculated, thereby solving the problem of untimely dual power supply switching when the dual power supply switching time is short, and realizing the transformation of the dual power supply switching time strategy.
[0004] To this end, the present invention provides a method for reconstructing a PLC cabinet with dual power supply redundancy. Summary of the Invention
[0005] In order to make up for the deficiencies of the prior art, the problem of untimely dual power switching caused by a short dual power switching time as mentioned in the background art is solved.
[0006] The technical solution adopted by the present invention to solve its technical problem is:
[0007] A method for reconstructing a PLC cabinet with dual power supply redundancy, comprising:
[0008] Step 1: During the monitoring period, the main power supply voltage in the PLC cabinet is monitored in real time to obtain main power supply voltage data, wherein the main power supply voltage data includes a main voltage value, and the main voltage value is analyzed and processed to obtain a monitoring signal;
[0009] Step 2: Based on the monitoring signal, obtain the analysis change curve, process the analysis change curve to obtain a growth curve determination value, compare the growth curve determination value with the growth curve determination threshold, and evaluate whether the curve change type is a growth change type. If the growth curve determination value is greater than or equal to the growth curve determination threshold, the analysis change curve is determined to be a growth change curve, and a curve growth signal is generated;
[0010] Step 3: Based on the curve growth signal, obtain the overlap length coefficient and the deviation degree coefficient, analyze and process the overlap length coefficient and the deviation degree coefficient to obtain a growth type value, and compare them with the threshold to obtain a growth linear curve or a growth nonlinear curve. Analyze and process the growth linear curve or the growth nonlinear curve to obtain a switching timeliness value, and compare it with the threshold. If the switching timeliness value is less than the switching timeliness threshold, generate a switching untimely signal;
[0011] Step 4: Based on the untimely switching signal, the power switching time is modified to complete the power switching modification work.
[0012] As a further solution of the present invention: the voltage deviation value is obtained as follows:
[0013] Compare the main voltage value obtained by real-time monitoring with the set main voltage value. The comparison process is as follows:
[0014] If the main voltage value obtained by real-time monitoring is equal to the set main voltage value, it means that the main power supply voltage is normal and a voltage non-deviation signal is generated;
[0015] If the main voltage value obtained by real-time monitoring is not equal to the set main voltage value, it means that the main voltage is abnormal and a voltage deviation signal is generated;
[0016] Based on the voltage deviation signal, the main voltage value obtained by real-time monitoring is subtracted from the set main voltage value to obtain the voltage deviation value.
[0017] As a further solution of the present invention, the voltage deviation value is compared with the voltage deviation interval, and the comparison process is as follows:
[0018] If the voltage deviation value is within the voltage deviation range, it means that the main voltage value obtained by real-time monitoring has deviated but has not exceeded the voltage deviation range, and a monitoring signal is generated;
[0019] If the voltage deviation value is not within the voltage deviation range, it means that the main voltage value obtained by real-time monitoring exceeds the voltage deviation range, and a non-monitoring signal is generated.
[0020] As a further solution of the present invention: the growth curve determination value is obtained as follows:
[0021] Obtain the number of growth sub-curves, add up the numbers of all growth sub-curves, and calculate the ratio of the sum to the number of all sub-curves in the analysis change curve to obtain the growth sub-curve number ratio;
[0022] Obtain the length of the growth sub-curve, add up the lengths of all growth sub-curves, and calculate the ratio of the sum to the length of the analysis change curve to obtain the growth sub-curve length ratio;
[0023] The growth curve determination value is obtained by adding the growth sub-curve number ratio and the growth sub-curve length ratio.
[0024] As a further solution of the present invention: the growth sub-curve is obtained as follows:
[0025] Divide the analysis change curve into several sub-curves;
[0026] Get the main voltage value corresponding to the initial endpoint of the sub-curve, marked as the initial voltage value;
[0027] Get the main voltage value corresponding to the end point of the sub-curve and mark it as the end voltage value;
[0028] Subtract the ending voltage value from the initial voltage value to obtain the voltage change value of the sub-curve;
[0029] If the voltage change value of the sub-curve is positive, it means that the sub-curve is in an increasing trend and is marked as an increasing sub-curve.
[0030] As a further solution of the present invention: the method for obtaining the growth type value is:
[0031] Based on the growth change curve, the initial endpoint and the end endpoint of the growth change curve are obtained, the initial endpoint and the end endpoint of the growth change curve are connected, and a straight line is fitted to mark it as a fitted growth line;
[0032] Obtain all main voltage values in the growth-type change curve, and mark the distance between each main voltage value and the fitting straight line as the data deviation value;
[0033] Calculate the standard deviation of all data deviation values to obtain the degree of deviation;
[0034] Select the maximum and minimum main voltage values in the growth-type change curve, and take the difference between the maximum and minimum main voltage values to obtain the data point range value;
[0035] Calculate the ratio of the deviation degree value to the data point range value to obtain the deviation degree coefficient;
[0036] Obtain the curve segment where the growth-type change curve coincides with the fitted growth straight line, and mark it as the coincident curve segment;
[0037] Obtain the length of the coincident curve segment, calculate the ratio of the length of the coincident curve segment to the length of the fitted growth straight line, and obtain the coincidence length coefficient;
[0038] The ratio of the overlap length coefficient to the deviation degree coefficient is calculated to obtain the growth type value.
[0039] As a further solution of the present invention, the growth type value is compared with the growth type threshold, and the comparison process is as follows:
[0040] If the growth type value is greater than or equal to the growth type threshold, a growth linear signal is generated;
[0041] If the curve type is less than the curve type threshold, a growing nonlinear signal is generated.
[0042] As a further solution of the present invention: based on the growth nonlinear signal, the slope values in all growth sub-curves are obtained, the slope values in all growth sub-curves are compared, the main voltage change value corresponding to the maximum slope value and the corresponding time length are selected, and the main voltage change value corresponding to the maximum slope value and the corresponding time length are calculated by ratio to obtain the maximum growth rate value;
[0043] Obtaining a main voltage value corresponding to when the monitoring signal is generated, subtracting the main voltage value corresponding to when the monitoring signal is generated from the main voltage threshold, taking the absolute value, and obtaining a main voltage difference;
[0044] The switching time value is obtained by calculating the ratio of the main voltage difference to the maximum growth rate value.
[0045] As a further solution of the present invention: based on the growing linear signal, in the coordinate system where the analysis change curve is located, the main voltage threshold is punctuated on the Y-axis, and a straight line parallel to the X-axis is made and marked as the voltage threshold line. A number of main voltage data are obtained on the analysis change curve, and fitting is performed by the least squares method to obtain a fitting straight line. The fitting straight line is extended so that it intersects with the voltage threshold line, and the time point corresponding to the intersection is obtained, and it is marked as the critical time point of the main voltage change. According to the critical time point of the main voltage change and the time point when the monitoring signal appears, the difference calculation is performed to obtain the switching time value.
[0046] As a further solution of the present invention: the power switching time adjustment process is as follows:
[0047] Substitute the switching time value and switching time threshold into the formula: K = SX y -SX, calculate the dual power switching time that needs to be adjusted, where SX represents the switching time value, SX y It is expressed as the switching time threshold.
[0048] The beneficial effects of the present invention are as follows:
[0049] (1) The present invention monitors the main power supply voltage in the PLC cabinet in real time during the monitoring period to obtain main power supply voltage data, wherein the main power supply voltage data includes a main voltage value, the main voltage value is analyzed and processed to obtain a monitoring signal, when the monitoring signal is generated, an analysis change curve is obtained, the analysis change curve is processed to obtain a curve type value, the curve change value is compared with the curve change threshold, and it is evaluated whether the curve change type is a growth change type. If the growth curve judgment value is greater than or equal to the growth curve judgment threshold, a curve growth signal is generated; if the growth curve judgment value is less than the growth curve judgment threshold, a curve non-growth signal is generated, thereby predicting the future change of the main power supply voltage by evaluating the curve change type, and providing data support for the process of switching the main power supply in the PLC cabinet to the backup power supply;
[0050] (2) The present invention obtains the overlap length coefficient and the deviation degree coefficient based on the curve growth signal, analyzes and processes the overlap length coefficient and the deviation degree coefficient to obtain the growth type value, and compares it with the threshold to obtain a growth linear curve or a growth nonlinear curve, and analyzes and processes the growth linear curve or the growth nonlinear curve respectively to obtain a switching time value, and compares it with the threshold. If the switching time value is less than the switching time threshold, a switching untimely signal is generated. Based on the switching untimely signal, the switching time value and the switching time threshold are substituted into the formula to calculate the dual power switching time that needs to be adjusted, thereby predicting the actual dual power switching time by analyzing the type of the growth curve, and comparing it with the set dual power switching time to determine whether the dual power switching time is timely. If not, the dual power switching time that needs to be adjusted is obtained, thereby solving the problem of untimely dual power switching when the dual power switching time is short, and realizing the transformation of the dual power switching time strategy. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The present invention will be further described below with reference to the accompanying drawings.
[0052] Figure 1 is a flowchart of the steps of Example 1 of the present invention;
[0053] Figure 2 It is a flow chart of the steps of the dual power supply redundancy transformation method of the present invention. DETAILED DESCRIPTION
[0054] In order to make the technical means, creative features, objectives and effects achieved by the present invention easier to understand, the present invention is further described below in conjunction with specific implementation methods.
[0055] Example 1
[0056] like Figure 1 As shown, a method for reconstructing a PLC cabinet with dual power supply redundancy according to an embodiment of the present invention includes:
[0057] Step 1: During the monitoring period, the main power supply voltage in the PLC cabinet is monitored in real time to obtain main power supply voltage data, wherein the main power supply voltage data includes a main voltage value, and the main voltage value is analyzed and processed to obtain a monitoring signal;
[0058] In some embodiments, the main voltage value obtained by real-time monitoring is compared with the set main voltage value. The comparison process is as follows:
[0059] If the main voltage value obtained by real-time monitoring is equal to the set main voltage value, it means that the main power supply voltage is normal and a voltage non-deviation signal is generated;
[0060] If the main voltage value obtained by real-time monitoring is not equal to the set main voltage value, it means that the main voltage is abnormal and a voltage deviation signal is generated;
[0061] Based on the voltage deviation signal, the main voltage value obtained by real-time monitoring is subtracted from the set main voltage value to obtain the voltage deviation value;
[0062] Compare the voltage deviation value with the voltage deviation range. The comparison process is as follows:
[0063] If the voltage deviation value is within the voltage deviation range, it means that the main voltage value obtained by real-time monitoring has deviated but has not exceeded the voltage deviation range, and a monitoring signal is generated;
[0064] If the voltage deviation value is not within the voltage deviation range, it means that the main voltage value obtained by real-time monitoring exceeds the voltage deviation range, and a non-monitoring signal is generated;
[0065] Step 2: Based on the monitoring signal, obtain the analysis change curve, process the analysis change curve to obtain the curve type value, compare the curve change value with the curve change threshold, evaluate whether the curve change type is a growth change type, and generate a curve growth signal;
[0066] Wherein, whether the growth is a linear signal includes a growth linear signal or a growth nonlinear signal;
[0067] In some embodiments, based on the monitoring signal, the main voltage value obtained by real-time monitoring is marked as the target voltage value, and the period between the target voltage value and the corresponding voltage value when the monitoring signal is generated is marked as the analysis period;
[0068] Establish an XY axis, where the X axis represents time and the Y axis represents voltage, obtain all main voltage values within the analysis period, and substitute all main voltage values within the analysis period into the XY axis coordinate system to draw an analysis change curve;
[0069] Based on the analysis change curve, the analysis change curve is divided into several sub-curves, and the growth sub-curve number ratio and the growth sub-curve length ratio are obtained. The growth sub-curve number ratio and the growth sub-curve length ratio are processed to obtain the growth curve judgment value. The specific process is as follows:
[0070] It should be noted that: the analysis change curve is divided into sub-curves by dividing the analysis change curve into equal time lengths, wherein the time period corresponding to each sub-curve is the analysis sub-time period;
[0071] Get the main voltage value corresponding to the initial endpoint of the sub-curve, marked as the initial voltage value;
[0072] Get the main voltage value corresponding to the end point of the sub-curve and mark it as the end voltage value;
[0073] Subtract the ending voltage value from the initial voltage value to obtain the voltage change value of the sub-curve;
[0074] If the voltage change value of the sub-curve is positive, it means that the sub-curve is in an increasing trend and is marked as a growing sub-curve;
[0075] Obtain the number of growth sub-curves, add up the numbers of all growth sub-curves, and calculate the ratio of the sum to the number of all sub-curves in the analysis change curve to obtain the growth sub-curve number ratio;
[0076] Obtain the length of the growth sub-curve, add up the lengths of all growth sub-curves, and calculate the ratio of the sum to the length of the analysis change curve to obtain the growth sub-curve length ratio;
[0077] The growth curve determination value is obtained by adding the growth sub-curve number ratio and the growth sub-curve length ratio.
[0078] It can be understood that the growth curve determination value is obtained by calculating the ratio of the number of growth sub-curves and the ratio of the length of the growth sub-curves to comprehensively reflect the degree of change trend of the analysis change curve within the analysis period. Specifically, if the growth curve determination value is larger, it means that within the analysis period, the number of sub-curves showing an increasing trend of the main voltage value is larger, and the length ratio of these growth sub-curves in the overall analysis change curve is larger, which means that the main voltage value as a whole presents a more obvious growth trend within the entire analysis period. Conversely, if the growth curve determination value is smaller, it means that within the analysis period, the number of sub-curves showing an increasing trend of the main voltage value is smaller, and the length ratio of these growth sub-curves in the overall analysis change curve is smaller, which means that the main voltage value as a whole presents a less obvious growth trend within the entire analysis period.
[0079] The growth curve determination value is compared with the growth curve determination threshold. The comparison process is as follows:
[0080] If the growth curve judgment value is greater than or equal to the growth curve judgment threshold, it means that within the analysis change curve, there are more sub-curves with positive slopes and the length of the growth sub-curve accounts for a large proportion. In this case, the analysis change curve is judged to be a growth-type change curve, and a curve growth signal is generated.
[0081] If the growth curve judgment value is less than the growth curve judgment threshold, it means that within the analysis change curve, the number of sub-curves with positive slopes is small and the length of the growth sub-curve accounts for a small proportion. In this case, the analysis change curve is judged to be a non-growth change curve, and a curve non-growth signal is generated.
[0082] The specific implementation plan of the embodiment of the present invention is: within the monitoring period, the main power supply voltage in the PLC cabinet is monitored in real time to obtain main power supply voltage data, wherein the main power supply voltage data includes a main voltage value, the main voltage value is analyzed and processed to obtain a monitoring signal, when the monitoring signal is generated, an analysis change curve is obtained, the analysis change curve is processed to obtain a curve type value, the curve change value is compared with the curve change threshold, and it is evaluated whether the curve change type is a growth change type. If the growth curve judgment value is greater than or equal to the growth curve judgment threshold, a curve growth signal is generated; if the growth curve judgment value is less than the growth curve judgment threshold, a curve non-growth signal is generated, thereby predicting the future changes of the main power supply voltage by evaluating the curve change type, and providing data support for the process of switching the main power supply in the PLC cabinet to the backup power supply.
[0083] Example 2
[0084] like Figure 1-2 As shown, based on Example 1, a PLC cabinet dual power supply redundancy reconstruction method according to an embodiment of the present invention includes:
[0085] Step 3: Based on the curve growth signal, obtain the overlap length coefficient and the deviation degree coefficient, analyze and process the overlap length coefficient and the deviation degree coefficient to obtain the growth type value, and compare them with the threshold to obtain a growth linear curve or a growth nonlinear curve. Analyze and process the growth linear curve or the growth nonlinear curve respectively to obtain the switching timeliness value, and compare it with the threshold to generate a switching timely signal;
[0086] The signal of whether the switching is timely includes a signal of switching in time and a signal of switching in not in time;
[0087] In some embodiments, when a curve growth signal is generated, a growth type value is obtained, and the specific acquisition method is as follows:
[0088] Based on the growth change curve, the initial endpoint and the end endpoint of the growth change curve are obtained, the initial endpoint and the end endpoint of the growth change curve are connected, and a straight line is fitted to mark it as a fitted growth line;
[0089] Obtain all main voltage values in the growth-type change curve, and mark the distance between each main voltage value and the fitting straight line as the data deviation value;
[0090] Calculate the standard deviation of all data deviation values to obtain the degree of deviation;
[0091] Select the maximum and minimum main voltage values in the growth-type change curve, and take the difference between the maximum and minimum main voltage values to obtain the data point range value;
[0092] Calculate the ratio of the deviation degree value to the data point range value to obtain the deviation degree coefficient;
[0093] Obtain the curve segment where the growth-type change curve coincides with the fitted growth straight line, and mark it as the coincident curve segment;
[0094] Obtain the length of the coincident curve segment, calculate the ratio of the length of the coincident curve segment to the length of the fitted growth straight line, and obtain the coincidence length coefficient;
[0095] Calculate the ratio of the overlap length coefficient to the deviation degree coefficient to obtain the growth type value;
[0096] It can be understood that the growth type value is obtained by a comprehensive quantitative evaluation of the degree of deviation and overlap of the growth type change curve relative to its fitted straight line. This value reflects the linearity of the growth type change curve. Specifically, the larger the curve type value, the higher the degree of overlap between the growth type change curve and its fitted growth straight line, and all voltage values within the growth type change curve are more concentrated than its fitted growth straight line. Conversely, the smaller the curve type value, the lower the degree of overlap between the growth type change curve and its fitted straight line, and all voltage values within the growth type change curve are more dispersed than its fitted growth straight line.
[0097] The growth type value is compared with the growth type threshold. The comparison process is as follows:
[0098] If the growth type value is greater than or equal to the growth type threshold, it means that the growth type change curve has a higher degree of overlap with its fitted growth straight line, and all voltage values in the growth type change curve are more concentrated than its fitted growth straight line, generating a growth linear signal;
[0099] If the curve type is less than the curve type threshold, it means that the degree of coincidence between the growth-type change curve and its fitting straight line is lower, and all voltage values within the growth-type change curve are more dispersed than its fitting growth straight line, generating a growth nonlinear signal;
[0100] Based on the growth nonlinear signal, the slope values in all growth sub-curves are obtained, the slope values in all growth sub-curves are compared, the main voltage change value corresponding to the maximum slope value and the corresponding time length are selected, and the main voltage change value corresponding to the maximum slope value and the corresponding time length are calculated by ratio to obtain the maximum growth rate value;
[0101] Obtaining a main voltage value corresponding to when the monitoring signal is generated, subtracting the main voltage value corresponding to when the monitoring signal is generated from the main voltage threshold, taking the absolute value, and obtaining a main voltage difference;
[0102] Calculate the ratio of the main voltage difference to the maximum growth rate value to obtain the switching time value;
[0103] Based on the growth linear signal, in the coordinate system of the analysis change curve, the main voltage threshold is marked on the Y-axis, and a straight line parallel to the X-axis is drawn and marked as the voltage threshold line. Several main voltage data are obtained on the analysis change curve, and a fitting line is obtained by the least squares method. The fitting line is extended so that it intersects with the voltage threshold line, and the time point corresponding to the intersection is obtained and marked as the critical time point of the main voltage change. According to the critical time point of the main voltage change and the time point when the monitoring signal appears, the difference calculation is performed to obtain the switching time value;
[0104] It can be understood that the switching time value means: reflecting the time from the main voltage value corresponding to the generation of the current monitoring signal to the main voltage threshold in the process of analyzing the voltage change. Specifically, the larger the value, the longer the time from the main voltage value corresponding to the generation of the current monitoring signal to the main voltage threshold. Conversely, the smaller the value, the shorter the time from the main voltage value corresponding to the generation of the current monitoring signal to the main voltage threshold.
[0105] The switching timeout value is compared with the switching timeout threshold. The comparison process is as follows:
[0106] If the switching timeliness value is greater than or equal to the switching timeliness threshold, it means that the longer the time from the main voltage value corresponding to the generation of the current monitoring signal to the main voltage threshold is, the more likely it is that a switching timely signal is generated;
[0107] If the switching timeliness value is less than the switching timeliness threshold, it means that the time from the main voltage value corresponding to the generation of the current monitoring signal to the main voltage threshold is shorter, and a switching untimely signal is generated;
[0108] Step 4: Based on the untimely switching signal, modify the power switching time to complete the power switching modification work;
[0109] In some embodiments, when a switching delay signal is generated, the power switching time is modified. The specific adjustment process is as follows:
[0110] The power switching time adjustment process is as follows:
[0111] Substitute the switching time value and switching time threshold into the formula: K = SX y -SX, calculate the dual power switching time that needs to be adjusted, where SX represents the switching time value, SX y It is expressed as the switching time threshold;
[0112] The specific implementation scheme of the embodiment of the present invention is: based on the curve growth signal, the overlap length coefficient and the deviation degree coefficient are obtained, the overlap length coefficient and the deviation degree coefficient are analyzed and processed to obtain the growth type value, and compared with the threshold to obtain a growth linear curve or a growth nonlinear curve, and the growth linear curve or the growth nonlinear curve are analyzed and processed respectively to obtain a switching time value, and compared with the threshold. If the switching time value is less than the switching time threshold, a switching untimely signal is generated. Based on the switching untimely signal, the switching time value and the switching time threshold are substituted into the formula to calculate the dual power switching time that needs to be adjusted. By analyzing the type of the growth curve, the actual dual power switching time is predicted, and compared with the set dual power switching time to determine whether the dual power switching time is timely. If not, the dual power switching time that needs to be adjusted is obtained, thereby solving the problem of untimely dual power switching when the dual power switching time is short, and realizing the transformation of the dual power switching time strategy.
[0113] The basic principles, main features, and advantages of the present invention are shown and described above. Those skilled in the art should understand that the present invention is not limited to the foregoing embodiments. The foregoing embodiments and descriptions are merely illustrative of the principles of the present invention. Various changes and modifications may be made to the present invention without departing from the spirit and scope of the present invention. Such changes and modifications are intended to fall within the scope of the present invention. The scope of protection claimed in the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for renovating a PLC cabinet with dual power supply redundancy, characterized by: include: Step 1: During the monitoring period, the main power supply voltage in the PLC cabinet is monitored in real time to obtain main power supply voltage data, wherein the main power supply voltage data includes a main voltage value, and the main voltage value is analyzed and processed to obtain a monitoring signal; Step 2: Based on the monitoring signal, obtain the analysis change curve, process the analysis change curve to obtain a growth curve determination value, compare the growth curve determination value with the growth curve determination threshold, and evaluate whether the curve change type is a growth change type. If the growth curve determination value is greater than or equal to the growth curve determination threshold, the analysis change curve is determined to be a growth change curve, and a curve growth signal is generated; The growth curve determination value is obtained as follows: Divide the analysis change curve into several sub-curves; Get the main voltage value corresponding to the initial endpoint of the sub-curve, marked as the initial voltage value; Get the main voltage value corresponding to the end point of the sub-curve and mark it as the end voltage value; Subtract the ending voltage value from the initial voltage value to obtain the voltage change value of the sub-curve; If the voltage change value of the sub-curve is positive, it means that the sub-curve is in an increasing trend and is marked as a growing sub-curve; Obtain the number of growth sub-curves, add up the numbers of all growth sub-curves, and calculate the ratio of the sum to the number of all sub-curves in the analysis change curve to obtain the growth sub-curve number ratio; Obtain the length of the growth sub-curve, add up the lengths of all growth sub-curves, and calculate the ratio of the sum to the length of the analysis change curve to obtain the growth sub-curve length ratio; The growth curve determination value is obtained by adding the growth sub-curve number ratio and the growth sub-curve length ratio. Step 3: Based on the curve growth signal, obtain the overlap length coefficient and the deviation degree coefficient, analyze and process the overlap length coefficient and the deviation degree coefficient to obtain a growth type value, and compare them with the threshold to obtain a growth linear curve or a growth nonlinear curve. Analyze and process the growth linear curve or the growth nonlinear curve to obtain a switching timeliness value, and compare it with the threshold. If the switching timeliness value is less than the switching timeliness threshold, generate a switching untimely signal; The way to obtain the growth type value is: Based on the growth change curve, the initial endpoint and the end endpoint of the growth change curve are obtained, the initial endpoint and the end endpoint of the growth change curve are connected, and a straight line is fitted to mark it as a fitted growth line; Based on the growth change curve and the fitted growth straight line, the deviation degree coefficient and the overlap length coefficient are obtained; Calculate the ratio of the overlap length coefficient to the deviation degree coefficient to obtain the growth type value; Step 4: Based on the untimely switching signal, modify the power switching time to complete the power switching modification work; Based on the growing linear signal, in the coordinate system of the analysis change curve, the main voltage threshold is marked on the Y-axis, and a straight line parallel to the X-axis is drawn and marked as the voltage threshold line. Several main voltage data are obtained on the analysis change curve, and fitting is performed through the least squares method to obtain a fitting straight line. The fitting straight line is extended so that it intersects with the voltage threshold line, and the time point corresponding to the intersection is obtained and marked as the critical time point of the main voltage change. According to the critical time point of the main voltage change and the time point when the monitoring signal appears, the difference calculation is performed to obtain the switching time value.
2. A PLC cabinet dual power supply redundancy reconstruction method according to claim 1, characterized in that: The voltage deviation value is obtained as follows: Compare the main voltage value obtained by real-time monitoring with the set main voltage value. The comparison process is as follows: If the main voltage value obtained by real-time monitoring is equal to the set main voltage value, it means that the main power supply voltage is normal and a voltage non-deviation signal is generated; If the main voltage value obtained by real-time monitoring is not equal to the set main voltage value, it means that the main voltage is abnormal and a voltage deviation signal is generated; Based on the voltage deviation signal, the main voltage value obtained by real-time monitoring is subtracted from the set main voltage value to obtain the voltage deviation value.
3. A PLC cabinet dual power supply redundancy reconstruction method according to claim 2, characterized in that: Compare the voltage deviation value with the voltage deviation range. The comparison process is as follows: If the voltage deviation value is within the voltage deviation range, it means that the main voltage value obtained by real-time monitoring has deviated but has not exceeded the voltage deviation range, and a monitoring signal is generated; If the voltage deviation value is not within the voltage deviation range, it means that the main voltage value obtained by real-time monitoring exceeds the voltage deviation range, and a non-monitoring signal is generated.
4. The method for renovating a PLC cabinet with dual power supply redundancy according to claim 1, wherein: The deviation coefficient and the overlap length coefficient are obtained as follows: Obtain all main voltage values in the growth-type change curve, and mark the distance between each main voltage value and the fitting straight line as the data deviation value; Calculate the standard deviation of all data deviation values to obtain the degree of deviation; Select the maximum and minimum main voltage values in the growth-type change curve, and take the difference between the maximum and minimum main voltage values to obtain the data point range value; Calculate the ratio of the deviation degree value to the data point range value to obtain the deviation degree coefficient; Obtain the curve segment where the growth-type change curve coincides with the fitted growth straight line, and mark it as the coincident curve segment; The length of the coincident curve segment is obtained, and the ratio of the length of the coincident curve segment to the length of the fitted growth line is calculated to obtain the coincidence length coefficient.
5. The method for renovating a PLC cabinet with dual power supply redundancy according to claim 1, characterized in that: The growth type value is compared with the growth type threshold. The comparison process is as follows: If the growth type value is greater than or equal to the growth type threshold, a growth linear signal is generated; If the growth type value is less than the growth type threshold, a growth nonlinearity signal is generated.
6. The method for reconstructing a PLC cabinet with dual power supply redundancy according to claim 1, characterized in that: Based on the growth nonlinear signal, the slope values in all growth sub-curves are obtained, the slope values in all growth sub-curves are compared, the main voltage change value corresponding to the maximum slope value and the corresponding time length are selected, and the main voltage change value corresponding to the maximum slope value and the corresponding time length are calculated by ratio to obtain the maximum growth rate value; Obtaining a main voltage value corresponding to when the monitoring signal is generated, subtracting the main voltage value corresponding to when the monitoring signal is generated from the main voltage threshold, taking the absolute value, and obtaining a main voltage difference; The switching time value is obtained by calculating the ratio of the main voltage difference to the maximum growth rate value.
7. The method for reconstructing a PLC cabinet with dual power supply redundancy according to claim 1, characterized in that: The power switching time adjustment process is as follows: Substitute the switching timeout value and switching timeout threshold into the formula: , calculate the required adjustment of the dual power switching time, where, Expressed as the switching time value, It is expressed as the switching time threshold.
Citation Information
Patent Citations
Voltage drop generation method based on contactor logic sequential control
CN108469539A
Method and system for measuring running state of power line of power distribution network
CN117233541A