# Planning Method of Offset Spray Path for Patch considering Boundary Factors

Authors: Yakun Zhang; Chenhao Xu; Haining Xiao; Bo Zhou; Yong Zeng
Journal: Mathematical Problems in Engineering
 (2018)

---

## Abstract

To solve the problem of paint waste at the boundary of the patch when spraying, a planning method of offset spray path considering boundary of the patch is developed. By analyzing the causes of excessive paint waste at the boundary of the patch, a spray path planning method based on boundary curve of the patch is proposed, and the distance between the spray path and the boundary of the patch is optimized to reduce excessive paint waste. According to the allowable range of the spray height and the error range of the coating thickness, the variable range of the spacing distance is established; on this basis, the equal division method of plane intercept line is used to generate the discrete points of the spray path in the length direction of the patch, and a connection algorithm of the discrete points is used to generate the spray path of the patch. The simulation results show that the method can automatically generate a spray path based on the shape of the patch boundary; under the premise of meeting the uniformity requirements of the coating thickness, paint waste can be effectively reduced during spraying.


---

## Body

## 1. Introduction

As a kind of automation equipment, spray painting robot has been widely used in painting operations of automobile, ship, and aerospace. Aiming at the shortcomings of the artificial teaching programming method, the trajectory planning of spray painting robot around offline programming has been a hot topic for scholars at home and abroad [1–3]. Spray path and related parameters on the surface of the workpiece are important factors to determine the coating thickness uniformity, the spray efficiency, and the paint utilization, which are of great significance to the production.In the study of spray path planning, Zhou and Cai et al. developed a combined optimization method of spray path for the optimization of spray time; the genetic algorithm and the ant colony algorithm are used to solve the problem, respectively [4, 5]. Zhang developed a spray path connection algorithm based on commutator and exchange sequence; the algorithm can achieve global optimization of spray path quickly [6]. But they have not yet studied the generation algorithm of spray path for the single patch. Cai developed an automatic spray path generation algorithm on the Robotstudio software platform [7]. Mayur developed an incremental method for automatic generation of spray path [8]. Kout developed an adaptive spray path generation method based on offset equidistant curve [9]. However, they have not yet studied the spray path planning method considering boundary for the patch. Because the excess paint is easily wasted at the boundary of the patch when the robot is spraying, especially at the irregular boundary, the utilization of the paint is affected, and the research on the spray path planning method for the patch considering boundary factors that meets the requirements of coating thickness uniformity and less waste of paint has obvious engineering application value.In view of the above problems and combined with a single approximate plane patch after complex surface partitioned [10], in this paper, the influences of patch boundary on the coating thickness and paint waste are considered comprehensively, and a offset spray path planning method considering the boundary factor for the patch is studied. The influence of the distance between the patch boundary and the spray path on the coating thickness and paint waste is studied. Based on the optimization of the distance between the spray path and the patch boundary, and the established variable range of the spacing distance between two adjacent spray paths, the equal division method of plane intercept line is used to study the offset spray path generation algorithm based on the patch boundary curve. Finally, the vehicle hood and fender were taken as the experimental object to verify the effectiveness and feasibility of the proposed method.


## 2. Influence of Patch Boundary on Spray Effect

### 2.1. Paint Waste at the Irregular Boundary of the Patch

For a single patch, in order to minimize the number of corners that affect the spray time in the path, the spray path is generally planned along the length direction of the patch. However, in the past, the linear spray path planning method without considering the boundary of the patch can easily produce unnecessary paint waste at the irregular boundary of the patch, as shown in Figure1(a). If spraying along the irregular boundary of the patch based on the spray path is planned in the direction of the length of the patch, it can reduce the paint waste to a certain extent, as shown in Figure 1(b).Figure 1
Comparison of two spray path planning methods.


### 2.2. Influence of Distance between Spray Path and Boundary on Coating Thickness and Paint Waste

In the usual case, to ensure the coating thickness at the boundary of the workpiece meets the quality requirements, the spray path is kept closer to the boundary of the workpiece, but in this case, the paint sprayed out of the spray gun will spread to the outside of the workpiece, resulting in excessive paint waste. Therefore, it is necessary to optimize the distanceh between the spray path and the boundary to minimize the excess paint waste, as shown in Figure 2.Figure 2
Influence of distance between spray path and workpiece boundary on spraying effect.Assuming that the ideal coating thickness isTd, the allowable thickness error is ΔT. Assuming that the shape of the spray paint is conical, the coating growth rate model of the spray gun static spray is f(r), r≤R, as shown in Figure 3, in which R is the spray radius, H is the spray height, ψ is the spray opening angle, and R=Htan⁡(ψ/2). The models of coating thickness after spraying at certain velocity v along the two adjacent paths are, respectively, expressed as(1)T1x,v=2∫0t1fr1dt=2∫0R2-x2/vfvt2+x2dt-R≤x≤R(2)T2x,v=2∫0t2fr2dt=2∫0R2-δ-x2/vfvt2+δ-x2dtδ-R≤x≤δ+RIn order to achieve the best uniformity of coating thickness after spraying, in the rangeδof the spacing distance between two adjacent spray paths, the objective function is established by minimizing the variance between the coating thickness at any point and the ideal coating thickness; the expression is as follows:(3)Ev,δ=min⁡∫0δ-RT1-Td2dx+∫δ-RRT1+T2-Td2dx+∫RδT2-Td2dxThe above formula can be used to calculate v and the δ by golden section method.Figure 3
Spray gun model and coating growth rate model.After optimizing the coating thickness uniformity, the coating thickness at the boundary of the patch is reduced outwards. Take the spray path 1 in Figure2 as an example, to ensure that the coating thickness at the boundary of the patch meets the quality requirements, it is required that T1(-h,v)≥Td-△T. With the decrease of h, the closer the spray path is to the boundary of the patch, the more waste of paint is produced by spraying. Under the premise of ensuring the quality of coating thickness, in order to achieve the least waste of paint, here command T1(-h,v)=Td-△T, the value of the h can be solved. In the variable range of the spray height H, the spray height is directly proportional to the spray radius [11], so the value of h is directly proportional to the spray height.


## 2.1. Paint Waste at the Irregular Boundary of the Patch

For a single patch, in order to minimize the number of corners that affect the spray time in the path, the spray path is generally planned along the length direction of the patch. However, in the past, the linear spray path planning method without considering the boundary of the patch can easily produce unnecessary paint waste at the irregular boundary of the patch, as shown in Figure1(a). If spraying along the irregular boundary of the patch based on the spray path is planned in the direction of the length of the patch, it can reduce the paint waste to a certain extent, as shown in Figure 1(b).Figure 1
Comparison of two spray path planning methods.


## 2.2. Influence of Distance between Spray Path and Boundary on Coating Thickness and Paint Waste

In the usual case, to ensure the coating thickness at the boundary of the workpiece meets the quality requirements, the spray path is kept closer to the boundary of the workpiece, but in this case, the paint sprayed out of the spray gun will spread to the outside of the workpiece, resulting in excessive paint waste. Therefore, it is necessary to optimize the distanceh between the spray path and the boundary to minimize the excess paint waste, as shown in Figure 2.Figure 2
Influence of distance between spray path and workpiece boundary on spraying effect.Assuming that the ideal coating thickness isTd, the allowable thickness error is ΔT. Assuming that the shape of the spray paint is conical, the coating growth rate model of the spray gun static spray is f(r), r≤R, as shown in Figure 3, in which R is the spray radius, H is the spray height, ψ is the spray opening angle, and R=Htan⁡(ψ/2). The models of coating thickness after spraying at certain velocity v along the two adjacent paths are, respectively, expressed as(1)T1x,v=2∫0t1fr1dt=2∫0R2-x2/vfvt2+x2dt-R≤x≤R(2)T2x,v=2∫0t2fr2dt=2∫0R2-δ-x2/vfvt2+δ-x2dtδ-R≤x≤δ+RIn order to achieve the best uniformity of coating thickness after spraying, in the rangeδof the spacing distance between two adjacent spray paths, the objective function is established by minimizing the variance between the coating thickness at any point and the ideal coating thickness; the expression is as follows:(3)Ev,δ=min⁡∫0δ-RT1-Td2dx+∫δ-RRT1+T2-Td2dx+∫RδT2-Td2dxThe above formula can be used to calculate v and the δ by golden section method.Figure 3
Spray gun model and coating growth rate model.After optimizing the coating thickness uniformity, the coating thickness at the boundary of the patch is reduced outwards. Take the spray path 1 in Figure2 as an example, to ensure that the coating thickness at the boundary of the patch meets the quality requirements, it is required that T1(-h,v)≥Td-△T. With the decrease of h, the closer the spray path is to the boundary of the patch, the more waste of paint is produced by spraying. Under the premise of ensuring the quality of coating thickness, in order to achieve the least waste of paint, here command T1(-h,v)=Td-△T, the value of the h can be solved. In the variable range of the spray height H, the spray height is directly proportional to the spray radius [11], so the value of h is directly proportional to the spray height.


## 3. Spray Path Planning Based on Boundary Curve of Patch

Before the spray path is generated, the length direction of the patch must be determined first, and then the spray path on the patch is generated by the patch boundary curve as the seed curve in the length direction of the patch. In order to simplify the problem, the projection method is used to obtain the projection patch of the approximate plane patch in the average normal directionn of the patch; the planned spray path on the projection patch can be equated to the spray path on the original patch [12], as shown in Figure 4. The determination of the length direction of the patch can be obtained by the algorithm of solving the smallest circumscribed rectangle of the projection patch [13], and the long edge of the circumscribed rectangle can be expressed as the length direction of the patch, its length is L, and the length direction of the rectangle is the planning direction of the spray path for the patch. When the spray path is generated, the discrete points of spray path are first generated by the equal division method of plane intercept line, and then the discrete points are connected in order with the smooth curve through the connection algorithm, thus forming the spray path on the patch. In order to generate the required spray path, it is necessary to establish the spacing distance range between the two adjacent spray paths that determines the equal fraction of each cutting line, and to establish the connection algorithm for the discrete points that eventually generate the spray path.Figure 4
Projection of the patch and its spray path.


### 3.1. Permitted Spacing Distance Range between Two Adjacent Spray Paths

The spray path generation based on the patch boundary curve is based on the premise that the spacing distance between the two adjacent spray paths is variable; the spacing distance range is determined by the range of the spray height and the error range of the permitted coating thickness. It is assumed that the spray height of spray gun is[Hmin, Hmax], the spray height is directly proportional to the spacing distance between two adjacent spray paths, and it can be seen from this that when the spray height is the minimum and the maximum, the corresponding spacing distance value can be solved separately through formulas (1)–(3), assuming they are δ1 and δ2, respectively; at this time, under the premise of ensuring the best uniformity of coating thickness, the variable range of the spacing distance is [δ1, δ2]. If the permitted coating thickness error range [Td-△T, Td+△T] is considered, on the basis of obtaining δ1 and δ2, the coating thickness is just up to the upper and lower limits of the error range by reducing δ1 and magnifying δ2, and the variable range of the spacing distance can be expanded, as shown in Figure 5.Figure 5
Coating thickness distribution under the minimum and the maximum spacing distance.According to formulas (1)-(2), order(4)TS=T1x,v1+T2δmin-x,v1=Td+ΔTδmin-R1≤x≤δmin2(5)TS=T1x,v2+T2δmax-x,v2=Td-ΔTδmax-R2≤x≤δmax2where δmin and δmax are the minimum and the maximum value of the spacing distance, respectively, v1 and v2 are the optimal spray velocities when the spacing distance is δ1 and δ2, respectively, and R1 and R2 are the spray radiuses when the spacing distance is δ1 and δ2, respectively. The values of δmin and δmax can be obtained by solving the above equations; the specific algorithm is as follows:(1)
Determine the step values ofw and p, determine the threshold λ, order i=0.(2)
Orderj=0.(3)
Orderδmin,max=δ1,2∓iw,  x=δmin,max-R1,2+jp, if x≤δmin,max/2, next, otherwise, go to step (5).(4)
Calculate formulas (4) and (5), if TS-(Td±ΔT)>λ, then j=j+1, go to step (3), otherwise, output the values of δmin,max.(5)
Orderi=i+1, go to step (2).


### 3.2. Connection Algorithm of Discrete Points for Spray Path

A rectangular coordinate system is established on the projection patch, the X-axis coincides with the long side of the circumscribed rectangle of the projection patch, and the Y-axis coincides with the short side of the circumscribed rectangle of the projection patch. Then, a series of cutting lines are obtained by usingN planes to cut the projection patch perpendicular to the length direction of the patch, and the density of the cutting line is set to ρ, N=(L-ρ)/ρ. The intersection point between the cutting line and the projection patch boundary is the boundary point, and the distance between two adjacent boundary points on any cutting line is li (i=1,2,…,N). When the spray height is Hmin, the distance from the optimized spray path to the patch boundary is hmin. The spacing distance between two adjacent spray paths in the direction of the cutting line is set to δε, and its value varies within [δmin, δmax] range. In order to ensure that the coating thickness at the boundary of the patch can meet the quality requirements at different spray heights, order ρ≤hmin<δmin, the related parameters are shown in Figure 6. The connection algorithm of discrete points for generating spray path is as follows:(1)
Based on the boundary points at ends of each cutting line, a distancehmin is offset from the boundary point to the interior of the patch to obtain the discrete points on the spray path at the boundary of the patch; if li-2hmin<0, then the cutting line and its discrete points are ignored. The number of remaining cutting lines is M, M cutting lines are defined as g1,g2,…,gM, respectively, in the positive direction along the X-axis.(2)
M cutting lines are divided equally, the equal fraction of the j cutting line Fj=lj/δmax (j=1,2,…,M), the equal points formed on the j cutting line and the points at the ends of the j cutting line are called the discrete points of the j cutting line, and the number kj=Fj+1; finally the total number of discrete points on the patch K=∑j=1Mkj.(3)
Orderp=1, the distances between the O point and K discrete points are calculated, respectively, the discrete point that is the shortest distance from the O point is taken as the starting point of the spray path, and it is numbered Sp; the cutting line of the starting point is gj.(4)
Orderj=j+1, if j>M, then go to step (7), otherwise, next.(5)
Sp is used as the search center point to calculate the distances between the point Sp and the points of the gj cutting line, the discrete point is the shortest distance between the point Sp and the point in the gj cutting line, and that which has not been numbered is taken out and numbered Sp+1, p=p+1, if K=p, next, otherwise, go to step (4).(6)
The discrete points after the numberedS1,S2,…,SK are connected in order with a smooth curve.(7)
Orderj=j-1, if j=0, then go to step (4); otherwise, go to the step (8).(8)
Sp is used as the search center point to calculate the distances between the point Sp and the points of the gj cutting line, the discrete point is the shortest distance between the point Sp and the point in the gj cutting line, and that which has not been numbered is taken out and numbered Sp+1, p=p+1, if K=p, then go to step (6); otherwise, go to step (7).Figure 6
Generation principle of the offset spray path.


## 3.1. Permitted Spacing Distance Range between Two Adjacent Spray Paths

The spray path generation based on the patch boundary curve is based on the premise that the spacing distance between the two adjacent spray paths is variable; the spacing distance range is determined by the range of the spray height and the error range of the permitted coating thickness. It is assumed that the spray height of spray gun is[Hmin, Hmax], the spray height is directly proportional to the spacing distance between two adjacent spray paths, and it can be seen from this that when the spray height is the minimum and the maximum, the corresponding spacing distance value can be solved separately through formulas (1)–(3), assuming they are δ1 and δ2, respectively; at this time, under the premise of ensuring the best uniformity of coating thickness, the variable range of the spacing distance is [δ1, δ2]. If the permitted coating thickness error range [Td-△T, Td+△T] is considered, on the basis of obtaining δ1 and δ2, the coating thickness is just up to the upper and lower limits of the error range by reducing δ1 and magnifying δ2, and the variable range of the spacing distance can be expanded, as shown in Figure 5.Figure 5
Coating thickness distribution under the minimum and the maximum spacing distance.According to formulas (1)-(2), order(4)TS=T1x,v1+T2δmin-x,v1=Td+ΔTδmin-R1≤x≤δmin2(5)TS=T1x,v2+T2δmax-x,v2=Td-ΔTδmax-R2≤x≤δmax2where δmin and δmax are the minimum and the maximum value of the spacing distance, respectively, v1 and v2 are the optimal spray velocities when the spacing distance is δ1 and δ2, respectively, and R1 and R2 are the spray radiuses when the spacing distance is δ1 and δ2, respectively. The values of δmin and δmax can be obtained by solving the above equations; the specific algorithm is as follows:(1)
Determine the step values ofw and p, determine the threshold λ, order i=0.(2)
Orderj=0.(3)
Orderδmin,max=δ1,2∓iw,  x=δmin,max-R1,2+jp, if x≤δmin,max/2, next, otherwise, go to step (5).(4)
Calculate formulas (4) and (5), if TS-(Td±ΔT)>λ, then j=j+1, go to step (3), otherwise, output the values of δmin,max.(5)
Orderi=i+1, go to step (2).


## 3.2. Connection Algorithm of Discrete Points for Spray Path

A rectangular coordinate system is established on the projection patch, the X-axis coincides with the long side of the circumscribed rectangle of the projection patch, and the Y-axis coincides with the short side of the circumscribed rectangle of the projection patch. Then, a series of cutting lines are obtained by usingN planes to cut the projection patch perpendicular to the length direction of the patch, and the density of the cutting line is set to ρ, N=(L-ρ)/ρ. The intersection point between the cutting line and the projection patch boundary is the boundary point, and the distance between two adjacent boundary points on any cutting line is li (i=1,2,…,N). When the spray height is Hmin, the distance from the optimized spray path to the patch boundary is hmin. The spacing distance between two adjacent spray paths in the direction of the cutting line is set to δε, and its value varies within [δmin, δmax] range. In order to ensure that the coating thickness at the boundary of the patch can meet the quality requirements at different spray heights, order ρ≤hmin<δmin, the related parameters are shown in Figure 6. The connection algorithm of discrete points for generating spray path is as follows:(1)
Based on the boundary points at ends of each cutting line, a distancehmin is offset from the boundary point to the interior of the patch to obtain the discrete points on the spray path at the boundary of the patch; if li-2hmin<0, then the cutting line and its discrete points are ignored. The number of remaining cutting lines is M, M cutting lines are defined as g1,g2,…,gM, respectively, in the positive direction along the X-axis.(2)
M cutting lines are divided equally, the equal fraction of the j cutting line Fj=lj/δmax (j=1,2,…,M), the equal points formed on the j cutting line and the points at the ends of the j cutting line are called the discrete points of the j cutting line, and the number kj=Fj+1; finally the total number of discrete points on the patch K=∑j=1Mkj.(3)
Orderp=1, the distances between the O point and K discrete points are calculated, respectively, the discrete point that is the shortest distance from the O point is taken as the starting point of the spray path, and it is numbered Sp; the cutting line of the starting point is gj.(4)
Orderj=j+1, if j>M, then go to step (7), otherwise, next.(5)
Sp is used as the search center point to calculate the distances between the point Sp and the points of the gj cutting line, the discrete point is the shortest distance between the point Sp and the point in the gj cutting line, and that which has not been numbered is taken out and numbered Sp+1, p=p+1, if K=p, next, otherwise, go to step (4).(6)
The discrete points after the numberedS1,S2,…,SK are connected in order with a smooth curve.(7)
Orderj=j-1, if j=0, then go to step (4); otherwise, go to the step (8).(8)
Sp is used as the search center point to calculate the distances between the point Sp and the points of the gj cutting line, the discrete point is the shortest distance between the point Sp and the point in the gj cutting line, and that which has not been numbered is taken out and numbered Sp+1, p=p+1, if K=p, then go to step (6); otherwise, go to step (7).Figure 6
Generation principle of the offset spray path.


## 4. Simulation and Analysis

### 4.1. Spray Path Generation Simulation

T d is set as 50μm, the permitted thickness error ΔT is 10μm, and allowable change range of the spray height is [150mm, 250mm]. On the premise that the spray height is the best, its value is 200mm, and the growth rate function (unit: μm/s) of the coating thickness was obtained through the vertical static spraying experiment on the plane: f(r)=0.1(502-r2). After optimization of formula (3), the spray velocities and the spacing distances were obtained at the minimum and the maximum spray height, respectively, as shown in Table 1.Table 1
Parameters after optimization at the minimum, maximum, and optimum spray height, respectively.
H(mm) R(mm) v(mm/s) δ(mm) h(mm) 150 37.5 439.6 45.7 14.6  200 50.0 322.3 60.8 19.8  250 62.5 254.4 76.1 24.3According to Table1, the values of δ1 and δ2 are 45.7mm and 76.1mm, respectively; on this basis, the variable range [δmin, δmax] of the spacing distance can be further obtained as [41.1mm, 85.0mm]. Order ρ=14.6mm, according to the spray path generation method proposed in this paper, secondary development is carried out by C++ in Robotstudio software, the spray paths are generated on the hood and fender of a brand car, respectively, and the results are shown in Figure 7.Figure 7
Simulation results of path planning method proposed in this paper.
(a)
Spray path generation results on the hood (b)
Spray path generation results on the fenderFigure8 shows the spray path generated by previous method [1]; compared with the method in this paper, in order to ensure the coating thickness quality at the boundary of the workpiece, the previous method is used to plan the spray path to the outside of the workpiece, caused the gun to stay too long time outside the boundary of the patch and overspray, resulting in a large amount of unnecessary paint waste, especially at the irregular boundary of the workpiece.Figure 8
Simulation results of path planning by previous method.


### 4.2. Analysis

In order to verify the effectiveness and feasibility of the proposed spray path planning method, the spray trajectory parameters are optimized on the surface of the hood and the fender, and the coating thickness distribution is obtained after the optimization of the parameters. In this paper, the optimization method of spray trajectory parameters proposed by [2] is used to divide the path into several segments, and set the spray velocity and the spray height on each segment to be constant. Optimize the spray velocity and the spray height for each segment in MATLAB 7.0, and finally obtain the optimized coating thickness value on the workpiece. 100 discrete points are randomly selected on the surface of the hood and the fender, respectively, and the coating thickness of these discrete points is used to represent the overall coating thickness distribution on the surface, as shown by the black line in Figure 9.Figure 9
Comparison of coating thickness distribution in two spray path planning methods.
(a)
Coating thickness distribution on the hood (b)
Coating thickness distribution on the fenderAs shown in Figure9(a), the maximum and minimum coating thicknesses on the hood are 54.86μm and 43.93μm, respectively. The maximum and minimum coating thicknesses on the fender are 56.05μm and 43.72μm, respectively, as shown in Figure 9(b). The red line in Figure 9 shows the distribution of coating thickness after optimization of the trajectory parameters based on the previous spray path. By comparison, the coating thickness error obtained by the method is larger than that of the previous method; however, the error value can also be controlled within the range of 10μm, which basically meets the requirements for conventional coating thickness uniformity.The optimized spray velocities of the two spray paths are imported into the Robotstudio software for spray simulation, and the corresponding spray times are obtained, respectively; the results are shown in Table2.Table 2
Comparison of spray time obtained by the proposed method and previous method.
Workpiece Hood Fender Spray path generation method Proposed method Previous method Proposed method Previous method  Total length of spray path(mm) 3240 2860 1580 2565  Spray time(s) 9.2 10.8 5.5 8.3As shown in Table2, the spray time on the hood is reduced by 15% and on the fender is reduced by 33.7% compared with the previous methods. The reduction in spray time means a reduction in paint waste, provided that the flow rate of the spray gun is constant. By comparing the reduction of the spray time on the hood and the fender, it can be seen that, for the workpiece with more complicated boundary shapes, the advantage of using the method proposed in this paper to plan the spray path in saving the spray time will be more obvious.


## 4.1. Spray Path Generation Simulation

T d is set as 50μm, the permitted thickness error ΔT is 10μm, and allowable change range of the spray height is [150mm, 250mm]. On the premise that the spray height is the best, its value is 200mm, and the growth rate function (unit: μm/s) of the coating thickness was obtained through the vertical static spraying experiment on the plane: f(r)=0.1(502-r2). After optimization of formula (3), the spray velocities and the spacing distances were obtained at the minimum and the maximum spray height, respectively, as shown in Table 1.Table 1
Parameters after optimization at the minimum, maximum, and optimum spray height, respectively.
H(mm) R(mm) v(mm/s) δ(mm) h(mm) 150 37.5 439.6 45.7 14.6  200 50.0 322.3 60.8 19.8  250 62.5 254.4 76.1 24.3According to Table1, the values of δ1 and δ2 are 45.7mm and 76.1mm, respectively; on this basis, the variable range [δmin, δmax] of the spacing distance can be further obtained as [41.1mm, 85.0mm]. Order ρ=14.6mm, according to the spray path generation method proposed in this paper, secondary development is carried out by C++ in Robotstudio software, the spray paths are generated on the hood and fender of a brand car, respectively, and the results are shown in Figure 7.Figure 7
Simulation results of path planning method proposed in this paper.
(a)
Spray path generation results on the hood (b)
Spray path generation results on the fenderFigure8 shows the spray path generated by previous method [1]; compared with the method in this paper, in order to ensure the coating thickness quality at the boundary of the workpiece, the previous method is used to plan the spray path to the outside of the workpiece, caused the gun to stay too long time outside the boundary of the patch and overspray, resulting in a large amount of unnecessary paint waste, especially at the irregular boundary of the workpiece.Figure 8
Simulation results of path planning by previous method.


## 4.2. Analysis

In order to verify the effectiveness and feasibility of the proposed spray path planning method, the spray trajectory parameters are optimized on the surface of the hood and the fender, and the coating thickness distribution is obtained after the optimization of the parameters. In this paper, the optimization method of spray trajectory parameters proposed by [2] is used to divide the path into several segments, and set the spray velocity and the spray height on each segment to be constant. Optimize the spray velocity and the spray height for each segment in MATLAB 7.0, and finally obtain the optimized coating thickness value on the workpiece. 100 discrete points are randomly selected on the surface of the hood and the fender, respectively, and the coating thickness of these discrete points is used to represent the overall coating thickness distribution on the surface, as shown by the black line in Figure 9.Figure 9
Comparison of coating thickness distribution in two spray path planning methods.
(a)
Coating thickness distribution on the hood (b)
Coating thickness distribution on the fenderAs shown in Figure9(a), the maximum and minimum coating thicknesses on the hood are 54.86μm and 43.93μm, respectively. The maximum and minimum coating thicknesses on the fender are 56.05μm and 43.72μm, respectively, as shown in Figure 9(b). The red line in Figure 9 shows the distribution of coating thickness after optimization of the trajectory parameters based on the previous spray path. By comparison, the coating thickness error obtained by the method is larger than that of the previous method; however, the error value can also be controlled within the range of 10μm, which basically meets the requirements for conventional coating thickness uniformity.The optimized spray velocities of the two spray paths are imported into the Robotstudio software for spray simulation, and the corresponding spray times are obtained, respectively; the results are shown in Table2.Table 2
Comparison of spray time obtained by the proposed method and previous method.
Workpiece Hood Fender Spray path generation method Proposed method Previous method Proposed method Previous method  Total length of spray path(mm) 3240 2860 1580 2565  Spray time(s) 9.2 10.8 5.5 8.3As shown in Table2, the spray time on the hood is reduced by 15% and on the fender is reduced by 33.7% compared with the previous methods. The reduction in spray time means a reduction in paint waste, provided that the flow rate of the spray gun is constant. By comparing the reduction of the spray time on the hood and the fender, it can be seen that, for the workpiece with more complicated boundary shapes, the advantage of using the method proposed in this paper to plan the spray path in saving the spray time will be more obvious.


## 5. Conclusions

In this paper, in order to solve the problem of paint waste at the boundary of irregular patch, a planning method of spray path considering the boundary factors is established. By analyzing the influence of patch boundary on spray effect, an optimization method for the distance between the spray path and the boundary is established. The variable range of the spacing distance is established according to the variable range of the spray height and the error range of the allowable coating thickness. In the length direction of the patch, an offset spray path generation algorithm is established based on the boundary curve of the patch as the seed curve. The simulation results show the following:(1) The proposed spray path planning algorithm can adapt to multiple types of irregular patches and can automatically generate a spray path based on the patch boundary according to the patch shape.(2) After optimization of the spray trajectory parameters, the method of this paper can effectively reduce the spray time and the paint waste under the premise of meeting the uniformity of coating thickness, and the more complicated the boundary shape of the workpiece, the more obvious the effect.



---

*Source: 6067391-2018-08-06.xml*