A system protection method for SVG system
By detecting and coding protection events in real time in the SVG system, they are divided into restartable and non-restartable events, and processed according to priority, which solves the problems of inaccurate fault judgment and single protection method, and achieves comprehensive detection and processing of the system operating status. .
Patent Information
- Application Number
- CN202210998736.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-08-19
AI Technical Summary
The fault judgment of the existing SVG system is inaccurate, resulting in faults that cannot be eliminated in time, and the protection method is single, the type and priority of the protection event cannot be determined, and the system operating status cannot be effectively processed.
Design a system protection method for SVG systems. By acquiring and combining protection flags, protection events can be detected and encoded in real time, divided into restartable and non-restartable events, and processed and recorded according to event type and priority, supporting multiple protections. Way.
It achieves accurate judgment and priority classification of protection events, can effectively process and record system operating status, meets multiple protection methods, and improves the comprehensiveness of system functions.
Smart Images

Figure CN115296262B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of reactive compensation equipment control and relates to a system protection method for an SVG system. Background Art
[0002] The safety protection technology of high-voltage dynamic reactive power compensation device is the core technology of static reactive power generator. With the advancement of power electronics technology and the reduction of costs, the use of power electronic equipment is becoming more and more widespread. At the same time, a large number of nonlinear loads and unbalanced loads (such as UPS and frequency converters) and the promotion and use of new power generation and energy storage methods (including a large number of rectification and inversion) have appeared in large industrial sites, which has led to the generation of a large number of harmonics. In large industrial sites, there are generally rapidly changing charges. In places where a large number of harmonics are generated and the load changes rapidly, traditional capacitive reactive power compensation devices can no longer meet the needs of reactive power compensation. At this time, static reactive power generators are needed for reactive power compensation.
[0003] There are many problems in the protection of SVG control systems in the prior art, among which the first is the inaccurate fault judgment that leads to the failure to eliminate the fault in time. Taking voltage-related fault protection as an example, the voltage-related fault protection includes: grid voltage over / undervoltage, grid frequency overlimit, and grid synchronization loss. In the case of power failure in the main circuit, voltage undervoltage protection takes effect, grid frequency low protection, and grid synchronization loss protection. However, if these three faults are reported at the same time, the user cannot accurately determine the source of the fault, which is not convenient for accurately judging and locating the protection event, and the real fault cannot be effectively eliminated. It is impossible to directly determine the type of protection event and the priority of event processing, and the protection method is single. Therefore, the inventor has made improvements to the problems existing in the existing protection system. Summary of the invention
[0004] The present invention provides a system protection method for an SVG system which can directly determine the type of protection events and clearly divide the priorities of protection events, effectively detect the operating status of the system, process and record protection events, and have multiple protection modes.
[0005] The specific technical solution is as follows:
[0006] A system protection method for an SVG system, the system comprising a main circuit part for completing the inversion output of the compensation current required by the load and a control part for controlling the main circuit part, the main circuit part comprising a circuit breaker, an inductor, a contactor, an IGBT and a DC side capacitor electrically connected to the power grid, the control part comprising a sampling circuit, an IGBT drive circuit, a control circuit and a display terminal, the control circuit is configured with a system protection program, and the system protection method implemented when the system protection program is executed comprises the following steps:
[0007] A: Obtaining protection upper and lower limits: Before the system is run, it monitors the configuration data sent from the display terminal. If the configuration data is obtained, the upper and lower limits are set according to the configuration data. If the configuration data is not obtained, the default data value is read to set the upper and lower limits.
[0008] B: Obtaining and combining protection flags: During operation, the system detects corresponding protection events on the master controller in real time, and then sets or clears the corresponding master controller protection event flag; and receives the corresponding slave controller protection event flag uploaded by the slave controller, and combines the master controller protection event flag with the slave controller protection event flag;
[0009] C: Detect the protection flag bit: sequentially detect all the protection flag bits to determine whether a protection event occurs. If yes, analyze the corresponding protection event and enter step E; if no, perform cyclic detection on all the protection flag bits;
[0010] D: Protection event detection module: detects protection events in real time by identifying protection flag bits;
[0011] E: Encode the protection event: When a protection event occurs, the flag bit is detected and the protection event is encoded to determine the type and ID of the protection event.
[0012] F: Processing of protection events: Processing the coded protection events according to the corresponding protection logic according to the protection event type, which includes restartable protection events and non-restartable protection events.
[0013] G: Protection information output: The obtained protection information is processed, stored in the FIFO memory, and sent to the display end.
[0014] The technical solution of the present invention has the following beneficial effects compared with the prior art:
[0015] The present invention sets upper and lower limit protections first, completes the limitation before the system is started and runs, and at the same time, the display terminal generates and sends configurations for easy display and operation adjustment, and sets upper and lower limit values for the program system; further sets a protection flag bit, combines the protection bit and the flag bit generated by the protection event, and then monitors the flag bit in real time, and divides the protection events into restartable events and non-restartable events, and defines the priorities of different events, which can facilitate different response speeds and solutions for different protection events, and provide feedback and judge whether a restart is needed to solve the problem at the display terminal, which can effectively detect the operating status of the system and process and record the protection events. At the same time, the present solution has and satisfies multiple protection methods, and provides more comprehensive protection for various functions of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the working process of the system protection method of the SVG system of the present invention;
[0017] Figure 2 FIG. 4 is an overall system block diagram of the SVG system of the present invention. DETAILED DESCRIPTION
[0018] The system protection method of an SVG system of the present invention is further described in detail below in conjunction with the accompanying drawings and the following embodiments.
[0019] Example
[0020] In certain embodiments: Figure 1 and Figure 2 As shown, the system includes a main circuit part for completing the inversion output of the compensation current required by the load and a control part for controlling the main circuit part, the main circuit part includes a circuit breaker, an inductor, a contactor, an IGBT and a DC side capacitor electrically connected to the power grid, the control part includes a sampling circuit, an IGBT drive circuit, a control circuit and a display terminal, and the control circuit is configured with a system protection program;
[0021] The system protection method implemented when the system protection program is executed includes the following steps:
[0022] A: Obtaining protection upper and lower limits: Before the system is run, it monitors the configuration data sent from the display terminal. If the configuration data is obtained, the upper and lower limits are set according to the configuration data. If the configuration data is not obtained, the default data value is read to set the upper and lower limits.
[0023] B: Obtaining and combining protection flags: During operation, the system detects corresponding protection events on the master controller in real time, and then sets or clears the corresponding master controller protection event flag; and receives the corresponding slave controller protection event flag uploaded by the slave controller, and combines the master controller protection event flag with the slave controller protection event flag;
[0024] C: Detect the protection flag bit: sequentially detect all the protection flag bits to determine whether a protection event occurs. If yes, analyze the corresponding protection event and enter step E; if no, perform cyclic detection on all the protection flag bits;
[0025] D: Protection event detection module: detects protection events in real time by identifying protection flag bits;
[0026] E: Encode the protection event: When a protection event occurs, the flag bit is detected and the protection event is encoded to determine the type and ID of the protection event.
[0027] F: Processing of protection events: Processing the coded protection events according to the corresponding protection logic according to the protection event type, which includes restartable protection events and non-restartable protection events.
[0028] G: Protection information output: The obtained protection information is processed, stored in the FIFO memory, and sent to the display end.
[0029] In some embodiments, the control circuit is configured with a system protection program based on FPGA implementation, and the underlying modules implemented by FPGA include a protection upper and lower limit setting module, a protection flag bit combination module, a protection flag bit detection module, a protection event encoding module and a protection event center processing module, wherein:
[0030] The step A is implemented based on the protection upper and lower limit setting module, and the specific steps also include:
[0031] The input configuration data corresponds to each output, and the configuration data is input through the index of specific protection value data; preferably, a rising edge of a clock is used as an output mark; the configuration data includes the setting of the upper and lower protection limits of the frequency and voltage effective value;
[0032] The system protection method further comprises the following steps:
[0033] H: Determine whether the power grid is over-frequency or under-frequency. The step H is implemented based on the power grid frequency protection module, which is used to determine whether the power grid is over-frequency or under-frequency. The specific determination steps are: compare the frequency output by the phase-locked loop with the set upper and lower limits of the frequency protection, and output the comparison result;
[0034] I: Determine whether the phase sequence of the power grid is normal. The step I is implemented based on the phase sequence protection module. The module is used to determine whether the phase sequence of the power grid is normal. The specific judgment steps are: according to a clock frequency division in the program, the clock frequency is changed to 1kHz. At this clock frequency, if the negative sequence exceeds 10 clock cycles (10ms), then a phase sequence error will be reported and the phase sequence will become a high level; the negative sequence judgment step is to first detect the zero crossing point of phase A and the slope of this zero crossing point is positive, and then determine the values of phase B and phase C at this time.
[0035] 1) If phase B is greater than zero and phase C is less than zero, it is considered to be positive sequence;
[0036] 2) If phase B is less than zero and phase C is greater than zero, it is considered to be negative sequence;
[0037] 3) If the zero crossing point of phase A is not detected at this time, it is considered to be undetected at this time.
[0038] J: Determine whether the power grid is overvoltage or undervoltage. The step I is implemented based on the voltage effective value protection module, which is used to determine whether the power grid is overvoltage or undervoltage. The specific determination steps are:
[0039] 1) First, the upper and lower limits of the voltage effective value protection need to be input externally in advance, and the corresponding upper and lower limits of protection are calculated internally and stored in the internal registers;
[0040] 2) Afterwards, the voltages of the three phases ABC are monitored in real time, the effective value is calculated internally, and compared with the corresponding upper and lower limits, and the comparison result is output accordingly. The protection upper and lower limits of the three phases ABC are the same.
[0041] When judging whether the power grid is overvoltage or undervoltage, the upper and lower limits are compared by the protection comparison module, and the comparison steps include:
[0042] J1: The calculated effective value is the effective value of any phase voltage, which is then compared with the upper and lower limits of the protection. The comparison result is determined as follows:
[0043] 1) If the phase does not touch the upper and lower limits of protection, then repeat the waiting process for 6 times. If the upper and lower limits of protection are not touched during these 6 times, then jump to the next phase and repeat the cycle.
[0044] 2) If the phase touches the upper and lower limits of protection, the output result (overvoltage or undervoltage) will be displayed, and then it will stop at this phase until the protection fault is cleared.
[0045] In some embodiments, the upper and lower limits of protection are set when the display interface sends configuration data before the system is turned on and the program uses this as the upper and lower limits of protection to set the corresponding upper and lower limits in the program. If the display interface does not send data, the default data value will be read.
[0046] When the system is running, the program detects the corresponding protection events in real time, and then sets or clears the corresponding protection bits. In addition, the slave controller also uploads the corresponding protection event flags through optical fiber. In order to uniformly handle protection events, all protection event flags need to be combined together.
[0047] Furthermore, the protection flag detection program is used to detect whether a protection event occurs. If so, the corresponding protection event is analyzed and the corresponding process is entered for processing. The detection is effective on the rising edge, and all protection flag bits are detected in sequence.
[0048] Furthermore, protection event coding and processing: after a protection event is detected, the protection event needs to be encoded, and the type of protection event, the ID of the protection event, etc. need to be determined to facilitate the next step of processing and screen display of the protection event; after the protection event coding is completed, the protection event needs to be processed.
[0049] Furthermore, the main controller classifies the protection events: when there are protection events, these protection events are encoded, the current protection event type and ID are determined, and the information corresponding to the corresponding protection event is sent to the display interface.
[0050] The detected protection events are divided into non-restartable protection events and restartable protection events;
[0051] The event handling principles have priority principles, including:
[0052] (1) The priority of non-restartable protection events is higher than that of restartable protection events. When both types of protection events occur at the same time, the non-restartable protection event is processed and the restartable protection event is ignored. When a non-restartable protection event occurs during the processing of a restartable protection event, the current processing process is abandoned and the processing of the non-restartable protection event is switched to that of the restartable protection event.
[0053] (2) There is also a priority between non-restartable protection events and restartable protection events. When two protection events occur at the same time, the high-priority event is processed and the low-priority event is ignored.
[0054] (3) During the protection processing, if a protection event of the same type occurs, the protection event will be ignored.
[0055] (4) All protection events of slave controllers share a set of protection processing logic, and all protection events of slave controllers also have different priorities.
[0056] The processed protection information is first stored in the FIFO buffer and then sent to the slave board and the host computer interface.
[0057] In some embodiments, the specific steps of the protection method include the following: Step B is implemented based on the protection flag bit combination module, and the protection flag bit combination module is configured as follows:
[0058] The input side is all the protection flags, which are converted into data of corresponding format after the defined coding format. Among them, the Sys_Prot_Fre_Prot module is used to detect frequency protection; the Sys_Prot_Seq_Prot module is used to detect phase sequence protection; the Line_RMS_Top module detects whether the grid voltage effective value protection is in effect; the first three modules are in parallel, and finally the Sys_Prot_Bits_Config module is used to combine these protection event flags with the protection event flags uploaded from the controller to generate an ordered code.
[0059] The step C is implemented based on the protection flag bit detection module, and the protection flag bit detection module is configured as follows:
[0060] 1) Delay the protection signal through the Prot_En_Delay submodule;
[0061] 2) The algorithm for obtaining the protection flag is as follows: This module calculates the previous protection state (0.1ms ago) and the current protection state. The calculation method is to invert the current protection state and then perform bit-wise AND operation with the previous protection state. If a bit becomes a high level, it means that the corresponding flag protection is generated. Its essence is rising edge detection.
[0062] The step E is implemented based on a protection event coding module, and the protection event coding module is configured as follows:
[0063] 1) The system defines the protection events corresponding to the protection flag bits;
[0064] 2) Generate corresponding data bits for various possible protection events;
[0065] 3) The protection flag bit and the data bit are matched in sequence. When a protection event is detected, and the protection flag bit of the protection event corresponds to the data bit, the protection event processing is triggered;
[0066] Wherein: the data bit includes a restartable event data bit and a non-restartable event data bit, and the event status of the protection event is detected through the data bit and the protection flag bit.
[0067] Step F is implemented based on a protection event center processing module, and the protection event center processing module is configured as follows:
[0068] 1) Separate events into restartable events and non-restartable events;
[0069] 2) Check the status of the protection flag to determine whether a corresponding event occurs for the protection flag;
[0070] 3) When no event occurs, perform cyclic detection.
[0071] After determining that the protection event is a restartable event, the following steps are also included:
[0072] 4) Block the slave board PWM, and write the fault event and the block slave board PWM command into the FIFO memory;
[0073] 5) Set the blocking response time, block the slave board PWM until the response time, and then check whether the slave board PWM is turned off;
[0074] 6) When the slave board PWM is not closed, a fiber fault is reported, and the fiber fault event is written into the FIFO memory, and the fiber fault is defined as a non-restartable event;
[0075] 7) After the slave board PWM is turned off, disconnect the large contactor, wait for the contactor to disconnect the line connection, and then check the restart status;
[0076] 8) When the restart status is determined to be restartable, restart is performed;
[0077] 9) When the restart status is determined to be non-restartable, a restart failure fault is reported, the failure fault event is written into the FIFO memory, and the restart failure fault is defined as a non-restartable event.
[0078] Wherein: after determining that the event is a restartable event, each step detects in real time whether there is a non-restartable protection event. During any restartable event determination step, if it is determined that there is a non-restartable protection event, the process proceeds to the non-restartable event step.
[0079] The protection logic in step F includes the following steps:
[0080] F1: Block slave PWM, write fault event and block slave PWM command into FIFO memory;
[0081] F2: Set the blocking response time;
[0082] F3: After blocking the slave board PWM for the response time, disconnect the large relay to put the event in protection state;
[0083] F4: The FIFO memory sends a signal to the interface display and simultaneously sends it to the slave board through the optical fiber.
[0084] The priority division method of the protection events in step F is configured as follows:
[0085] The protection event center processing module divides the same type of events into internal priorities;
[0086] 1) When multiple protection events of different types occur at the same time, first determine the type of event, give priority to non-restartable events, and then select and process the same events according to their internal priorities;
[0087] 2) When multiple restartable protection events or non-restartable events of the same type occur at the same time, they are selected and processed according to the internal priority levels;
[0088] Wherein: when processing a restartable event, if a non-restartable event occurs, the current restartable event processing process is suspended and the process is switched to the non-restartable event processing process;
[0089] The priority of protection events is set as: non-restartable high priority events > non-restartable low priority events > restartable high priority events > restartable low priority events.
[0090] The following table shows the definition of protection events and the sequence number of data in some embodiments;
[0091] Table 1
[0092]
[0093]
[0094] Further integration Figure 2 As shown, the static VAR generator is arranged between the power grid and the load. The system includes an inverter output main circuit part for completing the required compensation current and a control part of the control circuit. The main circuit part includes a circuit breaker, an inductor, a contactor, an IGBT and a DC side directly connected to the power grid. The control part includes a sampling circuit, an IGBT drive circuit, a control circuit and a display terminal.
[0095] The basic working principle of the static VAR generator and the system protection method is:
[0096] The whole circuit system mainly includes the main circuit part and the control circuit part: one side of the main circuit is the DC side, which aims to provide a voltage support for the device and make the DC side of the SVG present a low-impedance voltage source characteristic. The main circuit part is composed of a voltage source inverter composed of high-power power electronic switching devices (IGBT), which controls the on and off of the power switching devices and converts the DC side voltage into an AC voltage with a certain frequency, amplitude and phase; the connecting reactor of the main circuit, on the one hand, couples the inverter device with the power system, and on the other hand, it can also filter out the high-order harmonics in the inverter output voltage, realize the sinusoidalization of the SVG output voltage, and then complete the inverter output of the required compensation current.
[0097] The control circuit part mainly includes DSP processing circuit, voltage and current signal detection and conditioning circuit, IGBT drive circuit, LCD display circuit, etc.
[0098] The DSP control board includes a sampling and conditioning circuit. First, the current signal from the sensor is converted into a voltage signal through a sampling resistor. The accuracy of the sampling resistor is required to be above 1%. Then, this voltage signal is input into a second-order active low-pass filter with a center frequency of 5.6KHZ through a follower circuit.
[0099] The DSP control board also includes a sampling circuit. The number of sampling channels required for SVG is 16. The DSP2812 chip integrates a 12-bit precision 16-channel AD module, but the actual accuracy can only reach 10 bits. Therefore, this design adds an off-chip AD to form a 14-bit precision sampling circuit.
[0100] The input voltage range of the AD chip is -5V to 5V. The power supply of the analog part is divided into blocks to avoid crosstalk. The ground is not isolated, the ground is common, and the ground is single-point.
[0101] The modules used by DSP in this system include: external interface (XINTF); serial communication module SCI; SPI interface; CAN interface; event manager EV (PWM output module); and some multiplexed digital IO.
[0102] In some embodiments, the D / A debugging circuit of the DSP control board uses an off-chip D / A, a test circuit with 2 output channels and 12-bit accuracy.
[0103] The DSP control board is then output by PWM; the PWM signal from the DSP is driven and transmitted to the IGBT drive transfer board (6-way PWM signal, 1-way IPM fault output signal).
[0104] The sampling board of the DSP control board is mainly used for collecting grid voltage, DC side voltage, load current, and equipment output current. The grid voltage is collected using a voltage transformer, the load secondary current is collected using a current transformer, the DC side voltage is a DC quantity so a sensor is used, and the equipment output current may contain a DC component so a sensor is also used.
[0105] IGBT drive circuit, in which the signal connection between the DSP control board and the IGBT is realized through the optical fiber signal transmission board and the optical fiber signal adapter board. The main function of the IGBT drive board is to complete the distribution of the PWM signal from the main control board and provide power to the IGBT.
[0106] The static VAR generator provided in this embodiment has the functions of grid over-voltage and under-voltage, grid phase loss, device overcurrent, DC bus over-voltage and under-voltage, overload automatic current limiting protection, and short circuit protection.
[0107] At the same time, the protection method of the static VAR generator has and is adapted to multiple protection functions, and its protection methods and solutions are as follows:
[0108] (1) DC side voltage protection
[0109] The main function of the DC side voltage protection unit is: when the DC side voltage exceeds 800V and is detected several times in succession in the interrupt program, the PWM pulse is blocked but the contactor is not disconnected.
[0110] (2) System overcurrent protection
[0111] The function of the system overcurrent protection unit is: according to the capacity of the system device, a protection value of the protection current is set. When the current emitted by the system is greater than this current protection value and is continuously detected several times in the interrupt program, the PWM pulse is blocked but the contactor is not disconnected.
[0112] (3) Grid voltage phase sequence protection
[0113] The main function of the grid voltage phase sequence protection unit is to detect whether there is a problem with the grid voltage phase sequence. The specific scheme for phase sequence error detection is: at the zero crossing point of phase A voltage, first determine whether the phase A voltage is negative after zero crossing, and then monitor the voltages of phases B and C within a cycle. If the voltage of phase B is less than 0 and the voltage of phase C is greater than 0, it means that the phase sequence is wrong. The grid voltage is an irreversible protection, and the PWM pulse needs to be blocked and the contactor disconnected at the same time.
[0114] (4) Grid voltage overvoltage and undervoltage protection
[0115] The grid voltage overvoltage and undervoltage protection unit completes the function of: detecting the size of the grid voltage. When it is greater than the AC overvoltage value and AC undervoltage value set on the touch screen, the PWM pulse needs to be blocked and the contactor is disconnected to protect the system.
[0116] (5) DC side charging timeout
[0117] The DC side charging timeout protection unit completes the following functions: mainly, after the device is started, before entering state 5 (i.e. before starting reactive power compensation), if the time exceeds 30s, the PWM pulse is blocked, the contactor is disconnected, and the system is protected.
[0118] (6) Over temperature protection
[0119] Over-temperature protection function: When the detected IGBT temperature exceeds 100°C and is detected several times in succession, it is an irreversible protection, blocking the PWM pulse and disconnecting the contactor to protect the system.
[0120] The protection method for the static VAR generator of the present embodiment is to set the upper and lower limit protections first, and complete the limitation before the system is started and operated. At the same time, the display terminal generates and sends the configuration for display and operation adjustment, and sets the upper and lower limit values in the program system; further set the protection flag bit, combine the protection bit and the flag bit generated by the protection event, and then monitor the flag bit in real time, and divide the protection events into restartable events and non-restartable events, and define the priorities of different events, so as to facilitate different response speeds and solutions for different protection events, and provide feedback and judge whether restart is needed to solve the problem at the display terminal, so as to effectively detect the operating status of the system and process and record the protection events. At the same time, the present scheme has and satisfies multiple protection modes, and the protection of various functions of the system is more comprehensive, not limited to the protection of certain problems, and is also convenient for expanding the protection events.
[0121] The embodiments described above are merely descriptions of preferred implementations of the present invention and are not intended to limit the scope of the present invention. All other implementations obtained by those skilled in the art based on the implementations in the present invention without creative work are within the scope of protection of the present invention. Without departing from the concept of the present invention, various modifications and improvements made to the technical solutions of the present invention by those of ordinary skill in the art should fall within the scope of protection determined by the claims of the present invention.
Claims
1. A system protection method for an SVG system, the system comprising a main circuit part for completing the inversion output of the compensation current required by the load and a control part for controlling the main circuit part, the main circuit part comprising a circuit breaker, an inductor, a contactor, an IGBT and a DC side capacitor electrically connected to the power grid, the control part comprising a sampling circuit, an IGBT driving circuit, a control circuit and a display terminal, characterized in that: The control circuit is configured with a system protection program. The system protection method implemented when the system protection program is executed includes the following steps: A: Obtaining protection upper and lower limits: Before the system is run, it monitors the configuration data sent from the display terminal. If the configuration data is obtained, the upper and lower limits are set according to the configuration data. If the configuration data is not obtained, the default data value is read to set the upper and lower limits. B: Obtaining and combining protection flags: When the system is running, it detects corresponding protection events on the main controller in real time, and then sets or clears the corresponding protection event flags of the main controller; and receiving a corresponding slave controller protection event flag bit uploaded by the slave controller, and combining the master controller protection event flag bit with the slave controller protection event flag bit; C: Detect the protection flag bit: sequentially detect all the protection flag bits to determine whether a protection event occurs. If yes, analyze the corresponding protection event and enter step E; If not, all protection flag bits are checked cyclically; D: Protection event detection module: detects protection events in real time by identifying protection flag bits; E: Encode the protection event: When a protection event occurs, the flag bit is detected and the protection event is encoded to determine the type and ID of the protection event. F: Processing of protection events: Processing the coded protection events according to the corresponding protection logic according to the protection event type, which includes restartable protection events and non-restartable protection events. G: Protection information output: Process the obtained protection information, store it in the FIFO memory, and send it to the display end; The control circuit is configured with a system protection program based on FPGA, and the bottom-level modules implemented by FPGA include a protection upper and lower limit setting module, a protection flag bit combination module, a protection flag bit detection module, a protection event encoding module and a protection event center processing module, wherein: The step A is implemented based on the protection upper and lower limit setting module, and the specific steps also include: The input configuration data corresponds to each output, and the configuration data is input through the index of specific protection value data; a rising edge of a clock is used as an output mark; the configuration data includes the setting of the upper and lower limits of the protection of the frequency and voltage effective value; The system protection method further comprises the following steps: H: Determine whether the power grid is over-frequency or under-frequency. Step H is implemented based on a power grid frequency protection module, which is used to determine whether the power grid is over-frequency or under-frequency. The specific determination steps are: compare the frequency output by the phase-locked loop with the set upper and lower limits of the frequency protection, and output the comparison result; I: Determine whether the phase sequence of the power grid is normal. The step I is implemented based on the phase sequence protection module. The module is used to determine whether the phase sequence of the power grid is normal. The specific judgment steps are: according to a clock frequency division in the program, the clock frequency is changed to 1kHz. At this clock frequency, if the negative sequence exceeds 10 clock cycles (10ms), then a phase sequence error will be reported and the phase sequence will become a high level; the negative sequence judgment step is to first detect the zero crossing point of phase A and the slope of this zero crossing point is positive, and then determine the values of phase B and phase C at this time. 1) If phase B is greater than zero and phase C is less than zero, it is considered to be positive sequence; 2) If phase B is less than zero and phase C is greater than zero, it is considered to be negative sequence; 3) If the zero crossing point of phase A is not detected at this time, it is considered to be undetected at this time; J: Determine whether the power grid is overvoltage or undervoltage. Step J is implemented based on the voltage effective value protection module, which is used to determine whether the power grid is overvoltage or undervoltage. The specific determination steps are: 1) First, the upper and lower limits of the voltage effective value protection need to be input externally in advance, and the corresponding upper and lower limits of protection are calculated internally and stored in the internal registers; 2) After that, the voltage of the three phases ABC is monitored in real time, the effective value is calculated internally, and compared with the corresponding upper and lower limits, and the comparison result is output accordingly. The protection upper and lower limits of the three phases ABC are the same; The step B is implemented based on the protection flag bit combination module, and the protection flag bit combination module is configured as follows: The input side is all the protection flags, which are converted into data of corresponding format after the defined coding format. Among them, the Sys_Prot_Fre_Prot module is used to detect frequency protection; the Sys_Prot_Seq_Prot module is used to detect phase sequence protection; the Line_RMS_Top module detects whether the grid voltage effective value protection is in effect; the previous three modules are in parallel, and finally the Sys_Prot_Bits_Config module is used to combine these protection event flags with the protection event flags uploaded from the controller to generate an orderly code; The step E is implemented based on a protection event coding module, and the protection event coding module is configured as follows: 1) The system defines the protection events corresponding to the protection flag bits; 2) Generate corresponding data bits for various possible protection events; 3) The protection flag bit and the data bit are matched in sequence. When a protection event is detected, and the protection flag bit of the protection event corresponds to the data bit, the protection event processing is triggered; Wherein: the data bit includes a restartable event data bit and a non-restartable event data bit, and the event status of the protection event is detected through the data bit and the protection flag bit.
2. The system protection method according to claim 1, characterized in that: The step C is implemented based on the protection flag bit detection module, and the protection flag bit detection module is configured as follows: 1) Delay the protection signal through the Prot_En_Delay submodule; 2) The algorithm for obtaining the protection flag is as follows: This module calculates the previous protection state (0.1ms ago) and the current protection state. The calculation method is to invert the current protection state and then perform bit-wise AND operation with the previous protection state. If a bit becomes a high level, it means that the corresponding flag protection is generated. Its essence is rising edge detection.
3. The system protection method according to claim 1, characterized in that: Step F is implemented based on a protection event center processing module, and the protection event center processing module is configured as follows: 1) Separate events into restartable events and non-restartable events; 2) Check the status of the protection flag to determine whether a corresponding event occurs for the protection flag; 3) When no event occurs, perform cyclic detection.
4. The system protection method according to claim 1, characterized in that: After determining that the protection event is a restartable event, the following steps are also included: 4) Block the slave board PWM, and write the fault event and the block slave board PWM command into the FIFO memory; 5) Set the blocking response time, block the slave board PWM until the response time, and then check whether the slave board PWM is turned off; 6) When the slave board PWM is not closed, a fiber fault is reported, and the fiber fault event is written into the FIFO memory, and the fiber fault is defined as a non-restartable event; 7) After the slave board PWM is turned off, disconnect the large contactor, wait for the contactor to disconnect the line connection, and then check the restart status; 8) When the restart status is determined to be restartable, restart is performed; 9) When the restart status is determined to be non-restartable, a restart failure fault is reported, the failure fault event is written into the FIFO memory, and the restart failure fault is defined as a non-restartable event; Wherein: after determining that the event is a restartable event, each step detects in real time whether there is a non-restartable protection event. During any restartable event determination step, if it is determined that there is a non-restartable protection event, the process proceeds to the non-restartable event step.
5. The system protection method according to claim 1, characterized in that: The protection logic in step F includes the following steps: F1: Block slave PWM, write fault event and block slave PWM command into FIFO memory; F2: Set the blocking response time; F3: After blocking the slave board PWM for the response time, disconnect the large relay to put the event in protection state; F4: The FIFO memory sends a signal to the interface display and simultaneously sends it to the slave board through the optical fiber.
6. The system protection method according to claim 1, characterized in that: The priority division method of the protection events in step F is configured as follows: The protection event center processing module divides the same type of events into internal priorities; 1) When multiple protection events of different types occur at the same time, first determine the type of event, give priority to non-restartable events, and then select and process the same events according to their internal priorities; 2) When multiple restartable protection events or non-restartable events of the same type occur at the same time, they are selected and processed according to the internal priority levels; Wherein: when processing a restartable event, if a non-restartable event occurs, the current restartable event processing process is suspended and the process is switched to the non-restartable event processing process; The priority of protection events is set as: non-restartable high priority events > non-restartable low priority events > restartable high priority events > restartable low priority events.
7. The system protection method according to claim 1, characterized in that: When judging whether the power grid is overvoltage or undervoltage, the upper and lower limits are compared by the protection comparison module, and the comparison steps include: J1: The calculated effective value is the effective value of any phase voltage, which is then compared with the upper and lower limits of the protection. The comparison result is determined as follows: 1) If the phase does not touch the upper and lower limits of protection, then repeat the waiting process for 6 times. If the upper and lower limits of protection are not touched during these 6 times, then jump to the next phase and repeat the cycle. 2) If the phase touches the upper and lower limits of protection, the output result (overvoltage or undervoltage) will be displayed, and then it will stop at this phase until the protection fault is cleared.
