According to the requirement of the controlling processing for CPR1000 nuclear power plant, the drain valve should be opened in 2~10 s, and could resist 1~2s interference. Generally, the differential algorithm or iteration algorithm can be used for the change rate calculation in DCS system, but they cannot meet the above requirement. Based on the simulation and analysis of these two algorithm, an optimized sliding average iteration algorithm for the calculation of unit load is presented. This algorithm combines the disturbance-rejection characteristics of sliding average algorithm and the change rate calculation function of cycle iteration algorithm, and meets the certain requirement. This algorithm has been applied in the DCS process control of CPR1000 several nuclear power plant.