Machining is a broad term to describe removal of material from a workpiece. Machining is one of the most widely used process to manufacture functional mechanical prototypes of parts. Conventional feedrate controls do not meet the demands of S-axis machining. To do this, a novel velocity profile algorithm was presented. This algorithm provided a more continuous feed motion. Smooth acceleration and deceleration were obtained with the quadric-jerk profile, as well as the high order velocity profile. The influence of these constraints on the motion profile were analyzed. With these constraints, the occurrence of intensive vibration and shock are avoided, and better surface quality, shorter quality and shorter machining time are obtained. The proposed algorithm was verified by Matlab platform, generating a continuous velocity profile and smooth transitions in the motion profile.