Objective High Energy Photon Source-Test Facility (HEPS-TF) is a pre-research project for the construction of high energy synchrotron radiation source in the 12th five-year plan period. The purpose is to research the key technology and develop the key equipment of high energy synchrotron radiation source. Superconducting 3W1 magnet is the first self-developed superconducting wiggler magnet in China, and it is also one of the key research topics of HEPS. The author has completed a new digital closed-loop control algorithm for the superconducting 3W1 magnet with large load time constant and the nonlinear characteristics of inductance increasing with current, namely three-branch structure algorithm. In the face of the rapid development of high energy accelerator technology, the application of intelligent technology has become an inevitable development trend in the field of accelerator magnet power supply technology. Although the digital control of accelerator magnet power supply has been widely used, it is the first time to apply the new closed-loop control algorithm to realize fast adjustment and precision tracking in accelerator superconducting magnet power supply in China. Method According to the nonlinear characteristics of inductance and output current of superconducting magnet, a new digital closed-loop control algorithm for the load of superconducting magnet power supply with large time constant is proposed. Conclusion This algorithm is quite different from the traditional algorithm and can attain the independent tracking and adjustment of the control target. Finally, by testing the ripple, error and stability of superconducting 3W1 magnet power supply, the correctness, practicability and reliability of power supply system as well as the digital control algorithm are verified. The results provide a new idea for the control of accelerator magnet power supply.