A CNC System Design Based on RTAI

In this paper, the architecture and the principle of RTAI is analyzed. A CNC system based on PC is designed, the flowchart of the CNC system software is analyzed, the aims of the main program, real-time tasks and non- real-time tasks and the relations among them are studied, and the program of every block of the CNC system is made.