Frequency pid fuzzy control system and method for inhibiting slow drift of resonant cavity frequency

By using a frequency PID fuzzy control system, combined with fuzzy inference and five-level threshold adjustment, the frequency drift problem of the radio frequency cavity under strong radiation and electromagnetic interference environment is solved, realizing rapid correction and high-precision locking, which is suitable for equipment such as electron linear accelerators.

CN123156554APending Publication Date: 2026-11-24ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611292003.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies cannot effectively adapt to the slow frequency drift of radio frequency cavities in high radiation and electromagnetic interference environments, resulting in frequency shift and equipment instability, which affects beam acceleration effect and equipment safety.

Method used

The system employs a frequency PID fuzzy control system, which combines fuzzy inference and five-level threshold adjustment. The resonant frequency is adjusted via a servo motor and tuning rod to achieve rapid frequency correction and high-precision locking. It includes frequency acquisition, error calculation, PID fuzzy adaptive adjustment, and servo driver.

Benefits of technology

It achieves frequency stability and extends equipment life under strong radiation and electromagnetic interference environments, and has fast response and high-precision frequency locking capabilities, making it suitable for complex operating conditions such as electron linear accelerators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123156554A_ABST
    Figure CN123156554A_ABST
Patent Text Reader

Abstract

This invention belongs to the field of radio frequency resonant cavity automatic control technology, and particularly relates to a frequency PID fuzzy control system and method for suppressing slow frequency drift of the resonant cavity. The system includes a resonant cavity, a signal acquisition port, a tuning rod disposed within the resonant cavity, and a servo motor used to adjust the insertion depth of the tuning rod. The servo motor is equipped with an encoder and an electromagnetic brake module. The frequency acquisition module acquires the actual resonant frequency through the signal acquisition port, and the error calculation module calculates the deviation value and the rate of change of the deviation between the actual frequency and the target frequency. The PID fuzzy adaptive adjustment module takes the deviation value and the rate of change of the deviation as input, tunes the PID parameters online based on multiple adjustment ranges and a fuzzy inference algorithm, and outputs a control quantity. The servo driver drives the servo motor to adjust the insertion depth of the tuning rod until the absolute value of the deviation is less than a preset range, at which point the electromagnetic brake module locks the tuning rod. This invention balances response speed and adjustment accuracy, has no overshoot or jitter, and possesses anti-radiation drift capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of radio frequency resonant cavity automatic control technology, and particularly relates to a frequency PID fuzzy control system and method for suppressing slow frequency drift of the resonant cavity. Background Technology

[0002] In electron linear accelerator systems, the resonant frequency of the radio frequency cavity must be stably locked at a specific frequency to ensure stable operation. In actual operation, the cavity is constantly exposed to complex environments such as high vacuum, strong electromagnetic interference, mixed gamma and neutron radiation, microwave heat loss and temperature rise, and micro-structural deformation, making it highly susceptible to slow resonant frequency drift. Frequency drift directly degrades beam focusing effect or reduces acceleration efficiency, and in severe cases, induces radio frequency field-induced emission and high-voltage arcing within the cavity, threatening the long-term safe and stable operation of the device.

[0003] Currently, the industry mainly uses fixed-parameter PID control or segmented switching control to stabilize the frequency of the resonant cavity. However, the existing frequency stabilization control technologies mentioned above have many shortcomings.

[0004] Traditional fixed-parameter PID control suffers from poor robustness and cannot adapt to the slow-drift parameters of time-varying frequencies caused by radiation, temperature, and structural deformation, easily leading to problems such as overshoot, low-frequency oscillation, and regulation lag. Conventional segmented switching control can only achieve coarse gear adjustment and cannot simultaneously handle rapid correction of large deviations and micron-level precise positioning of small deviations. It is prone to reciprocating jitter near the target frequency, exacerbating wear on the tuning transmission mechanism. Most existing tuning control schemes lack dead-zone anti-jitter, interval-level adaptive, and mechanical self-locking coordination mechanisms when stopped, making them prone to position creep and secondary frequency drift in steady state. In addition, general control algorithms are not specifically adapted for the strong radiation and electromagnetic environment of accelerators and are not deeply coupled with low-inertia servo motors, multi-turn absolute magnetic encoders, and electromagnetic braking systems, making it difficult to meet the requirements of long-term unattended steady-state operation.

[0005] It is evident that conventional tuning methods also lack the ability to self-tune online parameters based on fuzzy inference using frequency deviation and the rate of change of deviation, and their adaptive capability is insufficient in the face of complex time-varying operating conditions.

[0006] Therefore, there is an urgent need to propose a frequency PID fuzzy control system and method to suppress the slow drift of the resonant cavity frequency. Summary of the Invention

[0007] The purpose of this invention is to provide a frequency PID fuzzy control system and method for suppressing slow frequency drift of the resonant cavity, so as to solve the above-mentioned problems.

[0008] To achieve the above objectives, the present invention provides the following solution: A frequency PID fuzzy control system for suppressing slow frequency drift of the resonant cavity includes: A resonant cavity with a signal acquisition port is provided inside the resonant cavity, and the resonant frequency of the resonant cavity is adjusted by adjusting the insertion depth of the resonant cavity. It also includes a servo motor, which is used to adjust the insertion depth of the tuning rod in the resonant cavity; The servo motor is equipped with an encoder and an electromagnetic brake module. The encoder is used to obtain the position information of the tuning lever, and the electromagnetic brake module is used to lock the tuning lever. It also includes a frequency acquisition module, an error calculation module, a PID fuzzy adaptive adjustment module, and a servo driver; The frequency acquisition module is used to acquire the actual resonant frequency of the resonant cavity through the signal acquisition port; The error calculation module is used to obtain the actual resonant frequency, and to calculate the deviation value and the rate of change of the deviation between the actual resonant frequency and the target resonant frequency; The PID fuzzy adaptive adjustment module is used to obtain the deviation value and the deviation change rate, and uses the deviation value and the deviation change rate as input values. The PID fuzzy adaptive adjustment module has multiple adjustment ranges. The PID fuzzy adaptive adjustment module tunes the PID parameters online based on the multiple adjustment ranges and the fuzzy inference algorithm, and outputs the control quantity. The servo driver is used to acquire the control quantity and control the servo motor to rotate according to the control quantity.

[0009] Optionally, the operation logic of the tuning rod is as follows: when the actual resonant frequency is greater than the target resonant frequency, the insertion depth of the tuning rod is reduced; when the actual resonant frequency is less than the target resonant frequency, the insertion depth of the tuning rod is increased.

[0010] The method for using a frequency PID fuzzy control system to suppress slow frequency drift of a resonant cavity includes the following steps: The servo motor is powered on and returns to zero, the initial position data of the encoder is read, and the target resonant frequency is set; The PID fuzzy adaptive adjustment module constructs multiple adjustment intervals; The frequency acquisition module acquires the actual resonant frequency of the resonant cavity through the signal acquisition port; After obtaining the actual resonant frequency, the error calculation module calculates the deviation value and the deviation change rate. The PID fuzzy adaptive adjustment module takes the deviation value and the deviation change rate as input values, tunes the PID parameters online based on multiple adjustment ranges and fuzzy inference algorithm, and outputs the control quantity. The servo drive module receives the control signal and drives the servo motor to adjust the insertion depth of the tuning rod. The above steps are repeated until the absolute value of the deviation is less than the preset range, and then the tuning rod is locked by the electromagnetic brake module.

[0011] Optionally, the plurality of adjustment intervals include a lock interval, a dead zone holding interval, a fine-tuning interval, a mid-tuning interval, and a coarse-tuning interval.

[0012] Optionally, the range of the deviation value in the locking interval is |Δf| < 5kHz, where Δf represents the deviation value.

[0013] Optionally, the range of the deviation value of the dead zone retention interval is 5kHz ≤ |Δf| < 10kHz, where Δf represents the deviation value.

[0014] Optionally, the range of the deviation value in the fine-tuning interval is 10kHz≤|Δf|<20kHz, where Δf represents the deviation value.

[0015] Optionally, the range of the deviation value in the mid-tone interval is 20kHz ≤ |Δf| < 100kHz, where Δf represents the deviation value.

[0016] Optionally, the range of the deviation value in the coarse adjustment interval is |Δf|≥100kHz, where Δf represents the deviation value.

[0017] Compared with the prior art, the present invention has the following advantages and technical effects: This invention utilizes a PID fuzzy adaptive closed-loop control system, combining online parameter tuning with five-level threshold adjustment to effectively address the issues of fixed parameters and poor adaptability in conventional PID systems. It is suitable for resonant cavity frequency slow drift and strong interference conditions. The five-level zone adaptive adjustment balances rapid correction of large deviations with high-precision positioning of small deviations. The coarse adjustment range achieves high-speed correction with large steps, the medium adjustment range provides a smooth transition, and the fine adjustment range offers low-speed, fine adjustment with micro-steps, resulting in fast response and no overshoot or jitter. The dead zone design prevents frequent start-stop oscillations of the motor near the target frequency, protecting the tuning transmission mechanism and extending equipment lifespan. The encoder continuously provides feedback on the tuning lever position to form a closed loop, and the locking interval triggers the electromagnetic brake module for mechanical self-locking, effectively suppressing position creep and secondary frequency drift caused by radiation and temperature. The system possesses anti-radiation and anti-electromagnetic interference capabilities, exhibiting high robustness and long-term stable operation under strong electromagnetic interference and radiation conditions in accelerators. It is particularly suitable for demanding conditions such as electron linear accelerators and high-radiation experimental devices. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly described below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Figure 1 This is a block diagram of the overall architecture of the present invention; Figure 2 This is a flowchart illustrating the control method of the present invention; Figure 3 This is the logic diagram for the five-level threshold hierarchical adjustment of the present invention; The components include: 1. resonant cavity; 2. signal acquisition port; 3. servo motor; 4. tuning rod; 5. encoder; and 6. electromagnetic brake module. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0021] Reference Figures 1 to 3 This invention discloses a frequency PID fuzzy control system for suppressing slow frequency drift of a resonant cavity, comprising: A resonant cavity 1 with a signal acquisition port 2 is provided, and a tuning rod 4 is provided inside the resonant cavity 1. The resonant frequency of the resonant cavity 1 is adjusted by adjusting the insertion depth of the tuning rod 4 inside the resonant cavity 1. It also includes a servo motor 3, which is used to adjust the insertion depth of the tuning rod 4 in the resonant cavity 1; Servo motor 3 is equipped with encoder 5 and electromagnetic brake module 6. Encoder 5 is used to obtain position information of tuning lever 4, and electromagnetic brake module 6 is used to lock tuning lever 4. It also includes a frequency acquisition module, an error calculation module, a PID fuzzy adaptive adjustment module, and a servo driver; The frequency acquisition module is used to acquire the actual resonant frequency of the resonant cavity 1 through signal acquisition port 2; The error calculation module is used to obtain the actual resonant frequency, as well as to calculate the deviation value and the rate of change of the deviation between the actual resonant frequency and the target resonant frequency; The PID fuzzy adaptive adjustment module is used to obtain the deviation value and the rate of change of deviation, and uses the deviation value and the rate of change of deviation as input values. The PID fuzzy adaptive adjustment module has multiple adjustment ranges. Based on multiple adjustment ranges and fuzzy inference algorithm, the PID fuzzy adaptive adjustment module tunes the PID parameters online and outputs control quantity. The servo driver is used to acquire control signals and control the servo motor 3 to rotate based on the control signals.

[0022] The frequency PID fuzzy control system for suppressing slow frequency drift in a resonant cavity provided by this invention operates as follows: During operation, the frequency acquisition module acquires the actual resonant frequency in real time through the signal acquisition port 2 of the resonant cavity 1. The error calculation module compares this frequency with a preset target frequency to calculate the frequency deviation value and the rate of change of deviation. These two parameters are then input to the PID fuzzy adaptive adjustment module. This module has multiple built-in adjustment ranges and automatically selects the corresponding adjustment strategy based on the range in which the current deviation value is located. Simultaneously, it dynamically tunes the PID parameters online using a fuzzy inference algorithm, ensuring that the control parameters always adapt to the current operating conditions. Finally, it outputs a precise control quantity to the servo driver. The servo driver drives the servo motor 3 to rotate, thereby adjusting the insertion depth of the tuning rod 4 within the resonant cavity 1 and changing the equivalent resonant parameters of the cavity to correct the frequency drift. Throughout the process, the encoder 5 continuously feeds back the position information of the tuning rod 4 to form a closed loop, and the electromagnetic brake module 6 provides mechanical locking in steady state. This system achieves rapid correction and high-precision locking of frequency deviation, effectively suppressing slow frequency drift in the resonant cavity.

[0023] As an optional implementation, the operating logic of the tuning lever 4 is as follows: when the actual resonant frequency is greater than the target resonant frequency, the insertion depth of the tuning lever 4 is reduced; when the actual resonant frequency is less than the target resonant frequency, the insertion depth of the tuning lever 4 is increased.

[0024] The base of the tuning rod 4 is welded to the lead screw slider. The output shaft of the servo motor 3 is coaxially fixed with the lead screw threaded into the slider connected to the tuning rod 4. During the actual frequency correction process, when the error calculation module determines that the actual resonant frequency is greater than the target resonant frequency, the PID fuzzy adaptive adjustment module outputs the corresponding control quantity. The servo driver drives the servo motor 3 to rotate in the reverse direction, reducing the insertion depth of the tuning rod 4 in the resonant cavity 1, thereby reducing the resonant frequency to the target value. When the actual resonant frequency is less than the target resonant frequency, the servo motor 3 rotates in the forward direction, increasing the insertion depth of the tuning rod 4, thereby increasing the frequency. This action logic ensures that the tuning direction is always correct, avoids the expansion of deviation due to reverse adjustment, and improves the efficiency and reliability of frequency correction.

[0025] The method for using a frequency PID fuzzy control system to suppress slow frequency drift of a resonant cavity includes the following steps: Servo motor 3 is powered on and returns to zero, the initial position data of encoder 5 is read, and the target resonant frequency is set; The PID fuzzy adaptive adjustment module constructs multiple adjustment ranges; The frequency acquisition module acquires the actual resonant frequency of the resonant cavity 1 through signal acquisition port 2; After obtaining the actual resonant frequency, the error calculation module calculates the deviation value and the rate of change of deviation. The PID fuzzy adaptive control module takes the deviation value and the rate of change of deviation as input values, and tunes the PID parameters online based on multiple control ranges and fuzzy inference algorithms, and outputs control quantities. The servo drive module receives the control signal and drives the servo motor 3 to adjust the insertion depth of the tuning rod 4. The above steps are repeated until the absolute value of the deviation is less than the preset range, and then the tuning rod 4 is locked by the electromagnetic brake module 6.

[0026] After the procedure is initiated, the servo motor 3 is first powered on and returns to zero. The initial position data of the encoder 5 is read, and the target resonant frequency is set. Simultaneously, the PID fuzzy adaptive adjustment module constructs multiple adjustment ranges. Subsequently, the frequency acquisition module acquires the actual resonant frequency of the resonant cavity 1 in real time through signal acquisition port 2. The error calculation module calculates the frequency deviation value and the rate of change of deviation. The PID fuzzy adaptive adjustment module uses these two values ​​as input, selects the corresponding control strategy based on the adjustment range to which the current deviation value belongs, and uses a fuzzy inference algorithm to tune the PID parameters online, outputting the control quantity to the servo driver. The servo driver then drives the servo motor 3 to adjust the insertion depth of the tuning lever 4, changing the resonant frequency. The above steps are executed cyclically, and the deviation value continuously decreases until the absolute value of the deviation value is less than the preset range. At this point, the servo motor 3 stops operating, and the electromagnetic brake module 6 activates to mechanically lock the tuning lever 4, maintaining frequency stability. This process achieves integrated automatic closed-loop control from coarse adjustment and fine adjustment to locking, without manual intervention.

[0027] As an optional implementation, the multiple adjustment ranges include a lock-in range, a dead zone holding range, a fine-tuning range, a mid-tuning range, and a coarse-tuning range.

[0028] This method achieves graded adaptive adjustment through five adjustment ranges built into the PID fuzzy adaptive adjustment module: lock-in range, dead-zone hold range, fine-tuning range, intermediate-tuning range, and coarse-tuning range. When the absolute value of the deviation is in the coarse-tuning range, a large step size and high-speed correction are used; after entering the intermediate-tuning range, the speed is reduced to medium step size adjustment; in the fine-tuning range, a micro-step size and low-speed fine adjustment are used; in the dead-zone hold range, the current position is maintained to avoid frequent start-stop oscillation of the servo motor 3 near the target frequency; finally, after entering the lock-in range, adjustment stops and the electromagnetic brake module 6 is triggered for self-locking. The five ranges transition from coarse to fine step by step, effectively balancing response speed and positioning accuracy while protecting the transmission mechanism.

[0029] As an optional implementation, the range of the deviation value of the locking interval is |Δf| < 5kHz, where Δf represents the deviation value.

[0030] The deviation range of the locking interval is set to |Δf| < 5kHz. When the absolute value of the frequency deviation is less than 5kHz, the PID fuzzy adaptive adjustment module determines that the resonant cavity 1 has entered the locked state. At this time, the system no longer outputs adjustment control quantity, the servo motor 3 stops running, and the electromagnetic brake module 6 activates mechanical self-locking to fix the tuning rod 4 in the current position. This range ensures that the frequency locking accuracy meets the accelerator operation requirements, and the mechanical self-locking method can effectively suppress the creep of the tuning rod 4 position caused by factors such as radiation and temperature rise, thereby maintaining frequency stability in the long term.

[0031] As an optional implementation, the range of the deviation value of the dead zone holding interval is 5kHz≤|Δf|<10kHz, where Δf represents the deviation value.

[0032] The dead-zone hold interval is set to a deviation range of 5kHz ≤ |Δf| < 10kHz. When the frequency deviation falls within this range, the PID fuzzy adaptive adjustment module outputs a hold command, and the servo motor 3 does not actively adjust. The purpose of this range is to prevent the servo motor 3 from frequently reversing when the deviation fluctuates slightly near the target frequency, thus avoiding high-frequency reciprocating jitter of the tuning lever 4, reducing wear on the transmission structure, extending the service life of the equipment, and reducing system energy consumption.

[0033] As an optional implementation, the range of the deviation value of the fine-tuning interval is 10kHz≤|Δf|<20kHz, where Δf represents the deviation value.

[0034] The deviation range for the fine-tuning interval is set to 10kHz ≤ |Δf| < 20kHz. When the frequency deviation enters this range, the PID fuzzy adaptive adjustment module tunes the PID parameters to fine-tuning mode using a fuzzy inference algorithm, outputting a control quantity with micro-steps and low speed. The servo motor 3 then adjusts the insertion depth of the tuning lever 4 at low speed with minute adjustments. This range avoids overshoot caused by large-step movements in the coarse-tuning stage, allowing the frequency to smoothly and slowly approach the target value, ensuring that the final locking process is free of overshoot and oscillation.

[0035] As an optional implementation, the range of the deviation value in the mid-tone interval is 20kHz≤|Δf|<100kHz, where Δf represents the deviation value.

[0036] The deviation range for the mid-range is set to 20kHz ≤ |Δf| < 100kHz. When the frequency deviation is within this range, the PID fuzzy adaptive adjustment module adjusts the PID parameters to a medium-speed, medium-step mode through fuzzy inference. The servo motor 3 adjusts the insertion depth of the tuning lever 4 at a medium speed and step size. This range serves as a transition stage between coarse and fine adjustment, gradually reducing the adjustment amplitude while maintaining a certain correction speed, allowing the frequency to smoothly enter the fine adjustment range and avoiding the impact caused by sudden speed changes.

[0037] As an optional implementation, the range of the deviation value of the coarse adjustment interval is |Δf|≥100kHz, where Δf represents the deviation value.

[0038] The deviation range for the coarse adjustment interval is set to |Δf|≥100kHz. When the frequency deviation reaches this range, the PID fuzzy adaptive adjustment module tunes the PID parameters to a large step size and high speed mode through fuzzy inference. The servo motor 3 rapidly adjusts the insertion depth of the tuning rod 4 at its maximum speed and maximum step size, causing the frequency of the resonant cavity 1 to quickly approach the target frequency. This range ensures that the system has a fast response capability when there is a large frequency shift, significantly shortens the correction time, and avoids the deterioration of the beam acceleration effect due to long-term deviation from the target frequency.

[0039] Taking the center target frequency of resonant cavity 1 as 476MHz as an example, the present invention includes resonant cavity 1, signal acquisition port 2, frequency acquisition module, error calculation module, PID fuzzy adaptive adjustment module, servo driver, servo motor 3, tuning rod 4, encoder 5, and electromagnetic brake module 6. Signal acquisition port 2 is set on resonant cavity 1 and is used to output the cavity resonant frequency signal in real time; The error calculation module and the PID fuzzy adaptive adjustment module are integrated into the control system and connected to the servo driver. The servo driver is electrically connected to the servo motor 3. The servo motor 3 drives the tuning rod 4. The encoder 5 collects the position of the tuning rod 4 in real time. The electromagnetic brake module 6 is linked with the servo motor 3.

[0040] The control thresholds at each level are set as follows: center target frequency 476MHz, lock threshold ±5kHz, dead zone threshold ±10kHz, fine adjustment threshold ±20kHz, and coarse adjustment threshold ±100kHz. The servo motor 3 operates as follows: when f > 476MHz, it reverses to reduce the insertion depth of the tuning rod 4; when f < 476MHz, it rotates forward to increase the insertion depth of the tuning rod 4, thereby achieving frequency closed-loop correction.

[0041] The frequency acquisition module is connected to signal acquisition port 2 and is responsible for extracting and processing the resonant frequency signal and outputting the current resonant frequency f. The error calculation module receives the resonant frequency f output by the frequency acquisition module and calculates the frequency deviation Δf = f - 476MHz and the deviation change rate d(Δf) / dt. The PID fuzzy adaptive adjustment module takes the frequency deviation Δf and the rate of change of deviation d(Δf) / dt as inputs, and tunes the PID proportional, integral and derivative control parameters online in real time through fuzzy rule reasoning. It then outputs adaptive control quantity by combining the preset five-level threshold partition. The servo driver receives control commands from the PID fuzzy adaptive adjustment module and drives the servo motor 3 to operate precisely in both forward and reverse directions. Encoder 5 is coaxially integrated inside the servo motor, acquiring the axial displacement of tuning rod 4 in real time. Since the motor rotation drives the slider of tuning rod 4 via a lead screw, encoder 5 acquires the angular position / displacement of the shaft. Based on the relationship between the lead screw rotation angle and the slider displacement, the rotation angle can be converted into the linear displacement of the load. This, along with the angular position information, achieves micron-level closed-loop position feedback. Electromagnetic brake module 6 is linked with servo motor 3 for control; after the frequency enters the locking range, it implements a power-off mechanical self-locking mechanism to suppress position creep and slow frequency drift caused by radiation and temperature.

[0042] The system presets five-level zone control thresholds: lock threshold ±5kHz, dead zone threshold ±10kHz, fine-tuning threshold ±20kHz, and mid-tuning threshold ±100kHz. Based on the absolute value of frequency deviation, the system is divided into five levels of adaptive adjustment logic: lock-in range, dead zone hold range, fine-tuning range, intermediate-tuning range, and coarse-tuning range.

[0043] Among them, encoder 5 adopts a non-optical magnetic induction architecture, which is resistant to gamma rays and neutron radiation, and electromagnetic interference. It does not lose its position when power is off and does not need to repeatedly return to zero. Servo motor 3 is a low-inertia, high-response model with low-speed stability and micro-stepping without jitter. Electromagnetic brake module 6 has steady-state position retention and anti-environmental drift capability.

[0044] The output shaft of the servo motor 3 is fixedly connected to the lead screw. When the lead screw rotates, the slider on the lead screw will move back and forth along the lead screw. The slider is connected to the tuning rod 4. The encoder 5 collects the rotation angle of the output shaft of the servo motor 3 in real time and obtains the displacement information of the tuning rod 4 by conversion. The electromagnetic brake module 6 is linked with the servo motor 3 to achieve mechanical self-locking after locking.

[0045] The process is as follows: S1: System initialization, servo motor 3 is powered on and returns to zero, reads the initial position of encoder 5, and sets the center target frequency to 476MHz; S2: The frequency acquisition module acquires the resonant frequency f of the resonant cavity 1 in real time through the signal acquisition port 2 and transmits it to the error calculation module; S4: The error calculation module calculates the frequency deviation Δf=f-476MHz and the deviation change rate d(Δf) / dt, and inputs the calculation results into the PID fuzzy adaptive adjustment module. S5: The PID fuzzy adaptive adjustment module takes Δf and d(Δf) / dt as inputs, corrects the PID parameters online through fuzzy inference, and determines the corresponding control quantity by combining the five-level threshold. S6: The servo driver receives control signals and drives the servo motor 3 to adjust the insertion depth of the tuning lever 4, thereby achieving frequency closed-loop control. S7: When |Δf|<5kHz, the servo motor 3 stops running, the electromagnetic brake module 6 starts self-locking, suppresses the slow drift of the resonant cavity frequency, and the system continuously cyclically controls the closed loop to maintain frequency stability.

[0046] like Figure 2 As shown in the flowchart, after system initialization, the frequency acquisition module acquires the resonant frequency f of the resonant cavity 1 in real time through signal acquisition port 2 and transmits it to the error calculation module. The error calculation module calculates the frequency deviation Δf = f - 476MHz and the deviation change rate d(Δf) / dt, and inputs it into the PID fuzzy adaptive adjustment module. The PID fuzzy adaptive adjustment module uses Δf and d(Δf) / dt as inputs, tunes the PID parameters online through fuzzy inference, and outputs the control quantity in combination with the five-level threshold. The servo driver receives the control quantity and drives the servo motor 3 to adjust the insertion depth of the tuning rod 4 to realize frequency closed-loop control. When |Δf| < 5kHz, the servo motor 3 stops, the electromagnetic brake module 6 starts self-locking to suppress slow frequency drift, and the system continues to cycle and control.

[0047] In the description of this invention, it should be understood that the terms "longitudinal", "lateral", "up", "down", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this invention, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this invention.

[0048] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made by those skilled in the art to the technical solutions of the present invention without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims

1. A frequency PID fuzzy control system for suppressing slow drift of the frequency of a resonant cavity, characterized by, include: A resonant cavity (1) with a signal acquisition port (2) is provided in the resonant cavity (1), and the resonant frequency of the resonant cavity (1) is adjusted by adjusting the insertion depth of the resonant cavity (1). It also includes a servo motor (3), which is used to adjust the insertion depth of the tuning rod (4) in the resonant cavity (1); The servo motor (3) is equipped with an encoder (5) and an electromagnetic brake module (6). The encoder (5) is used to obtain the position information of the tuning rod (4), and the electromagnetic brake module (6) is used to lock the tuning rod (4). It also includes a frequency acquisition module, an error calculation module, a PID fuzzy adaptive adjustment module, and a servo driver; The frequency acquisition module is used to acquire the actual resonant frequency of the resonant cavity (1) through the signal acquisition port (2); The error calculation module is used to obtain the actual resonant frequency, and to calculate the deviation value and the rate of change of the deviation between the actual resonant frequency and the target resonant frequency; The PID fuzzy adaptive adjustment module is used to obtain the deviation value and the deviation change rate, and uses the deviation value and the deviation change rate as input values. The PID fuzzy adaptive adjustment module has multiple adjustment ranges. The PID fuzzy adaptive adjustment module tunes the PID parameters online based on the multiple adjustment ranges and the fuzzy inference algorithm, and outputs the control quantity. The servo driver is used to acquire the control quantity and control the servo motor (3) to rotate according to the control quantity.

2. The frequency PID fuzzy control system for suppressing slow drift of frequency of a resonant cavity according to claim 1, wherein, The operation logic of the tuning rod (4) is as follows: when the actual resonant frequency is greater than the target resonant frequency, the insertion depth of the tuning rod (4) is reduced; when the actual resonant frequency is less than the target resonant frequency, the insertion depth of the tuning rod (4) is increased.

3. The use of the frequency PID fuzzy control system for suppressing slow drift of resonant cavity frequency, using the frequency PID fuzzy control system for suppressing slow drift of resonant cavity frequency according to any one of claims 1-2, characterized in that, Includes the following steps: The servo motor (3) is powered on and returns to zero, the initial position data of the encoder (5) is read, and the target resonant frequency is set; The PID fuzzy adaptive adjustment module constructs multiple adjustment intervals; The frequency acquisition module acquires the actual resonant frequency of the resonant cavity (1) through the signal acquisition port (2); After obtaining the actual resonant frequency, the error calculation module calculates the deviation value and the deviation change rate. The PID fuzzy adaptive adjustment module takes the deviation value and the deviation change rate as input values, tunes the PID parameters online based on multiple adjustment ranges and fuzzy inference algorithm, and outputs the control quantity. The servo drive module receives the control quantity and drives the servo motor (3) to adjust the insertion depth of the tuning rod (4). The above steps are repeated until the absolute value of the deviation value is less than the preset range, and the tuning rod (4) is locked by the electromagnetic brake module (6).

4. The method of claim 3, wherein the frequency PID fuzzy control system is used to suppress the slow drift of the frequency of the resonant cavity. The multiple adjustment ranges include a lock-in range, a dead zone holding range, a fine-tuning range, a mid-tuning range, and a coarse-tuning range.

5. The method of using the frequency PID fuzzy control system for suppressing slow frequency drift of the resonant cavity according to claim 4, characterized in that, The range of the deviation value in the locking interval is |Δf| < 5kHz, where Δf represents the deviation value.

6. The method of using the frequency PID fuzzy control system for suppressing slow frequency drift of the resonant cavity according to claim 4, characterized in that, The range of the deviation value of the dead zone retention interval is 5kHz≤|Δf|<10kHz, where Δf represents the deviation value.

7. The method of using the frequency PID fuzzy control system for suppressing slow frequency drift of the resonant cavity according to claim 4, characterized in that, The range of the deviation value in the fine-tuning interval is 10kHz≤|Δf|<20kHz, where Δf represents the deviation value.

8. The method of using the frequency PID fuzzy control system for suppressing slow frequency drift of the resonant cavity according to claim 4, characterized in that, The range of the deviation value in the mid-tone interval is 20kHz≤|Δf|<100kHz, where Δf represents the deviation value.

9. The method of using the frequency PID fuzzy control system for suppressing slow frequency drift of the resonant cavity according to claim 4, characterized in that, The range of the deviation value in the coarse adjustment interval is |Δf|≥100kHz, where Δf represents the deviation value.