Combining cerebella model articulation controller with sliding mode control, a novel control algorithm is designed. It adopts neuron PID controller as the teacher signal of CMAC. The control error rapidly tends to zero by adjusting weight of each corresponding unit in CMAC storage. The control algorithm eliminates the chattering in the conventional sliding mode control. It also has high real-time, strong robustness and better convergence. The control algorithm is applied on position servo system of NC machining tool. The experimental results show that it improves dynamic performance and static performance of position servo system. It can realize rapid and exact position servo control of NC machine tool.