| As natural gas is more and more widely used in national life,gas alarms have gradually entered thousands of households as a line of defense to ensure the safe use of gas.In actual factory production,it is necessary for the factory to efficiently output qualified products,but nowadays,industrial production is still mainly manual and manual production,and the production capacity is insufficient.This paper aims at the production process of gas alarms,combining PLC technology,fault tree analysis technology,etc.,to develop an automated performance testing and sorting platform to replace the manual detection of the performance of gas alarms,effectively improving the detection efficiency and accuracy.The research work done in this article is as follows:Firstly,this paper investigates the shape of the target gas alarm and the actual production situation of the factory.Based on the actual investigation,the continuous production mechanism of the automation platform and the three parts of the overall support,detection components,and circuit board detection carrier are designed for mechanical structure design.The key parts prone to bending are analyzed statically using the Simulation component in Solidworks,and the mechanical structure is improved according to the analysis results.In addition,this article also selects the electronic components that need to be used according to actual requirements,to ensure that the mechanical structure can perform predetermined work tasks with the cooperation of electrical components.Secondly,according to the actual needs,it focuses on the analysis of static fault trees including qualitative analysis,quantitative calculation,and importance analysis,and uses the upward method and downward method for qualitative analysis of example fault trees.Provide an effective and scientific method for the analysis and implementation of the following functional test.Thirdly,according to the production situation,this paper proposes simple,robust and safe production requirements and control processes,and further puts up several control scheme of the rotation of the continuous production mechanism(the electric index plate),the control scheme of the electric push rod in the detection assembly,and control scheme of the electrical signal test.Comparison of design and advantages and disadvantages,select the final control plan.Then according to the already designed control plan,further refine the control flow of each part.Using the motion control module in Siemens’ Step7 software,the motor control of the electric index plate and electric push rod isrealized.Using the principle of digital-to-analog conversion,a numerical conversion function is written to realize the processing of the analog quantity collected by the PLC,and also a strategy for determining the electrical signal collected by the circuit board is proposed,then the processed data is further analyzed to determine whether it is qualified.Meanwhile,program burning function is realized,too.Based on the fault tree analysis(FTA),the qualitative analysis and quantitative analysis of the functional test data were carried out,further,the detection process was simplified and specifically realized according to the analysis results.Finally,the circuit board mark for the type of error has been detected and after the call to the sorting process according to the error type.Last part in this paper is,according to the actual production situation,the actual circuit board being used as the object of the experiment.In the course of the experiment,a number of problems were found and effective solutions were proposed.Also,the accuracy of the programming and testing part of the program is checked to ensure that the equipment can complete the work tasks accurately and effectively. |