CN115426763A - Method and system for controlling timing energy change of pulse power supply of synchrotron - Google Patents

Method and system for controlling timing energy change of pulse power supply of synchrotron Download PDF

Info

Publication number
CN115426763A
CN115426763A CN202211018263.6A CN202211018263A CN115426763A CN 115426763 A CN115426763 A CN 115426763A CN 202211018263 A CN202211018263 A CN 202211018263A CN 115426763 A CN115426763 A CN 115426763A
Authority
CN
China
Prior art keywords
waveform
time
power supply
timing
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211018263.6A
Other languages
Chinese (zh)
Inventor
黄玉珍
闫怀海
王晓俊
张华剑
谭玉莲
朱芳芳
高大庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Modern Physics of CAS
Original Assignee
Institute of Modern Physics of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Modern Physics of CAS filed Critical Institute of Modern Physics of CAS
Priority to CN202211018263.6A priority Critical patent/CN115426763A/en
Publication of CN115426763A publication Critical patent/CN115426763A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05HPLASMA TECHNIQUE; PRODUCTION OF ACCELERATED ELECTRICALLY-CHARGED PARTICLES OR OF NEUTRONS; PRODUCTION OR ACCELERATION OF NEUTRAL MOLECULAR OR ATOMIC BEAMS
    • H05H13/00Magnetic resonance accelerators; Cyclotrons
    • H05H13/04Synchrotrons
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05HPLASMA TECHNIQUE; PRODUCTION OF ACCELERATED ELECTRICALLY-CHARGED PARTICLES OR OF NEUTRONS; PRODUCTION OR ACCELERATION OF NEUTRAL MOLECULAR OR ATOMIC BEAMS
    • H05H7/00Details of devices of the types covered by groups H05H9/00, H05H11/00, H05H13/00

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Plasma & Fusion (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Particle Accelerators (AREA)

Abstract

The invention relates to a method and a system for controlling the timing variable energy of a pulse power supply of a synchrotron, comprising the following steps: receiving waveform data sent by an accelerator control system, and performing data processing and waveform partition storage; receiving time and a reference clock issued by a timing system, and updating local time of a power supply in real time; comparing the local time of the power supply with the preset output time of the first waveform, if the local time of the power supply reaches the preset output time of the first waveform, starting to output a first current value, simultaneously timing by using a reference clock, and when the timing reaches the holding time of the first current value, starting to output a second current value until the last current value is output, finishing the output of the first waveform by the power supply, sequentially repeating the comparison of the local time of the power supply and the preset time of the next waveform and the output process of the waveform until all the waveforms are output, waiting for the power supply output task of the next period, and otherwise, continuously repeating the comparison process.

Description

Method and system for controlling timing energy change of pulse power supply of synchrotron
Technical Field
The invention relates to a timing energy-changing control method and system for a pulse power supply of a synchrotron, and relates to the field of control of the pulse power supply of the synchrotron.
Background
The Wuwei medical heavy ion accelerator adopts a synchronous acceleration scheme, adopts a periodic operation mode of 'injection, acceleration and extraction' and meets the requirements of different fault treatments by extracting beams with different energies. Usually, one treatment is performed by providing the terminal with a plurality of beam currents of energy, each corresponding to a determined magnet current value.
The periodic working waveform of the pulse power supply of the conventional Wuwei synchrotron is shown in figure 1, each period can only provide one energy beam to finish one treatment, the power supply needs to output a plurality of periods of waveforms with different flat-top currents, and repeated current rising sections and current falling sections exist in different periods, so that the irradiation time of each treatment is prolonged. While the exposure time directly affects the total number of accelerator treatment patients and indirectly affects the treatment cost per patient.
In the prior art, any energy change of an accelerator can be realized through a control method triggered by a waveform segmentation case. The descending section of the waveform in fig. 1 is divided into a plurality of sections, and one section of the waveform is output by triggering each time. The waveform segmentation is carried out according to the energy difference, when the energy difference is small, the number of waveform segments is large, the number of waveforms between any two energies is large, and the energy-changing control process becomes complicated. In addition, the adoption of the optical fiber case triggering mode can cause uncertainty of power supply output delay, the output time delay difference between different power supplies is about dozens of us, and the working efficiency of the synchrotron is directly influenced.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method and a system for controlling timing energy-changing of a pulse power supply of a synchrotron, which can implement timing energy-changing of the pulse power supply of the synchrotron based on a time-triggered method, so that the whole output process does not require external intervention, and the operating efficiency and reliability are improved.
In order to achieve the purpose, the invention adopts the technical scheme that:
in a first aspect, the present invention provides a method for controlling the timing and energy-changing of a pulse power supply of a synchrotron, comprising:
receiving waveform data sent by an accelerator control system, and performing data processing and waveform partition storage;
receiving time and a reference clock issued by a timing system, and updating local time of a power supply in real time;
comparing the local time of the power supply with the preset output time of the first waveform, if the local time of the power supply reaches the preset output time of the first waveform, starting to output a first current value, simultaneously timing by using a reference clock, and when the timing reaches the holding time of the first current value, starting to output a second current value until the last current value is output, finishing the output of the first waveform by the power supply, sequentially repeating the comparison of the local time of the power supply and the preset time of the next waveform and the output process of the waveform until all the waveforms are output, waiting for the power supply output task of the next period, and otherwise, continuously repeating the waveform comparison process.
Further, receiving waveform data sent by an accelerator control system and performing data processing and waveform partition storage, including:
and receiving waveform data issued by an accelerator control system, extracting information of each waveform data and storing the information in a local given waveform area in a partition mode according to a waveform sequence number when the number of actually received waveforms is the same as the number of waveforms and the number of single-point currents is the same as the number of single-point waveforms, and otherwise, considering that the waveform data is wrong and not performing any processing.
Further, the given waveform area comprises 1024 waveform partitions, each partition is 20480kB in size, data are stored in the corresponding partition according to the waveform sequence number, wherein the waveform data with the sequence number of 1 are stored in the waveform partition No. 1, and so on, the waveform data with the sequence number of 1024 are stored in the waveform partition No. 1024.
Further, all the waveform outputs complete the judgment process, including: and adding 1 to the number of output waveforms each time one waveform is output, judging whether the current waveform is the last waveform, and if the number of the output waveforms is equal to the number of the waveforms in the received waveform data, determining that the waveform is the last waveform.
Further, there is also provided a step of interlock protection control, including:
a1, initializing a system, and creating and starting a software timer;
a2, if the timing detection time is up, adding 1 to the detection time t 1;
a3, comparing and judging, if the current output current amplitude is larger than a current detection threshold I min When the current is kept, the current is kept and judged, and A4 is executed; otherwise, waiting to enter the next detection period;
a4, making a difference between the current output current and the output current of the previous period, and when the error is smaller than the fluctuation bandwidth I fbw When the time is more than 1, the step A5 is executed; otherwise, directly executing A5;
a5, comparing the detection time T1 with the overtime time T, and if the detection time T1 is equal to the overtime time T, entering overtime judgment; otherwise, waiting to enter the next detection period;
a6, comparing the retention time tv with the timeout time T, and when tv = T is equal to T, determining that the output current is always kept at the current value, and starting protection operation; otherwise, directly executing the clear 0 operation of the parameters;
a6, performing interpolation calculation between the current given current value and 0 current to enable the power supply to reduce 0 according to a certain slope;
a7, after the output current is reduced to 0 current, each parameter executes clear 0 operation;
and A8, repeating the step A2 to continuously judge and protect.
Further, the method also comprises a synchronous measurement data transmission step, which comprises the following steps:
b1, powering up a system, and carrying out initialization configuration, including the configuration of a clock, a high-speed serial transceiver and a timer;
b2, starting a timer;
b3, when the timing time arrives, resetting the timer, assembling data according to the format, and attaching local time information at the tail;
b4, encoding the data;
b5, sending the data into a sending cache region of the high-speed serial transceiver;
b6, sending the current data;
b7, waiting for the arrival of the timing time, and sending data at fixed time according to the steps B3-B6.
In a second aspect, the invention also comprises a synchronous accelerator pulse power supply timing variable energy control system, which comprises a timing system, a timing trigger control system, a synchronous data transmission control system and an interlocking protection control system;
the timing system sends time and a reference clock to each power supply, the time is used as the local time of the power supply, and the reference clock is used as a timing clock for keeping time;
the timing trigger control system is used for receiving waveform data issued by the accelerator control system and carrying out output control on the power supply according to the received waveform data, the set time and the reference clock;
the interlocking protection control system is used for monitoring the current value of the power supply and sending an alarm signal to the machine protection system to remind the power supply of abnormal conditions;
the synchronous data transmission control system utilizes a high-speed serial transmitter to send out running data to a synchronous measurement system of an accelerator at fixed time, and adds time information to each data.
The system further comprises an external interface, wherein the external interface comprises a network interface, an FMC interface, an SFP interface and an optical fiber, and the network interface is used for receiving waveform data sent by an accelerator control system and sending the waveform data to the timing trigger control system; the FMC interface is used for receiving time issued by the timing system and sending a reference clock to the timing trigger control system; the SFP interface is used for sending the synchronous measurement data of the synchronous data transmission control system to a synchronous measurement system; the optical fiber is used for sending the interlocking protection control system and the safety interlocking signal to the machine protection system.
In a third aspect, the present invention further provides an electronic device, which includes computer program instructions, where the program instructions, when executed by a processor, are configured to implement the synchrotron pulse power supply timing and energy-changing control method.
In a fourth aspect, the present invention also provides a computer readable storage medium having stored thereon computer program instructions, wherein the program instructions, when executed by a processor, are for implementing a synchrotron pulse power supply timing energization control method.
Due to the adoption of the technical scheme, the invention has the following characteristics:
1. according to the timing energy-changing method provided by the invention, after the configured waveform data is issued, the pulse power supply can automatically output the preset waveform at regular time, so that the working efficiency of the power supply is improved, and the working efficiency and beam utilization efficiency of the accelerator are improved.
2. The invention provides a time-trigger-based method for realizing the timing energy change of the accelerator pulse power supply, the pulse power supply can automatically finish the timing output of the current waveform according to the preset configuration, the whole output process does not need external intervention and is not interfered by the outside, and the operation efficiency and reliability are improved.
3. The invention uses the time and the reference clock generated by the timing system, and the delay difference of the output time between the power supplies is controlled in ps magnitude, thereby improving the working efficiency of the synchrotron; meanwhile, synchronous measurement data and a safety interlocking signal are sent to the outside in real time, and the debugging and running convenience and the safety reliability of the synchrotron are guaranteed.
In conclusion, the invention can be widely applied to the timing energy-changing control of the accelerator pulse power supply.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Like reference numerals refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a pulse power source cycle working mode of a conventional medical synchrotron.
Fig. 2 shows the operation mode of the pulse power supply according to the embodiment of the invention.
Fig. 3 is a block diagram of a power timing and energy-converting control system according to an embodiment of the present invention.
FIG. 4 is a flow chart of timing change control according to an embodiment of the present invention.
Fig. 5 is an interlock protection control flowchart according to an embodiment of the present invention.
Fig. 6 is a flow chart of synchronous measurement data transmission according to an embodiment of the present invention.
Detailed Description
It is to be understood that the terminology used herein is for the purpose of describing particular example embodiments only, and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," "including," and "having" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order described or illustrated, unless specifically identified as an order of performance. It should also be understood that additional or alternative steps may be used.
Although the terms first, second, third, etc. may be used herein to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections should not be limited by these terms. These terms may be only used to distinguish one element, component, region, layer or section from another region, layer or section. Terms such as "first," "second," and other numerical terms when used herein do not imply a sequence or order unless clearly indicated by the context. Thus, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the example embodiments.
For convenience of description, spatially relative terms, such as "inner", "outer", "lower", "upper", and the like, may be used herein to describe one element or feature's relationship to another element or feature as illustrated in the figures. This spatially relative term is intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures.
In order to shorten the treatment time, the invention proposes to realize the working mode shown in fig. 2 on the current pulse power supply, and in a treatment period, the power supply can be arbitrarily increased and decreased, so that the accelerator can arbitrarily output beams with a plurality of energies, and the working efficiency and the economic benefit of the medical accelerator are further improved. According to a treatment plan, physical personnel calculate a current value and a holding time corresponding to each energy required by a patient, the current value and the holding time and waveform preset output time form a current waveform, different patients correspond to different current waveforms, and a plurality of waveforms are integrated together and are issued to corresponding power supplies in advance through a network. The physical personnel number the waveforms according to the treatment sequence, and set the preset output time of each waveform according to the treatment time, wherein each treatment starts from the first waveform until the treatment is finished.
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The first embodiment is as follows: as shown in fig. 3, the system for controlling the timing and energy-changing of the pulse power supply of the synchrotron provided by the embodiment includes a timing system, a timing trigger control system, a synchronous data transmission control system, and an interlock protection control system.
And the timing system transmits time and a reference clock to each power supply, and the time precision is in ps magnitude. The time is used as the local time of the power supply, and the reference clock is used as a timing clock for keeping the time.
And the timing trigger control system is used for receiving the waveform data issued by the accelerator control system and carrying out output control on the power supply according to the received waveform data and the clock requirement set by the timing system. When the local time of the power supply reaches the preset time of the waveform, the power supply starts to output a first current value, after the corresponding time is kept, the next current value starts to be output until the output is 0, the current output waveform is finished, the power supply starts to stand by, waits for the preset time of the next waveform, and repeats the processes until the power supply outputs all current waveforms.
And the interlocking protection control system sends an alarm signal to the machine protection system to remind the power supply of abnormal output. The interlocking protection control system is used for protecting the accelerator from safe running. In the treatment process, when the power supply is kept at a certain current value for a long time, the power supply is considered to be abnormal in work, and in the safety purpose, when the situation occurs, the power supply automatically executes 0-reducing operation and automatically sends an alarm signal to a machine protection system to remind the power supply of abnormal output.
The synchronous data transmission control system utilizes a high-speed serial transmitter to send out important operation data such as output current and the like to a synchronous measurement system of an accelerator at a Baud rate of Gbps at fixed time, adds time information to each data, and is convenient for carrying out synchronism analysis on the received data. The pulse power supply is a key device of the synchrotron, and the synchronism of the power supply output is related to the working efficiency of the synchrotron, so the synchronism test of the pulse power supply is an important work for debugging the synchrotron. In order to meet the requirement of the test, the embodiment sets the timing transmission function of the synchronous measurement data, and the timing transmission period is separately set. The data format is shown in table 1, and the data is composed of a start flag, a total data length, a version number, a device address, 6 kinds of data and addresses, and a current time.
TABLE 1 synchronous measurement data Format
Figure BDA0003813078200000081
In a preferred embodiment, the synchrotron pulse power supply timing energy-changing control system further comprises an external interface, wherein the external interface comprises a network interface, an FMC interface, an SFP interface and an optical fiber, and the network interface is used for receiving waveform data distributed by the synchrotron control system and sending the waveform data to the timing trigger control system; the FMC interface is used for receiving time and reference clock sent by the timing system and sending the time and the reference clock to the timing trigger control system; the SFP interface is used for sending the synchronous measurement data with rich types to the synchronous measurement system; the optical fiber is used for sending a safety interlocking signal to a machine protection system.
In a preferred embodiment, the timing trigger control system can adopt an XILINX Kintex-7 series FPGA as a core processing chip to realize the timing energy change of the pulse power supply, thereby improving the use efficiency and the irradiation efficiency of the medical accelerator.
Example two: as shown in fig. 4, the present embodiment describes in detail a cycle working process of a synchrotron pulse power supply timing variable energy control method by taking a power supply as a specific embodiment, including:
s1, analyzing network data
And receiving configuration waveform data issued by an accelerator control system and judging the data, extracting key information of each waveform data and storing the key information in a local given waveform area according to a waveform sequence number in a partition mode when the actually received waveform number is the same as the waveform number and the single-point current number is the same as the single-point number, and otherwise, considering that the configuration waveform data is wrong and not performing any processing. The given waveform area comprises 1024 waveform partitions, each partition is 20480kB bytes in size, and data are stored in the corresponding partition according to the waveform sequence number. For example, the waveform data with sequence number 1 is stored in the waveform partition No. 1, and the waveform data with sequence number 1024 is stored in the waveform partition No. 1024.
TABLE 2 waveform data Table Format
Figure BDA0003813078200000082
Figure BDA0003813078200000091
Table 2 shows a specific format of the configured waveform data, which includes a plurality of waveforms, such as waveforms 1 to 7, each waveform includes a waveform number, a waveform point number, a waveform preset output time, and a plurality of single-point currents, the last current is 0, the single-point current is composed of a 4-byte current value and a 4-byte holding time, where the waveform preset output time determines a specific time when the waveform is output, and the holding time determines a time when each current is maintained.
S2, time data analysis
And receiving the time and the reference clock issued by the timing system, and updating the local time of the power supply in real time.
And S3, comparing the local time with the preset output time of the first waveform.
And S4, if the local time of the power supply reaches the preset output time of the first waveform, starting to output a first current value, timing by using a reference clock, starting to output a second current value when the timing reaches the holding time of the first current value, and outputting a third current value after the corresponding time is held until the last current value 0 is output, wherein the power supply finishes the output of the first waveform.
And S5, comparing the local time with the preset output time of the second waveform.
And S6, when the local time of the power supply reaches the preset output time of the second waveform, starting to output a first current value, and simultaneously timing by using a reference clock, when the timing reaches the holding time of the first current value, starting to output the second current value, and outputting a third current value after holding the corresponding time until the last current value 0 is output, wherein the power supply finishes the output of the second waveform.
And S7, continuously repeating the comparison between the local time and the next preset waveform time and the output process of the waveforms until all the waveforms are output completely, and adding 1 to the number of the output waveforms when the output of one waveform is finished.
And S8, judging whether the current waveform is the last waveform, indicating that the waveform is the last waveform when the number of the output waveforms is equal to the number of the waveforms in the received configuration waveform data, and indicating that the power output task of the period is finished, otherwise, continuously repeating the processes of S7-S8.
And S9, repeating the processes of S1-S8, receiving new configuration data, outputting waveforms, and performing an output task of the next period.
Further, the safe and normal operation of the equipment is the primary task of ensuring the safety of patients and improving the treatment quality of the medical accelerator, and the method is further provided with the step of interlocking protection control.
As shown in FIG. 5, the output current is detected at regular time by using a timer, when the output is maintained at a certain current value for a continuous period of time, the output is considered to be overtime, and the 0-down protection operation is started immediately, wherein, as a non-limiting example, the regular detection period can be fixed to 1s, and the minimum current detection threshold I min Error fluctuation bandwidth I fbw And the timeout time T is set according to actual needs, and the specific process comprises the following steps:
a1, initializing a system, and creating and starting a software timer;
a2, if the timing detection time is up, adding 1 to the detection time t 1;
a3, comparing and judging, if the current output current amplitude is larger than the current detection threshold I min When the current is kept, the current is kept and judged, and A4 is executed; otherwise, waiting to enter the next detection period;
a4, the current output current is different from the output current of the previous period, and when the error is smaller than the fluctuation bandwidth I fbw Then, the holding time tv is added by 1, and A5 is executed; otherwise, directly executing A5;
a5, comparing the detection time T1 with the overtime time T, and entering overtime judgment when the detection time T1 is equal to the overtime time T and the overtime time T is equal to T1= T; otherwise, waiting to enter the next detection period;
a6, comparing the retention time tv with the timeout time T, and when tv = T is equal to T, determining that the output current is always kept at the current value, and starting protection operation; otherwise, directly executing the clear 0 operation of the parameters;
a6, performing interpolation calculation between the current given current value and 0 current to enable the power supply to reduce 0 according to a certain slope;
a7, after the output current is reduced to 0 current, each parameter executes clear 0 operation;
and A8, repeating the step A2 to continuously judge and protect.
Further, in order to meet the requirement of the pulse power supply synchronous test, a step of synchronous measurement data transmission is also provided.
As shown in fig. 6, the step of transmitting the synchronous measurement data provided by this embodiment includes:
b1, powering up a system, and carrying out initialization configuration, including the configuration of a clock, a high-speed serial transceiver and a timer;
b2, starting a timer;
b3, when the timing time arrives, resetting the timer, assembling data according to the format, and adding local time information at the tail;
b4, encoding the data;
b5, sending the data into a sending buffer area of the high-speed serial transceiver;
b6, sending the current data;
b7, waiting for the arrival of the timing time, and sending data at fixed time according to the steps B3-B6.
Example three: the present embodiment provides an electronic device corresponding to the method for controlling the timing and the energy of the pulse power source of the synchrotron according to the second embodiment, where the electronic device may be an electronic device for a client, such as a mobile phone, a notebook computer, a tablet computer, a desktop computer, etc., to execute the method according to the second embodiment.
The electronic equipment comprises a processor, a memory, a communication interface and a bus, wherein the processor, the memory and the communication interface are connected through the bus to complete mutual communication. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The memory stores a computer program capable of running on the processor, and the processor executes the method for controlling the timing and the changing of the pulse power supply of the synchrotron provided by the embodiment when running the computer program.
In some implementations, the logic instructions in the memory may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an optical disk, and various other media capable of storing program codes.
In other implementations, the processor may be any type of general-purpose processor such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), and the like, and is not limited herein.
Example four: the method for controlling timing of changing energy of a synchrotron pulse power supply according to the second embodiment can be embodied as a computer program product, and the computer program product can include a computer readable storage medium on which computer readable program instructions for executing the method for controlling timing of changing energy of a synchrotron pulse power supply according to the first embodiment are loaded.
The computer readable storage medium may be a tangible device that retains and stores instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination of the foregoing.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points. In the description herein, references to the description of "one embodiment," "some implementations," or the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A timing energy-changing control method for a pulse power supply of a synchrotron is characterized by comprising the following steps:
receiving waveform data issued by an accelerator control system, and performing data processing and waveform partition storage;
receiving time and a reference clock issued by a timing system, and updating local time of a power supply in real time;
comparing the local time of the power supply with the preset output time of the first waveform, starting to output a first current value if the local time of the power supply reaches the preset output time of the first waveform, simultaneously timing by using a reference clock, starting to output a second current value when the timing reaches the holding time of the first current value until the last current value 0 is output, finishing the output of the first waveform by the power supply, sequentially repeating the comparison of the local time of the power supply and the preset time of the next waveform and the output process of the waveform until all the waveforms are output, waiting for the power supply output task of the next period, and otherwise, continuously repeating the waveform comparison process.
2. The method for controlling the timing and the energy change of the pulse power supply of the synchrotron according to the claim 1, wherein the method for receiving the waveform data sent by the accelerator control system and processing the data and storing the data in a waveform partition comprises the following steps:
and receiving waveform data issued by an accelerator control system, extracting information of each waveform data and storing the information in a local given waveform area according to a waveform sequence number in a partitioning manner when the number of actually received waveforms is the same as the number of waveforms and the number of single-point currents is the same as the number of single-point waveforms, and otherwise, considering that the waveform data is wrong and not performing any processing.
3. The synchrotron pulse power supply timing variation control method of claim 2, wherein the given waveform region comprises 1024 waveform partitions, each partition has a size of 20480kB bytes, and data is stored in the corresponding partition according to a waveform sequence number, wherein waveform data with sequence number 1 is stored in waveform partition No. 1, and so on, and waveform data with sequence number 1024 is stored in waveform partition No. 1024.
4. The synchrotron pulse power supply timing variable energy control method according to claim 2, wherein all waveform outputs complete the judgment process, comprising: and adding 1 to the number of output waveforms each time one waveform is output, judging whether the current waveform is the last waveform, and if the number of the output waveforms is equal to the number of the waveforms in the received waveform data, determining that the waveform is the last waveform.
5. The synchrotron pulse power supply timing variable energy control method according to claim 1, characterized by further comprising the step of interlock protection control, comprising:
a1, initializing a system, and creating and starting a software timer;
a2, if the timing detection time is up, adding 1 to the detection time t 1;
a3, comparing and judging, if the current output current amplitude is larger than the current detection threshold I min When the current is kept, the current is kept and judged, and A4 is executed; otherwise, waiting to enter the next detection period;
a4, the current output current is different from the output current of the previous period, and when the error is smaller than the fluctuation bandwidth I fbw When the time is more than 1, the step A5 is executed; otherwise, directly executing A5;
a5, comparing the detection time T1 with the overtime time T, and entering overtime judgment when the detection time T1 is equal to the overtime time T and the overtime time T is equal to T1= T; otherwise waiting to enter the next detection period;
a6, comparing the retention time tv with the overtime time T, and when tv = T is equal to the retention time tv = T, determining that the output current is always maintained at the current value, and starting protection operation; otherwise, directly executing the parameter clear 0 operation;
a6, performing interpolation calculation between the current given current value and 0 current to enable the power supply to reduce 0 according to a certain slope;
a7, after the output current is reduced to 0 current, each parameter executes clear 0 operation;
and A8, repeating the step A2 to continuously judge and protect.
6. The synchrotron pulse power supply timing variation control method according to any one of claims 1-5, further comprising a synchronous measurement data transmission step, comprising:
b1, powering up a system, and carrying out initialization configuration, including the configuration of a clock, a high-speed serial transceiver and a timer;
b2, starting a timer;
b3, when the timing time arrives, resetting the timer, assembling data according to the format, and attaching local time information at the tail;
b4, encoding the data;
b5, sending the data into a sending buffer area of the high-speed serial transceiver;
b6, sending the current data;
b7, waiting for the arrival of the timing time, and sending data at fixed time according to the steps B3-B6.
7. A synchrotron pulse power supply timing energy-changing control system is characterized in that the system comprises a timing system, a timing trigger control system, a synchronous data transmission control system and an interlocking protection control system;
the timing system sends time and a reference clock to each power supply, the time is used as the local time of the power supply, and the reference clock is used as a timing clock for keeping time;
the timing trigger control system is used for receiving waveform data issued by the accelerator control system and carrying out output control on the power supply according to the received waveform data, the set time and the reference clock;
the interlocking protection control system is used for monitoring the current value of the power supply and sending an alarm signal to the machine protection system to remind the power supply of abnormal conditions;
the synchronous data transmission control system utilizes a high-speed serial transmitter to send out running data to a synchronous measurement system of an accelerator at fixed time, and adds time information to each data.
8. The synchrotron pulse power supply timing energy-changing control system of claim 7, further comprising an external interface, wherein the external interface comprises a network interface, an FMC interface, an SFP interface and an optical fiber, and wherein the network interface is configured to receive waveform data sent by an accelerator control system and send the waveform data to the timing trigger control system; the FMC interface is used for receiving time issued by the timing system and sending a reference clock to the timing trigger control system; the SFP interface is used for sending the synchronous measurement data of the synchronous data transmission control system to a synchronous measurement system; the optical fiber is used for sending the interlocking protection control system and a safety interlocking signal to the machine protection system.
9. An electronic device comprising computer program instructions, wherein the program instructions when executed by a processor are adapted to implement the synchrotron pulse power supply timing variation control method of any of claims 1-8.
10. A computer readable storage medium having computer program instructions stored thereon, wherein the program instructions, when executed by a processor, are adapted to implement a synchrotron pulse power supply timing energization control method according to any one of claims 1 to 8.
CN202211018263.6A 2022-08-24 2022-08-24 Method and system for controlling timing energy change of pulse power supply of synchrotron Pending CN115426763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211018263.6A CN115426763A (en) 2022-08-24 2022-08-24 Method and system for controlling timing energy change of pulse power supply of synchrotron

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211018263.6A CN115426763A (en) 2022-08-24 2022-08-24 Method and system for controlling timing energy change of pulse power supply of synchrotron

Publications (1)

Publication Number Publication Date
CN115426763A true CN115426763A (en) 2022-12-02

Family

ID=84199339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211018263.6A Pending CN115426763A (en) 2022-08-24 2022-08-24 Method and system for controlling timing energy change of pulse power supply of synchrotron

Country Status (1)

Country Link
CN (1) CN115426763A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117153445A (en) * 2023-08-24 2023-12-01 哈尔滨工业大学 Personal safety interlocking system with regional arrangement of accelerator groups and cross-regional cooperative associated operation of beam transport lines
CN117303510A (en) * 2023-09-07 2023-12-29 兰州理工大学 Self-adaptive control method for waveform characteristic analysis of wastewater treatment power supply

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03205799A (en) * 1989-12-29 1991-09-09 Ishikawajima Harima Heavy Ind Co Ltd Power control system for sor device
JPH08276024A (en) * 1995-04-07 1996-10-22 Mitsubishi Electric Corp Timing controller for particle accelerator and timing control thereof
JP2017112021A (en) * 2015-12-18 2017-06-22 株式会社東芝 Control device for accelerator, control method for accelerator and particle beam therapy apparatus
JP2018160465A (en) * 2018-06-01 2018-10-11 株式会社東芝 Accelerator control system
CN111642055A (en) * 2020-06-04 2020-09-08 中国科学院近代物理研究所 Current waveform control system and method of digital pulse power supply of ion synchrotron
CN114070445A (en) * 2021-11-09 2022-02-18 中国科学院近代物理研究所 Distributed power supply timing calibrator and synchronous triggering method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03205799A (en) * 1989-12-29 1991-09-09 Ishikawajima Harima Heavy Ind Co Ltd Power control system for sor device
JPH08276024A (en) * 1995-04-07 1996-10-22 Mitsubishi Electric Corp Timing controller for particle accelerator and timing control thereof
JP2017112021A (en) * 2015-12-18 2017-06-22 株式会社東芝 Control device for accelerator, control method for accelerator and particle beam therapy apparatus
JP2018160465A (en) * 2018-06-01 2018-10-11 株式会社東芝 Accelerator control system
CN111642055A (en) * 2020-06-04 2020-09-08 中国科学院近代物理研究所 Current waveform control system and method of digital pulse power supply of ion synchrotron
CN114070445A (en) * 2021-11-09 2022-02-18 中国科学院近代物理研究所 Distributed power supply timing calibrator and synchronous triggering method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
胡闯等: "西安200MeV质子应用装置脉冲电源控制***", 《现代应用物理》, vol. 12, no. 3, 30 September 2021 (2021-09-30), pages 030409 *
赵江等: "重离子加速器同步定时触发***的实现", 《原子能科学技术》, vol. 48, no. 10, 31 October 2014 (2014-10-31), pages 1899 - 1893 *
黄玉珍等: "医用加速器二极磁铁的非单一工作模式电源控制器设计", 《原子核物理评论》, vol. 38, no. 2, 30 June 2021 (2021-06-30), pages 159 - 165 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117153445A (en) * 2023-08-24 2023-12-01 哈尔滨工业大学 Personal safety interlocking system with regional arrangement of accelerator groups and cross-regional cooperative associated operation of beam transport lines
CN117303510A (en) * 2023-09-07 2023-12-29 兰州理工大学 Self-adaptive control method for waveform characteristic analysis of wastewater treatment power supply

Similar Documents

Publication Publication Date Title
CN115426763A (en) Method and system for controlling timing energy change of pulse power supply of synchrotron
CN103324546B (en) A kind of method and device of watchdog service delay
CN105279023B (en) A kind of virtual machine migration method and device
CN102103520A (en) Method and device for realizing timers
CN105739956B (en) The method and system of the building intelligent rules model of computer system
CN107479981A (en) A kind of processing method and processing device that synchronization call is realized based on asynchronous call
CN111555841A (en) Communication data checking method, device, equipment and medium
Alves et al. A new generation of real-time systems in the JET tokamak
CN104462940A (en) Monitoring method and device for computer USB interface
US10135939B2 (en) Method and apparatus for sending delivery notification of network application-related product
CN105988886A (en) Fault processing method and device in operation and maintenance process
CN110912990B (en) Method and related equipment for updating consensus period
US10111207B2 (en) Network device, terminal device, and voice service control method
CN114401121A (en) Application program login method and device, electronic equipment and readable storage medium
US10382588B2 (en) Resource access driven distributed transaction coordination system
CN109657317A (en) A kind of method, system and the equipment of CPLD pin assignments
CN103259879B (en) Calibration method and device for equipment nodal point codes
CN106487469B (en) A kind of timing node switching method and system
CN104503885A (en) Timing door watching device and system
CN111082990B (en) Block chain consensus method, device, equipment and storage medium
CN104754574A (en) SIM card, anti-cloning method thereof and device
CN111222022A (en) Regular expression-based matching method and device
US20170094593A1 (en) Data transceiving method, modem, and terminal device
CN109739807A (en) A kind of method, system and the equipment of FPGA model selection
KR102104967B1 (en) Duplicated board setting method and the board thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination