Abstract:Fault diagnosis plays an important role in the use and maintenance of mechanical system, in order to improve the efficiency and the intuitive of the fault diagnosis for mechanical system. In this paper, a fault diagnosis method based on knowledge was proposed, which used the colored Petri nets to establish a general fault diagnosis model of mechanical system. In the case of the CNC’s hydraulic components faults, firstly, the fault source was obtained to establish the fault tree. Secondly, the colored Petri net model was established by the CPNTools used for modeling and simulation of Petri nets based on the fault tree. Finally, the simulation analysis of the model was carried out to get the trend of the fault transmission, the state space report was obtained to validate the security of model. The results showed that the proposed modeling method could make fault transmission more intuitive and the development trend of fault showed more quickly. Besides, the results showed that the model has strong usability and versatility.