An IBConvert program module for an accelerator excitation curve conversion system

Through the IBConvert program module and the EpicsDBGenerator program, the automated real-time conversion of I and B in the accelerator excitation curve system is realized, solving the problems of complex conversion logic and difficult transplantation in the existing technology, and improving the system compatibility and installation simplicity.

CN116609713BActive Publication Date: 2025-07-25INST OF HIGH ENERGY PHYSICS CHINESE ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310672225.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-02
Publication Date
2025-07-25
Estimated Expiration
2041-07-02

AI Technical Summary

Technical Problem

In the prior art, the I and B conversion logic of the excitation curve is complex, the manual writing of EPICS recording files is large and error-prone, and it is difficult to transplant between different accelerator devices, and there is a lack of an automated real-time conversion system.

Method used

Design an IBConvert program module, combined with the EpicsDBGenerator program, realize real-time conversion of I and B. It is suitable for DC, preset pulses, no preset value convex rail pulses and floating power supplies. The EPICS recording and processing waveform data functions are designed through the EPICS specification to generate DB files to support the automatic conversion of current and magnetic field values.

Benefits of technology

It has achieved strong compatibility with different types of power supplies in large scientific devices, simple installation, and can convert excitation curves in real time, reduce manual operations, and improve the accuracy and efficiency of conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116609713B_ABST
    Figure CN116609713B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of accelerators, and particularly refers to an IBConvert program module for an accelerator excitation curve conversion system; the entire system includes two parts: an IBConvert program module and an EpicsDBGenerator program module. Among them, the IBConvert program is a standard EPICS software IOC that needs to run continuously to achieve real-time conversion of I and B; the EpicsDBGenerator program module is used to generate the DB files required by the IBConvert program. When there are changes in the number of power supplies, names, and excitation curve fitting coefficients, this program needs to be run to generate new DB files; the described IBConvert program module is designed according to EPICS specifications and mainly includes the design of EPICS records and the design of functions for processing waveform data; the system of the present invention can be applied to large scientific installations, has low requirements for equipment, strong compatibility, is simple to install and use, and can simultaneously achieve real-time conversion of DC power supplies, pulsed power supplies with preset values, pulsed power supplies for bump tracks without preset values, and pulsed power supplies with floating power supplies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of excitation curve conversion systems, and in particular to an IBConvert program module for an accelerator excitation curve conversion system. Background Art

[0002] In the field of accelerators, magnetic fields are usually used to constrain the movement of charged particles in vacuum tubes. Depending on whether the charged particles are moving in a straight line or in a circle and the energy of the particles, the required magnetic lines of force and magnetic field strength are also different. Various magnetic fields are generated by providing the required current to the coil through a DC, AC or pulse power supply, and the excitation curve is obtained through actual magnetic measurement. The power supply system can provide a real-time current value I, while the magnetic field value B is used in the physical beam tuning software. This requires an IOC program to convert I and B in real time to achieve the adjustment and monitoring of the orbit of charged particles. The design of the IOC program is mainly to design the runtime database-EPICS record file. The logic and calculation formula of the mutual conversion between I and B are relatively complex, and there are many calculation coefficients that need to be brought into the formula for calculation. If the EPICS record file is written manually, the workload will be very huge and prone to errors. If the program logic or measurement data is changed, the EPICS record file needs to be rewritten completely. Therefore, it is particularly necessary to design a system that can generate EPICS records and realize automatic conversion between I and B. Since the principles of various accelerators are similar and the system is highly versatile, it can be transplanted to other large scientific facilities with only slight changes to the program. Summary of the invention

[0003] In response to the technical requirements of the accelerator, the present invention aims to provide an IBConvert program module for an accelerator excitation curve conversion system, which can realize real-time conversion of a DC power supply, a pulse power supply with a preset value, a convex rail pulse power supply without a preset value, and a pulse power supply with a floating power supply.

[0004] The technical solution adopted by the present invention is as follows: An IBConvert program module for an accelerator excitation curve conversion system. The system is used to convert the physically set magnetic field value into the current value required by the power supply or convert the current value of the power supply into the corresponding magnetic field value. The entire system includes two parts: the IBConvert program module and the EpicsDBGenerator program module. Among them, the IBConvert program is a standard EPICS software IOC and needs to run continuously to achieve real-time conversion of I and B. The EpicsDBGenerator program module is used to generate the DB files required by the IBConvert program. When the number of power supplies, names, and excitation curve fitting coefficients change, this program needs to be run to generate new DB files. The IBConvert program module is designed according to the EPICS specification, mainly including the design of EPICS records and the design of functions for processing waveform data.

[0005] The IBConvert program module is a standard EPICS soft IOC and needs to run continuously to achieve real-time conversion of I and B.

[0006] The design of the EPICS records is carried out according to the classification of the power supply. The designed DB includes the following database files with the suffix.db: DC.db, PulseWithDC.db, InjectionBump.db,

[0007] Quadrupole.db, EnergyFactor.db, and iocAdminSoft.db.

[0008] The installation steps of the IBConvert program module are as follows:

[0009] S1. Unzip the IBConvert program package to any user directory as needed;

[0010] S2. Modify the IBConvert / configure / RELEASE file to specify the absolute installation paths of EPICS_BASE, AUTOSAVE, IOCADMIN, and CALC;

[0011] S3. Execute make clean && make in the IBConvert directory.

[0012] An IBConvert program module for an accelerator excitation curve conversion system, when used in cooperation with third-party software, after the IBConvert program module runs normally, it is used in cooperation with a third-party graphical software containing the EPICS channel access protocol.

[0013] The beneficial effects of the technical solution adopted by the present invention are as follows: The system of the present invention can be applied to large scientific installations, has strong compatibility, is simple to install and use, and can simultaneously realize real-time conversion of DC power supplies, pulse power supplies with preset values, pulsed power supplies for convex tracks without preset values, and pulsed power supplies with floating power supplies. Description of the Drawings

[0014] Figure 1 It is a schematic diagram of the logical connection structure of the present invention.

[0015] Figure 2 It is a logical diagram of the conversion of the excitation curve of the DC power supply in the first embodiment.

[0016] Figure 3 It is a logical diagram of the conversion of pulse waveform data in the second embodiment.

[0017] Figure 4 It is a logical diagram of the conversion of the excitation curve of the floating power supply in the fourth embodiment. Detailed Embodiments

[0018] As Figures 1-4 shown, an IBConvert program module for an accelerator excitation curve conversion system is used to convert the physically set magnetic field value into the current value required by the power supply or convert the current value of the power supply into the corresponding magnetic field value in the accelerator. The entire system includes two parts: the IBConvert program module and the EpicsDBGenerator program module. Among them, the IBConvert program is a standard EPICS soft IOC and needs to run continuously to achieve real-time conversion of I (current) and B (magnetic field); the EpicsDBGenerator program module uses a Java application program to generate the DB (runtime database) file required by the IBConvert program. When the number of power supplies, names, and excitation curve fitting coefficients change, this program needs to be run to generate a new DB file.

[0019] The IBConvert program module in the present invention is designed according to the EPICS specification, mainly including the design of EPICS (EPICS stands for "Experimental Physics and Industrial Control System", and the two basic mechanisms in the EPICS software system are channel access and distributed dynamic database) records and the function design for processing waveform data. Among them, the EPICS record is the core for realizing the I and B conversion. According to the conversion requirements in the technical protocol and the types of magnet power supplies, it can be divided into four types of power supplies: DC power supply, pulsed power supply with preset value, pulsed power supply for bump orbit without preset value, and pulsed power supply with floating power supply. The design of the EPICS record is also carried out according to the classification of the power supplies. The designed DB files include: DC.db file, which is for realizing the I / B conversion of DC power supply except for the floating power supply; PulseWithDC.db file, which is for the I / B conversion of pulsed power supply with preset value except for the pulsed power supply of quadrupole magnet; InjectionBump.db file, which is for the I / B conversion of pulsed power supply for bump orbit magnet without preset value; Quadrupole.db file, which is for the I / B conversion of pulsed power supply of quadrupole magnet and its floating power supply; EnergyFactor.db file, which is for realizing the calculation related to energy factor and parameter setting; iocAdminSoft.db file, which is from the software package devIocStats and is used to monitor the operation status of the IOC.

[0020] Example 1: I / B conversion for DC power supply

[0021] The DC power supply in this example includes MEBT (Medium Energy Beam Transport), HEBT (High Energy Beam Transport), and ring DC power supply, excluding the floating power supply because the calculation method of the floating power supply is different. The magnetic fields of MEBT and HEBT need to consider energy correction. MEBT needs to use the rest energy of negative hydrogen ions, and HEBT needs to use the rest energy of protons. To facilitate the development of the JAVA program for generating EPICS DB, the energy factor is also introduced for the magnetic field on the ring, but its value is always 1 and does not affect the calculation result.

[0022] Taking the DC power supply M:MG:HC01-PS as an example, the I / B conversion logic is as Figure 1 shown:

[0023] When converting from B to I, first set the theoretical magnetic field value B-SET, calculate the actual magnetic field set value B-SET_Actual according to the energy factor Energy_Factor, and then calculate the current set value SetI according to the excitation curve fitting coefficient and send it to the remote control program of the power supply.

[0024] When performing the I->B conversion, first read back the real-time current acquisition value GetI at a certain period, such as 1 second (the period can be modified in st.cmd). Calculate the actual magnetic field acquisition value B_Actual based on the excitation curve fitting coefficients, and then calculate the theoretical magnetic field acquisition value B based on the energy factor Energy_Factor. For a magnet with independent power supply, the calculated theoretical magnetic field acquisition values include PID:B and MID:B, and their values are exactly equal. For the case where one power supply supplies multiple magnets, both PID:B and MID:B are calculated using the real-time acquired current value GetI. The difference is that PID:B is calculated using the average excitation curve fitting coefficients, and MID:B is calculated using their respective excitation curve fitting coefficients.

[0025] In this embodiment, when performing the I / B conversion, it is necessary to set the theoretical kinetic energy, actual kinetic energy, and the rest energy parameters of the particles for MEBT and HEBT. There are no special requirements for the setting order and timing.

[0026] Embodiment 2: I / B conversion for a pulse power supply with preset values

[0027] The pulse power supply with preset values includes dipole, quadrupole, sextupole, and corrector iron pulse power supplies on the synchronous ring. Such power supplies need to convert the magnetic field preset values and the total magnetic field waveform data.

[0028] Taking the pulse power supply R:MG:VC01 as an example, the conversion of the preset values is exactly the same as the I / B conversion logic of the DC power supply in Embodiment 1, which will not be elaborated here. The conversion of the pulse waveform data is as Figure 2 shown.

[0029] When performing the B->I conversion, first calculate the preset current value SetI_Tmp, the effective length of the magnetic field waveform data BT-Length, and the magnetic field waveform data BT-SET based on the preset magnetic field value B-SET. Calculate 200,000-point current waveform data SetWaveI_Raw based on the excitation curve fitting coefficients, then set the effective data length SetWaveI_Out.NUSE output to SetWaveI according to BT-Length, and finally output the data in SetWaveI_Raw to SetWaveI according to the effective data length and trigger the power remote control program WFCreate to send down the waveform data.

[0030] When performing the I->B conversion, first read back the real-time current curve acquisition value GetWaveI at a certain period, such as 5 seconds (the period can be modified in st.cmd), and calculate the magnetic field waveform acquisition value BT according to the excitation curve fitting coefficient. For a magnet with independent power supply, the calculated magnetic field waveform acquisition values include PID:BT and MID:BT, and their values are exactly equal. For the case where one power supply supplies multiple magnets, both PID:BT and MID:BT are calculated using the real-time acquired current value GetWaveI. The difference is that PID:BT is calculated using the average excitation curve fitting coefficient, and MID:BT is calculated using their respective excitation curve fitting coefficients.

[0031] In this embodiment, when converting magnetic field waveform data into current waveform data, it is necessary to first set the magnetic field preset value B-SET, then set the waveform effective length BT-Length, and finally set the magnetic field waveform data BT-SET. This setting order is determined by the need for SetI and BT-Length to participate in the operation and the program design logic. No matter which setting value is modified, it is ultimately necessary to reset the magnetic field waveform data BT-SET for it to take effect.

[0032] Embodiment 3: I / B Conversion for a Convex Rail Pulse Power Supply without a Preset Value

[0033] The two convex rail pulse power supplies on the synchronous ring have no preset value, and the conversion of pulse waveform data is the same as the conversion method described in Embodiment 2, so it will not be repeated here.

[0034] In this embodiment, when converting magnetic field waveform data into current waveform data, it is necessary to first set the waveform effective length BT-Length, and then set the magnetic field waveform data BT-SET. This setting order is determined by the need for BT-Length to participate in the operation and the program design logic. No matter which setting value is modified, it is ultimately necessary to reset the magnetic field waveform data BT-SET for it to take effect.

[0035] Embodiment 4: I / B Conversion for a Quadrupole Magnet Pulse Power Supply and Its Floating Power Supply

[0036] The conversion method of the quadrupole magnet pulse power supply is exactly the same as that of the pulse power supply with a preset value described in Embodiment 2, and the floating power supply is related to its corresponding main magnet power supply.

[0037] Taking the floating power supplies R:MG:QD01-FPS01 and R:MG:QD01-FPS02 as examples, the I / B conversion logic is as Figure 3 shown.

[0038] When the B->I conversion occurs, first, the total magnetic field value QD-PS:B-SET of the main pulse power supply should be set. The total current set value QD-PS:SetI is calculated based on the fitting coefficients of the average excitation curve. Then, according to this current and their respective fitting coefficients, the magnetic field value set values QD01-FPS01:B-SET_All of each main quadrupole magnet are calculated by back-calculation. After adding the magnetic field set value of the floating power supply, the new magnetic field value QD01-FPS01:B-SET_Total is obtained. Then, the total current value is calculated according to their respective fitting coefficients. After subtracting the current value QD-PS:SetI of the main magnet power supply, the floating power supply current set value QD01-FPS01:SetI is obtained and sent to the power remote control program. The current value of QD01-FPS02 is obtained from QD01-FPS01 and always remains the same.

[0039] When the I->B conversion occurs, first, the real-time current acquisition values R:MG:QD-PS:GetI and QD01-FPS01:GetI of the main magnet power supply and the floating power supply are read back at a certain period, such as 1 second (the period can be modified in st.cmd). After adding them, the total current acquisition value QD01-FPS01:GetI_Total is obtained. The total magnetic field acquisition value is calculated according to their respective excitation curve fitting coefficients. After subtracting their respective main magnetic field acquisition values QD01:B, the magnetic field acquisition value QD01-FPS02:B of the floating power supply is obtained.

[0040] In this embodiment, the precautions for the excitation curve conversion of the main quadrupole magnet pulse power supply are the same as those described in Embodiment 2. When the floating power supply performs the excitation curve conversion, it is necessary to note that the preset value of the main magnetic field should be set first and then the magnetic field set value of the floating power supply. Since the MID of the floating power supply is the same as that of the main quadrupole magnet pulse power supply, the MID:B of the floating power supply is no longer converted.

[0041] In the present invention, when the pulse magnet power supply performs the excitation curve conversion, waveform data needs to be processed, that is, each magnetic field waveform data or current waveform data needs to be calculated according to the excitation curve fitting coefficients. In addition, the calculation methods for the pulse power supply with a preset value and the pulse power supply without a preset value during the I / B conversion are different. To achieve this function, the EPICS Array Subroutine (aSub) record needs to be used. Different C programs can be called through this record, and the conversion of the waveform data is completed in the C program.

[0042] When installing the IBConvert program module in the present invention, the computer requirements are as follows: a physical PC, a workstation or a virtual machine can all be used; the memory is at least 4G; the Linux operating system, preferably Redhat or Centos, with a version of 6.0 or above; software version requirements: the EPICS base version is 3.14 or 3.15; the synApps version is 5.6 or above.

[0043] The steps for installing the IBConvert program module are as follows:

[0044] S1. Unzip the IBConvert program package to any user directory according to needs.

[0045] S2. Modify the IBConvert / configure / RELEASE file to specify the absolute installation paths of EPICS_BASE, AUTOSAVE, IOCADMIN, and CALC.

[0046] S3. Execute make clean && make in the IBConvert directory.

[0047] When the present invention is used in conjunction with third-party software, after the IBConvert program module runs normally, it can be used in conjunction with third-party graphical software containing the EPICS channel access protocol (such as ControlSystem Studio (CSS), Open XAL software, etc.). Here, Open XAL software is recommended. This software is an open-source, cross-platform pure Java program that can provide rich upper-layer application programs for accelerator physical beam tuning. Currently, this software is widely used in large scientific installations at home and abroad.

[0048] In the present invention, the usage method of the EpicsDBGenerator program module. The EpicsDBGenerator program module is used to read the excitation curve coefficients saved in Excel and automatically generate an EPICS DB file for I and B conversion. EpicsDBGenerator is developed using the Java language, and the compilation and running environment requires JDK7 or above. The jxl package is used to read the Excel table. Therefore, the Excel file needs to be converted into a file with the.xls suffix.

Claims

1. An IBConvert method for an accelerator excitation curve conversion system, characterized in that: The described system is used to convert the physically set magnetic field value into the current value required by the power supply or convert the current value of the power supply into the corresponding magnetic field value. The entire system consists of two parts: the IBConvert program module and the EpicsDBGenerator program module. Among them, the IBConvert program is a standard EPICS software IOC and needs to run continuously to achieve real-time conversion of I and B; the EpicsDBGenerator program module is used to generate the DB files required by the IBConvert program. When the number of power supplies, names, and excitation curve fitting coefficients change, this program needs to be run to generate new DB files; the described IBConvert program module is designed according to the EPICS specification, mainly including the design of EPICS records and the design of functions for processing waveform data. When converting B->I, first set the theoretical magnetic field value B-SET, calculate the actual magnetic field set value B-SET_Actual according to the energy factor Energy_Factor, then calculate the current set value SetI according to the excitation curve fitting coefficient and send it to the power supply remote control program. When converting I->B, first read the real-time current acquisition value GetI at a certain period, calculate the actual magnetic field acquisition value B_Actual according to the excitation curve fitting coefficient, and then calculate the theoretical magnetic field acquisition value B according to the energy factor Energy_Factor; for a magnet powered separately, the calculated theoretical magnetic field acquisition value includes PID:B and MID:B, and their values are exactly equal; for the case where one power supply supplies multiple magnets, both PID:B and MID:B are calculated using the real-time acquired current value GetI. The difference is that PID:B is calculated using the average excitation curve fitting coefficient, and MID:B is calculated using their respective excitation curve fitting coefficients.

2. The IBConvert method for an accelerator excitation curve conversion system according to claim 1, characterized in that: The described IBConvert program module is a standard EPICS soft IOC and needs to run continuously to achieve real-time conversion of I and B.

3. The IBConvert method for an accelerator excitation curve conversion system according to claim 1, characterized in that: The design of the described EPICS records is carried out according to the classification of the power supply. The designed DB includes the following database files with the suffix.db: DC.db, PulseWithDC.db, InjectionBump.db, Quadrupole.db, EnergyFactor.db, and iocAdminSoft.db.

4. The IBConvert method for an accelerator excitation curve conversion system according to claim 1, characterized in that: The installation steps of the described IBConvert program module are as follows: S1. Unzip the IBConvert program package to any user directory as needed; S2. Modify the IBConvert / configure / RELEASE file to specify the absolute installation paths of EPICS_BASE, AUTOSAVE, IOCADMIN, and CALC; S3. Execute make clean && make in the IBConvert directory.

5. A method for using the IBConvert program module for an accelerator excitation curve conversion system according to claim 1 in cooperation with third-party software, characterized in that: After the IBConvert program module runs normally, it is used in conjunction with third-party graphical software that contains the EPICS channel access protocol.

Citation Information

Patent Citations

  • Magnetic field stability control system and method

    CN112996214A

  • Detector and program

    JP2011149906A