The industrial robot plays a very important role in stabilizing and improving the quality of products, production efficiency, working conditions and the rapid upgrading of products. It is often composed of a mechanical body, control device, driving system and detection and sensing device, and can be used in three-dimensional space to complete integration of automatic production and processing equipment. Spraying robot is one of the most important advanced coating production and processing equipment. It has the advantages of considerable flexibility and wide working scope, high spraying quality and material utilization efficiency. Due to the increasing competition for the market share, it should minimize the cost continually to accomplish the producing process. For the spraying process, how to optimize the trajectory of the spray gun and the spray parameters are the key factors to reduce the material consumption and improve the efficiency. In this paper, the spray gun trajectory and spraying effect are studied, and the experimental results show that the spray trajectory and spray effect are available. The results can also be used in other fields to get better performance.