The control system of the diesel generator set is like the heart of the generator set. The use of intelligent control system greatly improves the operation of the diesel generator set and guarantees the stable operation of the diesel generator set. Then what principle and algorithm is used to realize the control system? For the control part of the diesel generator set, the digital excitation controller has high precision, fast response, and strong adaptability of the control algorithm compared with the traditional analog circuit excitation controller. For motors with different characteristics, it can be adapted as long as the program parameters are adjusted, and even more high-end adaptive intelligent control algorithms can be realized. First, the software implementation and algorithm research of the digital excitation controller mainly discusses the software of the digital excitation controller and the control algorithm used. Firstly, the main program of the digital excitation controller is designed, and then the power parameter collection algorithm and intelligent excitation control algorithm are studied and implemented on the CPU. In order to achieve accurate digital excitation control, it is necessary to obtain real-time and accurate power data, and to obtain real-time and accurate power data, it is necessary to use AC sampling method, and deduce the calculation formula of each power under AC sampling, and finally write the algorithm program to calculate the power data. AC sampling is to sample the instantaneous value of the measured signal according to certain rules, and then obtain the measurement method of the measured power parameters according to certain mathematical algorithms. The discrete formulas in various algorithms of AC voltage, AC current, active power, reactive power, and power factor are given below. Second, the overall design scheme of the digital excitation controller, working power supply: Due to the working power requirements of the microprocessor, we need a 5V stable DC power supply, and the power supply of the operation circuit of the signal conditioning circuit requires a set of 12V DC power supply. In addition, the switch output needs to drive the relay, so a + 24V DC power supply is required. For this reason, we need to design a power conversion module to obtain the three sets of DC power supply required for the normal operation of the system. Third, the design of the main circuit of the excitation output. The power output of the excitation controller is a DC output that can control the current and voltage. The overall design determines that the rated voltage of the excitation rectifier output is 80VDC, the rated excitation current is 10A, and it reaches 25A when strongly excited. The excitation power comes from the AC power supply, which can be provided by the generator itself or externally. The externally provided power supply is usually relatively good and stable. The power supply provided by the generator is affected by the start-up, and there may be unstable factors such as fluctuation and distortion during operation, which will affect the performance of the excitation output. So we study and design the situation of taking power from the generator.

