In this paper, the magnet bias problem of the UPS output transformer is analyzed. The magnet bias is very important to the quality of the UPS, and it can improve the whole DC-AC system of the power source. In order to solve the transformers magnet bias, the radical reasons and primary factors are discussed in depth. Therefore, the whole digital PI control method is brought forward. The method is proved to be effective by experiment.