The product surface coating is a very essential working procedure, especially the complicated surface coating thickness even directly influences outward appearance of the product. Therefore the high request to the surface coating craft is set. To adjust the spray gun's spraying angle and the flow of coating freely is needed. In order to meet complicated surface automatic spraying needs,the invention is based on the PLC complicated surface automatic spraying system, whether in the research and development of the mechanical device or in the design of control system, that the system of mechanical and electrical integration has satisfied request of the automation has been proven after the production examination.