The five axis linkage Computer Numerical Control machine tool for integral impeller can achieve blade machining through side milling, which is of great significance for improving the machining accuracy, production efficiency, and long-term stability of integral impeller blades. This study is based on non-uniform rational B-spline curves and aims to reduce the surface over cutting or under cutting of integral turbine blades. The path planning of non deployable ruled surfaces was analyzed in depth through side milling, and the path planning model of the side milling cutter axis was solved through a fusion algorithm of simulated annealing algorithm and particle swarm optimization algorithm, in order to find the optimal path through iterative process. As the number of iterations increased, the error values of particle swarm optimization algorithm and simulated annealing particle swarm optimization fusion algorithm gradually decreased, with convergence times of about 7 and 6, respectively. The stable error value of the fusion algorithm was 0.253, which is 30.45% lower than that of the particle swarm optimization algorithm. The optimal number of iterations for solving the model using particle swarm optimization algorithm and fusion algorithm was the 7th, with range values of 0.0213 and 0.0165 mm, respectively. The tool axis trajectory surface optimized by the fusion algorithm was closer to the tool axis motion state compared to the initial tool axis trajectory surface. The range of the sum of mean squared deviations for single and global cutting was 0.0011–0.0198 and 0.046–0.0341, but the overall error value was relatively small. This study effectively reduces the envelope error of machining tools and improves machining accuracy, thereby solving the principle error of non expandable ruled surfaces in the motion trajectory of the blade axis of the integral turbine. This provides new research ideas for the intelligent development of Computer Numerical Control machining technology.