| CNC machine have a fast development and widely used in Chinese. The machine has a characteristic of high accuracy and high efficiency, and it is a very complex system. So the machine failure probability is very large in the factory. If the failure can not be solved in time, it will give users a certain economic losses. It is very necessary to establish the expert system which diagnoses the fault of CNC machine tools for solving this problem.This paper studies the principle and the developing method of expert system. In this paper, the overall solution is to use the development tool CLIPS of expert system to build the knowledge base and the inference engine of expert system, constructs the man-machine surface with VC++6.0, and then embed CLIPS to VC++, is selected to realize the function of the entire expert system.The expert system is based on the fault tree analysis. The knowledge of the knowledge base has an expression of combining frame and production rule. The mechanism of the inference engine has a reference method of mix obverse and reverse, and a reference strategy of combining breadth first search and depth first search. By search in the fault tree, it can be used to implement the reasoning diagnosis of the obtainable fault information. The expert system has been demonstrated by a small GXU-ONCS CNC milling machine. The paper's research methods and results provide theoretical basis and practical experience for exploiting the expert system of CNC machine fault diagnosis. |