FPGA-based psm power polling control method

By using the FPGA-based ring polling control method, combined with an error accumulation register and incremental PID regulation, the problems of low ripple stepless voltage regulation and output voltage continuity of PSM multi-module series high-voltage power supply under integer module turn-on constraints are solved. Steady-state voltage regulation accuracy and reliability under dynamic load and fault conditions are achieved, supporting uninterrupted operation of the nuclear fusion neutral beam injection process.

CN123184428APending Publication Date: 2026-11-27HEFEI PROTON DANCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611140999.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing FPGA control schemes for PSM multi-module series high-voltage power supplies, it is difficult to simultaneously achieve low-ripple stepless voltage regulation, rapid voltage build-up under dynamic load, and continuous output voltage operation during module failure under integer module turn-on constraints. Especially in fractional voltage regulation scenarios, blocky low-frequency voltage ripple is formed at the output end, which affects beam quality and increases the filtering burden. Furthermore, module fault identification is not accurate enough.

Method used

An FPGA-based ring polling control method is adopted. The number of modules to be turned on is determined by the error accumulation register in each sub-cycle. Combined with incremental PID regulation and three-level fault judgment, the uniform distribution of low-frequency voltage ripple and the continuity of output voltage are achieved. Variable slope ramp and measured voltage sliding window adaptive correction are adopted to ensure steady-state voltage regulation accuracy and reliability under dynamic load and fault conditions.

Benefits of technology

It achieves low-ripple stepless voltage regulation under integer module turn-on constraints, suppresses voltage build-up overshoot, ensures output voltage continuity, improves steady-state voltage regulation accuracy and closed-loop reliability, and supports uninterrupted operation of the nuclear fusion neutral beam injection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184428A_ABST
    Figure CN123184428A_ABST
Patent Text Reader

Abstract

The application relates to the field of power electronics, and discloses a PSM power supply polling control method based on FPGA, which comprises the following steps: obtaining host computer configuration parameters and obtaining polling scheduling initialization data and power supply control configuration parameters through FPGA initialization; obtaining an opening time sequence, an initial equivalent duty cycle and an integer module number by executing variable-slope climbing; obtaining an opening set of each control sub-period module by polling control according to an error cumulative score module; performing three-level fault judgment and hot backup replacement by monitoring light return timing according to the opening set; and obtaining an effective equivalent module number by performing incremental PID adjustment at the end of a polling period in combination with the power supply control configuration parameters, and updating the polling control basis. The application can realize low-ripple stepless voltage regulation under the constraint of an integer module, and supports continuous output operation under a fault condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power electronics technology, and more specifically, to a PSM power polling control method based on FPGA. Background Technology

[0002] The PSM multi-module series high-voltage power supply uses multiple low-voltage power modules connected in series after being isolated by optical fiber signals to form a high-voltage output. In applications such as neutral beam injection in nuclear fusion, it is necessary to complete the rapid voltage build-up from zero to the target voltage, steady-state precise stepless voltage regulation, and real-time bypass in case of module failure within the discharge timing window, and the entire beam injection process must be uninterrupted.

[0003] In existing technologies, FPGA control schemes for multi-module series high-voltage power supplies mostly employ fixed polling scheduling or simple module equalization strategies, with each functional stage typically handled separately. In fractional voltage regulation scenarios where the target voltage is a non-integer multiple of the single-module voltage, if the number of modules activated in each sub-cycle is arranged in a fixed proportion according to the entire polling cycle, the states of multiple activated modules tend to concentrate in consecutive sub-cycles, resulting in a blocky low-frequency voltage ripple at the output with the polling cycle as the fundamental frequency. This affects beam quality and increases the filtering burden. Other schemes only implement single-module fault bypass, failing to distinguish between transient interference, suspected faults, and permanent faults. They lack a dedicated identification mechanism for intermittent faults, leading to misjudgment or missed detection. Furthermore, if a replacement module is cold-started after a long period of shutdown, insufficient gate drive energy in the first cycle can cause an output voltage drop, affecting output continuity.

[0004] Therefore, existing technologies cannot simultaneously meet the comprehensive requirements of low-ripple stepless voltage regulation, fast voltage build-up without overshoot under dynamic load, and continuous operation of output voltage when the module fails and is replaced, under the constraint of integer module turn-on. There is an urgent need for an FPGA polling control method that unifies voltage build-up, voltage regulation and fault tolerance in a ring polling framework to solve this problem. Summary of the Invention

[0005] This invention provides an FPGA-based PSM power supply polling control method, which solves the technical problems in related technologies of how to reduce low-frequency voltage ripple caused by fractional voltage regulation under the integer module turn-on constraint of a PSM multi-module series high-voltage power supply, and achieve rapid voltage build-up, steady-state precise voltage regulation and continuous operation of output voltage under dynamic load changes and module failure conditions.

[0006] This invention provides an FPGA-based PSM power polling control method, comprising the following steps:

[0007] S1, obtain the host computer configuration parameters, initialize the FPGA, and obtain the polling scheduling initialization data and power control configuration parameters. The polling scheduling initialization data includes a circular polling queue data structure and a module health status vector.

[0008] S2, according to the polling schedule initialization data and power control configuration parameters, execute variable slope ramping to obtain the turn-on time sequence, initial equivalent duty cycle and integer number of modules;

[0009] S3, based on the initial equivalent duty cycle and the number of integer modules, and according to the polling scheduling initialization data, is adjusted by the error accumulation fraction module to obtain the set of modules turned on and the real-time polling pointer status of each control sub-cycle;

[0010] S4, compare the turn-on set of each control sub-cycle module with the real-time polling pointer status monitoring backlight timing, perform three-level fault judgment and hot standby replacement according to the power control configuration parameters, and obtain the updated module health status vector and polling pointer correction flag;

[0011] S5 collects the output voltage sample value at the end of each polling cycle, performs incremental PID adjustment in combination with the power control configuration parameters, obtains the effective equivalent module number, and updates the polling control basis for the next polling cycle.

[0012] Preferably, in step S1, each power module is arranged sequentially according to its hardware number and connected end to end to form a logical ring. The module hardware number corresponds one-to-one with the fiber optic channel. During initialization, the polling pointer is set to 1, and the queue arrangement order remains unchanged after initialization, thereby forming the circular polling queue data structure.

[0013] An initialization trigger pulse is sent to each module and the optical fiber return signal is monitored. If a module receives a valid return signal within a waiting time not exceeding the first fault determination time threshold, its corresponding health bit is set to 1. If a module does not receive a return signal, its corresponding health bit is cleared to 0. Modules that are unusable during the initialization phase are not included in subsequent scheduling, thus forming a module health status vector.

[0014] Preferably, in step S2, the ramp-up time in the power control configuration parameters is evenly divided into a preset number of time slots. The time slot number of the nominal activation time of each module is determined by the ramp-up power exponent of the ratio of the activation sequence number of the corresponding module to the number of modules to be activated. The sequence of time slot numbers calculated by each module in this way constitutes the activation time sequence.

[0015] After each module is activated, a smoothing correction factor is obtained by comparing the average of the measured voltage increments within the most recent preset window length with the rated voltage of a single module. The nominal time slot numbers of subsequent modules are scaled proportionally to the initial original value using the smoothing correction factor. Each correction is independent of the others and does not produce a compound cumulative deviation.

[0016] Preferably, in step S2, after all required modules are activated, the initial equivalent duty cycle is calculated by subtracting the final actual output voltage from the target voltage in the power control configuration parameters and then dividing by the rated voltage of a single module; if the corresponding calculated value is negative, the initial equivalent duty cycle is 0, otherwise the corresponding calculated value is used.

[0017] In the first control sub-cycle after takeover, S3 selects healthy modules along the circular polling queue with the initial value of the polling pointer as the starting point. The set of modules turned on in each control sub-cycle is completely consistent with the set of online modules at the end of S2, realizing a zero-jump switch from the variable slope climb to the error accumulation fraction module polling control.

[0018] Preferably, in step S3, an error accumulation register is established, and when the system first enters the error accumulation fraction module for polling and control, the initial value of the error accumulation register is taken as the initial equivalent duty cycle;

[0019] At the beginning of each control sub-cycle, if the value of the error accumulation register is lower than the preset decision threshold, one more module than the integer number of modules will be activated in this sub-cycle, and the value of the error accumulation register will be increased by an equivalent amount equal to the difference between the current equivalent number of modules and the decimal remainder; if the value of the error accumulation register is not lower than the preset decision threshold, the integer number of modules will be activated, and the value of the error accumulation register will be decreased by the decimal remainder of the current equivalent number of modules.

[0020] The error accumulation register is not reset at the polling cycle boundary, but is only reset to 0 when the target voltage crosses the integer module voltage boundary.

[0021] Preferably, in S3, after each control sub-cycle ends, the polling pointer is incremented by 1. If the increment exceeds the total number of modules, it is set to 1. If the pointer points to a module with a health bit of 0 after advancement, it continues to advance until the first module with a health bit of 1 is found. The corresponding module is set as the starting position of the set of modules to be turned on in each control sub-cycle in the next sub-cycle, thereby maintaining the state of the real-time polling pointer.

[0022] The reading of the module health status vector adopts a ping-pong buffer structure. The PL side maintains two sets of health status registers. One set is used for reading in the current polling cycle of this step, and the other set is used for writing and updating at any time by S4. The two sets of registers switch reading and writing roles at the boundary of each polling cycle. The fault update written by S4 takes effect once at the end of the polling cycle.

[0023] Preferably, in S4, the PL end maintains an independent fiber optic timeout counter for each module; and divides timeout events into three levels according to the first fault determination time threshold and the second fault determination time threshold in the power control configuration parameters.

[0024] When the timeout count is lower than the first fault determination time threshold, it is identified as transient interference, and the corresponding module's abnormal event counter is incremented by 1; if the abnormal event count in the preset statistics window exceeds the preset abnormal event frequency upper limit, the fault level is upgraded to suspected fault.

[0025] If the timeout count exceeds the first fault determination time threshold but does not reach the second fault determination time threshold, it is identified as a suspected fault. The health bit of the corresponding module is temporarily set to 0 and the hot standby replacement process is started. If the subsequent return signal is restored, the health bit is reset to 1 at the end of the current polling cycle.

[0026] When the timeout count exceeds the second fault determination time threshold, it is identified as a permanent fault, and the corresponding module health bit is permanently set to 0.

[0027] Preferably, in step S4, when the hot standby replacement process is started, a shutdown duration counter is maintained for each healthy module, and the number of clock cycles from the last shutdown of the corresponding module to the current time is recorded. The healthy module with the smallest shutdown duration counter value is selected as the replacement module.

[0028] Remove the faulty module from the current set of control sub-cycle modules and add a replacement module; if the polling pointer points to the faulty module, the pointer skipping operation is completed synchronously in the current clock domain, and the polling pointer correction flag is output in real time. S3 then starts selecting from the corrected healthy module position again to ensure that the module count is always consistent with the actual healthy module set at any time.

[0029] Preferably, in S4, when the shutdown duration counter value of the replacement module exceeds the cold standby threshold in the power control configuration parameters, a pre-charge pulse is sent instead of a normal turn-on pulse in the first control sub-cycle after the replacement module is selected, so that the gate drive isolation power supply can re-establish the working voltage and avoid insufficient drive energy during the first full duty cycle turn-on, which would cause the device to not be fully turned on.

[0030] The pre-charging process occupies only a single control sub-cycle, and the deviation of the output voltage in this sub-cycle is automatically compensated by S3 in subsequent sub-cycles; after the pre-charging is completed, the replacement module immediately switches to normal operation.

[0031] Preferably, in step S5, at the end of each polling cycle, the difference between the actual output voltage sample value and the target voltage in the power control configuration parameters is taken as the voltage control error of the current polling cycle; a discrete incremental structure is adopted, the voltage correction increment is obtained by multiplying the proportional adjustment coefficient by the difference between the voltage control errors of two adjacent polling cycles, and the voltage correction increment is obtained by multiplying the differential adjustment coefficient by the second difference of the voltage control errors of three adjacent polling cycles. The two are added together and then added to the cumulative voltage correction amount. The amplitude of the cumulative voltage correction amount is limited to within ±1 single module rated voltage.

[0032] The sum of the nominal equivalent module number calculated from the target voltage and the correction bias obtained by dividing the cumulative voltage correction by the rated voltage of a single module is used as the effective equivalent module number, and the polling control basis for the next polling cycle is updated.

[0033] The beneficial effects of this invention are as follows:

[0034] The error accumulation register is used to determine the number of modules to be activated in each sub-cycle. The state of activating one more module than the integer number of modules is evenly distributed in the polling cycle, so that the quantization error energy is transferred from the low frequency band to the high frequency band. Low ripple stepless voltage regulation is achieved under the constraint of integer module activation. The outer loop adopts incremental PID regulation, which calculates the correction amount based on the difference between the actual output voltage and the target voltage and obtains the effective equivalent number of modules. The polling control basis for the next polling cycle is updated. It is staggered with the inner loop error accumulation control bandwidth to eliminate steady-state voltage deviation caused by module manufacturing deviation, temperature drift and system error, thereby improving steady-state voltage regulation accuracy and closed-loop reliability.

[0035] A power function-based timing sequence combined with measured voltage sliding window adaptive correction is used to achieve variable slope ramp-up. The subsequent module input rhythm is adjusted according to load changes to suppress voltage build-up overshoot. At the end of the ramp-up, the initial equivalent duty cycle is calculated and zero-jump switching with steady-state polling control is achieved. A three-level fault judgment and abnormal event frequency statistics are combined to distinguish transient interference, suspected faults and permanent faults. Combined with hot standby priority replacement and cold standby pre-charging mechanism, the replacement is completed within a single sub-cycle when a module fails and the output voltage is maintained continuously, supporting uninterrupted operation of the beam injection process. Attached Figure Description

[0036] Figure 1 This is a flowchart of the FPGA-based PSM power polling control method of the present invention;

[0037] Figure 2 This is a flowchart of the FPGA-based PSM power polling control method of the present invention;

[0038] Figure 3 This is a simulation waveform diagram of the variable slope start-up and climb phase of this invention;

[0039] Figure 4 This is a simulation waveform diagram of the steady-state scheduling of the circular polling method of the present invention;

[0040] Figure 5 This is a simulation waveform diagram of the stepless voltage regulation of the present invention;

[0041] Figure 6 This is a simulation waveform diagram of the hot standby replacement for module failure in this invention. Detailed Implementation

[0042] The subject matter described herein will now be discussed with reference to exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the subject matter described herein, and changes may be made to the function and arrangement of the elements discussed without departing from the scope of this specification. Various processes or components may be omitted, substituted, or added as needed in the examples. Furthermore, some features described in the examples may be combined in other examples.

[0043] At least one embodiment of the present invention discloses an FPGA-based PSM power polling control method, such as... Figures 1 to 2 As shown, it includes the following steps:

[0044] S1, obtain the host computer configuration parameters, initialize the FPGA, and obtain the polling scheduling initialization data and power control configuration parameters. The polling scheduling initialization data includes a circular polling queue data structure and a module health status vector.

[0045] The host computer configuration parameters are obtained and initialized via FPGA to obtain polling scheduling initialization data and power control configuration parameters. The polling scheduling initialization data includes a circular polling queue data structure and a module health status vector. The circular polling queue data structure records the order of each module according to its hardware number and the one-to-one mapping relationship between each module and the fiber optic channel. The module health status vector records the health and availability status of each module after initializing the backlight detection. Each bit corresponds to a power module, with a health bit of 1 indicating availability and 0 indicating unavailability. The power control configuration parameters include voltage and control parameters issued by the host computer, as well as sampling, protection, fault determination, and timing parameters written or calculated during the initialization process. The acquisition and formation process of the above two types of data are described below in the order of execution.

[0046] When obtaining configuration parameters from the host computer, after the system powers on, the PS terminal waits for the host computer to establish a Modbus TCP connection and send configuration parameters via the FreeRTOS TCP protocol stack. The configuration parameters are divided into two categories: hardware specification constants and operating condition configuration parameters. Hardware specification constants only include the rated voltage of a single module, and their value is determined by the nominal charging voltage of the DC bus capacitor inside the PSM module. All modules in the same device maintain this value. The host computer writes this value into the PL terminal's dedicated register during the debugging and calibration phase, and it is not modified during subsequent operation.

[0047] The operating condition configuration parameters include target voltage, ramp-up time, ramp-up exponent, single-module operating frequency, total number of modules participating in operation, proportional control coefficient, and derivative control coefficient, as well as a first fault determination time threshold and a second fault determination time threshold. The first fault determination time threshold is used to distinguish between transient interference and suspected faults, and the second fault determination time threshold is used to distinguish between suspected faults and permanent faults. The default value for the first fault determination time threshold is the clock count corresponding to 3 PWM cycles, and the default value for the second fault determination time threshold is the clock count corresponding to 50 PWM cycles. The default value for the cold standby threshold (the shutdown duration count threshold for determining whether a replacement candidate module needs pre-charging) is the clock count corresponding to 10 PWM cycles. The default value for the upper limit of abnormal event frequency is no more than 5 times within every 20 polling cycles, and its statistical window length is 20 polling cycles by default. The above hardware specification constants and operating condition configuration parameters are all written into the PL terminal register, constituting the upper computer-level part of the power control configuration parameter distribution.

[0048] In one embodiment of the present invention, after receiving the complete parameter packet, the PS terminal checks the range and consistency of the parameter values, verifying that the target voltage does not exceed the product of the total number of modules and the rated voltage of a single module, the rise time is not less than the minimum configurable value, and the operating frequency of a single module is within the allowable range of clock division accuracy. After passing the validity check, all parameters are written to the mapping area of ​​the AXI Lite register on the PL terminal, wherein the proportional and derivative adjustment coefficients are written to the outer loop PID dedicated parameter register. After completing the above writing, the PL terminal initialization process is triggered.

[0049] During FPGA initialization, the PL first constructs a circular polling queue: the power modules are arranged sequentially according to their hardware numbers from 1 to the total number of modules, forming a logical ring. During initialization, the polling pointer is set to 1 to record the starting module number of the current polling. The module hardware number corresponds one-to-one with its fiber optic channel, and the queue arrangement order remains unchanged after initialization. This forms the circular polling queue data structure in the polling scheduling initialization data.

[0050] The PL then performs initialization return light detection to generate a module health status vector: It maintains a health status register group of equal length to the total number of modules, initially setting all bits to 1; it sends an initialization trigger pulse to each module and listens for fiber optic return light signals. Modules that receive a valid return light signal within a waiting time not exceeding the first fault determination time threshold have their corresponding health bit set to 1; modules that do not receive a return light have their corresponding health bit cleared to zero, indicating they are unavailable during the startup phase and will not be included in subsequent scheduling. This detection ensures that a truly available set of modules is used during the climb phase. This forms the module health status vector in the polling scheduling initialization data.

[0051] During initialization, the PL terminal calculates the PWM carrier timer frequency division parameters based on the written single-module operating frequency, determining that the single-module PWM period is equal to the reciprocal of the single-module operating frequency; the polling sub-cycle duration is equal to the single-module PWM period, and one polling cycle consists of the total number of consecutive sub-cycles of the total number of modules, with the total duration being the total number of modules multiplied by the single-module PWM period. The PID sampling cycle is synchronized with the polling cycle, triggering a PID calculation after each complete polling round. After the above timing parameters are calculated, they are stored in the corresponding registers as timing parameters in the power control configuration parameters; unless a new configuration is issued by the host computer triggering re-initialization, they will not be recalculated during subsequent operation.

[0052] During the initialization phase, the PL terminal also configures the ADC sampling channel and output limiting protection parameters: the conversion factor between the ADC sampled value and the actual voltage is calibrated by the host computer and written into a register. The PL terminal converts it into a voltage reading in volts using integer multiplication and shifting. The upper protection limit is the target voltage plus the rated voltage of a single module, and the lower protection limit is the sampled value corresponding to 0V. The above ADC conversion factor and protection threshold are used as sampling and protection parameters in the power control configuration parameters. If the output voltage exceeds the limit during operation, the PL terminal blocks all module turn-on signals and reports an alarm to the host computer through the PS terminal.

[0053] The output polling scheduling initialization data includes a circular polling queue data structure and a module health status vector; the output power control configuration parameters include single module rated voltage, target voltage, ramp-up time, ramp-up exponent, single module operating frequency, total number of modules participating in operation, proportional adjustment coefficient, derivative adjustment coefficient, first fault determination time threshold, second fault determination time threshold, cold standby threshold, upper limit of abnormal event frequency and its statistical window length, ADC conversion coefficient, protection threshold, single module PWM period and polling period length.

[0054] S2, according to the polling schedule initialization data and power control configuration parameters, execute variable slope ramping to obtain the turn-on time sequence, initial equivalent duty cycle and integer number of modules;

[0055] Before entering the startup phase, the PL terminal counts the total number of currently active healthy modules from the module health status vector in the polling scheduling initialization data. Based on the target voltage and the rated voltage of each module in the power control configuration parameters, it calculates the number of modules required to reach the target voltage (using the rounded-down result of the target voltage divided by the rated voltage of each module). If the required number of modules exceeds the total number of currently active healthy modules, it indicates that the number of healthy modules is insufficient to reach the set target voltage. The PL terminal sends an alarm to the host computer via the PS terminal. After confirmation, the target voltage is reduced to the total number of currently active healthy modules multiplied by the rated voltage of each module before restarting. This pre-check avoids unnecessary system waiting or potential load risks caused by insufficient modules leading to prolonged output stagnation at intermediate voltages.

[0056] In one embodiment of the present invention, the reference timing for initiating the climb is generated using a power function. The climb time in the power control configuration parameters is uniformly divided into 1024 time slots internally, with the absolute duration of each time slot being the climb time divided by 1024. For each module that needs to be activated sequentially, the activation sequence number is incremented from 1. The time slot number corresponding to the nominal activation time of each module is calculated by multiplying the ratio of the activation sequence number to the number of modules to be activated by a power of 1023, rounded down, and then trimmed to the range of 0 to 1023. The power exponent is taken from the climb power exponent in the power control configuration parameters. The larger the power exponent, the more concentrated the initial module activation and the sparser the later activation, and the more obvious the "fast first, slow later" characteristic. If the host computer does not configure it, the default value is 2. The entire calculation is implemented internally in the FPGA using integer multiplication and shifting, without involving floating-point operations, and the calculation delay is on the order of nanoseconds. The sequence of time slot numbers calculated sequentially for each module according to the above rules is the activation time sequence. This sequence is used to schedule the sequential deployment of each module during the climb phase, and is no longer used as the scheduling basis for steady-state polling at the end of S2.

[0057] Simulations were performed on a power function reference timing sequence with a single module voltage of 800V, a total of 20 modules to be put into operation, a target voltage of 16kV, a ramp-up time of 10μs, and a power exponent of 2. Figure 3 As shown, the total output voltage rises in a step-like manner, with each step corresponding to the activation of a PSM module. The activation sequence of each module reflects that the initial activation intervals are relatively tight, and the intervals gradually widen as the target voltage approaches, completing the voltage build-up within the set ramp-up time.

[0058] Figure 3 The rise pattern of the power function baseline timing is only shown without adaptive correction. Based on the above power function baseline timing, the PL terminal further performs adaptive correction on the timing of subsequent module activation according to the measured voltage. The correction process is as follows:

[0059] After activating the first module, the PL terminal immediately triggers ADC sampling to read the current actual output voltage. This voltage is then compared with the rated voltage of the single module, and the first correction factor is calculated as the actual output voltage divided by the rated voltage of the single module. This correction factor is the ratio of the actual voltage rise to the theoretical expected voltage rise: if the correction factor is greater than 1, it indicates that the current load is lighter than the rated operating condition, and the voltage rise is faster than expected; if the correction factor is less than 1, it indicates that the load is heavier, and the voltage rise is slower than expected. This ratio directly reflects the degree of deviation between the load impedance and the rated operating condition, and is the core basis for adjusting the subsequent activation schedule.

[0060] For each subsequent module activated, the PL terminal executes the same sampling-comparison-correction process. To avoid jitter in the correction factor caused by noise from a single ADC sampling, the system uses a sliding window of length 3, and uses the average of the three most recent measured increments as the basis for correction.

[0061] Each time a module is activated, the average of the three most recent voltage increments is taken and compared with the rated voltage of a single module to obtain a smoothing correction factor. This smoothing correction factor is then used to proportionally scale the nominal time slot numbers of all subsequent modules that have not yet been activated. The scaling reference is always the original nominal time slot number obtained from the initial calculation using the power function, not the scaled value after the previous correction, ensuring that each correction is independent and does not generate compound cumulative deviations. If the smoothing correction factor is greater than 1 (light load), the scaled time slot number increases, corresponding to a delayed activation time, slowing down the deployment pace of subsequent modules. If the smoothing correction factor is less than 1 (heavy load), the time slot number decreases, corresponding to an earlier activation time, accelerating the deployment pace. The scaling result is cropped to the range of 0 to 1023 to ensure that the activation time of all modules falls within the ramp-up time range. If the scaling result of the last module reaches the upper limit of 1023, it means that the module was completed at the end of the ramp-up time, and the ramp-up process ended normally according to the set time, without the ramp-up time being shortened or exceeding the limit due to light load. When the window has less than 3 times (i.e. during the first 3 modules), the average of the existing measurements is used directly instead, without waiting for the window to be filled before starting the correction.

[0062] Internally within the FPGA, the correction factor is represented by a fixed-point number, with 1024 as the baseline. When the smoothing correction factor is greater than 1, the correction value is an integer greater than 1024; when it is less than 1, it is an integer less than 1024. Scaling of the nominal time slot number is achieved by multiplying an integer and shifting it right by 10 bits (equivalent to dividing by 1024). The entire correction process is completed within a few clock cycles, much faster than the PWM cycle of a single module, and has no impact on real-time performance. When encountering a module whose health status vector in the polling scheduling initialization data is marked as 0, the ramp-up phase automatically skips this module and selects the next healthy module in the queue to replace it. The skipping operation is completed within the same time slot, without consuming additional ramp-up time. The module activation order always follows the circular queue numbering order, ensuring the determinism and repeatability of the ramp-up phase.

[0063] After the last module that needs to be activated is activated, the PL terminal samples the final actual output voltage. The result of subtracting the final actual output voltage from the target voltage in the power control configuration parameters and then dividing by the rated voltage of a single module is used as the calculated value of the initial equivalent duty cycle. The larger of this calculated value and 0 is taken as the final initial equivalent duty cycle (i.e., the initial equivalent duty cycle is not allowed to be negative). This cutoff is used to deal with the situation in actual engineering where the final actual output voltage slightly exceeds the target voltage when there is a positive deviation in the rated voltage of each module. If the calculated value is negative and is not cut off, the first sub-cycle of S3 will incorrectly determine that one more module needs to be activated than the integer number of modules, further raising the output voltage to form positive feedback. After the cutoff, the initial equivalent duty cycle is 0, which means that S3 is in the initial state of activating an integer number of modules in each sub-cycle. This slight voltage overshoot is handed over to the outer loop of S5 to smoothly converge to the target value in the subsequent several polling cycles.

[0064] The output consists of three items: the activation time sequence, the initial equivalent duty cycle, and the integer number of modules. The activation time sequence is only used for the climb scheduling in this step. The truncated initial equivalent duty cycle and the integer number of modules (equal to the number of modules to be activated) serve as the starting point for input S3. When S2 is completed, all modules required to be activated are in a continuous conducting state, and the polling pointer remains at the initial value of 1. In the first sub-cycle after takeover, S3 starts from module 1 pointed to by the polling pointer and selects healthy modules along the circular queue that are equal to the number of modules required to be activated to form an activation set. This set is completely consistent with the set of online modules at the end of S2, thereby realizing a zero-jump switch from the climb phase to steady-state control.

[0065] S3, based on the initial equivalent duty cycle and the number of integer modules, and according to the polling scheduling initialization data, is adjusted by the error accumulation fraction module to obtain the set of modules turned on and the real-time polling pointer status of each control sub-cycle;

[0066] After entering the steady-state control phase, the target equivalent module number is usually not an integer, while the number of modules activated can only be an integer value, requiring tracking of the continuous target under integer constraints. If, with the decimal part of the equivalent module number set to 0.4, 40% of the sub-cycles in a polling cycle are fixed to activate one more module than the integer module number, and the remaining sub-cycles activate an integer number of modules, and these 40% of sub-cycles are concentrated and continuous, then the output voltage will be systematically high during the corresponding time period, forming a blocky low-frequency ripple with the polling cycle as the frequency. The low-frequency ripple requires a larger filter inductor to effectively suppress it, but increasing the inductor contradicts the miniaturization requirements of high-power power supplies.

[0067] The PL (Programmer) adopts a sub-cycle-by-sub-cycle decision-making approach, rather than pre-planning whether to activate an additional module in each sub-cycle. When the system first enters steady-state control (starting from the S2 ramp-up phase), the PL uses the integer module number and initial equivalent duty cycle passed in from S2 as the integer module number and fractional part of this polling cycle. At the beginning of each subsequent polling cycle, S3 reads the polling control basis updated by S5 at the end of the previous polling cycle, extracts the effective equivalent module number from it, and uses the integer module number (rounded down from the effective equivalent module number) and fractional part (the fractional remainder of the effective equivalent module number) as the control target for this round. This ensures that the quantization allocation always tracks the latest result of the outer loop correction, and the integer module number and fractional part are continuously updated during steady-state operation.

[0068] In one embodiment of the present invention, when the host computer issues a new target voltage during steady-state operation, the PL terminal immediately updates the target voltage in the power control configuration parameters and recalculates the equivalent module number by dividing the target voltage by the rated voltage of a single module, taking the integer part as the new integer module number and the fractional part as the new equivalent fractional part. This update takes effect in the equivalent target calculation of S3 within the current polling cycle, but S5 only completes the incremental PID calculation based on the new target voltage and updates the polling control basis for the next polling cycle at the end of the current polling cycle. From the next complete polling cycle, the control target of S3 and the output of S5 are realigned. If the new integer module number is different from the current integer module number (the target voltage crosses the integer module voltage boundary), the error accumulation register is reset to 0 to ensure that the starting point of the new round of scheduling is consistent with the updated integer module number and fractional part. If the integer module number remains unchanged and only the fractional part changes (the target voltage is fine-tuned between adjacent integer multiples of module voltage), the error accumulation register maintains the current value and smoothly connects the new fractional allocation ratio from the current accumulation state, avoiding unnecessary transient steps in the output voltage caused by fine-tuning the target voltage.

[0069] The Sigma-Delta error accumulation fractional module polling control achieves steady-state fractional voltage regulation by establishing an error accumulation register. When the system first enters steady-state regulation, the initial value of the error accumulation register is equal to the initial equivalent duty cycle passed in by S2 (the truncation process of S2 has ensured that the initial equivalent duty cycle is not less than 0), indicating the equivalent quantization error accumulated at the end of the ramp-up phase. During steady-state operation, the error accumulation register continuously tracks the actual scheduling accumulated error and is not reset at the polling cycle boundary, but is only reset according to the above rules when the target voltage integer boundary is crossed. At the start of each control sub-cycle, the number of modules to be activated in this sub-cycle is determined according to the following logic: If the current error accumulation register value is lower than the decision threshold (the decision threshold is 1 / 2, expressed as 512 / 1024 in fixed-point numbers), then one more module than the integer number of modules is activated in this sub-cycle, and the value of the error accumulation register is increased by an equivalent amount equal to the difference between the current decimal remainder and the integer number of modules is activated, and the value of the error accumulation register is decreased by the current decimal remainder. The decimal part is the decimal remainder of the current equivalent number of modules, expressed as a fixed-point number with 1024 as the denominator, and each addition and subtraction operation is performed in the integer field.

[0070] The error accumulator register records the cumulative difference between the actual average output and the target output up to the current moment, measured as a fraction of the equivalent number of modules. When the cumulative difference is large (the error accumulator register value is below the threshold), it means that too many integer number of modules have been activated in the past period, and the current sub-cycle should compensate by activating one more module to raise the average. Conversely, when the cumulative difference is high, it means that enough times have been activated by one more module, and the number of integer modules should remain unchanged this time. In the long run, the frequency of activating one more module naturally converges to the fractional part, and the error accumulator register oscillates slightly around the decision threshold but does not accumulate indefinitely.

[0071] The successive residual tracking decision-making method ensures that the occurrence of the state of activating an additional module is evenly distributed within the polling cycle, rather than concentrated in several consecutive sub-cycles. In a PSM series multi-module system, each alternation of the integer number of modules and the state of activating an additional module corresponds to a discrete step change in the output voltage of a single module. Taking the 800V single module as an example, each switch between the two states causes an instantaneous voltage change of 800V. If the state of activating an additional module occurs in a concentrated and continuous manner, a rectangular pulse voltage oscillation with the polling cycle as the fundamental frequency will be formed at the output. Its amplitude is approximately half of the single module voltage (approximately 400V). With a total of 10 modules and a single module operating frequency of 1kHz, this oscillation frequency is approximately 100Hz.

[0072] For the beam acceleration load of the nuclear fusion NBI heating system, low-frequency voltage oscillations of 100Hz and up to 400V directly interfere with beam quality. Simultaneously, they apply continuous low-frequency, large-amplitude excitation to the subsequent filter inductor, significantly increasing core losses and requiring larger inductance, contradicting the miniaturization engineering goal of high-power power supplies. The error accumulation register's step-by-step error tracking mechanism disperses the occurrence positions of multiple activated modules within the polling cycle, making the interval between adjacent state transitions as uniform as possible. This transfers quantization error energy from the low-frequency band to the high-frequency band, allowing for efficient attenuation of high-frequency voltage ripple by the existing filter inductor. This mechanism addresses the engineering constraints of large step amplitudes and significant low-frequency ripple hazards in PSM series multi-module systems, differing in nature and design constraints from small-amplitude ripple shaping in general-purpose converter PWM control.

[0073] After determining the integer number of modules to be activated in this sub-cycle, or one more module, the PL terminal, based on the circular polling queue in the polling scheduling initialization data, starts from the position pointed to by the current polling pointer and sequentially searches the module health status vector along the circular queue, skipping all modules with a health bit of 0, and selecting healthy modules in turn until the corresponding number is reached, forming the activation set for this sub-cycle. The selected module generates an activation trigger pulse for its corresponding fiber channel; other channels do not generate pulses. The pulse generation logic between channels is executed in parallel on the PL terminal, eliminating the latency of sequential waiting for each channel. While searching backward from the pointer position, if the health bit at a certain position is 0 (the module is faulty or bypassed), the pointer continues to slide backward until a sufficient number of healthy modules are found. If the current total number of healthy modules is less than the integer number of modules, an activation set is generated with the actual available number as the upper limit, and an alarm for insufficient healthy modules is sent to the PS terminal.

[0074] The health status vector is read using a ping-pong buffer structure to eliminate concurrent conflicts between the fault detection logic of S4 and the polling scheduling logic of this step. The PL maintains two sets of health status registers: one set for reading within the current polling cycle (snapshot buffer), and the other set for S4 to write updates at any time (write buffer). At the boundary of each polling cycle (i.e., after all sub-cycles of the total number of modules are completed), the two sets of registers switch roles. Fault updates written by S4 in the previous polling cycle take effect all at once at the end of the current polling cycle. This step always uses a complete and consistent health status snapshot throughout the entire polling cycle, unaffected by concurrent writes. This design avoids the common read-modify-write contention problem and also ensures that the effective time of fault information is determined at the polling cycle boundary, making system behavior predictable.

[0075] When a permanent fault occurs when the timeout count exceeds the second fault determination time threshold, if the module happens to be in the active set of the current sub-cycle at the time of fault determination, S4 immediately performs hot standby replacement within the current sub-cycle, removing the faulty module from the active set and connecting it with a replacement module, without waiting for the polling cycle boundary, to prevent the faulty module from causing output abnormalities in the remaining time of the current sub-cycle; the permanent update of the health status vector is still written to the write end of the ping-pong buffer and takes effect at the end of the polling cycle, and the faulty module will no longer appear in any active set from the next complete polling cycle.

[0076] At the end of each control sub-cycle, the polling pointer advances by one bit: the pointer increments its current value by 1; if the incremented value is greater than the total number of modules, it is set to 1, ensuring the polling pointer always cycles within the range of 1 to the total number of modules. When the health bit of the module pointed to by the pointer after advancement is 0, the pointer continues to advance until the first healthy module is found, at which point that module is set as the starting position of the activation set for the next sub-cycle. The entire pointer advance operation involves only addition and comparison, completed within a single clock cycle. S3 continuously executes four actions in each polling cycle: integer module number and switching decision for activating one more module, module selection, pulse generation, and pointer advance. It outputs the module activation set and real-time polling pointer status for each sub-cycle.

[0077] Simulation verification was conducted under steady-state operating conditions of 10 modules, a target voltage of 4kV, and a single module operating frequency of 1kHz. Figure 4 As shown, at any given time, 5 modules are simultaneously in the ON state, and the output voltage is stably maintained at 4kV. The ON state timing of each module shifts cyclically along the circular queue with the polling pointer, and each module undertakes the ON task evenly in time.

[0078] Combining the aforementioned error accumulation fraction module polling control mechanism, taking a total of 10 modules, a single module voltage of 800V, and a single module operating frequency of 1kHz as examples, simulation verification was conducted with target voltages of 2kV, 2.2kV, 2.5kV, and 3kV respectively. Figure 5 As shown, each sub-cycle switches between two states: activating an integer number of modules and activating one more module than the integer number. The output voltage alternates between two adjacent sets of levels, and the time average values ​​are consistent with each set target. This indicates that continuous stepless voltage regulation by fractional module control can be achieved under the constraint of integer module activation.

[0079] S4, compare the turn-on set of each control sub-cycle module with the real-time polling pointer status monitoring backlight timing, perform three-level fault judgment and hot standby replacement according to the power control configuration parameters, and obtain the updated module health status vector and polling pointer correction flag;

[0080] Each PSM power module, under normal operating conditions, periodically sends status feedback pulses to the FPGA via optical fiber. The timing of these pulses is correlated with the activation trigger pulse received by the module. The PL maintains a separate optical fiber timeout counter for each module, resetting the counter to zero upon receiving a valid feedback pulse. Thereafter, the counter automatically increments by 1 each system clock cycle. As long as the modules operate normally and provide timely feedback, the counter will not accumulate to a value outside the normal range. However, if the feedback from a module is interrupted, the counter will continue to accumulate, triggering subsequent decision-making processes.

[0081] In terms of judgment logic, the PL terminal makes judgments based on the first and second fault judgment time thresholds in the power control configuration parameters, with the first fault judgment time threshold being less than the second fault judgment time threshold. Timeout events are divided into three levels. When the timeout count of a module is lower than the first fault judgment time threshold, it is considered transient interference. Slight contamination of fiber optic connectors, sudden noise in the electromagnetic environment, and occasional glitches in the module's internal gate drive circuit may all cause single-time return light loss, but these situations are insufficient to indicate a true module fault. For transient interference, the PL terminal does not modify the health status vector, but only increments the corresponding abnormal event counter (independent of the timeout counter) by 1. Once the abnormal event count of the module within the abnormal event statistics window specified by the power control configuration parameters (default is 20 polling cycles) exceeds the upper limit of the abnormal event frequency (default is 5 times), even if the duration of each timeout is lower than the first fault judgment time threshold, the fault level of the module will be upgraded to a suspected fault, triggering the subsequent replacement process. This mechanism is used to identify intermittent faults that frequently occur in actual engineering (such as poor contact caused by device thermal cycling, and occasional non-triggering caused by aging).

[0082] In one embodiment of the present invention, when the timeout count exceeds the first fault determination time threshold but has not yet reached the second fault determination time threshold, it is identified as a suspected fault. Such events usually correspond to a module experiencing an anomaly that lasts for a long time but has not yet completely failed, which may be due to the thermal overload protection triggering of the power devices inside the module, a slight undervoltage of the gate drive power supply, etc. For suspected faults, the PL terminal temporarily sets the health bit of the module to 0 and immediately starts the hot standby replacement process, while maintaining continuous monitoring of the fiber optic signal of the module; if the return signal of the module returns to normal within several subsequent polling cycles (the timeout counter is cleared), the recovery update of the health bit is written to the write end of the ping-pong buffer and takes effect at the end of the current polling cycle. The module is re-included in the scheduling from the next polling cycle without any manual intervention; the error accumulation register of S3 is not affected by the recovery of the module's health status, and the change in the number of available modules is naturally absorbed by the circular queue. The error accumulation register continues to execute subsequent decisions based on the current accumulated value;

[0083] When the timeout count exceeds the second fault determination time threshold, it is identified as a permanent fault. The PL terminal permanently sets the health bit to 0, clears the abnormal event counter, and notifies the PS terminal by triggering an interrupt. The PS terminal reports the fault module number and fault time to the host computer via Modbus TCP for maintenance personnel to record and arrange offline maintenance.

[0084] After determining that a replacement process needs to be initiated, the PL (Power Probe) selects a replacement module from the available modules in the current health status vector, adhering to the hot standby priority principle. The PL maintains a shutdown duration counter for each healthy module, recording the number of clock cycles from the last shutdown to the current state. The counter for modules currently being turned on is reset to zero, and the counter for modules in a shutdown state is incremented by 1 each clock cycle. During replacement, the healthy module with the smallest shutdown duration counter value is prioritized, i.e., the module that has just been shut down and has the most residual heat in its gate drive. The internal drive circuit of a recently shut-down module is in a residual heat state, and its response characteristics upon initial turn-on are close to those of normal polling, minimizing the disturbance to the current sub-cycle output voltage caused by the replacement operation. Each PSM (Power Supply Module) has an independent over-temperature protection circuit. When the module junction temperature exceeds the safe upper limit, the module itself triggers protection, forming a module-level thermal stress defense line. This, in conjunction with the FPGA's scheduling logic, ensures the reliability of the system under high-power operating conditions.

[0085] For alternative candidate modules whose shutdown duration counter value exceeds the cold standby threshold in the power control configuration parameters (i.e., they have been cooled for a long time and the gate state may have fully relaxed), the PL terminal does not immediately apply a normal duty cycle turn-on pulse in the first PWM sub-cycle after the module is selected as the alternative module. Instead, it first sends a low duty cycle pre-charge pulse. The default value of the pre-charge pulse duty cycle is 50% of the normal operating duty cycle, which can be adjusted between 25% and 75% according to the charging time constant of the internal drive isolation power supply of the module. The purpose of the pre-charge pulse is to re-establish the operating voltage of the internal gate drive isolation power supply and gate capacitor of the module, avoiding insufficient conduction of devices due to insufficient drive energy during the first full duty cycle turn-on, thus causing the actual output voltage of this sub-cycle to be lower than normal. The pre-charge process only occupies a single PWM cycle. The slight lower output voltage in this cycle is automatically compensated by the Sigma-Delta error accumulation register of S3 in subsequent sub-cycles without external intervention. After the pre-charge is completed, the alternative module immediately switches to normal duty cycle operation.

[0086] After fault replacement is completed, the PL terminal removes the number of the replaced module from the active set of the current sub-cycle, adds the replaced module to the set, and simultaneously writes the updated module health status vector to the write end of the ping-pong buffer. This update takes effect at the end of the polling cycle, and the health status snapshot read by S3 from the next complete polling cycle reflects the above update. If the polling pointer happens to point to the faulty module when the fault occurs, the PL terminal synchronously completes the pointer skip operation within the current clock domain. The skip delay is only a few nanoseconds, far less than the duration of a single PWM cycle, and has a negligible impact on the continuity of the output voltage. The PL terminal outputs a polling pointer correction flag in real time, and S3 then restarts the selection from the corrected healthy module position, ensuring that the module count and the actual healthy module set remain consistent at any given time.

[0087] To verify the above three-level fault diagnosis and hot standby replacement mechanism, simulations were performed with a total of 10 modules, a single module operating frequency of 1kHz, and a target voltage of 2.8kV. Single-module faults were injected around 10ms and 20ms. Figure 6 As shown, after the faulty module's turn-on sequence is interrupted, it is replaced by the healthy module, and the total output voltage remains unchanged.

[0088] S5: At the end of each polling cycle, the output voltage sample value is collected, and incremental PID adjustment is performed in combination with the power control configuration parameters to obtain the effective equivalent module number and update the polling control basis for the next polling cycle.

[0089] The S3's Sigma-Delta control mechanism theoretically guarantees that the output voltage's time average within a polling cycle equals the target value. However, this relies on the assumption that the actual output voltage of each module is exactly equal to its rated voltage. In reality, manufacturing deviations between modules, differences in operating temperature, and varying degrees of component aging can all cause deviations between the actual voltage contributed by each module and its rated value. Furthermore, the DC voltage drop of the filter inductor and the subtle timing jitter caused by fiber optic transmission delays can also introduce systematic errors into the output voltage that are difficult to eliminate through an open-loop approach. Therefore, relying solely on the S3's open-loop Sigma-Delta control is insufficient; a closed-loop correction mechanism based on measured feedback is also required.

[0090] At the end of each complete polling cycle, the PL terminal triggers an ADC sampling to read the current actual output voltage. The ADC collects the analog signal from the output terminal after being scaled down by a voltage divider network. The PL terminal uses the ADC conversion factor in the power control configuration parameters to restore the original ADC value to the actual voltage value. The conversion is completed in integer multiplication and shift operations. The actual output voltage is the output voltage generated by the actual superposition of the turn-on sets of each sub-cycle module in S3, that is, the measurement result after the S3 output is transmitted through the physical system. This step compares this with the target voltage in the power control configuration parameters and performs incremental PID adjustment to obtain the effective equivalent module number and update the polling control basis for the next polling cycle, forming a closed control loop.

[0091] The voltage control error for the current polling cycle is obtained by subtracting the actual output voltage from the target voltage in the power supply control configuration parameters. The PID control uses a discrete incremental structure instead of a positional structure. The incremental structure calculates the correction amount relative to the previous value each time, providing anti-integral saturation capability and eliminating the need for additional anti-integral saturation circuitry. The PL terminal maintains an error shift register with a depth of 3, storing the voltage error of the current polling cycle, the voltage error of the previous polling cycle, and the voltage errors of the two previous polling cycles. After each PID calculation, the register is shifted to the right to update the value. The outer loop increment is calculated using a proportional-derivative form: the proportional adjustment coefficient in the power supply control configuration parameters is multiplied by the difference between the voltage error of the current polling cycle and the voltage error of the previous polling cycle; the derivative adjustment coefficient is multiplied by the current polling cycle voltage error minus twice the voltage error of the previous polling cycle plus the voltage errors of the two previous polling cycles. The sum of these two values ​​yields the voltage correction increment for the current cycle.

[0092] The current voltage correction increment is then added to the cumulative voltage correction, meaning the cumulative voltage correction is the sum of the current voltage correction increment and the cumulative voltage correction from the previous moment. This accumulation structure ensures that even if each increment does not contain an explicit integral term, the cumulative voltage correction will gradually accumulate during the period of error persistence until the output voltage converges to the target value. To prevent the cumulative voltage correction from dominating the output and suppressing the fine voltage regulation space of the inner loop Sigma-Delta, the amplitude of the cumulative voltage correction is limited to within ±1 single module rated voltage. This limiting range is exactly equal to the inner loop's resolvable integer module adjustment equivalent, ensuring that the outer loop correction always remains within the adjustable range of the inner loop. The cumulative voltage correction is set to 0 during the S1 initialization phase and begins participating in the calculation from the end of the first complete polling cycle after S3 takes over. Thereafter, each calculation adds the current voltage correction increment to the cumulative voltage correction from the previous moment.

[0093] The nominal integer number of modules, calculated from the target voltage in the power control configuration parameters, is obtained by rounding down the target voltage divided by the rated voltage of a single module. The nominal decimal remainder is obtained by subtracting the nominal integer number of modules from the result of dividing the target voltage by the rated voltage of a single module; the sum of these two values ​​is the nominal equivalent number of modules. The cumulative voltage correction after limiting is divided by the rated voltage of a single module to obtain the equivalent number of module number correction bias, expressed as a fixed-point number. The effective equivalent number of modules is the sum of the nominal equivalent number of modules and the equivalent number of module number correction bias, which serves as the basis for polling control in the next polling cycle. At the beginning of the next cycle, S3 extracts the integer and decimal parts from this control basis as the starting point for error accumulation decision-making. The outer loop is responsible for eliminating steady-state voltage deviations introduced by factors such as module manufacturing deviations and temperature drift, while the inner loop Sigma-Delta is responsible for precise allocation of the decimal part under the constraint of integer modules. The outer loop uses the entire polling cycle as the adjustment step size (low bandwidth), while the inner loop uses a single PWM sub-cycle as the decision step size (high bandwidth), and the adjustment bandwidths of the two loops are staggered.

[0094] The values ​​of the proportional and derivative control coefficients affect the dynamic characteristics of the outer closed loop. In actual engineering, these values ​​are confirmed through simulation debugging, and adjustment interfaces are provided in the host computer configuration page. The proportional control coefficient controls the tracking speed of the outer loop to steady-state deviation, while the derivative control coefficient provides damping to suppress the impact of high-frequency disturbances introduced by Sigma-Delta quantization ripple through the ADC sampling path on the PID output. During steady-state operation, the user can update the proportional and derivative control coefficients online via the host computer. After receiving the new parameters, the PL terminal will take effect from the next PID calculation cycle without interrupting the current operation.

[0095] In one embodiment of the present invention, the high-voltage accelerating power supply of the neutral beam injection (NBI) heating system of a nuclear fusion device is used as the simulation verification object. The PSM power supply needs to complete rapid voltage build-up and maintain precise voltage regulation within the beam pulse timing window, while withstanding the dynamic changes in plasma impedance. The following is a set of data examples for a typical simulation verification scenario. The FPGA model is Xilinx ZYNQ XC7Z035FFG900-2, the host computer is connected via Ethernet Modbus TCP, the rated voltage of a single module is 800V, the total number of modules participating in the operation is 10, the target voltage is 4000V (5 modules need to be activated simultaneously), the operating frequency of a single module is 1kHz, the rise time is 100μs, the proportional gain is 30, the derivative gain is 20, and the initial value of the power exponent is 2.

[0096] Table 1 provides numerical examples of the adaptive correction circuit under the main operating conditions of this embodiment (total number of modules 10, target voltage 4000V, climb time 100μs); Figure 3This is a simulation illustration of the power function reference timing pattern under another operating condition (total number of modules to be put into operation: 20, target voltage: 16kV, ramp-up time: 10μs). The operating parameters of the two conditions are different. Figure 3 Table 1 is used to verify the baseline timing pattern and to verify the adaptive correction effect.

[0097] Table 1. Example of adaptive crawling data during the startup phase (power exponent is 2, crawling time is 100μs, total number of modules is 10).

[0098]

[0099] Because the actual load in the simulation was lighter than the rated operating condition (the actual output voltage of each module was slightly higher than 800V), the correction factor was consistently slightly higher than 1. The adaptive ramp-up algorithm automatically delayed the turn-on rhythm of subsequent modules after each module was turned on, so that the voltage ramp-up could be steadily established within the set 100μs to reach the target voltage. Finally, the measured voltage of 4012V deviated from the target of 4000V by only 12V. Subsequently, the outer loop PID converged the deviation to zero within several polling cycles. No voltage overshoot occurred during the entire startup process.

[0100] Table 2. Steady-state Sigma-Delta stepless voltage regulation operating point data (total number of modules: 10, single module operating frequency: 1kHz).

[0101]

[0102] With a total of 10 modules and a single module operating frequency of 1kHz, the Sigma-Delta fractional module control mechanism can control the steady-state average output error to the single-digit volt level before the introduction of the PID outer loop when the target voltage is any non-integer multiple of the single module voltage. After the introduction of the outer loop PID, the residual deviation converges to zero within a few polling cycles, achieving high-precision steady-state voltage closed-loop control. Figure 5 The steady-state average output at 2kV, 2.2kV, 2.5kV and 3kV is on the same order of magnitude as the measured deviation at the 2000V and 2200V operating points listed in Table 2, and the waveforms and values ​​corroborate each other.

[0103] In terms of troubleshooting, with Figure 6Under the same simulation conditions, when a single module fault event is injected around 10ms and 20ms, the fault bypass action is divided into two phases in time: First, the cumulative judgment of the fault level. The timeout counter counts from the start until it exceeds the first fault judgment time threshold. Taking the default configuration of 3 PWM cycles and a single module operating frequency of 1kHz as an example, the judgment takes about 3ms. After that, the FPGA hardware logic completes the switching of the turn-on set within the clock cycle. From the fault level judgment trigger to the issuance of the turn-on pulse of the hot standby replacement module, taking a 100MHz clock as an example, the entire switching operation is completed in about tens of nanoseconds, and the overall replacement action ends within a single PWM sub-cycle.

[0104] The slight decrease in output voltage after replacement is limited to the first pre-charge cycle and is automatically compensated for in subsequent sub-cycles by the Sigma-Delta error accumulation mechanism, thus effectively ensuring the continuity of the overall output voltage.

[0105] The embodiments of the present invention have been described above. However, the embodiments are not limited to the specific implementation methods described above. The specific implementation methods described above are merely illustrative and not restrictive. Those skilled in the art can make more equivalent embodiments under the guidance of the present embodiments, and all of them are within the protection scope of the present embodiments.

Claims

1. A PSM power polling control method based on FPGA, characterized in that, Includes the following steps: S1, obtain the host computer configuration parameters, initialize the FPGA, and obtain the polling scheduling initialization data and power control configuration parameters. The polling scheduling initialization data includes a circular polling queue data structure and a module health status vector. S2, according to the polling schedule initialization data and power control configuration parameters, execute variable slope ramping to obtain the turn-on time sequence, initial equivalent duty cycle and integer number of modules; S3, based on the initial equivalent duty cycle and the number of integer modules, and according to the polling scheduling initialization data, is adjusted by the error accumulation fraction module to obtain the set of modules turned on and the real-time polling pointer status of each control sub-cycle; S4, compare the turn-on set of each control sub-cycle module with the real-time polling pointer status monitoring backlight timing, perform three-level fault judgment and hot standby replacement according to the power control configuration parameters, and obtain the updated module health status vector and polling pointer correction flag; S5 collects the output voltage sample value at the end of each polling cycle, performs incremental PID adjustment in combination with the power control configuration parameters, obtains the effective equivalent module number, and updates the polling control basis for the next polling cycle.

2. The FPGA-based PSM power polling control method according to claim 1, characterized in that, In S1, each power module is arranged in sequence according to its hardware number and connected end to end to form a logical ring. The module hardware number corresponds one-to-one with the fiber optic channel. During initialization, the polling pointer is set to 1. The queue arrangement order remains unchanged after initialization, thus forming the circular polling queue data structure. An initialization trigger pulse is sent to each module and the optical fiber return signal is monitored. If a module receives a valid return signal within a waiting time not exceeding the first fault determination time threshold, its corresponding health bit is set to 1. If a module does not receive a return signal, its corresponding health bit is cleared to 0. Modules that are unusable during the initialization phase are not included in subsequent scheduling, thus forming a module health status vector.

3. The FPGA-based PSM power polling control method according to claim 1, characterized in that, In S2, the ramp-up time in the power control configuration parameters is evenly divided into a preset number of time slots. The time slot number of the nominal activation time of each module is determined by the ramp-up power exponent of the ratio of the activation sequence number of the corresponding module to the number of modules to be activated. The sequence of time slot numbers calculated by each module in this way constitutes the activation time sequence. After each module is activated, a smoothing correction factor is obtained by comparing the average of the measured voltage increments within the most recent preset window length with the rated voltage of a single module. The nominal time slot numbers of subsequent modules are scaled proportionally to the initial original value using the smoothing correction factor. Each correction is independent of the others and does not produce a compound cumulative deviation.

4. The FPGA-based PSM power polling control method according to claim 3, characterized in that, In S2, after all the required modules are turned on, the initial equivalent duty cycle is calculated by subtracting the final actual output voltage from the target voltage in the power control configuration parameters and then dividing by the rated voltage of a single module. If the corresponding calculated value is negative, the initial equivalent duty cycle is 0; otherwise, the corresponding calculated value is used. In the first control sub-cycle after takeover, S3 selects healthy modules along the circular polling queue with the initial value of the polling pointer as the starting point. The set of modules turned on in each control sub-cycle is completely consistent with the set of online modules at the end of S2, realizing a zero-jump switch from the variable slope climb to the error accumulation fraction module polling control.

5. The FPGA-based PSM power polling control method according to claim 1, characterized in that, In S3, an error accumulation register is established. When the system first enters the error accumulation fraction module for polling and control, the initial value of the error accumulation register is the initial equivalent duty cycle. At the beginning of each control sub-cycle, if the value of the error accumulation register is lower than the preset decision threshold, one more module than the integer number of modules will be activated in this sub-cycle, and the value of the error accumulation register will be increased by an equivalent amount equal to the difference between the current equivalent number of modules and the decimal remainder; if the value of the error accumulation register is not lower than the preset decision threshold, the integer number of modules will be activated, and the value of the error accumulation register will be decreased by the decimal remainder of the current equivalent number of modules. The error accumulation register is not reset at the polling cycle boundary, but is only reset to 0 when the target voltage crosses the integer module voltage boundary.

6. The FPGA-based PSM power polling control method according to claim 5, characterized in that, In S3, after each control sub-cycle ends, the polling pointer is incremented by 1. If the increment exceeds the total number of modules, it is set to 1. If the pointer points to a module with a health bit of 0 after the advance, the advance continues until the first module with a health bit of 1 is found. The corresponding module is set as the starting position of the set of modules to be turned on in each control sub-cycle in the next sub-cycle, thereby maintaining the state of the real-time polling pointer. The reading of the module health status vector adopts a ping-pong buffer structure. The PL side maintains two sets of health status registers. One set is used for reading in the current polling cycle of this step, and the other set is used for writing and updating at any time by S4. The two sets of registers switch reading and writing roles at the boundary of each polling cycle. The fault update written by S4 takes effect once at the end of the polling cycle.

7. The FPGA-based PSM power polling control method according to claim 1, characterized in that, In S4, the PL terminal maintains an independent fiber optic timeout counter for each module; and the timeout events are divided into three levels according to the first fault determination time threshold and the second fault determination time threshold in the power control configuration parameters. When the timeout count value is lower than the first fault determination time threshold, it is identified as transient interference, and the corresponding module's abnormal event counter is incremented by 1. If the number of abnormal events in the preset statistics window exceeds the preset abnormal event frequency limit, the fault level will be upgraded to suspected fault. If the timeout count exceeds the first fault determination time threshold but does not reach the second fault determination time threshold, it is identified as a suspected fault. The health bit of the corresponding module is temporarily set to 0 and the hot standby replacement process is started. If the subsequent return signal is restored, the health bit is reset to 1 at the end of the current polling cycle. When the timeout count exceeds the second fault determination time threshold, it is identified as a permanent fault, and the corresponding module health bit is permanently set to 0.

8. The FPGA-based PSM power polling control method according to claim 7, characterized in that, In S4, when the hot standby replacement process is started, a shutdown duration counter is maintained for each healthy module, and the number of clock cycles from the last shutdown of the corresponding module to the current time is recorded. The healthy module with the smallest shutdown duration counter value is selected as the replacement module first. Remove the faulty module from the current set of control sub-cycle modules and add a replacement module; if the polling pointer points to the faulty module, the pointer skipping operation is completed synchronously in the current clock domain, and the polling pointer correction flag is output in real time. S3 then starts selecting from the corrected healthy module position again to ensure that the module count is always consistent with the actual healthy module set at any time.

9. The FPGA-based PSM power polling control method according to claim 8, characterized in that, In S4, when the shutdown duration counter value of the replacement module exceeds the cold standby threshold in the power control configuration parameters, a pre-charge pulse is sent instead of a normal turn-on pulse in the first control sub-cycle after the replacement module is selected, so that the gate drive isolation power supply can re-establish the working voltage and avoid insufficient drive energy during the first full duty cycle turn-on, which would cause the device to not be fully turned on. The pre-charging process occupies only a single control sub-cycle, and the deviation of the output voltage in this sub-cycle is automatically compensated by S3 in subsequent sub-cycles; after the pre-charging is completed, the replacement module immediately switches to normal operation.

10. The FPGA-based PSM power polling control method according to claim 1, characterized in that, In S5, at the end of each polling cycle, the difference between the actual output voltage sample value and the target voltage in the power control configuration parameters is taken as the voltage control error of the current polling cycle. A discrete incremental structure is adopted, which is obtained by multiplying the proportional adjustment coefficient by the difference between the voltage control errors of two adjacent polling cycles and multiplying the differential adjustment coefficient by the second-order difference of the voltage control errors of three adjacent polling cycles. The two are added together to obtain the voltage correction increment for this time, which is superimposed on the cumulative voltage correction amount. The amplitude of the cumulative voltage correction amount is limited to within ±1 single module rated voltage. The sum of the nominal equivalent module number calculated from the target voltage and the correction bias obtained by dividing the cumulative voltage correction by the rated voltage of a single module is used as the effective equivalent module number, and the polling control basis for the next polling cycle is updated.