Search

CN-122002680-A - Method, system, equipment and medium for controlling switching of particle accelerator operation modes

CN122002680ACN 122002680 ACN122002680 ACN 122002680ACN-122002680-A

Abstract

The application discloses a switching control method, a switching control system, switching control equipment and a switching control medium for an operation mode of a particle accelerator, relates to the technical field of particle accelerator control, and can dynamically reconstruct an operation safety boundary of equipment according to different operation scenes to realize self-adaptive matching of safety constraint and the operation mode. The method comprises the steps of defining a mode object and configuration information of the mode object in a mode library, responding to a switching instruction of an operation mode, obtaining comprehensive configuration information of the mode object to be activated in the mode library according to a mode identifier to be activated, transmitting device parameter configuration information and safety constraint configuration information of the mode object to be activated to a target device controller so that the target device controller adjusts the operation state of the device according to the device parameter configuration information, transmitting operation authority configuration information of the mode object to be activated to an access safety module of a bottom control network, and controlling the access safety module to switch the operation authority to a state matched with the mode to be activated.

Inventors

  • HE YUAN
  • WANG ZHIJUN
  • CUI WENJUAN
  • CHEN YOUXIN
  • Li Jiaosai
  • LIU HAITAO
  • LI ZHAOYANG
  • DU JUNLIANG
  • SHANG PEI

Assignees

  • 中国科学院近代物理研究所

Dates

Publication Date
20260508
Application Date
20260410

Claims (10)

  1. 1. A method for controlling switching of an operation mode of a particle accelerator, comprising: Defining a mode object and configuration information of the mode object in a mode library, wherein the mode object is used for bearing comprehensive configuration information of an operation mode corresponding to a particle accelerator, and the comprehensive configuration information is associated and bound with equipment parameter configuration information, security constraint configuration information and operation authority configuration information; Responding to a switching instruction of an operation mode, and acquiring comprehensive configuration information of a mode object to be activated in the mode library according to a mode identifier to be activated; the equipment parameter configuration information and the security constraint configuration information of the mode object to be activated are issued to a target equipment controller, so that the target equipment controller adjusts the equipment operation state according to the equipment parameter configuration information, and dynamically reconstructs the security boundary of equipment operation according to the security constraint configuration information; when the actual running state and the safety boundary of the target equipment controller are confirmed to meet the preset consistency condition, the operation authority configuration information of the mode object to be activated is issued to an access safety module of the bottom control network, and the access safety module is controlled to switch the operation authority to a state matched with the mode to be activated.
  2. 2. The method of claim 1, wherein the equipment parameter configuration information includes a set point data for an accelerator subsystem, the set point data including at least a magnet current value, a radio frequency cavity phase and amplitude value, a vacuum pump on-off state, and a threshold parameter of a beam diagnostic equipment; The safety constraint configuration parameters include dynamic boundary data logically associated with the setpoint data, the dynamic boundary data being defined as an upper threshold, a lower threshold, a maximum rate of change limit of a parameter, and an interlocking logic relationship between parameters; The operation authority configuration parameters comprise a role-based access control matrix, wherein the matrix defines the reading, writing, modifying and forced covering authority of different user roles to a specific parameter set under different operation modes.
  3. 3. The method according to claim 1, wherein before confirming that the actual operation state of the target device controller and the safety margin have satisfied a preset coincidence condition, the method further comprises: Preloading the operation authority configuration information of the mode object to be activated to an access security module of a bottom control network, and controlling the access security module to place the operation authority configuration information in an unactivated locking state; performing consistency check on the actual running state of the target equipment controller and the safety boundary; and if the actual running state and the safety boundary of the target equipment controller meet the preset consistency condition, controlling the access safety module to release the locking state, and switching the operation permission to a state matched with the mode to be activated.
  4. 4. The method for controlling switching of an operation mode of a particle accelerator according to claim 3, wherein the performing consistency check on an actual operation state of a target device controller and a safety boundary comprises: respectively reading the currently actually set parameter running value and the validated safety boundary set value in each target equipment controller through an execution verification module; Performing first comparison on the currently actually set parameter running value and a corresponding parameter target value in the mode object to be activated so as to judge whether deviation of the currently actually set parameter running value and the corresponding parameter target value is within a preset parameter tolerance range; Meanwhile, performing second comparison on the validated safety boundary set value and a corresponding safety boundary expected value in the mode object to be activated to judge whether the validated safety boundary set value and the corresponding safety boundary expected value are within a preset boundary error threshold value or not; and only when the results obtained by the first comparison and the results obtained by the second comparison meet the consistency conditions, confirming that the actual running state and the safety boundary of the target equipment controller meet the preset consistency conditions.
  5. 5. The method according to any one of claims 1 to 4, wherein after defining the pattern object and the configuration information of the pattern object in the pattern library, the method further comprises: Generating a unique version number and a digital signature for each mode object, and binding and storing the version number and the digital signature with comprehensive configuration information of the mode object; correspondingly, after the comprehensive configuration information of the mode object to be activated is obtained from the mode library according to the mode identifier to be activated, the method further comprises: Synchronously reading comprehensive configuration information of the mode object to be activated and a digital signature bound by the comprehensive configuration information from the mode library; Calculating comprehensive configuration information of the mode object to be activated by using a preset signature verification algorithm to verify the validity of the bound digital signature, and checking whether the version number accords with a preset upgrading strategy; And only when the bound digital signature passes verification and the version number accords with a preset upgrading strategy, judging that the comprehensive configuration information has integrity, and issuing the device parameter configuration information and the security constraint configuration information of the mode object to be activated to a target device controller.
  6. 6. The method for controlling the switching of the operation mode of the particle accelerator according to any one of claims 1 to 4, wherein the issuing the device parameter configuration information and the security constraint configuration information of the mode object to be activated to the target device controller includes: Establishing connection with a bottom layer control network through a communication driving module, wherein the connection adopts an industrial control communication protocol supporting a real-time data access and publishing/subscribing mechanism; responding to the successful connection establishment, extracting a parameter set value and a safety constraint threshold value of target equipment from the comprehensive configuration information of the mode object to be activated, and converting the parameter set value and the safety constraint threshold value into corresponding bottom equipment control instructions; Packaging the bottom layer equipment control instruction into an atomic transaction package, sequencing according to a preset equipment dependence sequence, and issuing the sequenced atomic transaction package to a target equipment controller in a batch concurrency mode based on the connection, and starting a timeout timer; monitoring a feedback signal of the target device controller in real time, and performing the following determination: if write-in confirmation receipts of all target equipment controllers are received within preset time, judging that the issuing is successful, and updating the execution state of the mode object to be activated; if the write-in acknowledgement of all the target equipment controllers is not received within the preset time, triggering an exception handling flow.
  7. 7. The method for controlling switching of a particle accelerator operation mode according to claim 6, wherein the triggering of the exception handling flow comprises: suspending issuing an atomic transaction package to the remaining target device controllers which do not receive the write acknowledgement; Generating a rollback instruction, and issuing the rollback instruction to all target equipment controllers which have received new configuration so as to forcedly restore the equipment parameter set values and the safety boundary set values to a state designated by the rollback instruction, wherein the rollback instruction carries configuration information of an original running mode before switching or configuration information of a preset safety shutdown mode; controlling the access security module to discard preloaded operation authority configuration information in a locking state, and maintaining the operation authority in a state matched with the original operation mode or degrading the operation authority to a lowest security authority state; Generating a fault report, wherein the fault report comprises an abnormal type, a failed equipment list and a rollback execution result, and sending an alarm signal of mode switching failure to an upstream client.
  8. 8. The switching control system of the particle accelerator operation mode is characterized in that the system adopts a decoupling architecture of production and consumption and comprises a mode definition platform, a mode library, a mode execution engine and a bottom layer control network; the mode definition platform is used as a producer of a mode object, provides a graphical user interface to define the mode object and stores the mode object in a mode library, wherein the mode object is used for bearing comprehensive configuration information of an operation mode corresponding to the particle accelerator, and the comprehensive configuration information is associated and bound with equipment parameter configuration information, safety constraint configuration information and operation authority configuration information; the pattern library is configured to store, classify and retrieve the pattern objects in versions by utilizing transaction characteristics of a database; The schema execution engine, as a consumer of schema objects, operates independently of the schema definition module, and is configured to: Responding to a switching instruction of an operation mode, and acquiring comprehensive configuration information of a mode object to be activated in the mode library according to a mode identifier to be activated; the equipment parameter configuration information and the security constraint configuration information of the mode object to be activated are issued to a target equipment controller, so that the target equipment controller adjusts the equipment operation state according to the equipment parameter configuration information, and dynamically reconstructs the security boundary of equipment operation according to the security constraint configuration information; Issuing the operation authority configuration information of the mode object to be activated to an access security module of the bottom layer control network; When the fact that the actual running state and the safety boundary of the target equipment controller meet the preset consistency condition is confirmed, controlling the access safety module to switch the operation permission to a state matched with the mode to be activated; The underlying control network is comprised of distributed target device controllers configured to: receiving and executing equipment parameters and safety constraint instructions from the mode execution engine; And receiving and applying operation authority configuration information through the access security module, executing authority control according to the dynamically reconstructed security boundary, and feeding back the actual running state to the mode execution engine.
  9. 9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
  10. 10. A computer storage medium having stored thereon a computer program, which when executed by a processor realizes the steps of the method according to any of claims 1 to 7.

Description

Method, system, equipment and medium for controlling switching of particle accelerator operation modes Technical Field The present application relates to the field of particle accelerator control technologies, and in particular, to a method, a system, an apparatus, and a medium for controlling switching of a particle accelerator operation mode. Background Particle accelerator devices, in particular superconducting linear accelerators, are used as cores of modern large scientific devices, whose operation is extremely complex and precise. In the full life cycle of the accelerator, frequent switching between various operation modes such as injection debugging, beam optimization, full power operation, shutdown maintenance and the like is required. Each mode switching requires that the parameter states of all subsystems can be accurately and synchronously transited to target working conditions so as to ensure the stability of beam current, the physical safety of equipment and the smooth development of experimental tasks, which puts high requirements on the reliability and the intelligent level of operation control. In the prior art, the switching control of the particle accelerator operation mode mainly depends on two modes, and one mode is to take manual operation of operators as a main mode, namely the operators manually set and adjust parameters of mass equipment one by one according to different operation scene requirements, so that the switching control of the operation mode is realized. However, errors are easy to exist in manual setting, and it is difficult to ensure that all parameters are synchronously and accurately switched to a target state, so that the running stability of the particle accelerator is affected. The other mode is a static recovery mechanism based on parameter snapshot, which can only record and recover the target value of the parameter of the equipment, and is a static and isolated parameter configuration mode in nature, and although the pre-stored global parameter set at a certain moment can be written back to the equipment at one time to realize the rapid recovery of the target value, the configuration logic is limited to the simple storage and the calling of the parameter target value, the internal connection between the parameter setting, the safety constraint threshold and the operation access authority is cut off, the multi-dimensional dynamic linkage mechanism is lacked, and the safety behavior boundary and the personnel operation authority of the system cannot be automatically adjusted according to the current operation scene. In summary, the above two modes cannot realize accurate switching control of the operation mode of the particle accelerator, and it is difficult to meet the complicated operation requirement of the particle accelerator. Disclosure of Invention In view of this, the present application provides a method, a system, a device and a medium for controlling the switching of the operation mode of a particle accelerator, which mainly aims to solve the problem that the existing method for controlling the switching of the operation mode of a particle accelerator cannot realize the accurate switching control of the operation mode of the particle accelerator, and cannot meet the complicated operation requirement of the particle accelerator. In a first aspect, a method for controlling switching of an operation mode of a particle accelerator is provided, the method comprising: Defining a mode object and configuration information of the mode object in a mode library, wherein the mode object is used for bearing comprehensive configuration information of an operation mode corresponding to a particle accelerator, and the comprehensive configuration information is associated and bound with equipment parameter configuration information, security constraint configuration information and operation authority configuration information; Responding to a switching instruction of an operation mode, and acquiring comprehensive configuration information of a mode object to be activated in the mode library according to a mode identifier to be activated; the equipment parameter configuration information and the security constraint configuration information of the mode object to be activated are issued to a target equipment controller, so that the target equipment controller adjusts the equipment operation state according to the equipment parameter configuration information, and dynamically reconstructs the security boundary of equipment operation according to the security constraint configuration information; when the actual running state and the safety boundary of the target equipment controller are confirmed to meet the preset consistency condition, the operation authority configuration information of the mode object to be activated is issued to an access safety module of the bottom control network, and the access safety module is controlled to switch the operation authority to a state