The invention discloses a multi-period optimal corner small straight-
line segment interpolation method based on S curve acceleration / deceleration control in a
numerical control system. The method comprises the following steps of: based on the limitations of the
machining precision of a
machine tool and the maximum
machining speed of each driving shaft, setting the acceleration speed at the joint of the corner and the straight-
line segment to be zero according to geometrical parameters of each corner on a
machining path, the maximum machining acceleration speed of each driving shaft and an optimization target, and determining and adjusting the optimized corner interpolation parameters in multi-period transition at each corner, so that the acceleration speed at two ends of each small straight-
line segment meets the
reachability requirement of the S curve acceleration / deceleration
control mode; and calculating the time at each acceleration / deceleration stage of each straight-line segment according to the S curve acceleration / deceleration mode, respectively performing straight-line segment and corner interpolation on each small straight-line segment, sequentially outputting interpolation point sequences in real time, and driving a
numerical control machine tool to execute the machining operation. By the method, the vibration of the
machine tool is reduced, the quality of the surface of a workpiece is improved, the calculation speed is high, the real-time machining requirements can be met, and the method is suitable for different models of three-axis, four-axis or five-axis
numerical control machine tools.