A control system for static VAR generator

Through the combination of the system main program module, interrupt processing module and electrical fault detection module, the deficiencies in accuracy, response speed and capacity of the static var generator control system are solved, and high-precision, fast response and strong real-time control are achieved. The effect is to simplify the design and implementation process.

CN115296261BActive Publication Date: 2024-10-11KUNSHAN TYSEN KLD PHOTOELECTRIC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210998721.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2024-10-11
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

The existing static var generator control system has deficiencies in control accuracy, response speed and capacity, especially due to the limitation of switching frequency and complex design and implementation.

Method used

A control system composed of the system main program module, interrupt processing module and electrical fault detection module is adopted. The interrupt processing module shortens the program running time and improves real-time performance. The electrical fault detection module provides protection functions and realizes abnormal power outage self-start and fault. processing to improve control accuracy and response speed.

Benefits of technology

It achieves high-precision, fast-response static var generator control that is not limited by switching frequency, has high real-time performance and capacity, and greatly simplifies the design and implementation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115296261B_ABST
    Figure CN115296261B_ABST
Patent Text Reader

Abstract

The present invention relates to a control system for a static VAR generator, comprising a system main program module, an interrupt processing module and an electrical fault detection module, wherein the system main program module is used to receive a fault signal from the electrical fault detection module and send an interrupt signal to the interrupt processing module; the interrupt processing module is used to receive a sampling signal and the interrupt signal from the system main program module, and send a switch quantity detection and drive signal and an output PWM control signal to the system main program module, wherein the interrupt processing module and the electrical fault detection module both communicate with a display terminal; the electrical fault detection module sends a fault signal to the system main program module and sends the alarm signal to the display terminal. The system is not limited by the switching frequency, has an abnormal power-off self-starting function, can directly process fault signals, has a large capacity, and has the effects of high control accuracy, fast current response, short program running time, and high real-time performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of reactive power compensation equipment control and relates to a control system of a static reactive power generator. Background Art

[0002] A static VAR generator connects a self-commutated bridge circuit to the grid in parallel through a reactor or transformer. According to the input reactive power command, the amplitude and phase of the output voltage on the AC side of the bridge circuit are appropriately adjusted, or its AC side current is directly controlled, so that it absorbs or emits reactive current as required, thereby achieving the purpose of dynamic reactive power compensation.

[0003] By adjusting the SVG according to the reactive current (or reactive power) reference value and controlling the nature and size of the reactive power emitted by the SVG, the reactive power required by the load can be compensated. The control system of the existing static VAR generator can be mainly divided into two control modes: current indirect control and current direct control. Although the current indirect control mode is mature in technology, it is relatively simple, and has low control accuracy and slow current response, which is limited to the application of SVG with larger capacity. The current direct control mode is to feedback control the instantaneous value of the current waveform according to the relationship between the command signal of the compensation current and the actual compensation current. Although this method has good real-time performance, it is limited by the switching frequency, the capacity cannot be very large, and the design and implementation are relatively complex. Therefore, the existing static VAR generator has great deficiencies in system control, and the technical development needs to be improved. Therefore, the inventor improves the problems existing in the control system in the prior art. Summary of the invention

[0004] The present invention provides a control system for a static VAR generator which is not limited by switching frequency, has high control accuracy, fast current response, short program running time, high real-time performance, large capacity, and is relatively simple to design and implement. The control system comprises the following technical scheme: the control system for the static VAR generator comprises a system main program module, an interrupt processing module and an electrical fault detection module, wherein the system main program module is used to receive a fault signal from the electrical fault detection module and send an interrupt signal to the interrupt processing module; the interrupt processing module is used to receive a sampling signal and the interrupt signal from the system main program module, and send a switch quantity detection and drive signal and an output PWM control signal to the system main program module, wherein the interrupt processing module and the electrical fault detection module both communicate with a display terminal; the electrical fault detection module sends a fault signal to the system main program module and sends the alarm signal to the display terminal.

[0005] The technical solution of the present invention has the following beneficial effects compared with the prior art: the control system provided by the present invention is controlled by a system main program module, an interrupt processing module and an electrical fault detection module; the start and stop logic signals are controlled by the system main program module, and at the same time, there is an abnormal power-off self-start function, which can directly process fault signals; the interrupt processing module can effectively shorten the program running time, and ensure the calculation accuracy, thereby improving the overall real-time performance of the system; the electrical fault detection module provides a protection method for the system, and the protection effect is more comprehensive and more diverse; the system is not limited by the switching frequency, has an abnormal power-off self-start function, can directly process fault signals, has a large capacity, and at the same time has the effects of high control accuracy, fast current response, short program running time, and high real-time performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1 It is a schematic flow chart of the working principle of the control system of the static VAR generator of the present invention;

[0007] Figure 2 It is a flow chart of the working principle of the main program module of the control system of the present invention;

[0008] Figure 3 It is a flow chart of the working principle of the interrupt processing module of the control system of the present invention;

[0009] Figure 4 It is a block diagram of the SVG control algorithm of the interrupt processing module of the control system of the present invention;

[0010] Figure 5 A control diagram for software phase locking of an interrupt processing module of a control system of the present invention;

[0011] Figure 6 This is the block diagram of the static VAR generator system;

[0012] Figure 7 This is the working principle diagram of the grid voltage effective value electrical fault detection module. DETAILED DESCRIPTION

[0013] The control system of the static VAR generator of the present invention is described below with reference to the accompanying drawings. It should be noted that the modules of the present invention can be arbitrarily combined or split according to the main purpose of the invention, and should not be limited to the functions of one or some modules in a certain embodiment when defining the scope of protection of the claims.

[0014] The “system” of the present invention refers to a control program or control algorithm loaded on a device / apparatus including but not limited to SVG, APF or a static VAR generator having the same or similar functions.

[0015] The “module” of the present invention refers to, for example, a program module implemented based on a computer program or a hardware module implemented based on an FPGA, but the interpretation of the meaning of a specific module should not be limited to software or hardware.

[0016] The "slave module" of the present invention refers to, for example, a slave board relative to a master module (main board). Usually, one main board can control multiple slave boards.

[0017] The top-level module, also called the top-level entity, is a module that contains information about the connection relationship between all the bottom-level modules. The top-level module knows how the signals in the bottom-level modules are connected, and it usually corresponds to the overall function.

[0018] The bottom-level module, also known as the bottom-level entity, refers to the function of the overall module that is decomposed and implemented in each module. Each specific implementation module is the bottom-level module.

[0019] In the present invention, the terms such as charging resistor, small contactor, large contactor, contactor, main board, and slave board are not specifically limited, and are explained according to the conventional application of SVG or APF in the art. For example, the small contactor is used to pre-charge the DC side capacitor of APF or SVG, and the large contactor is used to control the APF or SVG to be connected to the grid. Figure 6 As shown, the main board is a DSP control board (can also be implemented by FPGA) and the slave board is an IGBT driver board.

[0020] In some embodiments, reference Figure 1 A control system for a static VAR generator is shown, comprising a system main program module, an interrupt processing module and an electrical fault detection module, wherein the system main program module is used to receive a fault signal from the electrical fault detection module and send an interrupt signal to the interrupt processing module; the interrupt processing module is used to receive the interrupt signal from the system main program module and the sampling signal from the sampling component, and send a switch quantity detection and drive signal and an output PWM control signal to the system main program module, wherein the interrupt processing module and the electrical fault detection module both communicate with a display terminal; the electrical fault detection module sends a fault signal to the system main program module and sends the alarm signal to the display terminal.

[0021] The system main program module includes a system register initialization unit, a general IO port initialization unit, an interrupt vector table initialization unit, a peripheral initialization unit, an initialization variable assignment unit, a timer O configuration unit, a timer start unit and an interrupt enable unit, wherein Figure 1The direction of the arrows between the units indicates the control order or the signal transmission direction, however, the present invention is not limited thereto. In other embodiments, the system register initialization unit, the general IO port initialization unit and the peripheral initialization unit are initialized at the same time, and then the interrupt vector table initialization unit and the initialization variable assignment unit are initialized at the same time, which has a better effect of high control accuracy and fast current response.

[0022] The interrupt processing module includes a sampling unit communicating with the enabling interrupt unit, a DC side voltage charging unit, a grid voltage phase-locked loop unit, a reactive current extraction unit, and a compensation signal output unit, wherein Figure 1 The direction of the arrows between the units indicates the control sequence or the signal transmission direction, however, the present invention is not limited thereto. In some other embodiments, the grid voltage phase-locked loop unit includes a phase A grid voltage phase-locked loop unit, the reactive current extraction unit is also called a command current extraction unit, and the compensation signal output unit outputs a PWM control signal, including a voltage feedforward compensation signal, a dead zone compensation signal, a PWM pulse width calculation signal, and a control PWM generation signal. The sampling unit is used to obtain three grid voltage values, three load current values, three compensation current values ​​and two DC side voltage values ​​sampled from the grid, which can also be understood as the sampling unit used to respond to the timer 0 interrupt link of the chip; the DC side voltage charging unit is used to continue charging the DC side of the system to a specified voltage value after the system is pre-charged, such as using the SVPWM boost method; the grid voltage phase-locked loop unit is used to track a phase grid voltage and generate a sine signal and a cosine signal with the same phase as the grid voltage, such as tracking the A-phase grid voltage; the command current extraction unit is used to extract the reactive component in the load current, and extract the reactive power using a detection algorithm based on a rotating coordinate system; the compensation signal output unit is used to send a switch signal to control the on and off of the converter according to the command current signal, thereby generating a compensation current signal opposite to the reactive command signal.

[0023] The electrical fault detection module includes a grid voltage phase loss detection unit, a grid voltage phase sequence detection unit, a grid voltage overvoltage and undervoltage detection unit, an IGBT detection unit, a DC side voltage detection unit, a system overcurrent detection unit, and an overload detection unit, wherein Figure 1The arrow direction of the unit indicates the control sequence or signal transmission direction, however, the present invention is not limited to this. The grid voltage phase sequence detection unit is used to detect the grid voltage phase sequence. When a phase sequence error is detected, the grid voltage is determined to be an unrecoverable fault, the PWM pulse is blocked, and the contactor is disconnected at the same time; the grid voltage overvoltage and undervoltage detection unit is used to detect the magnitude of the grid voltage. When it is greater than the set AC overvoltage value and AC undervoltage value, the PWM pulse is blocked and the contactor is disconnected at the same time; the DC side voltage detection unit determines that when the DC side voltage exceeds the set voltage, after it is continuously monitored for multiple times in the interrupt program, the PWM pulse is blocked and the contactor is not disconnected; the system overcurrent detection unit sets the protection value of the protection current according to the capacity of the system device. When the current emitted by the system is greater than this current protection value and is continuously monitored for multiple times in the interrupt program, the PWM pulse is blocked and the contactor is not disconnected.

[0024] The following is an implementation example of an expansion unit of a system main program module, an interrupt processing module, and an electrical fault detection module.

[0025] In some extension unit embodiments, the system main program module also includes a system status indication unit, a control logic unit and a DC side pre-charging unit. The system status indication unit is used to indicate the status of the system, for example, through the indication of the system status light; the control logic unit is used to process the start-stop signal and the fault signal to realize the normal operation task and the fault stop task of the control system of the static VAR generator; the DC side pre-charging unit is used to perform DC side pre-charging according to the instructions of the control logic unit and the switch detection and drive unit. The present invention does not specifically limit the primary circuit controlled by the DC side pre-charging unit. For example, the pre-charging circuit can be composed of a group of parallel contactors and current limiting resistors. When the device is in a charging state, the controller controls the contactor to disconnect, and the resistor limits the impact of the current on the DC capacitor. When the device is in a normal working state, the controller controls the contactor to close to reduce the device loss.

[0026] In some embodiments of the expansion unit, the interrupt processing module also includes an inter-module communication unit, a switch detection and drive unit, a specified power factor unit, a capacity limiting unit, and an over-temperature current limiting unit. The inter-module communication unit communicates with the display terminal through a CAN bus to send data to the display module. For the system, multiple points are sampled in each cycle and sent to the touch screen for real-time display of voltage, current data and their waveforms, while also transmitting the grid frequency, DC side voltage, and displaying fault codes in real time; the switch detection and drive unit is used to control the switch output signal of the on-off of low-voltage devices such as external contactors, and stop the switch input signal of the system at the same time; the specified power factor unit is used to obtain the required reactive current by looking up the table according to the power factor set on the touch screen; the capacity limiting unit is used to limit the capacity of the system output in a very short time when the capacity of the system is limited on the touch screen; the over-temperature current limiting unit is used to limit the system to 80% of the rated capacity when the detected IGBT temperature exceeds the limit temperature (such as 95°C) to ensure that the temperature of the IGBT does not rise any more.

[0027] In some expansion unit embodiments, the electrical fault detection module also includes a DC side charging timeout fault detection unit and an overtemperature detection unit; the DC side charging timeout fault detection unit is used to block the PWM pulse and disconnect the contactor if the time exceeds the set time after starting the device and before entering the reactive power compensation; the overtemperature detection unit, when the detected IGBT temperature exceeds the set stability and multiple overtemperatures are continuously monitored, determines it as an unrecoverable fault, blocks the PWM pulse, disconnects the contactor, and protects the system.

[0028] The following are embodiments of the configuration method of the system main program module, the interrupt processing module and the electrical fault detection module. In these embodiments, the system main program module, the interrupt processing module and the electrical fault detection module correspond to the functions of the system main program, the interrupt processing program and the protection processing program, respectively. For example, the technical solutions pointed to by "the system main program module is configured" and "the system main program is executed" are basically the same.

[0029] In a further configuration method embodiment, the system main program execution steps include: completing the tasks of initializing the hardware system control register, configuring the timer 0 interrupt, initializing the SVG system variables, indicating the working status of the SVG system, and controlling the logic signal, and having an abnormal power-off self-restart function and fault signal processing. The system main program initialization method is: calling one or more files simultaneously or separately to initialize the system register, initialize the general IO port, initialize the interrupt vector table, initialize the peripherals, and initialize the variable assignment. Combined with Figure 2The flowchart of the system main program shown further illustrates the system main program (system main program module). Technical features not mentioned below can be based on the conventional understanding of the system main program by those skilled in the art.

[0030] 1) Initialize the hardware system. In some embodiments, five files, namely SysCtrl.c, Gpio.c, PieCtrl.c, PieVect.c, and InitPeripherals.c, are involved simultaneously or separately, including initializing system registers, initializing general IO ports, initializing peripherals (interrupt priority), initializing interrupt vector tables, initializing peripherals, etc.

[0031] 2) Configure the timer 0 interrupt, which in some embodiments involves the CpuTimers.c file to set the interrupt time;

[0032] 3) Initializing SVG system variables, which, in some embodiments, are used to define all parameters used in the (SVG) software, such as three-phase grid voltage, three-phase grid current and other parameters.

[0033] 4) Logical signal control, which is used to realize the normal operation and fault stop of the SVG system.

[0034] 5) Abnormal power outage self-start, mainly manifested in that when the power grid suddenly loses power, the main control board saves the last system status, and when the power grid is restored, the system returns to the state before the power outage.

[0035] 6) Fault signal processing: when a fault occurs, different fault signals can be processed differently.

[0036] In further configuration method embodiments, see Figure 3 ,The execution steps of the interrupt handler include: entering the timer interrupt control, and then reading the ADC results and register results, then charging the DC side voltage, and updating the system state variables, and then generating the sine and cosine signals of any phase of the grid voltage, and then analyzing the reactive content, compensating the voltage feedforward and dead zone, thereby outputting the PWM control signal, clearing the interrupt flag, and completing the interrupt processing.

[0037] The following is a detailed description of the DC side voltage charging unit, the grid voltage phase-locked loop unit, the reactive current extraction unit, the compensation signal output unit, etc. in the interrupt processing module.

[0038] The DC side voltage charging unit is to combine the main circuit and hardware circuit of the SVG system. The DC side voltage charging unit includes three processes. The first step: close the small contactor and pre-charge its main circuit through the charging resistor to charge the DC side voltage to a certain value. The second step: close the large contactor to make the SVG main circuit work in the three-phase uncontrolled rectification working state, and the DC side voltage is charged to about 530V. The third step: charge the DC side voltage to the set value through the SVPWM boost circuit.

[0039] Combination Figure 4 , Figure 5 As shown, the grid voltage phase-locked loop unit: the system uses software phase-locking to determine the accurate phase of each sampling point. The principle of software phase-locking is: given When it is equal to 0, the obtained sinθ and cosθ are completely synchronized with the fundamental positive sequence component of the grid voltage. When it is not equal to 0, the obtained θ is different from the grid voltage phase by a certain angle. The grid voltage phase-locked loop unit is a sine table with a period of 1 / 4 of the power frequency period, that is, π / 2.

[0040] Command current extraction unit:

[0041] 1) Reactive current detection: The three-phase load current is transformed by d and q to obtain the active component i of the current d and reactive component i q Since the coordinate transformation is based on the grid fundamental frequency angular velocity rotation, the components of the active current correspond to i d The DC component of the reactive current corresponds to i q Subtracting the DC component of the sampled current q-axis DC component from it will give the reactive power command signal that needs to be compensated.

[0042] 2) The instruction current extraction unit can use assembly language to implement d and q transformations.

[0043] 3) The instruction current extraction unit can realize the function of low-pass filter by assembly language. The low-pass filter adopts a second-order Butterworth digital low-pass filter with a sampling frequency of 25KHz.

[0044] Compensation signal output unit: used to generate PWM wave signal. In some embodiments, SVPWM is used in the SVG software system, that is, the difference between the command signal and the actual signal is passed through the PI regulator, and then the SVPWM modulation method is used to obtain the PWM signal of the inverter. The compensation signal output unit can use assembly language to realize the role of the PI regulator.

[0045] In a further configuration method embodiment, the electrical fault detection module performs the steps including:

[0046] In some embodiments, the configuration method of the electrical fault detection module includes setting upper and lower limit protections: before the system is turned on, the display terminal generates and sends configuration data, and sets upper and lower limit values ​​in the upper and lower limit setting program system according to the configuration data; obtaining and combining fault flags: when the system is running, the program detects the corresponding fault events in real time, sets or clears the corresponding protection bits, and the controller (main control module) uploads the corresponding fault event flags, and combines the protection bits and flags of the fault events; detecting the fault flags: detecting the fault flags to determine whether a fault event has occurred; when it is determined that no fault event has occurred by detecting the flags, the fault flags are cyclically detected; when it is determined that a fault event has occurred by detecting the flags, the fault event that has occurred is encoded to determine the type of the fault event.

[0047] The control system of the static VAR generator of the present invention can be implemented by FPGA. The following are some embodiments based on FPGA implementation, but the present invention is not limited to FPGA. The control system of the static VAR generator based on FPGA can be responsible for the coordinated control and monitoring of the entire APF system, and can realize functions such as harmonic extraction and reactive power calculation, three-phase power grid phase locking, grid-side current closed-loop control, APF compensation current reference tracking control, system protection logic control, high-speed optical fiber communication and user interactive display. The following embodiments are mainly about the FPGA implementation of system protection logic control.

[0048] In some embodiments of the electrical fault detection module based on FPGA, the protection of the mainboard includes the FPGA implementation of the mainboard protection top-level entity and the FPGA implementation of the mainboard bottom-level module. Specifically, a mainboard protection top-level entity and a mainboard bottom-level module based on FPGA are provided. The mainboard protection top-level entity performs type classification and data definition on the signal of the fault event. The bottom-level module includes a fault upper and lower limit setting module, a frequency electrical fault detection module, a phase sequence electrical fault detection module, a grid voltage effective value electrical fault detection module, a fault flag combination module, a fault flag detection module, an operation status detection module, a fault event detection module, a fault event encoding module, a fault event center processing module, a system continuous fault protection module, a slave board command signal sending module, and a fault event reading module. Among them, the specific content of the signal definition designed for the top-level entity of the mainboard protection is shown in Table 1:

[0049] Table 1 Signal definition of top-level entity design of motherboard protection

[0050]

[0051]

[0052] Furthermore, the specific steps of FPGA implementation of the bottom module of the mainboard are as follows:

[0053] Fault upper and lower limit setting module: also known as system protection parameter configuration module, this module first configures the fault upper and lower limits, including the setting of the fault upper and lower limits of the frequency and voltage effective value. This module corresponds the input configuration data to each output, including setting the index of specific protection value data. For example, the configuration data currently input by the program is the lower limit of the effective value of the grid voltage, and the assignment is executed. After the assignment is completed, a rising edge of the clock is output as a sign to notify the relevant modules to update the data.

[0054] The frequency electrical fault detection module is used to determine whether the power grid is over-frequency or under-frequency. The frequency input from the phase-locked loop is compared with the upper and lower limits of the previously set frequency, and the comparison result is output.

[0055] Phase sequence electrical fault detection module, which has a clock frequency division. For example, if the clock frequency becomes 1kHz, at this clock frequency, if the negative sequence exceeds 10 clock cycles (10ms), then a phase sequence error will be reported and seq will become a high level. The detection method of positive and negative sequence: First, detect the zero crossing point of phase A and the slope of this zero crossing point is positive. Then determine the value of phase BC at this time and judge according to (1)-(3):

[0056] (1) If phase B is greater than zero and phase C is less than zero, it is judged as positive sequence;

[0057] (2) If phase B is less than zero and phase C is greater than zero, it is determined to be a negative sequence;

[0058] (3) If the zero crossing point of phase A is not detected, it is determined that it is not detected at this time.

[0059] Grid voltage effective value electrical fault detection module: combined Figure 7 As shown (not all modules are shown in the figure), it includes a clearing unit, an enable signal unit, a flag signal unit, an input data unit, an output data unit, a square accumulation module, a multiplier, a register and a protection comparison module;

[0060] The clearing unit is used to receive a global clearing signal to trigger clearing;

[0061] The enabling signal unit is used to identify the protection blocking signal;

[0062] The flag signal unit is used to update the protection amplitude of the upper and lower limits;

[0063] The input data unit is used to input the instantaneous value of each phase voltage in the three-phase voltage, and to input the upper limit of the pre-voltage effective value protection and the lower limit of the pre-voltage effective value protection;

[0064] The square accumulation module is used to calculate the square accumulation voltage effective value of each phase according to the instantaneous value of each phase voltage;

[0065] The multiplier is used to obtain the multiplier voltage effective value of each phase according to the square accumulated voltage effective value of each phase, and is time-division multiplexed to calculate the voltage effective value protection upper limit and the voltage effective value protection lower limit according to the pre-voltage effective value protection upper limit and the pre-voltage effective value protection lower limit;

[0066] The register is used to store the voltage effective value protection upper limit and the voltage effective value protection lower limit calculated by the multiplier;

[0067] The protection comparison module is used to compare the voltage effective value protection upper limit and the voltage effective value protection lower limit with the multiplier voltage effective value of each phase respectively;

[0068] The output data unit is used to output the current voltage effective value protection state of the voltage effective value protection module according to the comparison result.

[0069] The multiplier calculates the voltage effective value protection upper limit or the voltage effective value protection lower limit according to Formula I:

[0070] L imit1=(k2·k2)·data1 Formula Ⅰ

[0071] Among them, Limit1 is the voltage effective value protection upper limit or the voltage effective value protection lower limit, data1 is the input data of the pre-voltage effective value protection upper limit or the pre-voltage effective value protection lower limit, and k2·k2 is the combination coefficient.

[0072] The multiplier calculates the effective value of the multiplier voltage of each phase according to Formula II:

[0073] L imit2 = (k2·k2)·data2 Formula II

[0074] Among them, Limit2 is the effective value of the multiplier voltage of each phase, data2 is the effective value of the square accumulated voltage of each phase, and k2·k2 is the combination coefficient.

[0075] The combination coefficient is calculated according to formula III:

[0076]

[0077] Among them, u is the maximum value of the sampled voltage, preferably, the maximum value of the voltage minus the DC bias; k1 is the input setting coefficient; k0 is the sampling coefficient, which is a constant.

[0078] In some embodiments, the square accumulation module is configured to: collect multiple instantaneous voltage values ​​of one or more power frequency sinusoidal cycles of each phase, square and accumulate each instantaneous voltage value after subtracting the DC bias, obtain the accumulated result and then divide it by the number of data of instantaneous voltage values ​​collected in one or more power frequency sinusoidal cycles, output the square accumulated voltage effective value, and output a flag signal at the same time; preferably: 128 instantaneous voltage values ​​are collected in one power frequency sinusoidal cycle.

[0079] The protection comparison module includes a comparison calculation unit, a phase sequence selection unit and a comparison output unit.

[0080] The comparison calculation unit is used to identify whether the input multiplier voltage effective value reaches the voltage effective value protection upper limit or the voltage effective value protection lower limit and output a comparison result;

[0081] The phase sequence selection unit is used to select the phase when the voltage effective value protection upper limit or the voltage effective value protection lower limit is not touched. Preferably, the waiting is repeated several times when the voltage effective value protection upper limit or the voltage effective value protection lower limit is not touched; further preferably, the waiting is repeated 6 times;

[0082] The comparison output unit is used to output the voltage effective value protection state according to the comparison result when the voltage effective value protection upper limit or the voltage effective value protection lower limit is reached, and stop the current phase until the protection fault is cleared.

[0083] The protection comparison module compares the voltage effective value protection upper limit and the voltage effective value protection lower limit with the multiplier voltage effective value of each phase through the comparison calculation unit, and the determination method of the comparison result is:

[0084] 1) Any phase is set as the first phase by default, and the jump order of other phases is set. The phase sequence selection unit sets the number of comparisons and repeats the comparisons multiple times. If the voltage effective value protection upper and lower limits are not touched after the set number of comparisons are completed, it is determined that the voltage is normal. The phase sequence selection unit makes it jump to the next phase and controls the cyclic jump of each phase;

[0085] 2) When the effective value of the voltage of any phase multiplier being compared reaches the voltage effective value protection upper limit or the voltage effective value protection lower limit, the comparison output unit outputs the voltage effective value protection state as overvoltage or undervoltage, stops the protection comparison module from comparing the voltage of each phase and outputs a fault signal until the protection fault is cleared.

[0086] The clearing unit, the enable signal unit, and the flag signal unit are defined as being valid at a high level; the clearing unit triggers clearing when at a high level, the enable signal unit triggers an identification protection blocking signal when at a high level, and the flag signal unit updates the amplitude when at a high level.

[0087] The fault flag combination module combines the fault flags. The input side is all the fault flags, which are converted into data of the corresponding format after the defined encoding format. Among them, the Sys_Prot_Fre_Prot module (the first module) is used to detect frequency protection; the Sys_Prot_Seq_Prot module (the second module) is used for phase sequence protection detection; the Line_RMS_Top module (the third module) detects whether the grid voltage effective value protection is in place. The previous three modules are in parallel, and finally the Sys_Prot_Bits_Config module (the fourth module) is used to combine these fault event flags with the fault event flags uploaded from the control (slave board) to generate an orderly code.

[0088] Table 2 gives the detailed definition of each bit of the 32-bit fault flag (such as Prot_Bits_1A in the Sys_Prot_Bits_Config module). In the table, fault events of the same type have different priorities. The priority of the fault event corresponding to the low bit is higher than that of the fault event corresponding to the high bit, such as bit0 has a higher priority than bit1.

[0089] Table 2 Fault flag bit definition

[0090]

[0091] Fault flag detection module

[0092] The Prot_En_Delay submodule (delay submodule) delays the protection signal to avoid missing the fault event of high level at power-on. The algorithm for obtaining the fault flag is as follows: This module calculates the previous fault state (0.1ms ago) and the current fault state. The calculation method is to invert the current fault state and then AND it with the previous fault state bit by bit. If a certain bit becomes high level, it means that the protection of the corresponding flag is generated. Its essence is rising edge detection.

[0093] The operation status detection module detects the protection bit and encodes it into the coded data of the corresponding display interface; it determines the status of the system and each single phase, including emergency stop, fault, offline, stop running and standby; once the module detects that the large contactor (AC contactor) is disconnected due to a non-restartable event, all system states are set to fault and locked until the screen issues a fault elimination command.

[0094] The fault event detection module detects the fault event status bit of the three-phase module of the system equipment, and separates the restart and non-restartable fault events; determines the ID of the current fault event; determines the detection time of two adjacent restart events and non-restartable time, and performs cyclic detection; wherein, the faults occurring during the protection processing are ignored.

[0095] Fault event coding module

[0096] It is used to distinguish the specific bits of the previous fault status bit and determine the current specific fault status. Signal 1 (Prot_Codes[15..0]) is used to obtain the current protection information and send it to the display interface. Signal 2 (Sys_ID[15..0]) is the system module number (ID).

[0097] Fault event center processing module

[0098] According to the input fault event and ID, corresponding processing is performed. Signal 1 (Fault_FIFO_Data[63..0]) is the output fault information, which is used to display on the interface; Signal 2 (Prot_Cmd_FIFO_Data[15..0]) is used to send the protection command to the slave board, and Signal 3 (Prot_Under_Way[8..0]) indicates whether there is protection now;

[0099] All processing results of the protection module (closing contactors, restarting the system, etc.) are placed in signal four (Sys_Prot_Rst[15..0]), and the specific definition is shown in Table 3. Signal five (Sys_Ntf) is a communication signal, and its high level indicates the arrival of new fault processing results.

[0100] Table 3 Instruction format of protection module processing results

[0101]

[0102] System continuous fault protection module

[0103] It is used to count the number of protection signals within an hour. The left side is two frequency division cascades, and finally a reset signal is generated in one hour to reset the module on the right. In normal operation, the module will count once each time a protection occurs; every hour, the count will be reset to zero, and the fault elimination signal sent by the screen will also reset the count to zero. When the number of faults within one hour is greater than three times, Prot_Times_1 is high and the system reports continuous faults.

[0104] Send command signals from the board to the module

[0105] The module has two input signals. Signal one (Prot_Cmd_FIFO_Data[15..0]) is used to send commands to the slave board, and signal two (MCU_Sa_Cmd_Dt[15..0]) is the processed command sent from the interface and is also used to send command data to the slave board.

[0106] The fault event reading module is used to control all fault events to be uploaded to the MCU / display terminal for display on the display interface.

[0107] 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 control system for a static VAR generator, characterized in that: It includes a system main program module, an interrupt processing module and an electrical fault detection module, wherein the system main program module is used to receive a fault signal from the electrical fault detection module and send an interrupt signal to the interrupt processing module; the interrupt processing module is used to receive a sampling signal and the interrupt signal from the system main program module, and send a switch quantity detection and drive signal and an output PWM control signal to the system main program module, and the interrupt processing module and the electrical fault detection module both communicate with a display terminal; the electrical fault detection module sends a fault signal to the system main program module and sends an alarm signal to the display terminal; The system main program module includes a system register initialization unit, a general IO port initialization unit, an interrupt vector table initialization unit, a peripheral initialization unit, an initialization variable assignment unit, a configuration timer 0 unit, a start timer unit and an enable interrupt unit which are arranged in sequence according to the control order or the signal transmission direction; The interrupt processing module includes a sampling unit, a DC side voltage charging unit, a grid voltage phase-locked loop unit, a reactive current extraction unit, and a compensation signal output unit, which are arranged in sequence according to a control order or a signal transmission direction and communicate with the enabling interrupt unit; wherein the sampling unit is used to obtain three grid voltage values, three load current values, three compensation current values, and two DC side voltage values ​​sampled from the grid; the DC side voltage charging unit is used to continue charging the DC side to a specified voltage value after the static VAR generator is pre-charged; the grid voltage phase-locked loop unit is used to track a phase grid voltage and generate a sine signal and a cosine signal in phase with the grid voltage; the command current extraction unit is used to extract the reactive component in the load current and extract the reactive power by using a detection algorithm based on a rotating coordinate system; the compensation signal output unit is used to send a switch signal for controlling the on and off of the converter according to the command current signal, thereby generating a compensation current signal opposite to the reactive command signal; The electrical fault detection module includes a grid voltage phase loss detection unit, a grid voltage phase sequence detection unit, a grid voltage overvoltage and undervoltage detection unit, an IGBT detection unit, a DC side voltage detection unit, a system overcurrent detection unit, and an overload detection unit, which are sequentially arranged according to the control sequence or the signal transmission direction; the grid voltage phase sequence detection unit is used to detect the grid voltage phase sequence, and when a phase sequence error is detected, the grid voltage is determined to be an unrecoverable fault, the PWM pulse is blocked, and the contactor is disconnected at the same time; the grid voltage overvoltage and undervoltage detection unit is used to detect the magnitude of the grid voltage, and when it is greater than the set AC overvoltage value and AC undervoltage value, the PWM pulse is blocked and the contactor is disconnected at the same time; the DC side voltage detection unit determines that when the DC side voltage exceeds the set voltage, after being continuously monitored for multiple times in the interrupt program, the PWM pulse is blocked without disconnecting the contactor; the system overcurrent detection unit sets the protection current protection value according to the capacity of the static VAR generator, and when the emitted current is greater than the current protection value and is continuously monitored for multiple times in the interrupt program, the PWM pulse is blocked without disconnecting the contactor; The system main program module also includes a system status indication unit, a control logic unit and a DC side pre-charging unit. The system status indication unit is used to indicate the state of the static VAR generator; the control logic unit is used to process the start-stop signal and the fault signal to realize the normal operation task and the fault stop task of the control system of the static VAR generator; the DC side pre-charging unit is used to perform DC side pre-charging according to the instructions of the control logic unit and the switch detection and drive unit; The interrupt processing module also includes an inter-module communication unit, a switch detection and drive unit, a specified power factor unit, a capacity limiting unit, and an over-temperature current limiting unit. The inter-module communication unit communicates with the display terminal through the CAN bus, and is used to send data to the display module. Multiple points are sampled in each cycle, and the points are sent to the touch screen for real-time display of voltage and current data and their waveforms, while also transmitting the grid frequency, DC side voltage, and displaying fault codes in real time; the switch detection and drive unit is used to control the switch output signal of the low-voltage device on and off, and stop the switch input signal of the static VAR generator at the same time; the specified power factor unit is used to look up the table to obtain the required reactive current according to the power factor set on the touch screen; the capacity limiting unit is used to limit the capacity of the static VAR generator output in a very short time when the capacity of the static VAR generator is limited on the touch screen; the over-temperature current limiting unit is used to limit the rated capacity of the static VAR generator when the detected IGBT temperature exceeds the limited temperature, to ensure that the temperature of the IGBT does not rise any more; The electrical fault detection module also includes a DC side charging timeout fault detection unit and an over-temperature detection unit; the DC side charging timeout fault detection unit is used to block the PWM pulse and disconnect the contactor if the time exceeds the set time after the device is started and before the reactive power compensation starts; the over-temperature detection unit is used to block the PWM pulse and disconnect the contactor when the detected IGBT temperature exceeds the set stability and multiple over-temperatures are continuously monitored, and it is determined as an unrecoverable fault, and the PWM pulse is blocked and the contactor is disconnected; The system main program module is configured as follows: 1) Initialize the hardware system, call the same number of files as the initialization units simultaneously or separately, complete the initialization of system registers, initialization of general IO ports, initialization of peripherals, initialization of interrupt vector tables and initialization of peripherals; 2) Configure the timer 0 interrupt to call the timer file and set the interrupt time; 3) Initializing system variables to define all parameters used in the static VAR generator; 4) Logic signal control, used to realize the normal operation and fault stop of the static VAR generator; 5) Abnormal power failure self-start, which is used to restore the static VAR generator to the state before the power failure when the power grid is restored; 6) Fault signal processing, which is used to process different fault signals differently after a fault occurs; The interrupt processing module is configured as follows: Enter the timer interrupt control, read the ADC result and register result, charge the DC side voltage, update the system state variables, generate the sine and cosine signals of any phase grid voltage, analyze the reactive content, compensate the voltage feedforward and dead zone, output the PWM control signal, clear the interrupt flag, and complete the interrupt processing; The electrical fault detection module is configured to: Setting upper and lower limit protection: before the static VAR generator is turned on, the display terminal generates and sends configuration data, and sets upper and lower limit values ​​according to the configuration data; Obtaining and combining fault flags: the static VAR generator is running, the program detects the corresponding fault events in real time, sets or clears the corresponding protection bits, the controller uploads the corresponding fault event flags, and combines the protection bits and flag bits of the fault events; Detect the fault flag bit: detect the fault flag bit to determine whether a fault event has occurred; when it is determined that no fault event has occurred through the detection flag bit, the fault flag bit is cyclically detected; when it is determined that a fault event has occurred through the detection flag bit, the fault event that has occurred is encoded to determine the type of the fault event; The electrical fault detection module includes a mainboard protection top-level entity and a mainboard bottom-level module implemented based on FPGA. The mainboard protection top-level entity performs type classification and data definition on the signal of the fault event. The bottom-level module includes a fault upper and lower limit setting module, a frequency electrical fault detection module, a phase sequence electrical fault detection module, a grid voltage effective value electrical fault detection module, a fault flag combination module, a fault flag detection module, an operation status detection module, a fault event detection module, a fault event coding module, a fault event center processing module, a system continuous fault protection module, a slave board command signal issuing module, and a fault event reading module; The fault upper and lower limit setting module is used to configure the fault upper and lower limits; The frequency electrical fault detection module is used to determine whether the power grid is over-frequency or under-frequency; The phase sequence electrical fault detection module: This module includes clock frequency division. Under this clock frequency division, if the negative sequence exceeds a certain number of clock cycles, a phase sequence error will be reported. Among them, the positive and negative sequence detection method is: first, the zero crossing point of the A phase is detected and the slope of this zero crossing point is positive. Then, the value of the BC phase at this time is determined, and the judgment is made according to 1)-3): 1) If phase B is greater than zero and phase C is less than zero, it is judged as positive sequence; 2) If phase B is less than zero and phase C is greater than zero, it is determined to be a negative sequence; 3) If the zero crossing point of phase A is not detected, it is determined to be undetected at this time.

2. The control system of the static VAR generator according to claim 1, characterized in that: The grid voltage effective value electrical fault detection module: It includes a clearing unit, an enable signal unit, a flag signal unit, an input data unit, an output data unit, a square accumulation module, a multiplier, a register and a protection comparison module; the clearing unit is used to receive a global clearing signal to trigger clearing; the enable signal unit is used to identify a protection blocking signal; the flag signal unit is used to update the protection amplitude of the upper and lower limits; the input data unit is used to input the instantaneous value of each phase voltage in the three-phase voltage, and is used to input the upper limit of the pre-voltage effective value protection and the lower limit of the pre-voltage effective value protection; the square accumulation module is used to calculate the square accumulation voltage effective value of each phase according to the instantaneous value of each phase voltage; The multiplier is used to obtain the effective value of the multiplier voltage of each phase according to the square accumulated voltage effective value of each phase, and is time-division multiplexed to calculate the voltage effective value protection upper limit and the voltage effective value protection lower limit according to the pre-voltage effective value protection upper limit and the pre-voltage effective value protection lower limit; the register is used to store the voltage effective value protection upper limit and the voltage effective value protection lower limit calculated by the multiplier; The protection comparison module is used to compare the voltage effective value protection upper limit and the voltage effective value protection lower limit with the multiplier voltage effective value of each phase respectively; the output data unit is used to output the current voltage effective value protection state of the voltage effective value protection module according to the comparison result; The fault flag bit combination module, Combine the fault flags. All the fault flags are on the input side and converted into data of corresponding format after the defined encoding format. The fault flag combination module includes a first module for frequency fault detection, a second module for phase sequence fault detection, and a third module for grid voltage effective value fault detection; the first module, the second module and the third module are in parallel, and the fault event flag is combined with the fault event flag uploaded from the control through the fourth module to generate an orderly code; The fault flag detection module: It includes a delay submodule, which delays the protection signal to prevent the loss of a fault event in which the power is high level; The algorithm for obtaining the fault flag of the fault flag detection module is as follows: the previous fault state and the current fault state are operated. The operation method is to invert the current fault state and then perform bitwise AND operation with the previous fault state. If a certain bit becomes a high level, it means that the corresponding flag protection is generated.

3. The control system of the static VAR generator according to claim 2, characterized in that: The running status detection module: Used to detect the current protection bit and status bit of each slave module of the static VAR generator, and encode them into coded data of the corresponding display interface; The fault event detection module: Detect the fault event status bit of the three-phase module of the equipment in the system, and divide it into restart and non-restart fault events; determine the ID of the current fault event; determine the detection time of two adjacent restart events and non-restart time, and perform cyclic detection; among them, the fault occurring during the protection processing is ignored; The fault event coding module: It is used to judge the specific bit of the previous fault status bit and determine the current specific fault status; The fault event center processing module: Perform corresponding processing according to the input fault event and ID; The system continuous fault protection module: Used to calculate the number of protection signals within an hour; The slave board command signal sending module: Used to send commands to the slave board and receive processed commands from the interface; The fault event reading module: It is used to control all fault events to be uploaded to the MCU for display on the display interface.

4. The control system of the static VAR generator according to claim 3, characterized in that: The multiplier calculates the voltage effective value protection upper limit or the voltage effective value protection lower limit according to Formula I: Limit1=(k2·k2)·data1 Formula I Wherein, Limit1 is the voltage effective value protection upper limit or the voltage effective value protection lower limit, data1 is the input data of the pre-voltage effective value protection upper limit or the pre-voltage effective value protection lower limit, and k2·k2 is the combination coefficient; The multiplier calculates the effective value of the multiplier voltage of each phase according to Formula II: Limit2=(k2·k2)·data2 Formula II Wherein, Limit2 is the effective value of the multiplier voltage of each phase, data2 is the effective value of the square accumulated voltage of each phase, and k2·k2 is the combination coefficient; The combination coefficient is calculated according to formula III: Among them, u is the maximum value of the sampled voltage; k1 is the input setting coefficient; k0 is the sampling coefficient, which is a constant.

5. The control system of the static VAR generator according to claim 4, characterized in that: The square accumulation module is configured to: collect multiple instantaneous voltage values ​​of one or more power frequency sinusoidal cycles of each phase, square and accumulate each instantaneous voltage value after subtracting the DC bias, obtain the accumulated result, divide it by the number of data of instantaneous voltage values ​​collected in one or more power frequency sinusoidal cycles, output the square accumulated voltage effective value, and output a flag signal at the same time; The protection comparison module includes a comparison calculation unit, a phase sequence selection unit and a comparison output unit. The comparison calculation unit is used to identify whether the input multiplier voltage effective value reaches the voltage effective value protection upper limit or the voltage effective value protection lower limit and output a comparison result; The phase sequence selection unit is used to select the phase when the voltage effective value protection upper limit or the voltage effective value protection lower limit is not touched; The comparison output unit is used to output the voltage effective value protection state according to the comparison result when the voltage effective value protection upper limit or the voltage effective value protection lower limit is reached, and stop the current phase until the protection fault is cleared.

6. The control system of the static VAR generator according to claim 5, characterized in that: The protection comparison module compares the voltage effective value protection upper limit and the voltage effective value protection lower limit with the multiplier voltage effective value of each phase through the comparison calculation unit, and the determination method of the comparison result is: 1) Any phase is set as the first phase by default, and the jump order of other phases is set. The phase sequence selection unit sets the number of comparisons and repeats the comparisons multiple times. If the voltage effective value protection upper and lower limits are not touched after the set number of comparisons are completed, it is determined that the voltage is normal. The phase sequence selection unit makes it jump to the next phase and controls the cyclic jump of each phase; 2) When the effective value of the voltage of any phase multiplier being compared reaches the voltage effective value protection upper limit or the voltage effective value protection lower limit, the comparison output unit outputs the voltage effective value protection state as overvoltage or undervoltage, stops the protection comparison module from comparing the voltage of each phase and outputs a fault signal until the protection fault is cleared.