A prototype expert system for diagnosing faults on a production line of a Chocolate factory is described, demonstrated, and evaluated. The system can readily be extended to other industrial applications of fault diagnosis, such as, the monitoring and diagnosis of manufacturing systems, factory quality control, malfunctioning machinery, diagnosing electrical device faults, etc. The principles of expert system for faults diagnosis are briefly reviewed, and a practical guidance to building such an expert systems is also presented in detail. The programming tool used is a high-level language, KnowledgePro, which is the first tool to combine both expert systems and hypertext technologies in a single development tool to run on PC. The language is quite suitable for the small and mid-size industrial enterprises to develop expert systems.