In order to obtain the best scheme of safety production and operation decision-making of a smart factory and improve the rapid response ability of product information of a smart factory, the safety production detection algorithm of a smart factory is designed by using programmable computer (PC) control technology. The main interface, login interface, function interface, and navigation interface are designed, respectively, to realize the front-end design of the smart factory safety production detection platform. Based on PC control technology, the hardware equipment of perception layer, network layer, and application layer are installed, and on this basis, the database of the smart factory safety production detection platform is established. Once the operation data information is collected and detected, it is stored to the equipment fault experience knowledge base, and the fault diagnosis method of the minimum cut set of the fault tree is used to implement the on-site equipment diagnosis of the underlying Internet of Things of the smart factory, and finally the information sharing function of safety production detection through the information transmission of the safety production links of each smart factory is realized. Experiments show that the throughput data of the designed algorithm run stably, improve the control accuracy of safety production, and effectively improve the work efficiency.