Variable frequency damping triangular wave degaussing system and method for accelerator deflection magnet
By using a frequency-modulated attenuation triangular wave demagnetization system, which employs a triangular wave demagnetization current that decays with time and increases with time, the problems of edge overshoot and hardware impact in the demagnetization technology of accelerator deflection magnets are solved. This achieves a highly efficient and smooth demagnetization effect, extends equipment life, and reduces system complexity.
Patent Information
- Application Number
- CN202611373761.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-24
AI Technical Summary
Existing demagnetization technologies for accelerator deflection magnets suffer from edge overshoot, significant hardware impact, high system complexity, and high cost, making it difficult to simultaneously meet the requirements of deep demagnetization with high current in the early stages of demagnetization and the need for effective disturbance of small residual magnetism in the later stages of demagnetization.
A frequency-modulated attenuation triangular wave demagnetization system is adopted. The excitation power supply module provides programmable bidirectional current, which, combined with the demagnetization pattern storage module and control circuit module, outputs a frequency-modulated attenuation bipolar triangular wave demagnetization current. The current amplitude decreases with time, and the frequency increases with time, so as to achieve precise and uniform demagnetization control.
It achieves more precise and uniform demagnetization trajectory control, reduces voltage stress impact on excitation power switch tubes and coil insulation layers, extends equipment lifespan, and effectively eliminates minor residual magnetism, avoiding additional hardware cost increases.
Smart Images

Figure CN123162002A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of demagnetization technology for accelerator deflection magnets, specifically to a frequency-modulated attenuation triangular wave demagnetization system and method for accelerator deflection magnets. Background Technology
[0002] Accelerators (such as medical linear accelerators and proton / heavy ion therapy systems) are core equipment for tumor radiotherapy. In accelerator systems, deflecting magnets (especially achromatic deflecting magnets) are key components of the beam transmission line, responsible for deflecting the accelerated charged particle beam along a predetermined path and precisely guiding it to the irradiation target area. To generate a high-intensity deflecting magnetic field with a relatively small excitation current, deflecting magnets typically use ferromagnetic materials such as silicon steel sheets or electromagnetic pure iron as their cores.
[0003] However, the inherent hysteresis effect of ferromagnetic materials poses a fundamental challenge to precise magnetic field control. When the excitation current is cut off, a certain amount of magnetization intensity, known as remanence, remains in the iron core. The presence of remanence generates unexpected additional deflection forces, directly causing beam position deviations during subsequent treatments and severely affecting irradiation accuracy. Furthermore, the magnetization state of the iron core depends not only on the current but also on its magnetization history, making simple current control insufficient to guarantee the repeatability of the magnetic field.
[0004] To address the aforementioned residual magnetism problem, existing technologies mainly propose several demagnetization schemes: First, the sinusoidal attenuation demagnetization method. For example, Mitsubishi Electric Corporation's patent CN103415321A discloses a method of demagnetizing by using a sinusoidal current whose amplitude decays over time and whose frequency increases over time, output by a scanning electromagnet power supply. The rate of change of the sinusoidal current in this method follows a cosine law, with the rate of change being the largest at the zero-crossing point and zero at the peak point. This results in uneven rates of magnetic domain flipping, making it difficult to achieve precise demagnetization control. The second method is square wave demagnetization. Chinese patent CN105428000A discloses a method for demagnetizing iron cores based on a low-frequency bipolar square wave source with varying pulse width. This method achieves demagnetization by applying a low-frequency bipolar square wave with a fixed amplitude and gradually decreasing pulse width. Toshiba's patent JP2000021631A also discloses a similar rectangular wave demagnetization scheme. However, the main drawback of the square wave scheme is that the current change rate at the edge of the square wave is extremely large (approaching infinity in an ideal case), which will generate a strong overshoot voltage, causing a significant impact on the switching transistor of the excitation power supply and the insulation layer of the magnet coil, affecting the equipment life. At the same time, its strategy of fixing the amplitude and adjusting it only by changing the pulse width lacks independent and coordinated control of amplitude attenuation and frequency change, and its ability to disturb the small residual magnetism region in the small current stage of the later stage of demagnetization is limited. The third method is traditional damped oscillation demagnetization, which uses an electromagnet coil and an external capacitor to form an LC oscillation circuit to generate a damped oscillation current for demagnetization. This method has a long demagnetization time, low efficiency, and fixed circuit parameters, lacking flexibility. The fourth method is the independent secondary coil demagnetization method, which involves adding an independent secondary coil outside the excitation coil to apply a reverse magnetic flux. This requires additional hardware, significantly increasing system complexity and cost.
[0005] In summary, existing demagnetization technologies, particularly square wave solutions, suffer from edge overshoot and significant hardware impact. These solutions generally lack independent and coordinated optimization of the demagnetization waveform's rate of change and amplitude-frequency parameters, making it difficult to simultaneously address the high-current, deep demagnetization requirements in the initial stages and the effective disturbance requirements for minimal residual magnetism in the later stages. Some solutions also require additional hardware, leading to high costs and system complexity. Therefore, there is an urgent need for a deflector magnet demagnetization technology that can achieve efficient, smooth, and thorough demagnetization without requiring additional hardware.
[0006] Therefore, the existing technology still needs further development. Summary of the Invention
[0007] The purpose of this invention is to overcome the above-mentioned technical deficiencies and provide a frequency-modulated attenuation triangular wave demagnetization system and method for accelerator deflection magnets, so as to solve the problems existing in the prior art.
[0008] To achieve the above-mentioned technical objectives, according to a first aspect of the present invention, the present invention provides a frequency-modulated attenuation triangular wave demagnetization system for accelerator deflection magnets, comprising: The excitation power supply module is used to provide programmable bidirectional current to the excitation coil of the deflecting magnet; The demagnetization pattern storage module is used to store preset demagnetization parameters; The control circuit module is connected to the excitation power supply module and the demagnetization pattern storage module respectively. In the demagnetization mode, the control circuit module reads the parameters in the demagnetization pattern storage module and controls the excitation power supply module to output a frequency-modulated attenuated bipolar triangular wave demagnetization current. The mode switching module is used to control the system to switch between beam deflection mode and demagnetization mode; The triangular wave demagnetizing current varies linearly with time in each half-cycle, with its current amplitude decreasing over time and its frequency increasing over time.
[0009] Specifically, the amplitude of the triangular wave demagnetizing current decays exponentially, satisfying the current amplitude of the nth half-cycle. ; The frequency increases linearly with time, satisfying... ; in, The initial current amplitude, The decay time constant, The initial frequency, The rate of change of frequency, For the current cycle, This is the half-cycle sequence number. For time.
[0010] Specifically, the control circuit module reads the maximum excitation current value of the deflecting magnet in the previous beam deflection mode, and sets the initial current amplitude according to the maximum excitation current value, so that the initial current amplitude is greater than the absolute value of the maximum excitation current.
[0011] Specifically, the demagnetization pattern storage module stores multiple sets of demagnetization parameter combinations corresponding to different operating conditions. Each set of demagnetization parameter combinations includes the initial current amplitude. The decay time constant The initial frequency and the frequency change rate ; The control circuit module acquires the operating parameters of the deflecting magnet in the previous beam deflection mode, determines the current operating condition type based on the operating parameters, and selects the corresponding set from the multiple sets of demagnetizing parameter combinations for demagnetizing control according to the preset correspondence between the operating condition type and the demagnetizing parameter combination.
[0012] Specifically, the different working conditions include at least the first working condition, the second working condition, the third working condition, and the fourth working condition; The first operating condition is when the maximum scanning current in the previous beam deflection mode is greater than or equal to a preset current threshold. The second operating condition is when the maximum scanning current in the previous beam deflection mode is less than the preset current threshold. The third working condition is when the cumulative beam output time of the current beam deflection mode is greater than or equal to a preset time threshold. The fourth operating condition is the condition in which an abnormal interruption signal is detected; The fourth operating condition has a higher priority than the third operating condition, and the third operating condition has a higher priority than the first and second operating conditions. When the same operating state meets multiple operating conditions at the same time, the demagnetization parameters are determined according to the operating condition with the highest priority.
[0013] Specifically, the system also includes a security protection module for performing at least one of the following protections: The system includes demagnetizing current amplitude limiting protection, excitation coil temperature rise monitoring and protection, abnormal interlock power-off protection, beam current prohibition protection during demagnetization, and demagnetizing timeout protection.
[0014] Specifically, the triangular wave demagnetizing current is also superimposed with a DC bias component that decays over time, so that the absolute values of the peak value of the positive half-cycle and the valley value of the negative half-cycle are not equal, forming an asymmetric triangular wave to compensate for the asymmetric remanence of the deflecting magnet.
[0015] Specifically, the system also includes a magnetic field monitoring module, which is used to measure the remanence of the deflecting magnet in real time and output the measured remanence value; The control circuit module is connected to the magnetic field monitoring module, receives the measured residual magnetism value, and dynamically adjusts the decay time constant and / or frequency of the triangular wave demagnetizing current according to the deviation between the measured residual magnetism value and the preset demagnetization reference value.
[0016] According to a second aspect of the present invention, a method for frequency-conversion attenuation triangular wave demagnetization of an accelerator deflector magnet is provided, comprising: S100. After the deflecting magnet completes the beam deflection, the system is switched from the beam deflection mode to the demagnetization mode through the mode switching module. S200, the control circuit module reads the preset demagnetization parameters in the demagnetization pattern storage module; S300. Based on the read demagnetization parameters, control the excitation power supply module to output a frequency-modulated attenuated bipolar triangular wave demagnetization current to the excitation coil of the deflection magnet; wherein, the triangular wave demagnetization current changes linearly with time in each half-cycle, its current amplitude decreases with time, and its frequency increases with time.
[0017] Specifically, the control circuit module reads the preset demagnetization parameters from the demagnetization pattern storage module, including: Obtain the operating parameters of the deflecting magnet in the previous beam deflection mode; The current operating condition type is determined based on the aforementioned operating parameters; Based on the preset correspondence between the working condition type and the demagnetization parameter combination, the corresponding demagnetization parameters are selected from the demagnetization pattern storage module.
[0018] Beneficial effects: This invention provides a frequency-modulated attenuation triangular wave demagnetization system and method for accelerator deflection magnets. It employs a triangular wave with a linearly varying current over time within each half-cycle as the demagnetization waveform, and applies dual dynamic control to it, with amplitude decreasing over time and frequency increasing over time. Compared to existing sinusoidal wave demagnetization schemes, the inherent linear current change rate of the triangular wave ensures a uniform and controllable rate of change in the magnetic domain flipping process of the iron core. This avoids the nonlinear defects of the sinusoidal wave, such as excessively large change rate at the zero-crossing point and excessively small change rate at the peak point, thus achieving more precise and uniform demagnetization trajectory control. The smooth characteristic of the triangular wave without edge overshoot effectively reduces the voltage stress impact on the excitation power supply switch and coil insulation layer, significantly extending the equipment's service life. While ensuring high current output capability, it avoids the induced voltage exceeding the power supply voltage limit. The frequency gradually increases in the later stages of demagnetization, maintaining sufficient magnetic domain disturbance energy to eliminate small residual magnetism regions even after the current amplitude has decreased to a small value. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the composition of the frequency conversion attenuation triangular wave demagnetization system for accelerator deflection magnets provided in a specific embodiment of the present invention. Figure 2 This is a flowchart of the frequency conversion attenuation triangular wave demagnetization system method for accelerator deflection magnets provided in a specific embodiment of the present invention; Figure 3 This is a schematic diagram of the current waveform during the 0s-0.2s period of the triangular wave provided in a specific embodiment of the present invention; Figure 4 This is a schematic diagram of the current waveform during the 0s-10s period of the triangular wave provided in a specific embodiment of the present invention. Detailed Implementation
[0020] To enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Based on the embodiments in this application, other similar embodiments obtained by those skilled in the art without creative effort should all fall within the scope of protection of this application. Furthermore, directional terms mentioned in the following embodiments, such as "up," "down," "left," and "right," are only for reference to the directions in the accompanying drawings; therefore, the directional terms used are for illustrative purposes and not for limiting the invention.
[0021] The present invention will be further described below with reference to the accompanying drawings and preferred embodiments.
[0022] Example 1 Please see Figure 1 This embodiment provides a frequency conversion attenuation triangular wave demagnetization system for accelerator deflection magnets. The system mainly includes an excitation power supply module 100, a demagnetization pattern storage module 200, a control circuit module 300, and a mode switching module 400. The modules work together to achieve efficient demagnetization control of the deflection magnet excitation coil.
[0023] The excitation power supply module 100 is used to provide programmable bidirectional current to the excitation coil of the deflecting magnet. Specifically, the excitation power supply module 100 typically adopts a programmable DC power supply architecture with four-quadrant operation capability, capable of outputting both positive and negative current to meet the requirements of bipolar demagnetization. The internal power stage may include an H-bridge inverter circuit composed of IGBTs or MOSFETs, which, in conjunction with high-frequency PWM modulation technology, can quickly adjust the output current according to an externally given reference signal. In this embodiment, the excitation power supply module 100 is directly connected to both ends of the excitation coil of the deflecting magnet, serving as an energy conversion execution unit that converts control commands into actual magnetic field excitation.
[0024] The demagnetization pattern storage module 200 is used to store preset demagnetization current waveform parameters. The stored content defines one or more sets of parameters for the complete demagnetization process, such as initial current amplitude, decay time constant, initial frequency and frequency change rate. These parameters are obtained in advance through theoretical calculation or experimental calibration, and characterize the optimal demagnetization waveform features under different working conditions. By parameterizing the waveform and storing it independently, it can flexibly adapt to the demagnetization needs of different types of magnets or different treatment scenarios without modifying the underlying code.
[0025] The control circuit module 300 is connected to both the excitation power supply module 100 and the demagnetization pattern storage module 200. In demagnetization mode, the control circuit module 300 reads parameters from the demagnetization pattern storage module 200 and controls the excitation power supply module 100 to output a frequency-modulated attenuated bipolar triangular wave demagnetization current. Electrically, the control circuit module 300 can access the demagnetization pattern storage module 200 via the data bus to obtain parameters and send real-time current setpoints to the excitation power supply module 100 via an analog output channel or digital communication interface. When the system is triggered into demagnetization mode, the control circuit module 300 generates a series of discrete current target points according to the read parameters and a predetermined algorithm, forming a complete demagnetization waveform sequence, and drives the excitation power supply module 100 to strictly execute this sequence.
[0026] The mode switching module 400 is used to control the system to switch between beam deflection mode and demagnetization mode. Specifically, beam deflection mode is the normal operating state of the accelerator, in which the excitation power supply outputs a specific scanning current to guide the particle beam to irradiate the target area. Demagnetization mode is the reset state after treatment intervals or after treatment, which aims to eliminate residual magnetism in the iron core to ensure the accuracy of the next beam output. When performing mode switching, the mode switching module 400 must follow strict safety interlock logic. For example, it is only allowed to switch to demagnetization mode when it is confirmed that the beam has been completely turned off, the gantry position is safe, and there is no emergency fault signal, and vice versa. This effectively prevents accidental beam output during demagnetization or accidental triggering of demagnetization during treatment, ensuring the safety of equipment and personnel.
[0027] The following specific example illustrates the safety interlocking mechanism of the mode switching module 400 in this embodiment: The mode switching module 400 internally maintains a state machine, whose state transitions are strictly controlled by preset safety interlock rules. When the system switches from beam deflection mode to demagnetization mode, the following conditions must all be met simultaneously before the mode switching module 400 is allowed to issue a switching enable signal: (a) Beam shutdown confirmation: The mode switching module 400 receives a feedback signal from the beam monitoring device (such as the beam transformer) to confirm that the accelerator beam extraction system has been completely shut down and there is no actual beam output; (b) Treatment termination confirmation: The mode switching module 400 receives the status word of the treatment control system and confirms that the current treatment plan has ended normally, or the operator has issued a pause command, or the system interlock has triggered a treatment interruption; (c) Scanning current zeroing confirmation: The mode switching module 400 reads the current feedback value of the excitation power supply module 100 to confirm that the scanning current output has dropped to zero and the power supply output status is idle; (d) High voltage safety confirmation: If there is an auxiliary high voltage circuit related to the deflection magnet in the system, the mode switching module 400 confirms that the high voltage has been reduced to a safe level.
[0028] Conversely, when the system switches from demagnetization mode back to beam deflection mode, all of the following conditions must be met: (a) Demagnetization completion confirmation: the demagnetization procedure has been fully executed and the demagnetization current has returned to zero; (b) System self-test passed: the excitation power supply module 100, control circuit module 300, and key components such as the excitation coil temperature are normal; (c) Operator reset: the operator manually confirms the completion of demagnetization and releases the demagnetization state via the control panel; (d) Beam prohibition released: the beam prohibition signal that was effective during demagnetization has been revoked. If any condition is not met or an abnormality occurs during the switching process (such as demagnetization timeout or coil overheating), the system automatically enters a safe pause state, maintains the demagnetization current at zero, cuts off the excitation power supply output enable, and issues an alarm until manual intervention is confirmed. Through the above two-way interlocking mechanism, the safety hazards of accidental beam ejection during demagnetization or accidental triggering of demagnetization during treatment are avoided at the system level.
[0029] In this embodiment, the triangular wave demagnetizing current changes linearly with time within each half-cycle, its current amplitude decreases with time, and its frequency increases with time. For example... Figure 3 The waveform diagram shown intuitively illustrates the morphological characteristics of the current. Within each half-cycle, the current changes linearly with time, meaning the rate of change is constant within each rising or falling edge interval. This is distinctly different from the nonlinear characteristics of a sine wave, where the rate of change is maximum at the zero-crossing point and zero at the peak. It also differs from the impact characteristic of a square wave, which tends towards infinity at the transition edge. The constant linear rate of change makes the domain flipping process within the ferromagnetic material more uniform and controllable, reducing eddy current heating and electrical stress impact on the coil insulation caused by drastic changes in magnetic flux. Simultaneously, the waveform exhibits an overall trend of amplitude attenuation and frequency increase. Figure 4 It can be seen that the envelope of the current amplitude gradually shrinks towards the zero axis over time, which corresponds to the gradual decrease in the area of the hysteresis loop, a necessary condition for demagnetization. At the same time, the oscillation period of the waveform gradually shortens, that is, the frequency increases monotonically with time. This frequency conversion solves the contradictory requirements in the demagnetization process. In the initial high-current stage, the lower frequency limits the magnitude of the induced electromotive force, preventing the excitation power supply from failing to output sufficient current due to voltage saturation. In the final low-current stage, the higher frequency enhances the disturbance energy on the small residual magnetism region, ensuring that the residual magnetism can be eliminated to an extremely low level. Through the combination of the above structure and waveform, a better demagnetization effect than the traditional sine wave or square wave scheme is achieved without increasing the additional hardware cost.
[0030] In one implementation method, the amplitude of the triangular wave demagnetizing current decays exponentially, satisfying the current amplitude in the nth half-cycle. The frequency increases linearly with time, satisfying... ;in, The initial current amplitude, The decay time constant, The initial frequency, The rate of change of frequency, For the current cycle, This is the half-cycle sequence number. For time.
[0031] It should be noted that the initial current amplitude is the energy starting point of the demagnetization process. Its value must be greater than the absolute value of the maximum excitation current reached by the deflecting magnet in the previous beam deflection mode to ensure that the first half-cycle can drive the iron core into a deep saturation state, thereby eliminating the uncertainty of the historical magnetization path. The decay time constant characterizes the release rate of demagnetization energy and determines the speed of hysteresis loop area contraction. If it is too large, the demagnetization time will be too long. If it is too small, the demagnetization may be incomplete due to the lag of magnetic domain flipping. It is usually obtained through experimental calibration based on the iron loss characteristics and heat capacity of the magnet. The initial frequency and the frequency change rate together constitute the core of the frequency conversion control, which solves the technical problems of power supply voltage saturation in the high current stage and the elimination of small residual magnetism in the low current stage during the demagnetization process.
[0032] The main principle of the above technical solution is as follows: According to the law of electromagnetic induction, the induced electromotive force at both ends of the excitation coil... ,in As the coil inductance, the current amplitude is relatively large in the initial stage of demagnetization. If high-frequency excitation is used, the rate of change of current will be... The extremely high initial frequency can easily cause the induced electromotive force to exceed the voltage output limit of the excitation power supply module 100, resulting in waveform clipping distortion or even triggering overvoltage protection. Therefore, a lower initial frequency should be set initially. ,like Figure 3 As shown, within a time window of 0 to 0.2 seconds, the rising and falling edges of the triangular wave are relatively gentle, i.e., the slope is... The current amplitude is relatively small, thus clamping the induced voltage within the power supply safety margin and ensuring the integrity of the large current waveform. As the demagnetization process progresses, the current amplitude... Decays exponentially, that is And frequency As the current increases linearly with time, for a triangular wave, the amplitude of its rate of change is approximately... Therefore, the peak value of the induced electromotive force Although the frequency increases over time, the product of the two is suppressed in the later stage of demagnetization because the current amplitude decays rapidly according to an exponential law. The induced electromotive force can still be kept within the voltage output limit of the excitation power supply module 100. More importantly, in the late stage of demagnetization, although the macroscopic current is very small, there are still a large number of pinned micro magnetic domains and domain walls inside the iron core. This requires higher frequency magnetic field disturbances to achieve reversal. The triangular wave itself contains rich odd harmonic components. As the fundamental frequency gradually increases in the later stage of demagnetization, the frequencies of each odd harmonic shift upward as a whole, further enhancing the effect of high frequency disturbances on micro magnetic domains, enhancing the stirring effect on the stubborn residual magnetization region, and ensuring that the final residual magnetization level can be reduced to an extremely low value.
[0033] Below is a set of specific example parameters and their corresponding waveform generation logic: In this example, the initial current amplitude is set. decay time constant =2.5s, initial frequency Rate of change of frequency =3Hz / s, when the control circuit module 300 performs demagnetization, it does not directly output a continuous analog signal, but performs discretization calculation according to the power supply control cycle (e.g., 100μs). The specific steps include: first, initializing the half-cycle number n=1, the cumulative time t=0, and the polarity flag. Secondly, calculate the instantaneous frequency based on the current moment. This allows us to obtain the target duration of the current half-cycle. Next, calculate the target peak value for the current half-cycle. Then, within each control cycle of the current half-cycle, the current setpoint is calculated using a linear interpolation formula. The current setpoint refers to the target current value (reference signal) output by the control circuit module 300 to the excitation power supply module in each control cycle. Based on this setpoint, the excitation power supply module 100 makes the actual output current track the target value through internal closed-loop regulation (such as PI regulation). Since digital control is discrete, the control circuit does not output a continuous curve, but provides a target current point every control cycle (e.g., 100μs). These discrete target points constitute a complete demagnetization waveform sequence. Therefore, the current setpoint is the instantaneous current target value in the discrete control cycle. Because the current changes linearly with time within each half-cycle of the triangular wave demagnetization current, but the control cycle is discrete, given the current at the start and end of the half-cycle, the current value at any control cycle in the middle can be accurately obtained through linear interpolation.
[0034] For the rising segment, the current changes linearly from the end of the first half of the cycle to... For the falling segment, the current flows from... The linear change continues until the start of the next half-cycle, ensuring a constant slope between each control point; at the end of the current half-cycle, the cumulative time is updated. Half-cycle number Invert the polarity flag P and repeat the above calculation process until the target peak value is calculated. If the current is less than the preset termination threshold (e.g., 1A) or the total duration exceeds the safety limit, the control circuit module 300 can accurately generate a frequency-modulated attenuation triangular wave sequence that conforms to the above mathematical model through this discretized recursive algorithm, driving the excitation power supply module 100 to output an ideal demagnetizing current to the deflection magnet excitation coil.
[0035] In one implementation, the control circuit module 300 reads the maximum excitation current value of the deflecting magnet in the previous beam deflection mode, and sets the initial current amplitude according to the maximum excitation current value, so that the initial current amplitude is greater than the absolute value of the maximum excitation current.
[0036] It should be noted that when the deflecting magnet finishes its previous beam deflection task, the core has a residual magnetism related to the direction and magnitude of the last excitation current. If the initial peak value of the demagnetizing current fails to exceed the absolute value of the previous maximum excitation current, the magnetization state of the core may only reciprocate within a local secondary hysteresis loop, failing to enter a deep magnetic saturation region. This results in the original magnetization history not being completely overwritten and reset. Therefore, by forcibly setting the initial current amplitude... (For example, take) This ensures that the iron core enters a deep saturation state during the first half-cycle of the demagnetization process, thereby eliminating the uncertainty of the historical magnetization path and establishing a unified and reliable physical reference point for subsequent decay to zero magnetization state along a predetermined trajectory.
[0037] Furthermore, the demagnetization pattern storage module 200 stores multiple sets of demagnetization parameter combinations corresponding to different operating conditions. Each set of demagnetization parameter combinations includes the initial current amplitude. decay time constant Initial frequency and frequency change rate The control circuit module 300 acquires the operating parameters of the deflecting magnet in the previous beam deflection mode, determines the current operating condition type based on the operating parameters, and selects the corresponding set from multiple sets of demagnetizing parameter combinations for demagnetizing control according to the preset correspondence between the operating condition type and the demagnetizing parameter combination.
[0038] In its implementation, upon receiving the demagnetization trigger signal, the control circuit module 300 first accesses the system operation record database or real-time register to extract key quantitative indicators characterizing the previous operating state, including but not limited to the maximum scanning current value, average beam energy, cumulative beam output duration during this treatment, and abnormal interruption flags within the last time window. Subsequently, the control circuit module 300 performs matching calculations between these extracted quantitative indicators and preset operating condition judgment logic to automatically identify the specific operating condition of the current device and loads the waveform parameter set optimally matched to that operating condition from the demagnetization pattern storage module 200. This data-driven adaptive parameter selection method avoids the risk of misoperation that may arise from manually switching gears based on human experience in traditional technologies. It also overcomes the technical deficiency that a single fixed parameter cannot take into account all operating scenarios, achieving a dynamic balance between demagnetization efficiency and demagnetization effect under different operating conditions.
[0039] In this embodiment, the different operating conditions include at least the first operating condition, the second operating condition, the third operating condition, and the fourth operating condition. The parameter configurations corresponding to each operating condition have significant differences. The priority of each operating condition is as follows: the fourth operating condition has the highest priority, followed by the third operating condition, and the first and second operating conditions have the lowest priority. When the same operating state meets multiple operating conditions at the same time, the demagnetization parameters are determined according to the operating condition with the highest priority.
[0040] Specifically, the first operating condition is when the maximum scanning current in the previous beam deflection mode is greater than or equal to the preset current threshold, which usually corresponds to a large scanning current scenario. Under this condition, since the magnet has undergone high-intensity magnetization, the remanence level is high and the magnetic domain pinning is strong. Therefore, the initial current amplitude corresponding to the first operating condition is set to be greater than the initial current amplitude corresponding to the second operating condition to ensure sufficient demagnetizing driving force. At the same time, considering that the current amplitude is large at this time, in order to prevent the induced electromotive force from exceeding the voltage limit of the excitation power supply module 100, the initial frequency corresponding to the first operating condition is set to be lower than the initial frequency corresponding to the second operating condition. The risk of power supply overvoltage is avoided by reducing the initial current change rate.
[0041] In contrast, the second operating condition is when the maximum scanning current in the previous beam deflection mode is less than the preset current threshold, corresponding to small scanning current or imaging verification scenarios. Under this condition, the residual magnetism level is relatively low, so a smaller initial current amplitude can be used to save energy and time. At the same time, since the current amplitude is small and the power supply voltage margin is sufficient, the initial frequency can be increased and a smaller decay time constant can be used to quickly eliminate weak residual magnetism by using high-frequency perturbation, significantly improving the equipment turnover efficiency during treatment intervals.
[0042] The third operating condition is when the cumulative beam output time of this beam deflection mode is greater than or equal to a preset time threshold, corresponding to the heat accumulation scenario after prolonged continuous irradiation. This condition has higher priority than the first and second operating conditions. When the third operating condition is simultaneously satisfied with the first or second operating condition, the third operating condition is prioritized. Under this condition, the temperature of the magnet coil and iron core rises, and the thermal excitation effect may cause some magnetic domains to be in a metastable state or enhance the pinning effect, resulting in a decrease in the demagnetization effect of the conventional parameters. To address this, the control circuit module 300 increases the decay time constant of the first or second operating condition, based on the parameters determined according to the previous maximum scanning current, to a value greater than the preset value of the decay time constant corresponding to the second operating condition. This slows down the release rate of macroscopic demagnetization energy, giving the heated magnetic domains more sufficient time to flip and respond, preventing thermal residual magnetism caused by excessively rapid demagnetization. The initial current amplitude and initial frequency, and other parameters, use the corresponding basic operating condition parameters.
[0043] The fourth operating condition is the condition when an abnormal interruption signal is detected, corresponding to interlock emergency stop or fault shutdown scenarios. This condition has a higher priority than the third, first, and second operating conditions. When the same operating state meets multiple conditions at the same time, it is handled as the fourth operating condition. In such scenarios, the magnet may remain in any unknown magnetization state, and there may be abnormal magnetization distribution caused by transient impacts. To ensure safe system reset, the initial current amplitude corresponding to the fourth operating condition is taken as a preset proportion (e.g., 80%~100%) of the rated output current of the excitation power supply, without depending on the previous actual current value. Its decay time constant, initial frequency, and frequency change rate are taken as preset safety values. This conservative parameter strategy ensures that even in the most extreme unknown state, the demagnetizing current still has enough energy to cover the entire possible magnetization space, thereby reliably restoring the magnet to a safe reference state.
[0044] The following examples of specific parameter mappings illustrate the parameter selection mechanism described above. The values below are for illustrative purposes only and should be calibrated according to the characteristics of the deflecting magnet and the limitations of the excitation power supply in actual applications: Assuming the preset current threshold is 300A, the time threshold is 30 minutes, and the rated output current of the excitation power supply is 800A; When the control circuit module 300 detects that the previous maximum scan current was 450A (≥300A), and no emergency stop signal is detected, and the cumulative beam output time is less than 30 minutes, it determines it to be the first operating condition and automatically loads the first operating condition parameter combination: (Approximately 1.15 times the previous maximum current). s, , ; When the previous maximum scan current is detected to be 150A (<300A), no emergency stop signal is detected, and the cumulative beam exit time is less than 30 minutes, the system is determined to be in the second operating condition, and the parameter combination for the second operating condition is automatically loaded: (Approximately 1.2 times the previous maximum current). , , ; When the cumulative beam exit time of the current beam deflection mode is identified as 45 minutes (≥30 minutes), regardless of the previous maximum scan current, it is preferentially determined to be the third operating condition. For example, if the previous maximum scan current was 450A, which is based on the first operating condition, then the third operating condition will adjust the attenuation time constant based on the parameters of the first operating condition. Increase it to 4.0s, and keep the other parameters as in the first operating condition. , , , ; When an emergency stop signal is detected, the system is directly classified as the fourth operating condition and the parameters for the fourth operating condition are loaded: the initial current amplitude is taken as a preset ratio of the rated output current, for example, 600A (75% of the rated 800A). , , .
[0045] In one specific embodiment, a safety protection module is also included to perform at least one of the following protections: demagnetizing current amplitude limiting protection, excitation coil temperature rise monitoring and protection, abnormal interlock power-off protection, beam current prohibition protection during demagnetization, and demagnetizing timeout protection.
[0046] It should be noted that the safety protection module is logically independent of the normal waveform generation logic of the control circuit module 300, or is embedded in it as the highest priority interrupt service routine. Its function is to build a multi-dimensional safety boundary for the demagnetization process. Since the demagnetization mode involves large current impact, high frequency magnetic field transformation and state switching with the beam system, the failure of any single link may lead to equipment damage or radiation safety accidents. Therefore, this embodiment uses a hardware and software interlocking mechanism to ensure that the system can respond quickly and safely in abnormal conditions.
[0047] For demagnetizing current amplitude limiting protection, the safety protection module samples the output current feedback value of the excitation power supply module 100 in real time and compares it with the preset safe current threshold. This safe current threshold is usually set to 110% to 120% of the rated output current of the excitation power supply, which is higher than the maximum demagnetizing current amplitude that may occur under various operating conditions, and leaves a safety margin to tolerate normal transient fluctuations but intercept abnormal overcurrents. When the output current is detected to exceed the threshold, the safety protection module immediately sends a limiting command to the excitation power supply module 100 or directly blocks the PWM drive signal to clamp the current within a safe range or forcibly shut down the output, thereby preventing current runaway caused by control algorithm divergence, digital-to-analog conversion errors or power device short circuits, and avoiding mechanical deformation of the deflection magnet excitation coil due to excessive electromagnetic force or insulation breakdown due to Joule heating.
[0048] For monitoring and protecting the excitation coil temperature rise, the safety protection module is connected to a temperature sensor arranged on the surface or in the slot of the deflector magnet excitation coil to acquire coil temperature data in real time. Considering that the magnetic properties of ferromagnetic materials are sensitive to temperature and that long-term demagnetization will produce significant heat accumulation, this embodiment sets up a graded response strategy: when the coil temperature reaches the first warning threshold (e.g., 80°C), the system issues an audible and visual alarm and records a log to alert the operator; when the temperature continues to rise to the second cut-off threshold (e.g., 120°C, below the insulation class limit), the safety protection module forcibly terminates the demagnetization process and cuts off the excitation power output. This is not only to prevent the coil from overheating and burning out, but also to avoid accelerating insulation aging and changing the magnetic properties of ferromagnetic materials due to excessively high temperatures, thereby affecting the repeatability of the demagnetization effect and the lifespan of the equipment.
[0049] For abnormal interlock power failure protection, the safety protection module receives external interlock signals from the accelerator main control system, water cooling system, and high-voltage power supply. Once an abnormal event is detected, such as insufficient cooling water flow, an open cabinet door, high-voltage arcing, or the emergency stop button being pressed, the safety protection module will trigger a hardware-level power failure sequence within a very short time. It is particularly important to note that this power failure is not a simple open-circuit disconnection, but rather controls the excitation power supply module 100 to switch to an active discharge circuit or to release energy in a controlled manner through a freewheeling diode, to prevent the sudden open circuit of the inductive load from generating a high-voltage spike of several thousand volts that could damage the power devices.
[0050] To address beam prohibition protection during demagnetization, a hard-wired interlock interface is established between the safety protection module and the accelerator's beam control system. Upon entering demagnetization mode, the safety protection module actively outputs a beam prohibition signal to the control terminal of the electron gun or ion source, physically blocking particle beam generation. Simultaneously, the module continuously monitors the signals from the beam transformer or Faraday cup. If any non-zero beam signal is detected during demagnetization, it is considered a serious safety violation, immediately triggering the highest-level interlock shutdown, thus avoiding the risk of accidental beam ejection during demagnetization when the magnetic field changes drastically and the beam trajectory is unpredictable.
[0051] For demagnetization timeout protection, the safety protection module has a built-in independent timer that accumulates the running time from the first control cycle of the demagnetization waveform output. If the duration of the demagnetization process exceeds the preset maximum allowable time (e.g., 1.5 times the theoretical demagnetization time calculated based on the operating parameters), even if the current has not decayed to the preset termination threshold, the safety protection module will determine that the program has run away, the sensor has failed, or the magnet has an abnormally high coercivity defect. It will then forcibly stop the output and report a timeout fault code, effectively preventing indefinite high current loading caused by software dead loops or hardware feedback loss, and avoiding the equipment from being subjected to unnecessary electrical and thermal stress for a long time in an unattended state.
[0052] In one specific embodiment, the triangular wave demagnetizing current is also superimposed with a DC bias component that decays over time, so that the absolute values of the peak value of the positive half-cycle and the valley value of the negative half-cycle are not equal, forming an asymmetric triangular wave to compensate for the asymmetric remanence of the deflecting magnet.
[0053] It should be noted that the purpose of adopting the above technical solution is to solve the complex residual magnetism problem caused by unidirectional magnetization history or asymmetric magnetic circuit structure. Specifically, in the actual operation of medical accelerators, the deflection magnet may be in a single-polarity scanning state for a long time, or the positive and negative magnetic characteristics may not be completely consistent due to factors such as the processing tolerance of the magnetic core material and assembly stress. In this case, a net DC magnetization component will remain inside the iron core, namely asymmetric residual magnetism. If only a symmetrical triangular wave with strictly equal positive and negative peaks is used for demagnetization, although the area of the alternating hysteresis loop can be eliminated, it cannot effectively cancel this unidirectional bias component, causing the magnetic field zero point to drift after demagnetization, which in turn affects the repeatability accuracy of the beam position. In this embodiment, a controllable DC bias component is superimposed on the triangular wave to artificially construct an asymmetric excitation waveform with unequal peaks in the positive and negative half-cycles. The reverse coercive force generated by this waveform is used to actively neutralize the asymmetric residual magnetism, thereby accurately pulling the magnetization state to the true zero magnetization point.
[0054] In its specific implementation, when generating the triangular wave sequence, the control circuit module 300 superimposes a time-varying offset onto the target current value in each control cycle. This offset is superimposed on the instantaneous value of the entire triangular wave current, causing the absolute values of the peak value of the positive half-cycle and the valley value of the negative half-cycle to be unequal, forming an asymmetrical triangular wave. To adapt to the physical law that remanence gradually weakens during the demagnetization process, this offset is not a constant value, but is configured to decay exponentially with time, for example, satisfying: in This is the initial offset magnitude. The offset decay time constant is crucial for this time-varying decay design. In the early stage of demagnetization, a large offset can provide sufficient force to overcome strong asymmetric remanence. As demagnetization proceeds, the asymmetric component gradually weakens, and the offset also decreases automatically, avoiding the introduction of new reverse remanence due to excessive offset in the final stage.
[0055] Regarding the initial offset magnitude Regarding the determination of polarity direction, the control circuit module 300 can adaptively set based on historical data of the deflecting magnet in the previous beam deflection mode. For example, the system records the current direction and duration at the end of the previous scan. If a long-term positive high-current scan is detected in the previous scan, it is determined that there is positive asymmetric remanence, and a negative initial offset amplitude is automatically loaded for compensation; conversely, the same applies. In addition, the asymmetric remanence distribution spectrum under different working conditions can be calibrated in advance through offline experiments, and a mapping lookup table of the previous maximum current-offset can be established for the control circuit module 300 to call online. In a more advanced implementation, if the system is equipped with a magnetic field monitoring module, the required compensation offset can be directly calculated based on the measured initial remanence polarity to achieve closed-loop accurate compensation. This parameter generation mechanism based on historical data or real-time feedback enables the asymmetric triangular wave to flexibly adapt to various complex remanence scenarios, rather than relying on fixed empirical values.
[0056] The following example illustrates the implementation details of asymmetric triangular wave demagnetization: Assuming the deflecting magnet underwent a prolonged forward high-current (+450A) scan in the previous beam deflection mode, and the system operation record shows that the cumulative forward excitation time far exceeds the reverse excitation time, the control circuit module 300 determines, based on this historical data, that there is positive asymmetric residual magnetism inside the iron core, and sets the initial current amplitude. Then, the initial DC bias component is set to a negative value, i.e. =-30A, offset decay time constant =2.0s, during the demagnetization process, the DC bias current follows... =-30· The pattern decays over time; At the 0th second of demagnetization (the starting moment), the target peak value of the positive half-cycle of the triangular wave is: The target trough value for the negative half-week is The peak values of the positive and negative half-cycles are not equal, forming an asymmetrical waveform. The reverse coercivity generated by the larger negative trough actively neutralizes the positive asymmetrical remanence. As demagnetization proceeds to the 2nd second, the offset has decayed to approximately [value missing]. At this time, the peak value of the positive half-cycle is approximately { The negative half-week trough is approximately The degree of asymmetry is significantly reduced, which matches the physical process of gradually eliminating the asymmetric residual magnetism inside the iron core. By the end of the demagnetization period (such as after the 8th second), the offset has decayed to ≈-0.55A, close to zero, the waveform recovers to an approximately symmetrical triangular wave, ensuring that no reverse residual magnetism is introduced due to excessive bias; In actual deployment, the initial offset amplitude under different operating conditions It can be pre-calibrated through offline experiments. For example, during the equipment debugging phase, after applying unidirectional excitation of +100A, +200A, +300A, +400A, and +500A to the deflection magnet respectively, the residual magnetic field bias is measured. A mapping lookup table between the previous maximum excitation current and the required compensation offset amplitude is established and pre-loaded into the demagnetization pattern storage module 200 for online call by the control circuit module 300, thereby achieving precise adaptation to different asymmetric residual magnetization scenarios.
[0057] In one specific embodiment, the system further includes a magnetic field monitoring module for measuring the residual magnetism of the deflecting magnet in real time and outputting the measured residual magnetism value; the control circuit module 300 is connected to the magnetic field monitoring module, receives the measured residual magnetism value, and dynamically adjusts the decay time constant and / or frequency of the triangular wave demagnetizing current according to the deviation between the measured residual magnetism value and the preset demagnetizing reference value.
[0058] It should be noted that the above-mentioned technical features aim to solve the model mismatch problem caused by batch differences, temperature drift, or aging of magnet materials, providing a more reliable guarantee for residual magnetism elimination in high-precision radiotherapy scenarios. Specifically, the magnetic field monitoring module includes a high-sensitivity magnetic field sensor in hardware. Its installation position is usually located at a specific reference point on the surface of the iron core or the center of the magnetic pole air gap of the deflection magnet excitation coil, so as to directly sense the actual magnetic field strength in the effective working area. The analog voltage signal output by the sensor is sampled by a high-precision analog-to-digital converter and transmitted to the control circuit module 300 in real time through a digital bus or dedicated IO interface. Unlike the traditional solution that relies solely on current feedback, this embodiment directly uses the magnetic field as the controlled variable, eliminating the current-magnetic field nonlinear error caused by the temperature rise of the excitation coil resistance, so that the demagnetization control is truly aligned with the physical essence of beam deflection accuracy.
[0059] In the closed-loop control process, the control circuit module 300 maintains a preset demagnetization reference trajectory. This trajectory characterizes the theoretically expected value of remanence decay over time under ideal parameters, which can typically be calculated from the initial remanence measurement according to an exponential law. During each control cycle or at a specific sampling node, the control circuit module 300 calculates the measured residual magnetism value. Compared with the preset demagnetization reference value Deviation between Based on the magnitude and direction of this deviation, a dynamic parameter adjustment strategy is executed: when When the actual demagnetization process lags behind expectations, it indicates that the resistance to domain flipping within the core is greater than the model's prediction. In this case, the control circuit module 300 automatically increases the decay time constant (e.g., by 10%~20%) or temporarily reduces the frequency change rate to prolong the current demagnetization period, giving the domains a more sufficient response window. Conversely, when... When the absolute value exceeds a certain tolerance, it indicates that the demagnetization process is ahead of schedule. The system can appropriately reduce the decay time constant or increase the frequency to shorten the overall time consumption while ensuring the demagnetization quality. This real-time adaptive mechanism enables the system to be compatible with the characteristic dispersion of different batches of magnets and can still maintain the optimal demagnetization performance when the magnetic characteristics slowly evolve due to long-term operation of the equipment.
[0060] Regarding the determination of the termination of the demagnetization process, this embodiment abandons the crude approach of simply relying on a fixed duration and adopts a precise criterion based on a magnetic field threshold. Specifically, when the measured residual magnetism value... If the magnetism falls below a preset residual magnetism threshold for N consecutive times (e.g., N=5, to prevent false triggering due to noise interference), the magnetism threshold will be lower than the threshold value. When the control circuit module 300 determines that demagnetization is complete, it stops waveform output. This residual magnetism threshold... The setting is not an empirical value, but is strictly derived based on the tolerance of beam position accuracy to ensure that the demagnetization endpoint directly serves the accuracy requirements of clinical treatment. The calculation logic is as follows: First, based on the requirements of high-precision modes such as accelerator stereotactic radiotherapy, the maximum allowable beam spot position deviation at the isocenter point is determined. (For example, not exceeding ±0.5mm). Secondly, using the magnetic field-deflection angle conversion coefficient k and the deflection radius R of the deflecting magnet, a mapping relationship between position deviation and remanence is established. Finally, a safety factor S (usually taken as 3~5) is introduced to obtain the final remanence threshold. For example, for a system with a deflection radius R = 0.5 m and a conversion factor k = 0.3 rad / T, if the allowable position deviation is 0.5 mm, according to geometric relationships, the remanence... The resulting positional deviation is From this, it can be deduced that the theoretical maximum allowable remanence is approximately When the safety factor S=5, the preset residual magnetism threshold is... Set as (Right now Converted to relative deviation, if the reference magnetic field corresponding to applying a small current of 50A to the deflecting magnet after demagnetization is 0.6T, then the relative deviation caused by residual magnetism should not exceed [a certain value]. The control circuit module 300 will... =6.7× T is preset as the threshold for determining the completion of demagnetization. When the measured residual magnetism value of the magnetic field monitoring module is lower than this threshold multiple times consecutively, the demagnetization is determined to be complete. Through this design of deducing control parameters from clinical indicators, the quantitative verification of the demagnetization effect is achieved. Although this embodiment provides a specific implementation method based on exponential reference trajectory and linear deviation adjustment, in other variations, advanced control algorithms such as PID control, fuzzy logic, or neural networks can also be used to process the magnetic field feedback signal, as long as the core is to use the measured magnetic field information to correct the demagnetization waveform parameters.
[0061] The following example illustrates the execution details of dynamic parameter adjustment during closed-loop control: Let the initial residual magnetism measurement value be... The value is 50 Gauss, and the preset demagnetization reference trajectory is set according to... (Right now The magnetization was generated in 2.5 seconds. At the second second of the demagnetization process, the magnetic field monitoring module measured a residual magnetism of 12 Gauss, while the theoretical value calculated based on the reference trajectory should be 50 Gauss. The demagnetization time constant τ is approximately 22.5 Gauss. At this point, the deviation ΔB = |12| - |22.5| = -10.5 Gauss < 0, indicating that the actual demagnetization process is ahead of expectations. The control circuit module 300 automatically reduces the decay time constant τ from the current 2.5s to 2.0s, or appropriately increases the frequency change rate. This is to speed up the demagnetization process and shorten the overall time. Conversely, if the measured remanence at the 2nd second is 28 Gauss, the deviation is... This indicates that the actual demagnetization lags behind expectations, and the resistance to domain flipping inside the iron core is greater than the model prediction. At this time, the control circuit module 300 automatically increases the decay time constant τ to 3.0s, or temporarily reduces the frequency to prolong the demagnetization time of the current stage, giving the domains a more sufficient response window. Regarding the determination of demagnetization termination, this example sets it to occur when the measured residual magnetism value is lower than the preset residual magnetism threshold for 5 consecutive samples (sampling interval of 100ms). When the magnetic field strength is 0.67 Gauss, the control circuit module 300 determines that demagnetization is complete and terminates the waveform output in advance. This closed-loop control mechanism based on the feedback of the measured magnetic field enables the demagnetization process to adapt to batch differences in magnet characteristics and long-term operation, optimizing the demagnetization time while ensuring the quality of demagnetization.
[0062] Example 2 Please see Figure 2 This embodiment provides a frequency-modulated attenuation triangular wave demagnetization method for accelerator deflection magnets, which includes the following steps: Step S100: After the deflecting magnet completes the beam deflection, the system is switched from beam deflection mode to demagnetization mode via the mode switching module. In practice, mode switching is not simply a matter of flipping a status flag; it requires certain pre-condition safety interlocks to be met before triggering. For example, before executing the mode switching command, the control circuit module 300 must sequentially confirm that the beam extraction system is completely shut down and the beam monitoring device feedback is zero, the output current of the excitation power supply module 100 has steadily decreased to zero, and no emergency shutdown or high-voltage fault signals are detected. Only after all the above safety conditions have been verified can the system switch from normal beam deflection mode to demagnetization mode, ensuring the safety of the method execution process.
[0063] Step S200: The control circuit module reads the preset demagnetization parameters, i.e., the demagnetization current waveform parameters, from the demagnetization pattern storage module.
[0064] As a preferred implementation, the above steps are further refined as follows: Obtaining the operating parameters of the deflecting magnet in the previous beam deflection mode; determining the current operating condition type based on the operating parameters; selecting the corresponding demagnetizing current waveform parameters from the demagnetizing pattern storage module according to the preset correspondence between the operating condition type and the demagnetizing parameter combination. Specifically, within the first time window after entering the demagnetizing mode, the control circuit module 300 first accesses the operating record buffer to extract key quantitative indicators characterizing the previous treatment state, such as maximum scanning current, average beam energy, cumulative beam output duration, and interruption flags; subsequently, these real-time extracted data are substituted into a preset operating condition determination algorithm for matching calculation to determine the current operating condition category (such as high current, low current, long-term irradiation, or emergency stop); finally, based on the matching results, a set of waveform parameters optimally matched to the operating condition is indexed from the parameter library and loaded. , , , This ensures that the demagnetization strategy can dynamically adapt to the actual residual magnetic state after each treatment, avoiding the problems of incomplete demagnetization or low efficiency caused by blindly applying fixed parameters.
[0065] Step S300: Based on the read demagnetizing current waveform parameters, control the excitation power supply module to output a frequency-modulated attenuated bipolar triangular wave demagnetizing current to the excitation coil of the deflecting magnet; wherein, the triangular wave demagnetizing current changes linearly with time in each half-cycle, its current amplitude decreases with time, and its frequency increases with time.
[0066] In its implementation, the control circuit module 300 uses the parameter set loaded in step S200 to calculate and issue the triangular wave current setpoint cycle by cycle. Since the parameters have already undergone adaptive matching for the current operating condition in S200, the waveform generated in this step has physical characteristics that match the operating condition: for example, under high current conditions, the waveform automatically exhibits a larger initial amplitude and a lower starting frequency to ensure deep saturation demagnetization without overvoltage; while under low current conditions, the waveform automatically adjusts to a smaller amplitude and a higher frequency to achieve rapid and precise demagnetization. In addition, during the waveform output process, a safety monitoring sub-step can be executed in parallel, such as real-time monitoring of coil temperature and current amplitude. Once an abnormality is detected, the waveform output is immediately stopped, thus forming a closed-loop safety execution mechanism.
[0067] The following explanation uses a 270° double-dispersion deflecting magnet system in a medical linear accelerator as an example. The values below are for illustrative purposes only and are used to illustrate the relative relationships between different operating conditions. In actual applications, calibration should be performed according to the characteristics of the specific deflecting magnet and the limitations of the excitation power supply. The deflection magnet is the core component of the beam transmission system. Its magnetic core is made of high-permeability silicon steel sheets. The excitation coil inductance is 100mH, the DC resistance is 0.5Ω, the rated excitation current is 800A, and the maximum operating current during normal treatment scanning is 500A. The matching excitation power supply module 100 is a high-precision programmable bidirectional DC power supply with an output voltage range of 0 to ±250V and an output current range of 0 to ±800A. It has four-quadrant operation capability and programmable triangular wave output function.
[0068] After a typical high-energy X-ray treatment, the system automatically triggers the demagnetization process. The control circuit module 300 first executes the mode switching step. After confirming that the beam extraction system has been turned off, the excitation power supply output has returned to zero and there is no emergency fault signal, the system is safely switched from beam deflection mode to demagnetization mode. Subsequently, the control circuit module 300 reads the operation record of this treatment and extracts the maximum scan current in the last 5 minutes. Based on the working condition judgment logic, because If the current exceeds the preset current threshold of 300A and the conditions for the third and fourth operating conditions are not met, the system automatically identifies the current condition as the first operating condition, corresponding to a large scanning current scenario. Based on this operating condition type, the control circuit module 300 retrieves the corresponding demagnetization parameter combination from the demagnetization pattern storage module 200: initial current amplitude. decay time constant initial frequency Rate of change of frequency , here Set to 520A, approximately This 1.15-fold increase ensures that the iron core can enter a deep saturation state during the initial stage of demagnetization, effectively covering the historical hysteresis trajectory left by the previous high-intensity magnetization; while the lower initial frequency... This is to control the induced electromotive force during the initial high-current phase. For a bipolar triangular wave, the peak value of the current change rate is approximately... Therefore, the peak value of the induced electromotive force is approximately: ; The voltage values mentioned above are within the voltage output limit of the excitation power supply module 100 (e.g., 250V), leaving a safety margin to avoid waveform clipping distortion caused by voltage saturation. During the waveform output stage, the excitation power module 100 outputs a frequency-modulated attenuated bipolar triangular wave demagnetizing current to the deflection magnet excitation coil according to the above parameters, such as... Figure 3 As shown, within 0 to 0.2 seconds of the start of demagnetization, the current rises from zero with a constant linear slope. At this time, the first half-cycle has not yet ended, the rising edge is gentle, and the half-cycle duration is about 0.5s. As time goes on, the current amplitude gradually decreases according to an exponential law, while the frequency increases linearly at a rate of 5Hz / s. When the demagnetization has been performed for a preset duration (e.g., about 10 seconds), the current amplitude has decreased to a smaller value, and the frequency has increased to about 51Hz. At this time, the high-frequency small current triangular wave has a strong disturbance effect on the tiny pinned domain walls at the edge of the magnetic pole and the air gap, avoiding the stubborn residual magnetism that is difficult to reach by conventional low-frequency demagnetization. Subsequently, the demagnetization process automatically terminates, and after the system self-checks and passes, it returns to standby mode to prepare for the next treatment.
[0069] Specifically, in this embodiment, comparative tests were conducted on the same device for undemagnetized, traditional damped oscillation demagnetization, and frequency conversion attenuation triangular wave demagnetization. The test method was as follows: after completing the same 450A high-energy scanning program, three different demagnetization strategies (or no demagnetization) were applied respectively, and then a small current of 50A was applied to detect the magnetic field deviation, thereby characterizing the residual magnetism level.
[0070] Theoretical analysis shows that without demagnetization, the relative deviation of the magnetic field at the 50A detection point is about ±0.5%, which will cause the beam position to shift by more than 1 mm, seriously affecting the treatment accuracy. After using the traditional LC damped oscillation demagnetization method (fixed parameters, 30 seconds), the magnetic field deviation can be reduced to about ±0.15%. Although this is an improvement, it still cannot meet the high precision requirements of stereotactic radiotherapy. However, after using the frequency-modulated attenuation triangular wave demagnetization scheme, the magnetic field deviation at the 50A detection point is stably controlled within about ±0.05%, which is an order of magnitude higher than the traditional method. Furthermore, the demagnetization time is shortened, significantly improving the equipment's turnaround efficiency.
[0071] Example 3 In a preferred embodiment, this application also provides an electronic device, the electronic device comprising: The computer device includes a memory and a processor, wherein the memory stores computer-readable instructions that, when executed by the processor, implement the variable-frequency attenuation triangular wave demagnetization method for accelerator deflection magnets. This computer device can be broadly categorized as a server, terminal, or any other electronic device with the necessary computing and / or processing capabilities. In one embodiment, the computer device may include a processor, memory, network interface, communication interface, etc., connected via a system bus. The processor of the computer device can be used to provide the necessary computing, processing, and / or control capabilities. The memory of the computer device may include a non-volatile storage medium and internal memory. The non-volatile storage medium may store an operating system, computer programs, etc. The internal memory can provide an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface and communication interface of the computer device can be used to connect and communicate with external devices via a network. When the computer program is executed by the processor, it performs the steps of the method of the present invention.
[0072] This invention can be implemented as a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the steps of the methods of embodiments of the invention to be performed. In one embodiment, the computer program is distributed across multiple network-coupled computer devices or processors, such that the computer program is stored, accessed, and executed in a distributed manner by one or more computer devices or processors. A single method step / operation, or two or more method steps / operations, may be executed by a single computer device or processor or by two or more computer devices or processors. One or more method steps / operations may be executed by one or more computer devices or processors, and one or more other method steps / operations may be executed by one or more other computer devices or processors. One or more computer devices or processors may execute a single method step / operation, or execute two or more method steps / operations.
[0073] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0074] The technical features described above can be combined arbitrarily. Although not all possible combinations of these technical features are described, any combination of these technical features should be considered to be covered by this specification, provided that such combination does not contain contradictions.
[0075] The specific embodiments of the present invention described above do not constitute a limitation on the scope of protection of the present invention. Any other corresponding changes and modifications made in accordance with the technical concept of the present invention should be included within the scope of protection of the claims of the present invention.
Claims
1. A variable frequency damped triangular wave de-magneting system for an accelerator deflection magnet, characterized by, include: The excitation power supply module is used to provide programmable bidirectional current to the excitation coil of the deflecting magnet; The demagnetization pattern storage module is used to store preset demagnetization parameters; The control circuit module is connected to the excitation power supply module and the demagnetization pattern storage module respectively. In the demagnetization mode, the control circuit module reads the parameters in the demagnetization pattern storage module and controls the excitation power supply module to output a frequency-modulated attenuated bipolar triangular wave demagnetization current. The mode switching module is used to control the system to switch between beam deflection mode and demagnetization mode; The triangular wave demagnetizing current varies linearly with time in each half-cycle, with its current amplitude decreasing over time and its frequency increasing over time.
2. The frequency-modulated attenuation triangular wave demagnetization system for accelerator deflection magnets according to claim 1, characterized in that, The amplitude of the triangular wave demagnetizing current decays exponentially, satisfying the current amplitude of the nth half cycle ; The frequency is linearly increasing over time, satisfying ; wherein, is an initial current amplitude, is a decay time constant, is an initial frequency, is a frequency change rate, is a current cycle, is a half cycle number, is a time.
3. The frequency-modulated attenuation triangular wave demagnetization system for accelerator deflection magnets according to claim 2, characterized in that, The control circuit module reads the maximum excitation current value of the deflecting magnet in the previous beam deflection mode, and sets the initial current amplitude according to the maximum excitation current value, so that the initial current amplitude is greater than the absolute value of the maximum excitation current.
4. The frequency-modulated attenuation triangular wave demagnetization system for accelerator deflection magnets according to claim 2, characterized in that, The demagnetizing pattern storage module stores multiple sets of demagnetizing parameter combinations corresponding to different operating conditions. Each set of demagnetizing parameter combinations includes the initial current amplitude. The decay time constant The initial frequency and the frequency change rate ; The control circuit module acquires the operating parameters of the deflecting magnet in the previous beam deflection mode, determines the current operating condition type based on the operating parameters, and selects the corresponding set from the multiple sets of demagnetizing parameter combinations for demagnetizing control according to the preset correspondence between the operating condition type and the demagnetizing parameter combination.
5. The frequency-modulated attenuation triangular wave demagnetization system for accelerator deflection magnets according to claim 4, characterized in that, The different operating conditions include at least the first operating condition, the second operating condition, the third operating condition, and the fourth operating condition; The first operating condition is when the maximum scanning current in the previous beam deflection mode is greater than or equal to a preset current threshold. The second operating condition is when the maximum scanning current in the previous beam deflection mode is less than the preset current threshold. The third working condition is when the cumulative beam output time of the current beam deflection mode is greater than or equal to a preset time threshold. The fourth operating condition is the condition in which an abnormal interruption signal is detected; The fourth operating condition has a higher priority than the third operating condition, and the third operating condition has a higher priority than the first and second operating conditions. When the same operating state meets multiple operating conditions at the same time, the demagnetization parameters are determined according to the operating condition with the highest priority.
6. The frequency-modulated attenuation triangular wave demagnetization system for accelerator deflection magnets according to claim 1, characterized in that, The system also includes a security protection module for performing at least one of the following protections: The system includes demagnetizing current amplitude limiting protection, excitation coil temperature rise monitoring and protection, abnormal interlock power-off protection, beam current prohibition protection during demagnetization, and demagnetizing timeout protection.
7. The frequency-modulated attenuation triangular wave demagnetization system for accelerator deflection magnets according to claim 1, characterized in that, The triangular wave demagnetizing current is also superimposed with a DC bias component that decays over time, making the absolute values of the peak value of the positive half-cycle and the valley value of the negative half-cycle unequal, forming an asymmetric triangular wave to compensate for the asymmetric remanence of the deflecting magnet.
8. The frequency-modulated attenuation triangular wave demagnetization system for accelerator deflection magnets according to claim 1, characterized in that, The system also includes a magnetic field monitoring module, which is used to measure the remanence of the deflecting magnet in real time and output the measured remanence value. The control circuit module is connected to the magnetic field monitoring module, receives the measured residual magnetism value, and dynamically adjusts the decay time constant and / or frequency of the triangular wave demagnetizing current according to the deviation between the measured residual magnetism value and the preset demagnetization reference value.
9. A method for frequency-conversion attenuation triangular wave demagnetization of accelerator deflection magnets, characterized in that, include: S100. After the deflecting magnet completes the beam deflection, the system is switched from the beam deflection mode to the demagnetization mode through the mode switching module. S200, the control circuit module reads the preset demagnetization parameters in the demagnetization pattern storage module; S300. Based on the read demagnetization parameters, control the excitation power supply module to output a frequency-modulated attenuated bipolar triangular wave demagnetization current to the excitation coil of the deflection magnet; wherein, the triangular wave demagnetization current changes linearly with time in each half-cycle, its current amplitude decreases with time, and its frequency increases with time.
10. The frequency-conversion attenuation triangular wave demagnetization method for accelerator deflection magnets according to claim 9, characterized in that, The control circuit module reads the preset demagnetization parameters from the demagnetization pattern storage module, including: Obtain the operating parameters of the deflecting magnet in the previous beam deflection mode; The current operating condition type is determined based on the aforementioned operating parameters; Based on the preset correspondence between the working condition type and the demagnetization parameter combination, the corresponding demagnetization parameters are selected from the demagnetization pattern storage module.
Citation Information
Patent Citations
Particle beam therapeutic apparatus
CN103415321A
Pulse width change-based iron core demagnetization method for low-frequency bipolar square wave source
CN105428000A
Demagnetizing method of iron core
JP2000021631A
