A method for intelligent automatic power-on / off of a high-frequency system

CN120428608BActive Publication Date: 2025-10-28INST OF HIGH ENERGY PHYSICS CHINESE ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510416872.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-10-28
Estimated Expiration
2045-04-03

AI Technical Summary

Technical Problem

传统高频系统的开关机需要专业技术人员操作,容易出现误操作导致设备故障,且中控调试人员非专业时存在安全隐患。

Method used

It adopts an intelligent automatic power-on/off method, realizes automatic adjustment and startup of equipment through preset program algorithms, and combines state machine control in Python programming language to provide three modes: manual, standard automatic and expert automatic, and supports remote control and real-time status feedback.

Benefits of technology

It improves the startup speed and stability of high-frequency equipment, reduces the workload of operators, lowers the risk of misoperation, and improves operating efficiency and equipment reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120428608B_ABST
    Figure CN120428608B_ABST
Patent Text Reader

Abstract

This invention discloses an intelligent automatic power-on / off method for a high-frequency system. A state machine is established, including 10 states: 0 Initial state, 1 Ready state, 2 High-frequency RFOn state, 3 Power source closed-loop ready state, 4 Power source amplitude and phase loop closed state, 5 Cavity field amplitude and phase closed-loop ready state, 6 Cavity field amplitude and phase loop closed state, 7 Cavity voltage sweep state, 8 Phase sweep state, and 9 Exit state. For each state from 2 to 8, after entering the current state, the corresponding action command is executed according to the current parameter variable values ​​of the high-frequency system, and a new state is entered, namely 1 Ready state, current state, and next state. In the current state, if interlocking protection occurs, the system transitions to 1 Ready state; if no interlocking protection occurs and the conditions for entering the next state are not met, the system remains in the current state; if the conditions for entering the next state are met, the system transitions to the next state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of accelerator technology, specifically relating to an intelligent automatic power-on / off method for a high-frequency system. It is used in the high-frequency system of the High Energy Synchrotron Radiation Light Source project, and can also be applied to the intelligent power-on / off of high-frequency systems in other accelerator devices. Background Technology

[0002] The high-frequency system mainly consists of three parts: the high-frequency cavity, the power source, and the low-level control. The high-frequency system is powered on and operated through the high-frequency low-level control system. This system monitors the status of each device in the high-frequency system, sets the operating parameters, executes a series of control commands, and ultimately completes the startup and operation of the high-frequency system.

[0003] Traditional high-frequency systems require skilled technicians to operate and start them up. This involves monitoring the operating status of each high-frequency device and gradually completing the entire system startup process. Improper operation can lead to malfunctions or even damage to the equipment.

[0004] After the high-frequency system is debugged, it will be handed over to the central control debugging personnel for remote operation. Since the central control debugging personnel are not high-frequency professionals, it is required that the control of the high-frequency system be as safe and simple as possible, with modular and step-by-step functions, to prevent erroneous actions from causing adverse consequences to the high-frequency system. Summary of the Invention

[0005] To address the problems existing in the prior art, the purpose of this invention is to provide an intelligent automatic power-on / off method for high-frequency systems. Current high-frequency low-level control technology has achieved digital control, and intelligent control is both feasible and an inevitable trend. The intelligent power-on / off method for high-frequency systems, through a preset program algorithm, enables automatic adjustment and startup of the equipment, improving the startup speed, stability, and reliability of high-frequency equipment, reducing operator workload, and enhancing overall equipment performance and efficiency. Employing this intelligent automatic power-on / off method allows for remote one-button power-on / off functionality. Central control personnel only need to press a single button to automatically and progressively complete various action commands within the high-frequency system, reducing operator workload, minimizing potential errors, improving operational efficiency, and saving time.

[0006] The main features of this invention include: 1. The low-level control system allows for manual power-on and power-off of the high-frequency system. 2. All action commands of the low-level control system can be remotely controlled, possessing process variables (PV) and operating Experimental Physics and Industrial Control Systems (EPICS). 3. An automatic power-on / off algorithm based on the Python programming language implements state machine control, automatically and progressively completing power-on / off action commands. 4. Central control operators can perform one-button power-on / off, with real-time feedback of the power-on / off status progress.

[0007] The technical solution of this invention is as follows:

[0008] A method for intelligent automatic power-on / off of a high-frequency system, comprising the following steps:

[0009] 1. The intelligent power-on / off method for the high-frequency system includes three modes: "mode 0," "mode 1," and "mode 2." In "mode 0," the high-frequency system is in manual mode; automatic power-on / off commands are disabled, requiring operators to manually power on / off the system according to the specified steps. In "mode 1," the high-frequency system is in standard automatic mode, enabling routine automatic power-on / off. In "mode 2," the high-frequency system is in high-frequency expert mode, allowing for not only routine automatic power-on / off but also automatic handling of more complex high-frequency unexpected situations, and the potential addition of more intelligent functions.

[0010] 2. The upper-level control interface of this intelligent automatic power-on / off method contains only three process variables (PV): Auto_RFON (automatic power-on enable switch), Auto_RFOFF (automatic power-off enable switch), and Auto_Log (system status information). Auto_RFON controls the automatic power-on of the high-frequency system. When Auto_RFON is low, no action is executed; when Auto_RFON is high, the high-frequency system enters the automatic power-on process. Auto_RFOFF controls the automatic power-off of the high-frequency system. When Auto_RFOFF is low, no action is executed; when Auto_RFOFF is high, the high-frequency system enters the automatic power-off process. Auto_Log, the system status information, serves as feedback information, displaying the current status of the high-frequency system and potential problems in real time. This helps operators quickly understand the current power-on / off process and accurately pinpoint the specific problem when automatic power-on / off fails, allowing for rapid resolution of the issue.

[0011] 3. The initial intelligent power-on / off method of the high-frequency system is "mode0", which is the manual power-on / off mode. The system status prompt message Auto_Log indicates: Manual mode. If you need automatic power-on / off, please switch to a non-mode0 mode. First, perform the power-on operation. The high-frequency operator shall perform the following steps in sequence: 1) Pre-power-on status check; 2) High-frequency reset, clear the high-frequency interlock status, and set the low-level excitation amplitude setting value ref_amp_set to the initial value of 0.05; 3) When there is no fault interlock, the RF switch is closed, and the low-level excitation output is sent to the high-frequency power source through the RF switch. The high-frequency power source amplifies the RF signal and sends it to the high-frequency cavity for field establishment; 4) The cavity field amplitude and phase loop and the power source amplitude and phase loop are in open loop state, the target cavity voltage is set to 0.5MV, the frequency control loop is in closed state, and the cavity frequency is automatically adjusted to the resonant state; 5) Confirm that the error of the power source amplitude and phase loop meets the requirements: ssa_amp_error < 30%, ssa_pha_error < 5°. If the conditions are not met, the adjustment coefficient ssa_amp_set of the amplitude of the forward power acquisition signal can be adjusted to make ssa_amp_error meet the requirements and the phase can be adjusted. 6) Set the phase shift degree setting signal ssa_pha_set to ensure that ssa_pha_error meets the requirements; 7) Close the power source amplitude phase switch and ensure normal operation after closed loop; 8) Confirm that the error of the cavity field amplitude phase loop meets the requirements: fdb_amp_error < 20%, fdb_pha_error < 10°. If the conditions are not met, the adjustment coefficient fdb_amp_set of the cavity field acquisition signal amplitude can be adjusted to ensure that fdb_amp_error meets the requirements, and the phase shift degree setting signal fdb_pha_set of the cavity field acquisition signal phase can be adjusted to ensure that fdb_pha_error meets the requirements; 9) Close the cavity field amplitude phase switch and ensure normal operation after closed loop; 10) Set the target cavity pressure Vc_set, and the high frequency automatically scans to the target value; 11) Set the target cavity field phase Pha_set, and the high frequency automatically scans to the target value. The high frequency power-on is complete.

[0012] 4. In “mode0”, begin the manual shutdown operation. The high-frequency operator shall perform the following steps in sequence: 1) Open the cavity field amplitude and phase loop; 2) Open the power source amplitude and phase loop; 3) Set the target cavity voltage to 0.25MV and slowly sweep the cavity voltage down; 4) After the cavity voltage reaches about 0.25MV, disconnect the RF switch. The high-frequency shutdown is complete.

[0013] 5. When the high-frequency power-on / off mode is set to "mode1", the high-frequency system enters the standard automatic power-on / off mode. When the automatic power-on enable switch Auto_RFON is set to high level, the system starts to power on automatically and executes the high-frequency power-on actions in sequence.

[0014] 6. The high-frequency automatic power-on / off method adopts a state machine algorithm, which includes 10 states: "0 Initial state", "1 Ready state", "2 High-frequency RFOn state", "3 Power source closed-loop ready state", "4 Power source amplitude and phase loop closed state", "5 Cavity field amplitude and phase closed-loop ready state", "6 Cavity field amplitude and phase loop closed state", "7 Cavity pressure sweep state", "8 Phase sweep state", and "9 Exit state".

[0015] 7. The intelligent automatic power-on / off algorithm for the high-frequency system monitors the state machine status and relevant parameters of the high-frequency system in real time. These parameters include the high-frequency interlock status: "high-frequency ready," "high-frequency standby," and "high-frequency rfon," the high-frequency cavity pressure Vc, the high-frequency cavity field phase Vc_pha, the high-frequency cavity tuning status Tuned_Cav, the power source amplitude loop error ssa_amp_error, the power source phase loop error ssa_pha_error, the cavity field amplitude loop error fdb_amp_error, and the cavity field phase loop error fdb_pha_error. For each of the 2 to 8 states, after entering the current state, the corresponding action command is executed according to the current parameter variable values ​​of the high-frequency system, and a new state is entered. There are three main possibilities for the new state: "1. Ready State," the current state, and the next state. In the current state, if interlock protection occurs, it transitions to "1. Ready State"; if no interlock protection occurs and the conditions for entering the next state are not met, it remains in the current state; when all actions in the current state are completed and the conditions for entering the next state are met, it transitions to the next state. After the high-frequency automatic power-on state machine enters the "9 Exit State", the automatic power-on enable switch Auto_RFON is automatically set to low level and enters the "0 Initial State".

[0016] 8. The specific actions performed after entering state 0-9 from automatic power-on mode are as follows:

[0017] ● The initial state is "0 initial state". If the automatic power-on enable switch Auto_RFON is set to high level, the state will switch to "1 ready state". Otherwise, it will still enter "0 initial state".

[0018] ● In “1. Ready State”, if “High Frequency Standby” is low, it indicates that a safety interlock exists. In this case, a high frequency interlock reset is performed. Once the safety interlock is eliminated, the system enters “2. High Frequency RFOn State”. Otherwise, it remains in the current state.

[0019] ● In the "2 High-Frequency RFOn State" state, if "High-Frequency Standby" is low, it indicates a safety interlock exists, and the system returns to "1 Ready State". If the current state is "2 High-Frequency RFOn State" but no safety interlock exists, the RF switch is closed, the target cavity voltage is set to 0.5MV, and the high-frequency cavity begins automatic tuning. When the cavity is not tuned, the cavity tuning status quantity Tuned_Cav is low, and the intelligent power-on / off status value Auto_RFLog indicates that the cavity is currently detuned, specifying the detuning angle detun_angle. Then, the system returns to the current state. When Tuned_Cav is high, it indicates that the cavity frequency is tuned and the system enters the "3 Power Source Closed-Loop Ready State".

[0020] ● In the "3-power source closed-loop ready state", if "high-frequency Standby" is low, it indicates that a safety interlock exists.

[0021] If the system returns "1, ready state", otherwise it checks whether the amplitude and phase loop errors of the power source meet the requirements: power source amplitude loop error ssa_amp_error < 30%, power source phase loop error ssa_pha_error < 5°, where...

[0022] ssa_amp_error is the absolute value of the difference between the amplitude of the low-level excitation ap_out_amp and the amplitude of the cavity forward power ssa_rot_amp, divided by ap_out_amp. ssa_amp_error = |(ap_out_amp - ssa_rot_amp)| /

[0023] `ap_out_amp` and `ssa_pha_error` are the absolute values ​​of the difference between the phase value of the low-level excitation `ap_out_pha` and the phase value of the cavity forward power retrieval `ssa_rot_pha`, where `ssa_pha_error` = |ap_out_pha - ssa_rot_pha|. When the error does not meet the requirements, the system starts a countdown, and the intelligent power-on / off status value `Auto_RFLog` indicates: "Power source loop error is large, countdown time remaining." Before the countdown ends, time is allocated for system response and operator inspection. If the error requirements are met: `ssa_amp_error < 30%`, `ssa_pha_error < 5°`, then the system enters "4. Power source amplitude and phase loop closed state". If the error requirements are still not met after the countdown ends, the system enters "9. Exit state".

[0024] ● Under the "4 power source amplitude and phase loop closed state", if "high frequency Standby" is low, it indicates that an electrical fault exists.

[0025] If the interlock is fully active, it returns to "1. Ready State". Otherwise, it still needs to check whether the amplitude and phase loop error of the power source is within the allowable range: ssa_amp_error < 30%, ssa_pha_error < 5°. If it is not within the allowable range, it returns to "3. Power Source Closed-Loop Ready State". If the error is within the allowable range and there is no safety interlock, the power source amplitude and phase loop switch SSA_LPON is set to high level, the power source amplitude and phase loop is closed, and it re-enters the current state. If the loop works normally, the power source amplitude and phase loop switch SSA_LPON is high level, and it enters "5. Cavity Field Amplitude and Phase Closed-Loop Ready State". If the loop cannot work normally, the loop will automatically open, SSA_LPON will be set to low level, and it will re-enter the current state.

[0026] ● In the "5-cavity field amplitude and phase closed-loop ready state", if "high-frequency Standby" is low, it indicates that a safety issue exists.

[0027] If interlocked, return to "1 ready state"; otherwise, check if the cavity field amplitude and phase loop error meets the requirements.

[0028] fdb_amp_error < 20%, fdb_pha_error < 10°, where fdb_amp_error is the absolute value of the difference between the low-level excitation amplitude setting value ref_amp_set and the cavity field power retrieval amplitude value fdb_rot_amp divided by ref_amp_set, fdb_amp_error = |(ref_amp_set - fdb_rot_amp)| / ref_amp_set, and fdb_pha_error is the difference between the low-level excitation phase setting value ref_pha_set and the cavity field power retrieval phase value fdb_rot_pha, fdb_pha_error = |ref_pha_set - fdb_rot_pha|. When the error does not meet the requirements, the system starts a countdown, and the intelligent power-on / off status value Auto_RFLog indicates: large cavity field loop error, and how much countdown time remains. Before the countdown ends, time is allocated for system response and staff inspection. If the error requirements are met:

[0029] If fdb_amp_error < 20% and fdb_pha_error < 10°, then the system enters the "6-cavity field amplitude and phase loop closed state".

[0030] If the error requirement is still not met after the countdown ends, then enter "9 Exit Status".

[0031] ● In the "6-cavity amplitude and phase loop closed state", if "high-frequency Standby" is low, it indicates a safety interlock, and the system returns to the "1-preparation state". Otherwise, it is still necessary to first determine whether the cavity amplitude and phase loop error meets the requirements: fdb_amp_error < 20%, fdb_pha_error < 10°. If it is not within the allowable range, the system returns to the "5-cavity amplitude and phase closed loop preparation state". Otherwise, the cavity amplitude and phase closed loop switch Vc_LPON is set to high, closing the cavity amplitude and phase loop, and the system re-enters the current state. If the loop works normally, the cavity amplitude and phase loop switch Vc_LPON is high, and the system enters the "7-cavity voltage sweep state". If the loop fails to work normally, the loop will automatically open, Vc_LPON will be set low, and the system will re-enter the current state.

[0032] ● In the "7-cavity pressure sweep state", if "high-frequency standby" is low, it indicates that a safety interlock exists, and the system returns to the "1-preparation state". Otherwise, the cavity pressure amplitude Vc will increase at a rate of approximately 0.02 MV per second until the target cavity pressure Vc_set is reached. The value of Vc_set is set according to the physical requirements of the accelerator device. Once the cavity pressure amplitude reaches the set value, the system transitions to the "8-phase sweep state".

[0033] ● In the "8-phase sweep state", if "high-frequency standby" is low, it indicates that a safety interlock exists, and the system returns to the "1-preparation state". Otherwise, the cavity phase Vc_pha will sweep at a rate of approximately 1 degree per second until the target phase Pha_set is reached. The value of Pha_set is set according to the physical requirements of the accelerator device. Once the cavity phase reaches the set value, the system transitions to the "9-exit state".

[0034] ● After entering "9 Exit State", if the automatic power-on enable switch Auto_RFON is low, it will directly jump to "0 Initial State"; otherwise, the automatic power-on enable switch Auto_RFON will be set to zero, and then it will enter "0 Initial State". At this point, the entire automatic power-on process ends.

[0035] 9. In mode 1, when in the "0 initial state", manually setting the auto-shutdown enable switch Auto_RFOFF to high will cause the system to automatically perform the following shutdown actions sequentially: 1. Open the cavity field amplitude and phase loop; 2. Open the power source amplitude and phase loop; 3. Set the target cavity voltage to 0.25MV, and the cavity voltage will slowly sweep down; 4. After the cavity voltage reaches approximately 0.25MV, the RF switch will be disconnected, the high-frequency shutdown will be completed, and then the auto-shutdown enable switch Auto_RFOFF will be automatically set to low, and the system will re-enter the "0 initial state" to wait for the next instruction. When not in the "0 initial state", even if the auto-shutdown enable switch Auto_RFOFF is manually set to high, the system will not automatically shut down until it enters the "0 initial state" to begin the automatic shutdown action.

[0036] 10. When the high-frequency power-on / off mode is set to "mode2", the high-frequency system enters expert automatic power-on / off mode. The difference between "mode2" and "mode1" is that in "1 Ready State", the system can handle and resolve more complex problems, while the actions in other states are exactly the same. In "mode2", the specific action instructions after the system enters "1 Ready State" are as follows:

[0037] ● In the "1 Ready State" state, if "High Frequency Standby" is low, it indicates that a safety interlock exists. In this case, the high frequency interlock is reset and the current state is re-entered.

[0038] ● After the safety interlock state is eliminated, first monitor the high-frequency low-level phase logic state quantity pha_flag. When pha_flag is high, it indicates that the high-frequency low-level phase is working normally and enters the "2 high-frequency RFOn state".

[0039] ● When pha_flag is low, it indicates that the low-level system has restarted and low-level phase calibration is required. Before automatic calibration, the reference signal reference phase ref_old_pha and the DDS excitation signal reference phase dds_old_pha are first detected. If both are 0, it means that the server system storing these two parameters has also lost power. At this time, the parameter loading switch Para_load of the low-level system is set to high. The system will then automatically load the most recent low-level parameter configuration table, so that ref_old_pha and dds_old_pha return to normal. These two phases are the reference values ​​for automatic phase calibration, and their correctness must be ensured.

[0040] ● After the low-level parameter configuration table is loaded, the automatic phase calibration enable switch pha_recover is automatically set to high level to enable the automatic calibration function. When the high-frequency low-level phase logic state pha_flag goes high, it indicates that the low-level phase calibration is complete, and the system enters "2 high-frequency RFOn state".

[0041] Furthermore, in "mode2", the automatic control function can be supplemented and improved based on actual or anticipated problems, and the system can automatically solve the corresponding problems, thereby improving the system's intelligence level.

[0042] Furthermore, the chamber pressure scan step size is adjustable in the "7-chamber pressure sweep state".

[0043] Furthermore, the phase scan step size is adjustable in the "8-phase sweep state".

[0044] Furthermore, this intelligent automatic power-on / off method relies on a high-frequency low-level control system, with the specific actions being executed by the low-level control system.

[0045] Furthermore, this power-on / off method can be expanded to include more modes. Different power-on modes can be set according to different scenario needs, and different state machine operation settings can be performed in different modes as needed.

[0046] Furthermore, the intelligent automatic power-on / off method is implemented using the Python programming language.

[0047] Furthermore, the intelligent automatic power-on / off method uses the pyepics module to establish an interface between Python and EPICS, enabling Python to access the PV data of the EPICS system.

[0048] Compared with the prior art, the present invention has the following advantages:

[0049] 1. Improved efficiency: This method realizes the automatic power-on and power-off process of the high-frequency system. When powered on, the high-frequency RF switch is automatically reset and closed, and the cavity pressure and phase are automatically adjusted to the set target values. When powered off, the high-frequency system is automatically shut down and the power is cut off, thereby greatly improving the power-on and power-off speed of the high-frequency system and saving time.

[0050] 2. Improved stability and reliability: It can ensure that high-frequency equipment operates according to preset programs and parameters during the startup process, reducing human intervention, improving the stability and reliability of high-frequency equipment, and reducing the risks caused by human operation.

[0051] 3. Improved intelligence level: The high-frequency system can automatically complete various operations, realize intelligent control of high-frequency system equipment, and improve the intelligence level and automation of high-frequency system control.

[0052] 4. Remote monitoring and control: Enables remote monitoring and control of high-frequency systems, making remote control of high-frequency systems more convenient and efficient, and improving equipment operating efficiency. Attached Figure Description

[0053] Figure 1 This is a block diagram of a high-frequency system.

[0054] Figure 2 This is the low-level power-on process in mode 0.

[0055] Figure 3 This is the state transition diagram of the high-frequency intelligent power-on / off algorithm in mode 1. Detailed Implementation

[0056] This invention relates to an intelligent automatic power-on / off method for a high-frequency system. The invention will be further described in detail below with reference to the accompanying drawings:

[0057] The basic schematic diagram of a high-frequency system is as follows: Figure 1 As shown. The high-frequency system mainly includes a low-level control system, a power source, and a high-frequency cavity, etc. The reference line provides the operating frequency of the high-frequency low-level system. This intelligent power-on / off method runs on a server, and the control interface runs on the OPI system. Both are interconnected with the low-level control system through a network. This intelligent power-on / off algorithm relies on the high-frequency low-level control system, and the execution of specific power-on / off action commands is completed by the low-level control system.

[0058] Low-level parameter reading and writing: The intelligent power-on / off method is designed and developed based on the Python programming language, using the pyepics module to implement the reading and writing of PV quantities of the EPICS system by the Python program. The low-level logic control quantities to be read and written mainly include: Mode selection ModeSet, intelligent power-on switch Auto_RFON, intelligent power-off switch Auto_RFOff, high-frequency interlock reset switch RF_RST, high-frequency RF closing switch RFOn, high-frequency RF opening switch RFOff, power source amplitude and phase loop switch SSA_LPON, cavity field amplitude and phase loop switch VC_LPON, remote control switch Remote, high-frequency parameter loading Para_Load, high-frequency low-level phase calibration Pha_Recvoer, cavity pressure phase scan switch vc_pha_sweep, etc. The low-level parameter setting quantities to be read and written mainly include: Mode setting Mode, cavity pressure setting Vc_set, phase setting Pha_set, detuning angle setting Detun_angle, etc. The low-level state quantities read mainly include: the intelligent power-on / off state value Auto_RFLog, cavity voltage Vc, phase Vc_pha, cavity field amplitude-phase loop difference fdb_amp_error and fdb_pha_error, power source amplitude-phase loop difference ssa_amp_error and ssa_pha_error, cavity tuning state Tuned_Cav, low-level phase logic state pha_flag, and high-frequency interlocking states: "high-frequency ready", "high-frequency standby", and "high-frequency rfon", etc.

[0059] Modular Functionality: The main execution parts of the intelligent power-on / off method are modularized into functions. When the algorithm needs to implement a certain function, it can directly call the corresponding function module, resulting in a clear and well-defined architecture. The main functional modules include:

[0060] ● High-frequency interlocking reset function module: When the interlocking status "high-frequency standby" is low, it indicates that there is an interlock. First, set the interlocking reset switch RF_RST to high, wait for 1 second, and then set RF_RST to low.

[0061] The high-frequency radio frequency physical closed switch is a pulse-triggered switch, and the control quantity RF_RST does not need to be kept at a high level all the time.

[0062] The function returns 1 when "high-frequency standby" is high when all interlocks are cleared, otherwise it returns 0.

[0063] ● High-frequency RFOn power-on function module: When the interlocking status "high-frequency standby" is high, it indicates that the current interlocking...

[0064] Cleared. First, set the high-frequency radio frequency closing switch RFOn to a high level, wait 1 second, and then set RFOn to a low level. The high-frequency radio frequency physical closing switch is a pulse-triggered switch, and the control quantity RFOn does not need to be kept at a high level continuously.

[0065] When the high-frequency RF switch closes normally, "high-frequency RFon" is at a high level, and the function returns 1; otherwise, it returns 0. ● High-frequency RFOff shutdown function module: First, it checks if the cavity pressure Vc is less than 0.5MV. If Vc > 0.5MV, then...

[0066] First, set the cavity pressure to 0.4MV and begin a slow, gradual reduction of the cavity pressure. When Vc < 0.5MV, first set the cavity field amplitude-phase loop closed-loop switch VC_LPON to low level to open the cavity field amplitude-phase loop, then set the power source amplitude-phase loop closed-loop switch SSA_LPON to low level. Next, set the high-frequency RF disconnect switch RFOff to high level, wait 1 second, and then set RFOff to low level. The high-frequency RF physical closing switch is a pulse-triggered switch; the control quantity RFOff does not need to be held high continuously. After the high-frequency RF switch is normally closed, "high-frequency RFON" will then be active.

[0067] If the signal is low, the function returns 1; otherwise, it returns 0.

[0068] ●Power source amplitude and phase loop error function module: Determines whether the power source amplitude and phase loop error meets the following requirements:

[0069] If ssa_amp_error < 30% and ssa_pha_error < 5°, the function returns 1 if the condition is met, indicating that the loop closure condition is met; otherwise, the function returns 0.

[0070] ● High-frequency power source amplitude and phase loop closed-loop function module: First, the power source amplitude and phase loop error function is called, when...

[0071] When the function returns 0, it indicates that the closed-loop requirement is not met, so the closed-loop is not performed, the value of SSA_LPON is low, and this function returns 0; otherwise, the power source amplitude and phase loop switch SSA_LPON is set to high level, the cavity field amplitude and phase loop is closed, and this function returns 1.

[0072] ●Cavity field amplitude and phase loop error function module: Determines whether the cavity field amplitude and phase loop error meets the following requirements:

[0073] If fdb_amp_error < 20% and fdb_pha_error < 10°, the function returns 1 if the condition is met, indicating that the loop closure condition is met; otherwise, the function returns 0.

[0074] ● High-frequency cavity field amplitude and phase loop closed-loop function module: First, the cavity field amplitude and phase loop error function is called. When the function...

[0075] When the return value is 0, it indicates that the closed-loop requirement is not met, so the closed-loop is not performed, the value of Vc_LPON is low, and this function returns 0; otherwise, the cavity field amplitude and phase loop switch Vc_LPON is set to high, the cavity field amplitude and phase loop is closed, and this function returns 1.

[0076] ●Cavity pressure sweep function module: If the remote switch is low, set it to high. If

[0077] If the cavity pressure phase scan switch vc_pha_sweep is low, it is set to high. When both Remote and vc_pha_sweep are high, the target cavity pressure Vc_set is set. The low-level system's currently set cavity pressure ref_rot_amp will continuously increase the cavity pressure in steps of 0.02MV per second. The difference between the actual cavity pressure Vc and the target cavity pressure Vc_set is compared. When the difference is greater than 0.02MV, the function returns 0 and continues the cavity pressure sweep scan. When the difference is less than 0.02MV, it indicates that the cavity pressure scan is complete, and the increase of the low-level excitation control variable ref_rot_amp stops.

[0078] The function returns 1.

[0079] ● Phase sweep function module: If the remote control switch Remote is low, set it to high. If the cavity pressure phase sweep switch vc_pha_sweep is low, set it to high. When both Remote and vc_pha_sweep are high, set the target phase Pha_set. The currently set phase ref_rot_pha of the low-level system will continuously approach the target phase in steps of 0.1° every 0.1 seconds. The difference between the actual phase Vc_pha and the target Pha_set is judged. When the difference is greater than 0.2°, the function returns 0 and continues the phase sweep scan. When the difference is less than 0.2°, it indicates that the cavity field phase scan is in place. At this time, the low-level phase control variable ref_rot_pha is stopped, and the function returns 1.

[0080] ●Low-level phase calibration function module: If both the reference signal reference phase ref_old_pha and the DDS excitation signal reference phase dds_old_pha are 0, the parameter loading switch Para_load for the low-level system is set to high. The system will automatically load the most recent low-level parameter configuration table, restoring ref_old_pha and dds_old_pha to normal. After the low-level parameter configuration table is loaded, the automatic phase calibration enable switch pha_recover is set to high, enabling the automatic phase calibration function. When the high-frequency low-level phase logic status pha_flag goes high, the function returns 1, indicating that the low-level phase calibration is complete; otherwise, the function returns 0.

[0081] The intelligent power-on / off method for high-frequency systems is implemented using a state machine algorithm. The state machine includes 10 states: "0 Initial state", "1 Ready state", "2 High-frequency RFOn state", "3 Power source closed-loop ready state", "4 Power source amplitude and phase loop closed state", "5 Cavity field amplitude and phase closed-loop ready state", "6 Cavity field amplitude and phase loop closed state", "7 Cavity pressure sweep state", "8 Phase sweep state", and "9 Exit state".

[0082] The intelligent power-on / off method for high-frequency systems is divided into three modes: "mode0 mode" - manual mode, "mode1 mode" - standard automatic mode, and "mode2 mode" - expert automatic mode. These modes can be set via the Modeset switch, which will be introduced in turn below.

[0083] 1. Implementation of manual power on / off method in "mode 0 mode"

[0084] When Modeset is set to 0, the system enters "mode0 mode". In this mode, the algorithm state machine is always in the "initial state of 0". When the automatic power-on enable switches Auto_RFON and Auto_RFOFF are set to high, they are automatically set to low. The system status message Auto_log indicates: "Currently in mode0 mode. Please switch to mode1 mode for automatic power-on." In "mode0 mode", the operator needs to manually operate the low-level control system in sequence. The manual power-on procedure for low-level control is as follows: Figure 2 As shown, it mainly includes the following aspects:

[0085] High-frequency system startup preparation: 1. Check the low-level system, including the low-level control chassis, interlocking chassis, PLC acquisition system, etc., to ensure that all equipment is working properly. 2. Check the high-frequency cavity status, verifying each item according to the high-frequency cavity startup preparation checklist. 3. Check the power source status, verifying each item according to the power source startup preparation checklist, and power on the power source after confirming that everything is correct.

[0086] Resetting the interlock status of the high-frequency system: When an interlock signal occurs in the high-frequency system, the interlock device will turn off the RF switch, cut off the high-frequency power, and latch the interlock status. Before powering on the low-level control system, the interlock reset button on the RF switch must be pressed to clear the interlock status.

[0087] RFON Power-On for High-Frequency Systems: The high-frequency system interlocking status is divided into three states: "High-Frequency Ready," "High-Frequency Standby," and "High-Frequency RFON." When an interlocking fault signal exists within the high-frequency system, "High-Frequency Ready" is at a low level. When all interlocking signals of the high-frequency system are normal, "High-Frequency Ready" is at a high level, indicating that the high-frequency system is ready. When "High-Frequency Ready" is ready and all interlocking signals sent to the high-frequency system from the external system are normal, "High-Frequency Standby" is at a high level, indicating that the high-frequency system meets the power-on conditions and is ready for power-on. When the RF switch of the low-level system is closed normally, RF power will be input to the high-frequency cavity, and the high-frequency cavity will be built up. At this time, "High-Frequency RFON" is at a high level, and the high-frequency system is in normal power-on operation.

[0088] Frequency control loop tuning: After the high-frequency cavity establishes a field, the low-level frequency control loop starts to work automatically, automatically adjusting the frequency of the high-frequency cavity to the resonant state.

[0089] Power source loop closure: After the high-frequency cavity is tuned, if the power source amplitude loop error ssa_amp_error and the power source phase loop error ssa_pha_error are within 30% and 5° respectively, manually close the power source amplitude and phase loop of the low-level control system. Otherwise, adjust the adjustment coefficient ssa_amp_set of the amplitude of the forward power acquisition signal so that ssa_amp_error meets the requirements, adjust the phase shift degree setting signal ssa_pha_set of the forward power acquisition signal so that ssa_pha_error meets the requirements, and then the loop can be closed.

[0090] Cavity field amplitude and phase loop closure: After the power source loop is closed, if the amplitude error fdb_amp_error and phase error fdb_pha_error of the cavity field amplitude and phase loop are within 20% and 10° respectively, the cavity field amplitude and phase loop of the low-level control system is closed. If the conditions are not met, the adjustment coefficient vc_amp_set of the amplitude of the cavity field retrieval signal can be adjusted to make fdb_amp_error meet the requirements, and the phase shift setting signal vc_pha_set of the cavity field retrieval signal can be adjusted to make fdb_pha_error meet the requirements, and then the loop can be closed.

[0091] Target cavity pressure setting: After the amplitude phase loop is closed, the low-level system sets the target cavity pressure. The high-frequency cavity pressure slowly increases from the current value to the set cavity pressure Vc_set in small steps of about 0.02MV.

[0092] Cavity phase setting: When the cavity pressure reaches the set value, the high-frequency cavity phase is set to the specified phase. The high-frequency cavity phase will gradually reach the set target phase Pha_set at a rate of 1 degree per second.

[0093] Manual shutdown procedure at low level: 1. Open the cavity field amplitude and phase loop; 2. Open the power source amplitude and phase loop; 3. Set the target cavity voltage to 0.25MV, and the cavity voltage will slowly sweep down; 4. After the cavity voltage reaches about 0.25MV, disconnect the RF switch, and the high-frequency shutdown is complete.

[0094] 2. Implementation of the automatic power on / off algorithm in "mode1"

[0095] When Modeset is set to 1, the system enters "mode1 mode," starting in "initial state 0." It continuously monitors the states of the smart power-on switch Auto_RFON and the smart power-off switch Auto_RFOff. When Auto_RFON is detected to be high, automatic power-on begins, transitioning between states 0 and 9 in the state machine. When Auto_RFOFF is detected to be high, automatic power-off begins. The specific state machine transition diagram is shown below. Figure 2 As shown.

[0096] The initial state is "0 initial state", and it will eventually return to "0 initial state" after all actions are completed. In the "0 initial state", when an automatic power-on action is detected, it will switch to "1 ready state". Otherwise, if an automatic power-off action is detected, the automatic power-off function module will be executed to complete a series of power-off actions. When the function returns 1, it indicates that the power-off is complete, the automatic power-off enable switch Auto_RFOFF will be set to zero, and then it will return to the "0 initial state".

[0097] In the "1 Ready State" state, if "High Frequency Standby" is low, it indicates that a safety interlock exists. The high frequency interlock reset function module is then executed. When the function returns 1, it indicates that the interlock state has been eliminated, and then the system enters the "2 High Frequency RFOn" state. In the "1 Ready State" state, if automatic power-on is disabled at this time, i.e., Auto_RFON is set to low, the system returns to the "0 Initial State".

[0098] In the "2 High-Frequency RFOn State", if "High-Frequency Standby" is low, it indicates that a safety interlock exists, and the system returns to the "1 Ready State". Otherwise, the high-frequency RFOn power-on function module will be executed to perform high-frequency power-on, close the RF switch, and the function returns to 1, indicating that the system has been powered on normally. After the high-frequency RF switch is closed, the target cavity voltage is set to 0.5MV, the cavity field begins to build up, and the cavity voltage begins to rise. The high-frequency cavity begins to automatically tune. When the high-frequency cavity has not entered the resonant state, it is still in the "2 High-Frequency RFOn State", waiting for the high-frequency cavity to tune. Once the cavity frequency is tuned to the desired level, it enters the "3 Power Source Closed-Loop Ready State".

[0099] In the "3 Power Source Closed-Loop Ready State" state, if "High-Frequency Standby" is low, it indicates a safety interlock, and the system returns to "1 Ready State". Otherwise, it calls the power source amplitude and phase loop error function module. When the function returns 0, it means the error is not within the allowable range, and the system starts a 2-minute countdown. The intelligent power-on / off status value Auto_RFLog indicates: "Power source loop error is large, countdown time remaining." Before the countdown ends, time is allocated for system response and staff inspection, and the system re-enters the current state. If the return value is still 0 after the countdown ends, the system enters "9 Exit State". When the return value is 1, it indicates the error is within the allowable range, and the system enters "4 Power Source Amplitude and Phase Loop Closed State".

[0100] In the "4 Power Source Amplitude and Phase Loop Closed State", if "High Frequency Standby" is low, it indicates that there is a safety interlock, and it returns to "1 Ready State". Otherwise, the power source amplitude and phase loop closing function is called. When the return value is 0, it indicates that the system cannot close the loop and returns to "3 Power Source Closed Loop Ready State". Otherwise, it indicates that the power source closed loop switch has been closed normally and enters "5 Cavity Field Amplitude and Phase Closed Loop Ready State".

[0101] In the "5-cavity field amplitude and phase closed-loop preparation state," if "High-frequency Standby" is low, it indicates a safety interlock, and the system returns to "1-preparation state." Otherwise, the high-frequency cavity field amplitude and phase loop error function module is called. When the function returns 0, it means the error is outside the allowable range, and the system starts a 2-minute countdown. The intelligent power-on / off status value Auto_RFLog indicates: large cavity field loop error, and the remaining countdown time. Before the countdown ends, time is allocated for system response and staff inspection, and the system re-enters the current state. If the return value is still 0 after the countdown ends, the system enters "9-exit state." When the return value is 1, it indicates the error is within the allowable range, and the system enters "6-cavity field amplitude and phase closed-loop state."

[0102] In the "6-cavity field amplitude and phase loop closed state", if the "high frequency Standby" is low, it indicates that there is a safety interlock, and it returns to the "1 preparation state". Otherwise, the high frequency cavity field amplitude and phase loop closing function is called. When the return value is 0, it indicates that the system cannot close the loop and returns to the "5-cavity field amplitude and phase loop closing preparation state". Otherwise, it indicates that the cavity field amplitude and phase loop closing switch has been closed normally and enters the "7-cavity pressure sweep state".

[0103] In the "7-cavity pressure sweep state", if "high-frequency standby" is low, it indicates that a safety interlock exists, and the system returns to the "1-preparation state". Otherwise, the cavity pressure sweep function is called. When the return value is 0, it indicates that the cavity pressure has not been scanned to the required level, and the system re-enters the current state. When the return value is 1, it indicates that the cavity pressure amplitude has reached the set value, and the system transitions to the "8-phase sweep state".

[0104] In the "8-phase sweep state", if "high-frequency standby" is low, it indicates a safety interlock, and the system returns to the "1-preparation state". Otherwise, the phase sweep function is called. When the return value is 0, it indicates that the phase has not been scanned to the correct position, and the system re-enters the current state. When the return value is 1, it indicates that the cavity field phase has reached the set phase. The system then transitions to the "9-exit state".

[0105] After entering "9 Exit State", the automatic power-on enable switch Auto_RFON is first set to zero, and then it returns to "0 Initial State". The entire automatic power-on process ends.

[0106] 3. Implementation of the automatic power on / off algorithm in "mode2"

[0107] When Modeset is set to 2, it enters "mode2 mode". The algorithm in this mode is basically the same as "mode1 mode". The difference is that the algorithm in "1 ready state" is slightly different.

[0108] In the "1. Ready State" state, if "High-Frequency Standby" is low, it indicates a safety interlock exists. The high-frequency interlock reset function is then executed. When the function returns 1, it indicates the interlock is eliminated. Next, the high-frequency low-level phase calibration function is called. When it returns 1, it indicates phase calibration is complete, and the system enters the "2. High-Frequency RFOn" state; otherwise, it remains in the current state. In the "1. Ready State" state, if automatic power-on is disabled (Auto_RFON is set low), the system returns to the "0. Initial State".

[0109] In "mode2", new functional algorithms can be added to further expand the level of intelligence.

[0110] 3. Integrated debugging

[0111] The server runs an automatic power-on / off state machine program written in Python. It is set to mode 1, with target cavity voltage Vc_set and phase Pha_set. The automatic power-on enable switch Auto_RFON is set high. The automatic power-on / off algorithm is debugged, and the status indicators are observed. Based on the feedback, the system identifies any problems encountered or the current state of the automatic power-on / off process. When a problem is encountered, it is resolved according to the feedback, allowing the state machine to smoothly enter the next state. This process continues until the automatic power-on action is completed, the cavity voltage and phase successfully reach the set target values, and the automatic power-on enable switch is automatically set low, ending the automatic power-on process. The automatic power-off enable switch is then set high to initiate high-frequency automatic power-off. The algorithm sequentially opens the cavity field amplitude and phase loops and the power source amplitude and phase loops, slowly reducing the cavity voltage to a lower preset value. When the cavity voltage drops to the lower set value, the RF switch is turned off, the power source is cut off, the automatic power-off enable switch is set low, and the automatic power-off process ends.

[0112] Restarting the low-level control chassis, the phases of both the low-level reference phase ref_pha and the DDS excitation signal changed. Setting ModeSet to 2 and entering "mode2 mode" and setting the automatic power-on enable switch Auto_RFON to high level, after entering "1 ready state", the system was able to automatically perform phase calibration and successfully enter "2 high-frequency RFon state" after calibration, indicating that the automatic power-on algorithm in "mode2 mode" is running normally.

[0113] During the automatic power-on and power-off process, only the enable actions for automatic power-on and power-off need to be executed at the beginning. No other operations are required. At this time, it indicates that the high-frequency system's automatic power-on and power-off can operate normally, the debugging is completed, and it can be handed over to the central control debugging personnel for normal operation.

[0114] Although specific embodiments of the invention have been disclosed for illustrative purposes to aid in understanding and implementing the invention, those skilled in the art will understand that various substitutions, variations, and modifications are possible without departing from the spirit and scope of the invention and the appended claims. Therefore, the invention should not be limited to the content disclosed in the preferred embodiments, and the scope of protection claimed by the invention is defined by the claims.

Claims

1. A method for intelligent automatic power-on / off of a high-frequency system, comprising the following steps: 1) Configure the automatic power-on enable switch Auto_RFON and the automatic power-off enable switch Auto_RFOFF; establish a state machine including 10 states: "0 Initial state", "1 Ready state", "2 High-frequency RFOn state", "3 Power source closed-loop ready state", "4 Power source amplitude and phase loop closed state", "5 Cavity field amplitude and phase closed-loop ready state", "6 Cavity field amplitude and phase loop closed state", "7 Cavity voltage sweep state", "8 Phase sweep state", and "9 Exit state"; when Auto_RFON is high, the high-frequency system enters the automatic power-on process; when Auto_RFOFF is high, the high-frequency system enters the automatic power-off process. 2) Monitor the state of the state machine and the relevant parameter values ​​of the high-frequency system in real time. The relevant parameters include the high-frequency cavity pressure Vc, the high-frequency cavity phase Vc_pha, the high-frequency cavity tuning state Tuned_Cav, the power source amplitude loop error ssa_amp_error, the power source phase loop error ssa_pha_error, the cavity field amplitude loop error fdb_amp_error, and the cavity field phase loop error fdb_pha_error. 3) If the current state is "0 initial state" and the automatic power-on enable switch Auto_RFON is high, the state will switch to "1 ready state"; otherwise, it will remain in "0 initial state". 4) If the current state is "1. Ready State" and a safety interlock exists, then the high-frequency interlock is reset. After the safety interlock state is eliminated, it enters "2. High-Frequency RFOn State". Otherwise, it still enters "1. Ready State". If the current state is "1. Ready State" and there is no safety interlock, then it enters "2. High-Frequency RFOn State". 5) If the current state is "2 High-Frequency RFOn State" and there is a safety interlock, then return to "1 Ready State". Otherwise, close the RF switch, set the target cavity voltage, and the high-frequency cavity starts automatic tuning. When the cavity frequency is tuned to the desired position, enter "3 Power Source Closed-Loop Ready State". 6) If the current state is "3 Power source closed loop ready state" and there is a safety interlock, then return to "1 ready state". Otherwise, check whether the power source amplitude loop error ssa_amp_error and the power source phase loop error ssa_pha_error meet the requirements: ssa_amp_error < power source amplitude loop error threshold, ssa_pha_error < power source phase loop error threshold. When the error does not meet the requirements, start a countdown. If the requirements are still not met after the countdown, then enter "9 exit state". Otherwise, enter "4 Power source amplitude and phase loop closed state". 7) If the current state is "4 Power source amplitude and phase loop closed state" and there is a safety interlock, then return to "1 Preparation state". Otherwise, check whether ssa_amp_error < power source amplitude loop error threshold and ssa_pha_error < power source phase loop error threshold are satisfied. If not satisfied, return to "3 Power source closed loop preparation state". If satisfied and the power source amplitude and phase loop state is open loop, then re-enter "4 Power source amplitude and phase loop closed state". If satisfied and the power source amplitude and phase loop state is normal closed loop, then enter "5 Cavity field amplitude and phase closed loop preparation state". 8) If the current state is "5. Cavity field amplitude and phase closed loop ready state" and there is a safety interlock, then return to "1. Ready state". Otherwise, check whether the cavity field amplitude loop error fdb_amp_error and the cavity field phase loop error fdb_pha_error meet the requirements of fdb_amp_error < cavity field amplitude loop error threshold and fdb_pha_error < cavity field phase loop error threshold. If the error does not meet the requirements, start a countdown. If the error still does not meet the requirements after the countdown, enter "9. Exit state". If the error meets the requirements, enter "6. Cavity field amplitude and phase closed loop state". 9) If the current state is "6-cavity amplitude and phase loop closed state" and there is a safety interlock, then return to "1-preparation state". Otherwise, check if fdb_amp_error < cavity amplitude loop error threshold and fdb_pha_error < cavity phase loop error threshold. If they are true, return to "5-cavity amplitude and phase closed loop preparation state". If they are true and the cavity amplitude and phase loop state is open loop, then re-enter "6-cavity amplitude and phase loop closed state". If they are true and the cavity amplitude and phase loop state is normal closed loop, then enter "7-cavity pressure sweep state". 10) If the current state is "7-cavity pressure sweep state" and there is a safety interlock, then return to "1-preparation state"; otherwise, when the cavity pressure amplitude reaches the target cavity pressure setting value Vc_set, switch to "8-phase sweep state". 11) If the current state is "8-phase sweep state" and there is a safety interlock, then return to "1-preparation state"; otherwise, when the cavity field phase reaches the target phase setting value Pha_set, switch to "9-exit state". 12) If the current state is "9 Exit State" and the Auto Power Enable switch Auto_RFON is low, then jump to "0 Initial State". Otherwise, set the Auto Power Enable switch Auto_RFON to zero and then enter "0 Initial State".

2. The method according to claim 1, characterized in that, Set the high-frequency system's intelligent automatic power-on / off mode: mode1 and mode2; where mode1 is the standard automatic mode and mode2 is the high-frequency expert mode; first, detect the current high-frequency system's intelligent automatic power-on / off mode. When the high-frequency system's intelligent automatic power-on / off mode is mode1, execute steps 1) to 12); when the high-frequency system's intelligent automatic power-on / off mode is mode2, execute steps 1) to 3), 21) to 22), and 5) to 12), where steps 21) to 22) are as follows: 21) If the current state is "1 Ready State" and a safety interlock exists, then perform a high-frequency interlock reset and re-enter "1 Ready State"; when the safety interlock state is eliminated, first monitor the high-frequency low-level phase logic state quantity pha_flag. When pha_flag is high, it indicates that the high-frequency low-level phase is working normally, and enter "2 High-Frequency RFOn State"; when pha_flag is low, it indicates that the low-level system is restarting and low-level phase calibration is required; before the low-level phase automatic calibration, first detect the reference signal reference phase ref_old_pha and the DDS excitation signal reference phase dds_old_pha. If both are 0, then set the parameter loading switch quantity Para_load of the low-level system to high, and load the most recent low-level parameter configuration table, so that ref_old_pha and dds_old_pha return to normal; 22) After the low-level parameter configuration table is loaded, the automatic phase calibration enable switch pha_recover is automatically set to high level to enable the automatic calibration function; when the high-frequency low-level phase logic state pha_flag becomes high level, it indicates that the low-level phase calibration is complete and the system enters "2 high-frequency RFOn state".

3. The method according to claim 1 or 2, characterized in that, The intelligent automatic power-on / off mode of the high-frequency system also includes mode 0 mode, which is a manual mode; when the intelligent automatic power-on / off mode of the high-frequency system is mode 0, manual power-on or manual power-off operations are performed.

4. The method according to claim 3, characterized in that, The method for performing manual power-on is as follows: 311) Check the status before power-on; 312) Perform high-frequency reset, clear the high-frequency interlock status, and set the low-level excitation ref_amp_set to the initial value; 313) When there is no fault interlock, the RF switch is closed, and the low-level excitation output is sent to the high-frequency power source through the RF switch. The high-frequency power source amplifies the RF signal and sends it to the high-frequency cavity for field establishment. 314) The cavity field amplitude and phase loop and the power source amplitude and phase loop are in open-loop state. Set the target cavity voltage. The frequency control loop is in closed state, and the cavity frequency is automatically adjusted to the resonant state. 315) Confirm whether the conditions ssa_amp_error < power source amplitude loop error threshold and ssa_pha_error < power source phase loop error threshold are met. If not, adjust the adjustment coefficient ssa_amp_set of the amplitude of the forward power acquisition signal so that ssa_amp_error < power source amplitude loop error threshold. Adjust the phase shift degree setting signal ssa_pha_set so that ssa_pha_error < power source phase loop error threshold. 316) Close the power source amplitude and phase switch and ensure that the operation is correct after the loop is closed. 317) Confirm whether the cavity field amplitude loop error fdb_amp_error < cavity field amplitude loop error threshold and the cavity field phase loop error fdb_pha_error < cavity field phase loop error threshold. If not, adjust the adjustment coefficient vc_amp_set of the cavity field retrieval signal amplitude so that fdb_amp_error < phase shift degree. Adjust the phase shift degree setting signal vc_pha_set of the cavity field retrieval signal so that fdb_pha_error < cavity field phase loop error threshold. 318) Close the cavity field amplitude phase switch and ensure normal operation after loop closure. 319) Set the target cavity pressure Vc_set, and the high-frequency cavity pressure is automatically scanned to the target cavity pressure value. Then set the target cavity field phase Pha_set, and the high-frequency phase is automatically scanned to the target phase. The high-frequency power-on is complete. The values ​​of Vc_set and Pha_set are set according to the physical requirements of the accelerator device.

5. The method according to claim 3, characterized in that, The manual shutdown procedure is as follows: 321) Open the cavity field amplitude and phase loop; 322) Open the power source amplitude and phase loop; 323) Set the target cavity voltage to 0.25MV, and the cavity voltage will slowly sweep down; 324) After the cavity voltage reaches 0.25MV, disconnect the RF switch, and the high-frequency shutdown is complete.

6. The method according to claim 1, characterized in that, When in the "0 initial state", manually set the automatic shutdown enable switch Auto_RFOFF to high level. The high-frequency system will then perform the following shutdown actions in sequence: 11) Open the cavity field amplitude and phase loop; 12) Open the power source amplitude and phase loop; 13) Set the target cavity voltage to 0.25MV, and the cavity voltage will slowly sweep down; 14) After the cavity voltage reaches 0.25MV, disconnect the RF switch, and the high-frequency shutdown is complete. Then, automatically set the automatic shutdown enable switch Auto_RFOFF to low level and re-enter the "0 initial state", waiting for the next instruction. When not in the "0 initial state", set the automatic shutdown enable switch Auto_RFOFF to high level until the high-frequency system enters the "0 initial state" and then starts to perform the automatic shutdown action.

7. The method according to claim 1, characterized in that, ssa_amp_error = |(ap_out_amp - ssa_rot_amp)| / ap_out_amp, ssa_pha_error = |ap_out_pha - ssa_rot_pha|; where ap_out_amp is the amplitude of the low-level excitation, ssa_rot_amp is the amplitude of the cavity forward power, and ap_out_pha is the phase of the low-level excitation. ssa_rot_pha is the cavity forward power retrieval phase.

8. The method according to claim 1, characterized in that, fdb_amp_error = |(ref_amp_set - fdb_rot_amp)| / ref_amp_set, fdb_pha_error = |ref_pha_set - fdb_rot_pha|; where ref_amp_set is the amplitude setting value of the low-level excitation, fdb_rot_amp is the cavity field power retrieval amplitude value, ref_pha_set is the phase setting value of the low-level excitation, and fdb_rot_pha is the cavity field power retrieval phase.

9. The method according to claim 1, characterized in that, The cavity pressure scan step size is adjustable in the "7-cavity pressure sweep state"; the phase scan step size is adjustable in the "8-phase sweep state".

10. The method according to claim 1, characterized in that, The target cavity pressure is 0.5MV; the power source amplitude loop error threshold is 30%, the power source phase loop error threshold is 5°, the cavity field amplitude loop error threshold is 20%, and the cavity field phase loop error threshold is 10°.

Citation Information

Patent Citations

  • Intelligent self-starting method for high-frequency system of strong-current circular accelerator

    CN105282956A

  • Cyclotron optimization starting method based on continuous closed-loop mode

    CN115315058A