Method and electronic equipment for controlling capacitor switching in reactive compensation system
By dividing the sampling time according to the preset switching delay time and the power factor of the grid in the power grid, the reasonable control of the capacitor is achieved, and the problems of aging and damage of the capacitor when the power factor fluctuates in the power grid are solved, and the stability and power quality of the grid are improved.
Patent Information
- Application Number
- CN202510645572.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2045-05-20
AI Technical Summary
When the power factor of the power grid fluctuates or oscillates frequently, the capacitor is prone to aging and damage, and the power quality is poor. Frequent switching operations in the prior art lead to wear and degradation of the power quality.
The controller determines multiple sampling times based on the preset switching delay time under preset conditions, collects the power grid power factor in real time, and divides the sampling times into different arrays. Based on the number of these arrays, the input, cutting or holding state of the capacitor is controlled at the target time, so as to avoid unnecessary capacitor actions caused by abnormal or unstable fluctuations at a single time.
It reduces the number of times of switching capacitors, extends the service life of capacitors, reduces the risk of damage, and ensures the operating stability and power quality of the power grid.
Smart Images

Figure CN120184998B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power equipment, and in particular to a method and electronic equipment for controlling capacitor switching in a reactive compensation system. Background Art
[0002] In modern power grids, reactive power compensation is a crucial means of ensuring stable and efficient grid operation. Capacitors, as key reactive power compensation devices, are widely used in power grids to maintain the power factor within specified limits, thereby ensuring normal grid operation and efficient use of electrical equipment.
[0003] In existing technologies, when the power factor of the power grid fluctuates or oscillates frequently, reactive power compensation systems typically frequently switch capacitors on and off based on the power factor. Frequent switching exposes capacitors to repeated surge currents and voltage stresses, ultimately accelerating their aging and damage. It also accelerates wear of the switching switches, increasing the failure rate. Frequent switching can also cause voltage fluctuations and flicker, impacting the normal operation of other equipment. Harmonics generated during the switching process can pollute the power grid and affect power quality.
[0004] Therefore, when the power factor of the power grid fluctuates or oscillates frequently, capacitors are prone to aging and damage, and the power quality is poor, which becomes a problem that needs to be solved urgently. Summary of the Invention
[0005] The present application provides a method and electronic equipment for controlling the switching of capacitors in a reactive compensation system to solve the problem in the prior art that capacitors are easily aged and damaged, and the power quality is poor when the power factor of the power grid fluctuates or oscillates frequently.
[0006] In a first aspect, the present application provides a method for controlling capacitor switching in a reactive power compensation system, comprising:
[0007] When the preset conditions are met, multiple sampling moments are determined according to the preset switching delay time;
[0008] For each sampling moment of the plurality of sampling moments, determining a power factor of the power grid at the sampling moment;
[0009] Based on the grid power factor at the sampling moment, and the first preset power factor and the second preset power factor, the sampling moments are divided into a first array, a second array, or a third array; wherein the first array is used to indicate a first moment at which the capacitor needs to be controlled to be switched on, the second array is used to indicate a second moment at which the capacitor needs to be controlled to maintain a current state, and the third array is used to indicate a third moment at which the capacitor needs to be controlled to be switched off; the sampling moment is the first moment, the second moment, or the third moment; and the current state is a switched-on state or a switched-off state.
[0010] Based on the first quantity, the second quantity, the third quantity and the fourth quantity, the capacitor is controlled to be switched on, switched off or maintained in the current state at the target moment; wherein the first quantity is the quantity at the first moment, the second quantity is the quantity at the second moment, the third quantity is the quantity at the third moment, and the fourth quantity is the quantity at the sampling moment; the target moment is the end moment of the preset switching delay time.
[0011] In one possible design, the dividing the sampling moments into the first array, the second array, or the third array based on the grid power factor at the sampling moments, the first preset power factor, and the second preset power factor includes:
[0012] In the case where the grid power factor at the sampling moment is less than the first preset power factor, the sampling moment is divided into a first array; wherein the sampling moment is the first moment;
[0013] When the grid power factor at the sampling moment is greater than or equal to the first preset power factor and the grid power factor at the sampling moment is less than or equal to the second preset power factor, the sampling moment is divided into a second array; wherein the sampling moment is the second moment;
[0014] When the grid power factor at the sampling moment is greater than the second preset power factor, the sampling moment is divided into a third array; wherein the sampling moment is the third moment.
[0015] In one possible design, after dividing the sampling moments into the first array, the second array, or the third array based on the grid power factor at the sampling moments, the first preset power factor, and the second preset power factor, the method further includes:
[0016] When the sampling moment is the first moment, determining a first input capacity of the capacitor at the first moment according to the grid power factor at the first moment and the first preset power factor, and storing the first input capacity in the first array;
[0017] When the sampling moment is the second moment, determining a second input capacity of the capacitor at the second moment based on the grid power factor and a third preset power factor at the second moment, and storing the second input capacity in the second array; wherein the third preset power factor is greater than the first preset power factor and less than the second preset power factor;
[0018] When the sampling moment is the third moment, the cut-off capacity of the capacitor corresponding to the third moment is determined according to the grid power factor at the third moment and the second preset power factor, and the cut-off capacity is stored in the third array.
[0019] In one possible design, controlling the capacitor to be switched on, switched off, or maintained in a current state at a target time based on the first quantity, the second quantity, the third quantity, and the fourth quantity includes:
[0020] determining whether the third moment exists in the third array;
[0021] In the case where the third moment exists in the third array, determining whether a first ratio is greater than a preset ratio; wherein the first ratio is a ratio of the third number to the fourth number;
[0022] When the first ratio is less than or equal to the preset ratio, controlling the capacitor to maintain the current state at the target time;
[0023] When the first ratio is greater than the preset ratio, determining whether the first moment exists in the first array;
[0024] If the first moment exists in the first array, determining whether a first capacity is greater than or equal to a preset capacity; wherein the first capacity is the difference between a second capacity and a third capacity, the second capacity is the sum of all the first input capacities in the first array, and the third capacity is the sum of all the removed capacities in the third array;
[0025] When the first capacity is greater than or equal to the preset capacity, the capacitor is controlled to maintain the current state at the target time.
[0026] In one possible design, when the first moment does not exist in the first array, or the first capacity is less than the preset capacity, the capacitor is cut off according to the fourth capacity at the target moment; wherein the fourth capacity is the largest cut-off capacity in the third array.
[0027] In one possible design, when the third moment does not exist in the third array, determining whether the first moment exists in the first array;
[0028] If the first moment exists in the first array, determining whether a second ratio is greater than the preset ratio; wherein the second ratio is a ratio of the first number to the fourth number;
[0029] When the second ratio is greater than the preset ratio, determining whether a second moment exists in the second array;
[0030] If the second time exists in the second array, the capacitor is put into operation at the target time according to a fifth capacity; wherein the fifth capacity is the smallest second-input capacity in the second array;
[0031] When the second moment does not exist in the second array, the capacitor is put into operation according to a sixth capacity at the target moment; wherein the sixth capacity is the smallest first-put capacity in the first array.
[0032] In a possible design, when the preset conditions are met, multiple sampling moments are determined according to a preset switching delay time, including:
[0033] Obtaining a flag bit pre-set for the capacitor, the flag bit being used to indicate whether to perform switching analysis of the capacitor;
[0034] When the flag indicates that the capacitor switching analysis is to be performed, a plurality of sampling moments are determined.
[0035] In one possible design, the determining of multiple sampling moments according to the preset switching delay time includes:
[0036] Determining the number of sampling moments based on a ratio of a preset switching delay time and a preset sampling frequency;
[0037] The plurality of sampling moments are determined based on a current moment, the number of the sampling moments, and the preset sampling frequency.
[0038] In a second aspect, the present application provides a reactive compensation capacitor switching control device, comprising: a module for executing the method described in the first aspect or various possible designs of the first aspect.
[0039] In a third aspect, the present application provides an electronic device, comprising: a memory and at least one processor;
[0040] The memory stores computer-executable instructions;
[0041] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described in the first aspect or various possible designs of the first aspect.
[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed, the method described in the first aspect or various possible designs of the first aspect is implemented.
[0043] In a fifth aspect, the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer implements the method described in the first aspect or various possible designs of the first aspect.
[0044] In the sixth aspect, the present application provides a chip comprising: an interface circuit and a logic circuit, wherein the interface circuit is used to receive signals from other chips outside the chip and transmit them to the logic circuit, or to send signals from the logic circuit to other chips outside the chip, and the logic circuit is used to implement the method described in the first aspect or various possible designs of the first aspect.
[0045] An embodiment of the present application provides a method and electronic device for controlling capacitor switching in a reactive compensation system. In the method, first, a controller determines multiple sampling moments according to a preset switching delay under preset conditions, and collects the grid power factor at each sampling moment in real time. Second, based on the grid power factor at each sampling moment, as well as a first preset power factor and a second preset power factor, the multiple sampling moments are divided into a first array, a second array, or a third array, where the first array, the second array, and the third array correspond to different grid power factor intervals. Finally, the controller counts a first quantity corresponding to the first moment in the first array, a second quantity corresponding to the second moment in the second array, a third quantity corresponding to the third moment in the third array, and a fourth quantity corresponding to the sampling moment, and controls the capacitor to be switched on, switched off, or maintained in the current state at a target moment. The number of sampling moments in different arrays provides multiple data points for the controller to make a control decision at the target moment, facilitating the controller to make a more reasonable control decision at the target moment, avoiding unnecessary capacitor action caused by abnormal or unstable fluctuations at a single moment, reducing the number of capacitor switching operations, extending the service life of the capacitor, reducing the risk of capacitor damage, and facilitating ensuring the operational stability of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A flow chart of a method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application;
[0047] Figure 2 A flow chart of another method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application;
[0048] Figure 3 A flowchart of another method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application;
[0049] Figure 4 A flow chart of another method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application;
[0050] Figure 5 A graph showing a change in power factor of a power grid within a preset switching delay period provided in an embodiment of the present application;
[0051] Figure 6 Another power factor change curve diagram of the power grid within a preset switching delay period provided in an embodiment of the present application;
[0052] Figure 7 Another power factor change curve diagram of the power grid within a preset switching delay period provided in an embodiment of the present application;
[0053] Figure 8 Another power factor change curve diagram of the power grid within a preset switching delay period provided in an embodiment of the present application;
[0054] Figure 9 Another power factor change curve diagram of the power grid within a preset switching delay period provided in an embodiment of the present application;
[0055] Figure 10 Another power factor change curve diagram of the power grid within a preset switching delay period provided in an embodiment of the present application;
[0056] Figure 11 Another power factor change curve diagram of the power grid within a preset switching delay period provided in an embodiment of the present application;
[0057] Figure 12 Another power factor change curve diagram of the power grid within a preset switching delay period provided in an embodiment of the present application;
[0058] Figure 13 A schematic structural diagram of a reactive power compensation system provided in an embodiment of the present application;
[0059] Figure 14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used in the specification of the application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification, claims and drawings of this application are intended to cover non-exclusive inclusions.
[0062] References to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiment" in various places in the specification does not necessarily refer to the same embodiment, nor does it necessarily refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0063] The term "and / or" in this document simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists, A and B can exist at the same time, and B exists. Additionally, the character " / " in this document generally indicates that the related objects are in an "or" relationship.
[0064] In addition, the terms "first", "second", etc. in the description and claims of this application or the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order, and may explicitly or implicitly include one or more such features.
[0065] In the description of this application, unless otherwise specified, "multiple" and "at least two" mean more than two (including two). Similarly, "multiple groups" and "at least two groups" mean more than two groups (including two).
[0066] In the description of this application, it should be noted that, unless otherwise expressly specified or limited, the terms "connected" and "connect" should be understood in a broad sense. For example, "connected" or "connected" can refer not only to physical connections, but also to electrical connections or signal connections. For example, it can be a direct connection, i.e., a physical connection, or an indirect connection through at least one intermediate element, as long as circuit connectivity is achieved. It can also refer to internal connectivity between two elements. Signal connection can refer not only to signal connection through circuits, but also to signal connection through media, such as radio waves. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.
[0067] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. It should be noted that different technical features in the present application can be combined with each other in the absence of conflict.
[0068] The following is an introduction to the implementation background of the technical solution provided in the embodiments of the present application.
[0069] In modern power grids, reactive power compensation is a crucial means of ensuring stable and efficient grid operation. Capacitors, as key reactive power compensation devices, are widely used in power grids to maintain a power factor above 0.9, thereby ensuring normal grid operation and efficient use of electrical equipment.
[0070] In the prior art, when the power factor of the power grid fluctuates or oscillates frequently, the reactive power compensation system usually chooses to control the capacitors to not operate or frequently switches the capacitors according to the power factor.
[0071] If the capacitor does not operate, the overall power factor will remain low, failing to meet the power factor requirements of the power supply company, thereby increasing operating costs. It may also lead to excessive accumulation of reactive power in the power grid, which in turn may overload electrical equipment such as transformers and cables, shortening the service life of electrical equipment and even causing failures. In addition, if the capacitor is overcompensated, it may undermine the stability of the power grid, leading to voltage anomalies, equipment damage, and reduced energy efficiency.
[0072] If capacitors are frequently switched on and off, they will be repeatedly subjected to inrush current and voltage stress, which will eventually accelerate the aging and damage of the capacitors. Frequent operation of switching switches (such as contactors and thyristors) will also accelerate the wear of mechanical or electronic components and increase the failure rate. At the same time, frequent switching operations may also cause voltage fluctuations and flicker, affecting the normal operation of other equipment. The harmonics generated during the switching process will pollute the power grid and affect the power quality.
[0073] Therefore, when the power factor of the power grid fluctuates or oscillates frequently, capacitors are prone to aging and damage, and the power quality is poor, which becomes a problem that needs to be solved urgently.
[0074] Based on the problems existing in the related art, the present application provides a method and electronic device for controlling capacitor switching in a reactive compensation system. In this method, first, a controller determines multiple sampling moments according to a preset switching delay time under preset conditions, and collects the power factor of the power grid at each sampling moment in real time. Second, based on the power grid power factor at each sampling moment, as well as a first preset power factor and a second preset power factor, the multiple sampling moments are divided respectively, so as to divide each sampling moment into a first array, a second array, or a third array, wherein the first array, the second array, and the third array correspond to different power grid power factor intervals, respectively. Finally, the controller counts a first quantity corresponding to the first moment in the first array, a second quantity corresponding to the second moment in the second array, a third quantity corresponding to the third moment in the third array, and a fourth quantity corresponding to the sampling moment, and controls the capacitor to be switched on, switched off, or maintained in the current state at a target moment. The number of sampling moments in different arrays provides multiple data points for the controller to make a control decision at the target moment, facilitating the controller to make a more reasonable control decision at the target moment, avoiding unnecessary capacitor action caused by abnormal or unstable fluctuations at a single moment, reducing the number of capacitor switching operations, extending the service life of the capacitor, reducing the risk of capacitor damage, and facilitating ensuring the operational stability of the power grid.
[0075] Next, some specific embodiments and drawings are used to describe in detail how the present application solves the problem that capacitors are prone to aging and damage, and power quality is poor when the power factor of the above-mentioned power grid fluctuates or oscillates frequently.
[0076] Figure 1 A flow chart of a method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application. Figure 1 As shown, the method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application specifically includes S101 to S104, and S101 to S104 are described in detail below.
[0077] It should be noted that the execution entity of the method for controlling capacitor switching in a reactive compensation system provided in the embodiment of the present application may be a controller in the reactive compensation system.
[0078] S101 : When a preset condition is met, the controller determines a plurality of sampling moments according to a preset switching delay time.
[0079] In one embodiment, the preset condition may be that the power factor of the power grid at the current moment is less than a first preset power factor, or that the power factor of the power grid at the current moment is greater than the first preset power factor.
[0080] The first preset power factor is recorded as . It is a preset lower limit of power factor. It is the minimum power factor allowed when the power grid is operating normally. The value of can be set by the grid management personnel, and this embodiment does not specifically limit this. The value of is 0.9.
[0081] It should be noted that when the grid power factor is less than the first preset power factor, the controller will consider that the reactive power is too high and that capacitors need to be added to improve the grid power factor.
[0082] The second preset power factor is recorded as , . It is a preset upper limit value of power factor. It is the maximum power factor allowed during normal operation of the power grid. The value of can be set by the grid management personnel, and this embodiment does not specifically limit this. The value of is 0.95.
[0083] It should be noted that when the grid power factor is greater than the second preset power factor, the controller will consider that the compensation is excessive. In order to avoid unnecessary fluctuations in the grid, the grid power factor needs to be improved by removing the capacitors.
[0084] In another embodiment, the preset condition may be that the frequency of change of the power factor of the power grid in the first time period is greater than a preset frequency.
[0085] It should be noted that the duration corresponding to the first time period and the preset frequency can be set by the power grid management personnel according to actual conditions, and this embodiment does not make specific limitations on this.
[0086] For example, the duration corresponding to the first time period is 1 second, and the preset frequency is 5 times / second.
[0087] In yet another embodiment, the preset condition may be that the number of oscillations of the power factor of the power grid within the first time period is greater than a preset number of oscillations.
[0088] It should be noted that the duration corresponding to the first time period and the preset number of oscillations can be set by the grid management personnel according to actual conditions, and this embodiment does not make specific limitations on this.
[0089] For example, the duration corresponding to the first time period is 1 second, and the preset number of oscillations is 3 times.
[0090] In the above embodiment, it should be noted that, if preset conditions are met, the controller determines whether to switch the capacitor after a preset switching delay period based on the grid power factor corresponding to multiple sampling moments within the preset switching delay period. This delay mechanism not only avoids frequent capacitor operation due to transient fluctuations or transient disturbances, but also allows for more accurate judgment of the overall load trend of the grid and long-term changes in the power factor, thereby reducing unnecessary capacitor operation and improving the stability and reliability of the power system.
[0091] The preset switching delay time refers to the time between the target time and the current time when the controller makes a capacitor switching decision at the target time based on the grid power factor at the current time; the target time is after the current time.
[0092] The starting moment of the preset switching delay time is the current moment, multiple sampling moments are related to the current moment and the preset switching delay time, and the first sampling moment among the multiple sampling moments is the current moment, and the other sampling moments among the multiple sampling moments except the first sampling moment are all located after the current moment.
[0093] The preset switching delay time can be set by the grid management personnel according to actual conditions, and this embodiment does not impose any specific restrictions on this. For example, the preset switching delay time is 2 seconds.
[0094] It should be noted that by setting a preset switching delay time, frequent decisions due to short-term fluctuations or instantaneous changes in the power grid can be avoided, ensuring that the power system has sufficient data to determine whether switching operations are required.
[0095] S102: The controller determines the power factor of the power grid at each sampling moment among the multiple sampling moments.
[0096] Among them, at any sampling moment, the method by which the controller determines the power factor of the power grid at the sampling moment is an existing method, which will not be described in detail in this embodiment.
[0097] S103: The controller divides the sampling moments into a first array, a second array, or a third array based on the grid power factor at the sampling moment, the first preset power factor, and the second preset power factor.
[0098] Among them, the first array is used to indicate the first moment when the capacitor needs to be controlled to be put into operation, the second array is used to indicate the second moment when the capacitor needs to be controlled to maintain the current state, and the third array is used to indicate the third moment when the capacitor needs to be controlled to be removed; the sampling time is the first moment, the second moment or the third moment.
[0099] It should be noted that when the controller divides the sampling time into the first array, the sampling time is the first time; when the controller divides the sampling time into the second array, the sampling time is the second time; when the controller divides the sampling time into the third array, the sampling time is the third time.
[0100] The current state is either an on-state or a cut-off state.
[0101] It should be noted that the current state refers to the state of the capacitor at the current moment.
[0102] In this embodiment, the controller needs to divide multiple sampling moments separately. Multiple sampling moments may all be divided into the first array, or all may be divided into the second array, or all may be divided into the third array, or may be divided into the first array and the second array, or may be divided into the first array and the third array, or may be divided into the second array and the third array, or may be divided into the first array, the second array and the third array.
[0103] S104: The controller controls the capacitor to be put into operation, removed from operation, or maintain the current state at the target time based on the first quantity, the second quantity, the third quantity, and the fourth quantity.
[0104] The first number is the number at the first moment, the second number is the number at the second moment, the third number is the number at the third moment, and the fourth number is the number at the sampling moment.
[0105] It should be noted that the fourth quantity is the sum of the first quantity, the second quantity and the third quantity.
[0106] The target time is the end time of the preset switching delay time.
[0107] It should be noted that, when the starting time of the preset switching delay time is the current time, the target time is the ending time of the preset switching delay time.
[0108] For example, if the current time is 10:00:00 and the preset switching delay is 1 minute, the target time is 10:01:00.
[0109] An embodiment of the present application provides a method for controlling capacitor switching in a reactive compensation system. First, a controller determines multiple sampling moments according to a preset switching delay under preset conditions, and collects the grid power factor at each sampling moment in real time. Second, based on the grid power factor at each sampling moment, as well as a first preset power factor and a second preset power factor, the multiple sampling moments are divided into a first array, a second array, or a third array, where the first array, the second array, and the third array correspond to different grid power factor intervals. Finally, the controller counts a first quantity corresponding to a first moment in the first array, a second quantity corresponding to a second moment in the second array, a third quantity corresponding to a third moment in the third array, and a fourth quantity corresponding to a sampling moment, and controls the capacitor to be switched on, switched off, or maintained in its current state at a target moment. The number of sampling moments in different arrays provides multiple data points for the controller to make a control decision at the target moment, facilitating the controller to make a more reasonable control decision at the target moment, avoiding unnecessary capacitor action caused by abnormal or unstable fluctuations at a single moment, reducing the number of capacitor switching operations, extending the service life of the capacitor, reducing the risk of capacitor damage, and facilitating ensuring the operational stability of the power grid.
[0110] In this application, the controller controls the switching of capacitors at target times based on a preset switching delay and the power factor at multiple sampling moments. This can avoid overreactions caused by transient fluctuations, effectively improve the stability of the power system, reduce grid fluctuations and equipment damage, and ultimately improve the overall economic efficiency and sustainability of the grid. At the same time, the control strategy of this application makes the switching of capacitors more precise, reduces unnecessary switching operations, extends the service life of capacitors, and ensures that the grid power factor remains stable within a reasonable range.
[0111] In the above embodiment, the controller is required to divide the sampling moments into the first array, the second array, or the third array based on the grid power factor at the sampling moments, as well as the first preset power factor and the second preset power factor. Next, the specific process by which the controller divides the sampling moments into the first array, the second array, or the third array based on the grid power factor at the sampling moments, as well as the first preset power factor and the second preset power factor is described in detail.
[0112] It should be noted that the controller needs to divide the multiple sampling moments into the first array, the second array, and the third array respectively. The controller divides the multiple sampling moments in the same way. The following takes the controller dividing the sampling moment as an example for detailed description.
[0113] Figure 2 This is a flow chart of another method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application. Figure 2As shown, in a possible embodiment, the method steps shown in S103 can be implemented by Sa1 to Sa5, and Sa1 to Sa5 are described in detail below.
[0114] Sa1. The controller determines whether the power factor of the power grid at the sampling moment is less than a first preset power factor.
[0115] In this embodiment, the grid power factor at the sampling moment is recorded as .
[0116] The controller determines the grid power factor at the sampling moment Afterwards, the controller determines Is it less than .exist In the case of , the controller executes the method steps shown in Sa2; In this case, the controller executes the method steps shown in Sa3.
[0117] Sa2. When the grid power factor at the sampling moment is less than a first preset power factor, the controller divides the sampling moment into a first array.
[0118] Among them, the sampling moment is the first moment.
[0119] It should be noted that the first array is used to indicate the first moment when the capacitor needs to be controlled to be put into operation. In the case of , it means that the reactive power in the power grid at the sampling moment is too high, and the power grid may face problems such as voltage reduction and equipment overload. It is necessary to improve the power factor by investing capacitors for reactive compensation. Therefore, the sampling moment is determined as the first moment, and the first moment belongs to the first array.
[0120] Sa3. The controller determines whether the grid power factor at the sampling moment is greater than a second preset power factor.
[0121] exist In the case of Is it greater than .exist ,Right now In the case of , the controller executes the method steps shown in Sa4; In this case, the controller executes the method steps shown in Sa5.
[0122] Sa4. When the grid power factor at the sampling moment is greater than or equal to the first preset power factor and the grid power factor at the sampling moment is less than or equal to the second preset power factor, the controller divides the sampling moment into the second array.
[0123] The sampling moment is the second moment.
[0124] It should be noted that the second array is used to indicate the second moment when the capacitor needs to be controlled to maintain the current state. If , the grid power factor at that sampling moment is within an ideal and stable range. The grid is operating stably, requiring neither compensation (no capacitors required) nor the risk of overcompensation (no capacitor removal required). The controller only needs to control the capacitors to maintain their current state. Therefore, this sampling moment is determined as the second moment, which belongs to the second array.
[0125] Sa5. When the grid power factor at the sampling moment is greater than the second preset power factor, the controller divides the sampling moment into a third array.
[0126] Among them, the sampling time is the third time.
[0127] It should be noted that the third array is used to indicate the third moment when the capacitor needs to be controlled to be removed. If , the grid power factor at that sampling moment exceeds the ideal range, which may cause the grid voltage to be too high. Capacitor removal is necessary to keep the grid voltage within a reasonable range and ensure stable grid operation. Therefore, this sampling moment is determined as the third moment, which belongs to the third array.
[0128] In the embodiment of the present application, for each sampling moment, the controller divides the sampling moment into a first array, a second array, or a third array based on the grid power factor at that sampling moment, as well as the first preset power factor and the second preset power factor. Through this division, the controller can categorize and manage sampling moments in different power factor intervals, providing data support for subsequent comprehensive analysis.
[0129] In the above embodiment, the controller is required to divide the sampling moments into the first array, the second array, or the third array based on the grid power factor at the sampling moments, as well as the first preset power factor and the second preset power factor. Next, a detailed description is given of the method performed by the controller after dividing the sampling moments into the first array, the second array, or the third array based on the grid power factor at the sampling moments, as well as the first preset power factor and the second preset power factor.
[0130] Figure 3 A flow chart of another method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application. Figure 3 As shown, in a possible embodiment, after the method steps shown in Sa2, the method further includes Sa20.
[0131] Sa20. When the sampling moment is the first moment, the controller determines the first input capacity of the capacitor corresponding to the first moment according to the grid power factor at the first moment and the first preset power factor, and stores the first input capacity in the first array.
[0132] Each first moment is associated with a first input capacity, and the first moment and the first input capacity associated with the first moment are both stored in a first array.
[0133] It should be noted that the controller can determine the capacity of the capacitor that needs to be invested at the first moment (first invested capacity) based on the difference between the grid power factor at the first moment and the first preset power factor, as well as the grid load.
[0134] Specifically, the controller can be calculated according to the formula , determine the first input capacity corresponding to the first moment ;in, represents the active power of the grid at the first moment, Indicates the power factor of the grid at the first moment.
[0135] In this embodiment, when the sampling moment is the first moment, the first input capacity is calculated based on the grid power factor and the first preset power factor at the first moment, so that when the subsequent controller needs to control the capacitor input at the target moment, and when the second moment does not exist in the second array, the capacity of the capacitor that needs to be invested at the target moment can be quickly determined based on the first input capacity in the first array.
[0136] After the method step shown as Sa4 , the method further includes Sa40 .
[0137] Sa40. When the sampling moment is the second moment, determine a second input capacity of the capacitor corresponding to the second moment according to the power factor at the second moment and the third preset power factor, and store the second input capacity in the second array.
[0138] Each second moment is associated with a second input capacity, and the second moment and the second input capacity associated with the second moment are both stored in a second array.
[0139] The third preset power factor is recorded as The third preset power factor is greater than the first preset power factor, and the third preset power factor is less than the second preset power factor, that is, .
[0140] It should be noted that By the grid management personnel and , and the actual situation can be set by yourself, and this embodiment does not make specific limitations on this.
[0141] For example, The value of is 0.93.
[0142] It should be noted that the controller can determine the capacity of the capacitor required to be invested at the second moment (the second invested capacity) according to the difference between the grid power factor at the second moment and the third preset power factor, and the grid load.
[0143] Specifically, the controller can be calculated according to the formula , determine the second input capacity corresponding to the second moment ;in, represents the active power of the grid at the first moment, Indicates the grid power factor at the second moment.
[0144] In this embodiment, when the sampling moment is the second moment, the second input capacity is calculated based on the grid power factor at the second moment and the third preset power factor, so that the subsequent controller needs to control the capacitor input at the target moment, and when the second moment exists in the second array, the capacity of the capacitor that needs to be invested at the target moment can be quickly determined based on the second input capacity in the second array.
[0145] After the method step shown as Sa5 , the method further includes Sa50 .
[0146] Sa50. When the sampling time is the third time, determine the cut-off capacity of the capacitor at the third time according to the grid power factor at the third time and the second preset power factor, and store the cut-off capacity in a third array.
[0147] Each third moment is associated with a resection capacity, and the third moment and the resection capacity associated with the third moment are both stored in a third array.
[0148] It should be noted that the controller can determine the capacity of the capacitor that needs to be removed at the third moment based on the difference between the grid power factor at the third moment and the second preset power factor, as well as the grid load.
[0149] Specifically, the controller can be calculated according to the formula , determine the resection volume corresponding to the third moment ;in, represents the active power of the grid at the third moment, Indicates the grid power factor at the third moment.
[0150] In this embodiment, when the sampling moment is the third moment, the cut-off capacity is calculated based on the grid power factor at the third moment and the second preset power factor, so that when the subsequent controller needs to control the capacitor cut-off at the target moment, it can quickly determine the capacity of the capacitor that needs to be cut off at the target moment based on the cut-off input capacity in the third array.
[0151] In the above embodiment, the controller needs to control the capacitor to be switched on, switched off, or maintained in its current state at a target time after a plurality of sampling moments based on the first, second, third, and fourth quantities. Next, the specific process of the controller controlling the capacitor to be switched on, switched off, or maintained in its current state at a target time after a plurality of sampling moments based on the first, second, third, and fourth quantities will be described in detail.
[0152] Figure 4 A flow chart of another method for controlling capacitor switching in a reactive compensation system provided in an embodiment of the present application. Figure 4 As shown, in a possible embodiment, the method steps shown in S104 can be implemented by Sc10 to Sc30, and Sc10 to Sc30 are described in detail below.
[0153] Sc10. The controller determines whether a third moment exists in the third array.
[0154] The third moments stored in the third array are sampling moments at which the power factor of the power grid is greater than the second preset power factor. If the third moment exists in the third array, it indicates that the power factor of the power grid at at least one sampling moment within the preset switching delay period is greater than the second preset power factor. In this case, the controller may need to control capacitor removal at the target moment. If the third moment does not exist in the third array, it indicates that the power factor of the power grid at multiple sampling moments within the preset switching delay period is less than or equal to the second preset power factor. In this case, the controller does not need to control capacitor removal at the target moment.
[0155] Specifically, when there is a third moment in the third array, the controller executes the method steps shown in Sc20 to further determine whether it is necessary to control the capacitor to be cut off at the target moment; when there is no third moment in the third array, the controller executes the method steps shown in Sc30 to further determine whether it is necessary to control the capacitor to be put into use at the target moment.
[0156] Sc20. When the third moment exists in the third array, the controller determines whether the first ratio is greater than a preset ratio.
[0157] The first ratio is the ratio of the third quantity to the fourth quantity.
[0158] It should be noted that the first ratio is recorded as , the third quantity is recorded as , the fourth quantity is recorded as , .
[0159] Among them, the preset ratio is recorded as . The filter parameters are pre-set by the grid management personnel to avoid repeated switching oscillations. It can be set by the grid management personnel themselves, and this embodiment does not make any specific limitation on this.
[0160] For example, is 0.3.
[0161] Specifically, when the third time exists in the third array, the controller determines Is it greater than There is a third moment in the third array, and In the case of , the controller executes the method steps shown in Sc21; there is a third moment in the third array, and In this case, the controller executes the method steps shown in Sc23.
[0162] Sc21. When the first ratio is greater than a preset ratio, the controller determines whether the first moment exists in the first array.
[0163] The first moment stored in the first array is a sampling moment at which the power factor of the power grid is less than a first preset power factor. If the first ratio is greater than the preset ratio, and the first moment exists in the first array, it indicates that the power factor of the power grid at at least one sampling moment within the preset switching delay period is less than the first preset power factor. In this case, the controller may or may not need to control the capacitor to be switched on at the target moment.
[0164] When the first ratio is greater than the preset ratio, if the first moment does not exist in the first array, it means that the grid power factor at multiple sampling moments within the preset switching delay period is greater than or equal to the first preset power factor. At this time, the controller needs to control the capacitor to be removed at the target moment.
[0165] Specifically, there is a third moment in the third array, , and if the first moment exists in the first array, the controller executes the method steps shown in Sc22 to further determine whether to control the capacitor to be removed at the target moment; if the third moment exists in the third array, , and when the first moment does not exist in the first array, the controller executes the method steps shown in Sc24 to directly control the capacitor to be removed at the target moment.
[0166] Sc22. When the first moment exists in the first array, the controller determines whether the first capacity is greater than or equal to the preset capacity.
[0167] The first capacity is the difference between the second capacity and the third capacity, the second capacity is the sum of all first input capacities in the first array, and the third capacity is the sum of all cut-off capacities in the third array.
[0168] It should be noted that the second capacity represents the total capacity of capacitors required to be switched on during the preset switching delay, and the third capacity represents the total capacity of capacitors required to be switched off during the preset switching delay. At the target time, the controller determines whether to switch off the capacitors or to maintain the capacitors in their current state based on the first capacity.
[0169] The preset capacity can be set by the grid management personnel, and this embodiment does not specifically limit this. For example, the preset capacity is 0.
[0170] It should be noted that, when the first capacity is greater than or equal to the preset capacity, it means that there is no need to compensate for the reactive power of the power grid within the preset switching delay time, that is, the controller does not need to control the capacitor to be cut off at the target time, and the controller controls the capacitor to maintain the current state at the target time; when the first capacity is less than the preset capacity, it means that the power grid is overcompensated within the preset switching delay time, and therefore, the controller needs to control the capacitor to be cut off at the target time.
[0171] Specifically, there is a third moment in the third array, , when there is a first moment in the first array and the first capacity is greater than or equal to the preset capacity, the controller executes the method steps shown in Sc23; when there is a third moment in the third array, , there is a first moment in the first array and the first capacity is less than the preset capacity, the controller executes the method steps shown in Sc24.
[0172] Sc23. The controller controls the capacitor to maintain the current state at the target time.
[0173] In one embodiment, there is a third time in the third array, and In this case, the controller controls the capacitor to maintain the current state at the target time.
[0174] In the embodiments of this application, Indicates the preset sampling frequency corresponding to the preset switching delay time. The grid management personnel can set it according to the actual situation, and this embodiment does not make any specific restrictions on this. 20 times / second.
[0175] For example, Figure 5This is a graph showing the change in power factor of the power grid within a preset switching delay period provided in an embodiment of the present application. Figure 5 As shown, T0 represents the current moment, that is, the starting moment of the preset switching delay time, and the preset switching delay time is Ts; Tx represents a sampling moment, Tx=T0+0.2Ts; T1 represents the ending moment of the preset switching delay time, T1=T0+Ts; the preset ratio value is 0.3.
[0176] Depend on Figure 5 It can be seen that the grid power factor at each sampling moment between T0 and Tx is greater than the second preset power factor; and the grid power factor at each sampling moment between Tx and T1 is greater than the first preset power factor and less than the second preset power factor. In this case, the sampling moment between T0 and Tx is the third moment, and the sampling moment between Tx and T1 is the second moment.
[0177] Second ratio , the first ratio is less than the preset ratio. Therefore, at time T1, the controller controls the capacitor to maintain the current state and does not cut off the capacitor.
[0178] In another embodiment, there is a third time in the third array, , when there is a first moment in the first array and the first capacity is less than the preset capacity, the controller also controls the capacitor to maintain the current state at the target moment.
[0179] For example, Figure 6 Another embodiment of the present application provides a curve diagram of the power factor change of the power grid within the preset switching delay time. Figure 6 As shown, T0 represents the current time, that is, the starting time of the preset switching delay time, and the preset switching delay time is Ts; Tx1, Tx2, Tx3, Tx4, Tx5 and Tx6 represent a sampling time respectively, Tx1=T0+0.2Ts, Tx2=T0+0.3Ts, Tx3=T0+0.5Ts, Tx4=T0+0.6Ts, Tx5=T0+0.7Ts, Tx6=T0+0.85Ts; T1 represents the end time of the preset switching delay time, T1=T0+Ts; the preset ratio is 0.3.
[0180] Depend on Figure 6It can be seen that the power factor of the power grid at each sampling moment between T0 and Tx1, and each sampling moment between Tx4 and Tx5 are all less than the first preset power factor; the power factor of the power grid at each sampling moment between Tx1 and Tx2, each sampling moment between Tx3 and Tx4, and each sampling moment between Tx5 and Tx6 are all greater than the first preset power factor and less than the second preset power factor; the power factor of the power grid at each sampling moment between Tx2 and Tx3, and each sampling moment between Tx6 and T1 are all greater than the second preset power factor. In this case, the sampling moment between T0 and Tx1, and the sampling moment between Tx4 and Tx5 are the first moment; the sampling moment between Tx1 and Tx2, the sampling moment between Tx3 and Tx4, and the sampling moment between Tx5 and Tx6 are the second moment; the sampling moment between Tx2 and Tx3, and the sampling moment between Tx6 and T1 are the third moment.
[0181] First ratio , the first ratio is greater than the preset ratio, and the second capacity is greater than the third capacity. Therefore, the controller controls the capacitor to maintain the current state at time T1.
[0182] Sc24. The controller cuts off the capacitor according to the fourth capacity at the target time.
[0183] The fourth capacity is the largest removal capacity in the third array.
[0184] It should be noted that the third array contains at least one third moment and at least one resection capacity corresponding to each third moment, and the fourth capacity is the largest resection capacity among the resection capacities corresponding to each at least one third moment.
[0185] In one embodiment, there is a third moment in the third array, , and when the first moment does not exist in the first array, the controller cuts off the capacitor according to the fourth capacity at the target moment.
[0186] For example, Figure 7 Another embodiment of the present application provides a curve diagram of the power factor change of the power grid within the preset switching delay time. Figure 7As shown, T0 represents the current time, that is, the starting time of the preset switching delay time, and the preset switching delay time is Ts; Tx1, Tx2 and Tx3 represent a sampling time respectively, Tx1=T0+0.25Ts, Tx2=T0+0.5Ts, Tx3=T0+0.75Ts; T1 represents the ending time of the preset switching delay time, T1=T0+Ts; the preset ratio is 0.3.
[0187] Depend on Figure 7 It can be seen that the power factor of the power grid at each sampling moment between T0 and Tx1, and each sampling moment between Tx2 and Tx3, is greater than the second preset power factor; the power factor of the power grid at each sampling moment between Tx1 and Tx2, and each sampling moment between Tx3 and T1, is greater than the first preset power factor and less than the second preset power factor. In this case, the sampling moments between T0 and Tx1, and the sampling moments between Tx2 and Tx3, are both the third moments; the sampling moments between Tx1 and Tx2, and the sampling moments between Tx3 and T1, are both the second moments.
[0188] First ratio , the first ratio is greater than the preset ratio, and the first moment does not exist. Therefore, the controller removes the capacitor according to the fourth capacity at time T1, and the fourth capacity is the removal capacity corresponding to the sampling moment where point C is located.
[0189] For example, Figure 8 Another embodiment of the present application provides a curve diagram of the power factor change of the power grid within the preset switching delay time. Figure 8 As shown, T0 represents the current time, that is, the starting time of the preset switching delay time, the preset switching delay time is Ts; T1 represents the ending time of the preset switching delay time, T1=T0+Ts; the preset ratio is 0.3.
[0190] Depend on Figure 8 It can be seen that the grid power factor at each sampling moment between T0 and T1 (within the preset switching delay time) is greater than the second preset power factor. In this case, the sampling moments between T0 and T1 are all third moments, and the first moment does not exist.
[0191] First ratio , the second ratio is greater than the preset ratio, and the first time does not exist in the first array. Therefore, the controller removes the capacitor according to the fourth capacity at time T1, and the fourth capacity is the removal capacity corresponding to the sampling time at point D.
[0192] In another embodiment, there is a third time in the third array, , there is a first moment in the first array and when the first capacity is less than the preset capacity, the controller also cuts off the capacitor according to the fourth capacity at the target moment.
[0193] For example, Figure 9 Another embodiment of the present application provides a curve diagram of the power factor change of the power grid within the preset switching delay time. Figure 9 As shown, T0 represents the current time, that is, the starting time of the preset switching delay time, and the preset switching delay time is Ts; Tx1, Tx2, Tx3, Tx4, Tx5 and Tx6 represent a sampling time respectively, Tx1=T0+0.2Ts, Tx2=T0+0.3Ts, Tx3=T0+0.5Ts, Tx4=T0+0.6Ts, Tx5=T0+0.7Ts, Tx6=T0+0.85Ts; T1 represents the end time of the preset switching delay time, T1=T0+Ts; the preset ratio is 0.3.
[0194] Depend on Figure 9 It can be seen that the power factor of the power grid at each sampling moment between T0 and Tx1, and each sampling moment between Tx4 and Tx5 are all less than the first preset power factor; the power factor of the power grid at each sampling moment between Tx1 and Tx2, each sampling moment between Tx3 and Tx4, and each sampling moment between Tx5 and Tx6 are all greater than the first preset power factor and less than the second preset power factor; the power factor of the power grid at each sampling moment between Tx2 and Tx3, and each sampling moment between Tx6 and T1 are all greater than the second preset power factor. In this case, the sampling moment between T0 and Tx1, and the sampling moment between Tx4 and Tx5 are the first moment; the sampling moment between Tx1 and Tx2, the sampling moment between Tx3 and Tx4, and the sampling moment between Tx5 and Tx6 are the second moment; the sampling moment between Tx2 and Tx3, and the sampling moment between Tx6 and T1 are the third moment.
[0195] First ratio , the first ratio is greater than the preset ratio, and the second capacity is less than the third capacity. Therefore, the controller removes the capacitor according to the fourth capacity at time T1, and the fourth capacity is the removal capacity corresponding to the sampling time at point E.
[0196] Sc30. If the third moment does not exist in the third array, the controller determines whether the first moment exists in the first array.
[0197] When the third moment does not exist in the third array, it means that the grid power factor at multiple sampling moments within the preset switching delay period is less than or equal to the second preset power factor. At this time, the controller does not need to control the capacitor to be removed at the target moment, but only needs to determine whether the capacitor needs to be controlled to be put into use. Therefore, the controller needs to determine whether the first moment exists in the first array.
[0198] If the first moment exists in the first array, it means that the power factor of the power grid at at least one sampling moment within the preset switching delay period is less than the first preset power factor. In this case, the controller may or may not need to control the capacitor to be switched on at the target moment. If the first moment does not exist in the first array, it means that the power factor of the power grid at multiple sampling moments within the preset switching delay period is greater than or equal to the first preset power factor. In this case, the controller does not need to control the capacitor to be switched on at the target moment.
[0199] Specifically, when the third moment does not exist in the third array and the first moment exists in the first array, the controller executes the method steps shown in Sc31 to further determine whether to control the capacitor to be put into operation at the target moment; when the third moment does not exist in the third array and the first moment does not exist in the first array, the controller executes the method steps shown in Sc35 to continue to determine the grid power factor at the next moment and perform real-time detection of the grid power factor.
[0200] Sc31. When the first moment exists in the first array, the controller determines whether the second ratio is greater than a preset ratio.
[0201] The second ratio is the ratio of the first quantity to the fourth quantity.
[0202] It should be noted that the second ratio is recorded as , the first quantity is recorded as , the fourth quantity is recorded as , .
[0203] Specifically, when the first moment exists in the first array, the controller determines Is it greater than . There is a first moment in the first array, and In the case of , the controller executes the method steps shown in Sc32; there is a first moment in the first array, and In this case, the controller executes the method steps shown in Sc35.
[0204] For example, Figure 10 Another embodiment of the present application provides a curve diagram of the power factor change of the power grid within the preset switching delay time. Figure 10As shown, T0 represents the current moment, that is, the starting moment of the preset switching delay time, and the preset switching delay time is Ts; Tx represents a sampling moment, Tx=T0+0.2Ts; T1 represents the ending moment of the preset switching delay time, T1=T0+Ts; the preset ratio value is 0.3.
[0205] Depend on Figure 10 It can be seen that the grid power factor at each sampling moment between T0 and Tx is less than the first preset power factor; the grid power factor at each sampling moment between Tx and T1 is greater than the first preset power factor and less than the second preset power factor.
[0206] In this case, the sampling time between time T0 and time Tx is the first time, and the sampling time between time Tx and time T1 is the second time. , the second ratio is less than the preset ratio. Therefore, the controller does not need to control the capacitor to be put into operation at time T1, and the controller continues to determine the power factor of the grid at time T1.
[0207] Sc32. When the second ratio is greater than the preset ratio, the controller determines whether a second moment exists in the second array.
[0208] If the second moment exists in the second array, it means that the power factor of the power grid at at least one sampling moment within the preset switching delay period is greater than or equal to the first preset power factor and less than or equal to the second preset power factor. In this case, the controller needs to control the capacitor to be put into operation based on the second input capacity in the second array at the target moment. If the second moment does not exist in the second array, it means that the power factor of the power grid at multiple sampling moments within the preset switching delay period is less than the first preset power factor. In this case, the controller will put the capacitor into operation based on the first input capacity in the first array at the target moment.
[0209] Specifically, when the third moment does not exist in the third array, the first moment exists in the first array, the second ratio is greater than the preset ratio, and the second moment exists in the second array, the controller executes the method steps shown in Sc33; when the third moment does not exist in the third array, the first moment exists in the first array, the second ratio is greater than the preset ratio, and the second moment does not exist in the second array, the controller executes the method steps shown in Sc34.
[0210] Sc33. When the second time exists in the second array, capacitors with the fifth capacity are put into use at the target time.
[0211] The fifth capacity is the smallest second input capacity in the second array.
[0212] It should be noted that there is at least one second moment and a second input capacity corresponding to at least one second moment in the second array, and the fifth capacity is the smallest second input capacity among the second input capacities corresponding to at least one second moment.
[0213] In one embodiment, when the third moment does not exist in the third array, the first moment exists in the first array, the second ratio is greater than the preset ratio, and the second moment exists in the second array, the controller puts the capacitor into operation according to the fifth capacity at the target moment.
[0214] For example, Figure 11 Another embodiment of the present application provides a curve diagram of the power factor change of the power grid within the preset switching delay time. Figure 11 As shown, T0 represents the current time, that is, the starting time of the preset switching delay time, and the preset switching delay time is Ts; Tx1, Tx2 and Tx3 represent a sampling time respectively, Tx1=T0+0.25Ts, Tx2=T0+0.5Ts, Tx3=T0+0.75Ts; T1 represents the ending time of the preset switching delay time, T1=T0+Ts; the preset ratio is 0.3.
[0215] Depend on Figure 11 It can be seen that the grid power factor at each sampling moment between T0 and Tx1, and at each sampling moment between Tx2 and Tx3 is less than the first preset power factor; the grid power factor at each sampling moment between Tx1 and Tx2, and at each sampling moment between Tx3 and Tx1 is greater than the first preset power factor and less than the second preset power factor.
[0216] In this case, the sampling moments between T0 and Tx1, and the sampling moments between Tx2 and Tx3 are both first moments, and the sampling moments between Tx1 and Tx2, and the sampling moments between Tx3 and Tx1 are both second moments. , the second ratio is greater than the preset ratio, and the second time exists in the second array. Therefore, the controller puts the capacitor into operation at the fifth capacity at time T1, and the fifth capacity is the second input capacity corresponding to the sampling time at point A.
[0217] Sc34. When the second time does not exist in the second array, capacitors with the sixth capacity are put into use at the target time.
[0218] The sixth capacity is the smallest first input capacity in the first array.
[0219] It should be noted that there is at least one first moment and at least one first input capacity corresponding to each first moment in the first array, and the sixth capacity is the smallest first input capacity among the first input capacities corresponding to each at least one first moment.
[0220] In one embodiment, when the third moment does not exist in the third array, the first moment exists in the first array, the second ratio is greater than the preset ratio, and the second moment does not exist in the second array, the controller puts the capacitor into operation according to the sixth capacity at the target moment.
[0221] For example, Figure 12 Another embodiment of the present application provides a curve diagram of the power factor change of the power grid within the preset switching delay time. Figure 12 As shown, T0 represents the current time, that is, the starting time of the preset switching delay time, the preset switching delay time is Ts; T1 represents the ending time of the preset switching delay time, T1=T0+Ts; the preset ratio is 0.3.
[0222] Depend on Figure 12 It can be seen that the grid power factor at each sampling moment between T0 and T1 (within the preset switching delay time) is less than the first preset power factor. In this case, the sampling moments between T0 and T1 are all the first moments, and there is no second moment. The second ratio , the second ratio is greater than the preset ratio, and the second time does not exist in the second array. Therefore, the controller inputs the capacitor according to the sixth capacity at time T1, and the sixth capacity is the first input capacity corresponding to the sampling time at point B.
[0223] Sc35. The controller determines the power factor of the power grid at the next moment.
[0224] It should be noted that the next moment is the moment after the current moment has elapsed a preset switching delay time.
[0225] In an embodiment of the present application, the controller can accurately determine whether it is necessary to put the capacitor into operation, maintain it, or cut it out at the target moment by comprehensively analyzing the first quantity, the second quantity, the third quantity, and the fourth quantity. This can avoid the power system's excessive reaction to instantaneous fluctuations, reduce the frequent switching operations of the capacitor, effectively extend the service life of the capacitor, and reduce the wear and failure rate of electrical equipment.
[0226] Specifically, the power factor of the power grid at each sampling moment is reasonably accumulated and comprehensively analyzed, so that the power system can more smoothly cope with power factor fluctuations in the power grid, ensure the voltage stability and smooth operation of the power grid, avoid voltage flicker and fluctuations caused by excessive operation of capacitors, and ensure the stability of the power grid.
[0227] In the above embodiment, when the preset conditions are met, the controller needs to determine multiple sampling moments according to the preset switching delay time. Next, the content of the preset conditions will be described in detail.
[0228] In a possible embodiment, the method steps shown in S101 may be implemented through S1011 and S1012 , which are described in detail below.
[0229] S1011: The controller obtains a flag bit preset for the capacitor.
[0230] The flag bit is used to indicate whether to perform capacitor switching analysis.
[0231] It should be noted that the flag bit has two indication states. One indication state of the flag bit is to perform capacitor switching analysis, and the other indication state of the flag bit is not to perform capacitor switching analysis.
[0232] The two indication states of the flag bit can be represented by different values. For example, the flag bit is Tflag, and the value of Tflag is "0" or "1". Tflag = 0 means that the capacitor switching analysis is not performed; Tflag = 1 means that the capacitor switching analysis is performed.
[0233] It should be noted that the flag bit can be set by the power grid management personnel according to specific operation requirements, and can also be set by automated logic, which is not specifically limited in this embodiment.
[0234] In one embodiment, when the grid power factor at the current moment is greater than or equal to the first preset power factor, and the grid power factor at the current moment is less than or equal to the second preset power factor, the value of Tflag is automatically set to 0, and the capacitor switching analysis is not performed; when the grid power factor at the current moment is less than the first preset power factor, or the grid power factor at the current moment is greater than the second preset power factor, the value of Tflag is automatically set to 1 to perform the capacitor switching analysis.
[0235] In another embodiment, when the frequency of change of the power factor of the power grid during the first time period is less than or equal to the preset frequency, the value of Tflag is automatically set to 0, and the capacitor switching analysis is not performed; when the frequency of change of the power factor of the power grid during the first time period is greater than the preset frequency, the value of Tflag is automatically set to 1 to perform the capacitor switching analysis.
[0236] In another embodiment, when the number of oscillations of the power factor of the power grid within the first time period is less than or equal to the preset number of oscillations, the value of Tflag is automatically set to 0, and the capacitor switching analysis is not performed; when the number of oscillations of the power factor of the power grid within the first time period is greater than the preset number of oscillations, the value of Tflag is automatically set to 1 to perform the capacitor switching analysis.
[0237] S1012: When the flag indicates that the capacitor switching analysis is to be performed, the controller determines a plurality of sampling moments according to a preset switching delay time.
[0238] In this embodiment of the present application, a flag bit pre-set for a capacitor is obtained, and when the flag bit is in the state of performing capacitor switching analysis, multiple sampling times are determined based on a preset switching delay duration. This delay control avoids overreaction to short-term grid fluctuations, making control decisions more robust and improving the accuracy of capacitor switching operations.
[0239] In the above embodiment, the controller needs to determine multiple sampling moments according to the preset switching delay time. Next, the specific process of the controller determining multiple sampling moments according to the preset switching delay time is described in detail.
[0240] In a possible embodiment, the method steps shown in S1012 may be implemented by Sd1 and Sd2 , which are described in detail below.
[0241] Sd1. The controller determines the number of sampling moments based on the ratio of the preset switching delay time to the preset sampling frequency.
[0242] The preset sampling frequency determines how often the controller collects data. The higher the sampling frequency, the more grid power factor data the controller will obtain.
[0243] It should be noted that the number of sampling moments . To preset the switching delay time, Indicates the preset sampling frequency corresponding to the preset switching delay time.
[0244] Sd2. The controller determines multiple sampling moments based on the current moment, the number of sampling moments, and the preset sampling frequency.
[0245] It should be noted that the current moment is the first sampling moment among multiple sampling moments, and the other sampling moments except the first sampling moment are all located after the current moment, and the time interval between two adjacent sampling moments among the multiple sampling moments is the time interval indicated by the preset sampling frequency.
[0246] For example, if the current time is 12:00:00, the preset switching delay is 10 seconds, and the preset sampling frequency is 1 second / time, there are 10 sampling times, namely 12:00:00, 12:00:01, 12:00:02, 12:00:03, 12:00:04, 12:00:05, 12:00:06, 12:00:07, 12:00:08, and 12:00:09, and the target time is 12:00:10.
[0247] In an embodiment of the present application, based on the ratio of the preset switching delay period to the preset sampling frequency, the number of sampling moments required for grid power factor collection within the preset switching delay period can be determined, thereby ensuring that the controller has sufficient data support when making switching decisions at the target time; thereafter, the controller accurately determines multiple sampling moments based on the current time and the number of sampling moments, combined with the preset sampling frequency, to ensure that the grid power factor data is collected within a reasonable time window.
[0248] Figure 13 This is a schematic diagram of the structure of a reactive power compensation system provided in an embodiment of the present application. Figure 13 As shown, the reactive power compensation system provided in this embodiment is used to implement the operations corresponding to the controller in the above method embodiment.
[0249] The reactive power compensation system 1300 may include: an acquisition module 1301 and a processing module 1302 .
[0250] Optionally, the reactive compensation system 1300 may further include a storage unit, which may be used to store instructions and / or data. The processing module 1302 may read the instructions and / or data in the storage unit so that the reactive compensation system 1300 implements the steps implemented by the controller in the aforementioned method embodiment.
[0251] As an example, the reactive power compensation system 1300 is used to perform the above Figure 1 Actions performed by the controller in the illustrated embodiment.
[0252] The reactive power compensation system 1300 may include: an acquisition module 1301 and a processing module 1302 .
[0253] The processing module 1302 is configured to determine a plurality of sampling moments according to a preset switching delay time when a preset condition is met.
[0254] The processing module 1302 is further configured to determine, for each sampling moment among the multiple sampling moments, a power factor of the power grid at the sampling moment.
[0255] The processing module 1302 is further used to divide the sampling moments into a first array, a second array, or a third array based on the grid power factor at the sampling moment, as well as the first preset power factor and the second preset power factor; wherein the first array is used to indicate the first moment when the capacitor needs to be controlled to be put into operation, the second array is used to indicate the second moment when the capacitor needs to be controlled to maintain the current state, and the third array is used to indicate the third moment when the capacitor needs to be controlled to be removed; the sampling moment is the first moment, the second moment, or the third moment; and the current state is the put-in state or the removed state.
[0256] The processing module 1302 is further used to control the capacitor to be put into operation, removed, or maintain the current state at the target time based on the first quantity, the second quantity, the third quantity, and the fourth quantity; wherein the first quantity is the quantity at the first moment, the second quantity is the quantity at the second moment, the third quantity is the quantity at the third moment, and the fourth quantity is the quantity at the sampling moment; the target moment is the end time of the preset switching delay period.
[0257] It should be understood that the execution of the above corresponding processes by each module has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0258] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 14 As shown, the electronic device 1400 provided in this embodiment includes: a memory 1401 and a processor 1402.
[0259] Memory 1401 may be an independent physical unit, connected to processor 1402 via bus 1403. Memory 1401 and processor 1402 may also be integrated and implemented via hardware. Memory 1401 is used to store program instructions, and processor 1402 invokes these program instructions to execute the operations performed by the controller in any of the above method embodiments.
[0260] Optionally, when some or all of the methods in the above embodiments are implemented via software, the electronic device 1400 may include only a processor 1402. A memory 1401 for storing programs is located outside the electronic device 1400. The processor 1402 is connected to the memory via circuits / wires to read and execute the programs stored in the memory. The processor 1402 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP. The processor 1402 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0261] The memory 1401 may include a volatile memory, such as a random-access memory (RAM); the memory may also include a non-volatile memory, such as a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the memory may also include a combination of the above types of memory.
[0262] Illustratively, the present application provides a chip comprising: an interface circuit and a logic circuit, wherein the interface circuit is used to receive signals from other chips outside the chip and transmit them to the logic circuit, or to send signals from the logic circuit to other chips outside the chip, and the logic circuit is used to execute the operations performed by the controller in the above method embodiment.
[0263] Illustratively, the present application provides a computer-readable storage medium having computer program instructions stored thereon. The computer program instructions are executed by a processor of an electronic device so that the electronic device executes the operations performed by the controller in the above method embodiment.
[0264] Illustratively, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the operations executed by the controller in the above method embodiment.
[0265] The foregoing description is intended only to provide specific embodiments of the present application, which will enable those skilled in the art to understand and implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments described herein, but is intended to be construed in the broadest manner consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling capacitor switching in a reactive compensation system, characterized in that: The method comprises: When the preset conditions are met, multiple sampling moments are determined according to the preset switching delay time; For each sampling moment of the plurality of sampling moments, determining a power factor of the power grid at the sampling moment; Based on the grid power factor at the sampling moment, and the first preset power factor and the second preset power factor, the sampling moments are divided into a first array, a second array, or a third array; wherein the first array is used to indicate a first moment at which the capacitor needs to be controlled to be switched on, the second array is used to indicate a second moment at which the capacitor needs to be controlled to maintain a current state, and the third array is used to indicate a third moment at which the capacitor needs to be controlled to be switched off; the sampling moment is the first moment, the second moment, or the third moment; and the current state is a switched-on state or a switched-off state. Based on the first quantity, the second quantity, the third quantity and the fourth quantity, the capacitor is controlled to be switched on, switched off or maintained in the current state at the target moment; wherein the first quantity is the quantity at the first moment, the second quantity is the quantity at the second moment, the third quantity is the quantity at the third moment, and the fourth quantity is the quantity at the sampling moment; the target moment is the end moment of the preset switching delay time.
2. The method according to claim 1, characterized in that The dividing the sampling moments into a first array, a second array, or a third array based on the grid power factor at the sampling moments, the first preset power factor, and the second preset power factor includes: In the case where the grid power factor at the sampling moment is less than the first preset power factor, the sampling moment is divided into a first array; wherein the sampling moment is the first moment; When the grid power factor at the sampling moment is greater than or equal to the first preset power factor and the grid power factor at the sampling moment is less than or equal to the second preset power factor, the sampling moment is divided into a second array; wherein the sampling moment is the second moment; When the grid power factor at the sampling moment is greater than the second preset power factor, the sampling moment is divided into a third array; wherein the sampling moment is the third moment.
3. The method according to claim 2, characterized in that After dividing the sampling moments into the first array, the second array, or the third array based on the grid power factor at the sampling moments, the first preset power factor, and the second preset power factor, the method further includes: When the sampling moment is the first moment, determining a first input capacity of the capacitor at the first moment according to the grid power factor at the first moment and the first preset power factor, and storing the first input capacity in the first array; When the sampling moment is the second moment, determining a second input capacity of the capacitor at the second moment based on the grid power factor and a third preset power factor at the second moment, and storing the second input capacity in the second array; wherein the third preset power factor is greater than the first preset power factor and less than the second preset power factor; When the sampling moment is the third moment, the cut-off capacity of the capacitor corresponding to the third moment is determined according to the grid power factor at the third moment and the second preset power factor, and the cut-off capacity is stored in the third array.
4. The method according to claim 3, characterized in that The controlling the capacitor to be switched on, switched off, or maintained in a current state at a target time based on the first quantity, the second quantity, the third quantity, and the fourth quantity includes: determining whether the third moment exists in the third array; In the case where the third moment exists in the third array, determining whether a first ratio is greater than a preset ratio; wherein the first ratio is a ratio of the third number to the fourth number; When the first ratio is less than or equal to the preset ratio, controlling the capacitor to maintain the current state at the target time; When the first ratio is greater than the preset ratio, determining whether the first moment exists in the first array; If the first moment exists in the first array, determining whether a first capacity is greater than or equal to a preset capacity; wherein the first capacity is a difference between a second capacity and a third capacity, the second capacity is a sum of all the first input capacities in the first array, and the third capacity is a sum of all the removed capacities in the third array; When the first capacity is greater than or equal to the preset capacity, the capacitor is controlled to maintain the current state at the target time.
5. The method according to claim 4, characterized in that The method further comprises: When the first moment does not exist in the first array, or the first capacity is less than the preset capacity, the capacitor is removed at the target moment according to a fourth capacity; wherein the fourth capacity is the largest removed capacity in the third array.
6. The method according to claim 4, characterized in that The method further comprises: If the third moment does not exist in the third array, determining whether the first moment exists in the first array; If the first moment exists in the first array, determining whether a second ratio is greater than the preset ratio; wherein the second ratio is a ratio of the first number to the fourth number; When the second ratio is greater than the preset ratio, determining whether a second moment exists in the second array; If the second time exists in the second array, the capacitor is put into operation at the target time according to a fifth capacity; wherein the fifth capacity is the smallest second-input capacity in the second array; When the second moment does not exist in the second array, the capacitor is put into operation according to a sixth capacity at the target moment; wherein the sixth capacity is the smallest of the first put-in capacity in the first array.
7. The method according to claim 1, characterized in that When the preset conditions are met, multiple sampling moments are determined according to the preset switching delay time, including: Obtaining a flag bit pre-set for the capacitor, the flag bit being used to indicate whether to perform switching analysis of the capacitor; When the flag indicates that the capacitor switching analysis is to be performed, a plurality of sampling moments are determined according to the preset switching delay time.
8. The method according to claim 7, characterized in that The step of determining a plurality of sampling moments according to the preset switching delay time comprises: Determining the number of sampling moments based on a ratio of the preset switching delay time and a preset sampling frequency; The plurality of sampling moments are determined based on a current moment, the number of the sampling moments, and the preset sampling frequency.
9. An electronic device, characterized in that: include: memory and at least one processor; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Low-voltage reactive compensation and power distribution monitoring control device and method
CN115800300A
Capacitor bank switching frequency statistical method and device
CN116454908A