Abstract:
Most of the existing methods for beam control using magnet field use the open-loop mode, which is to directly set the value of current and voltage of the magnet power supply output based on the demand of magnetic field intensity. However, magnetic fields in the open-loop state are easy to be deflected due to the field noise and the eddy current effect of the magnet. To solve this problem, the closed-loop control system of the magnetic field based on the PID algorithm is developed in this article. This system takes the deflection magnet as the control object, uses the Hall sensor to obtain the magnetic field intensity as the feedback, and utilizes the output of the excitation current of the magnet power supply as the input of the control system. The controller uses the PID algorithm to automatically tune the output of the magnet power supply to achieve the closed-loop control of the magnetic field. The result shows that when the PID parameters are properly set, the magnetic field offset can be significantly reduced by the closed-loop control method which takes the online measured value of the magnetic field as the feedback signal to simultaneously tune the excitation current value of the magnet power supply.