Spray robot control method and system
By acquiring the spray width, nozzle tilt angle compensation, and lifting speed of the spraying robot, and using a pre-trained model to control the movement of the transverse and lifting axes, the problems of uneven paint film thickness and spray volume fluctuation in the junction area of the spraying robot were solved, thus achieving stability of spraying quality and improvement of automation level.
Patent Information
- Application Number
- CN202611607418.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-16
- Publication Date
- 2026-11-20
Smart Images

Figure CN123129188A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of spray painting robot control technology, and more specifically to spray painting robot control methods and systems. Background Technology
[0002] Currently, when adjacent spraying rows of spraying robots intersect, the intersection width is often set using a fixed value or based on manual experience, without considering the impact of spray width and nozzle tilt angle compensation on the paint film thickness distribution. This easily leads to the paint film thickness in the intersection area being too thick or too thin, resulting in sagging, exposed substrate, color difference, and paint waste. Simultaneously, the lateral axis movement distance is also often based on a fixed step distance or manually taught value, without considering variations in spray width and target intersection width. This easily leads to inaccurate center distance between adjacent spraying rows, resulting in the intersection area being too thick or too thin.
[0003] When the spray width changes, the lifting speed often fails to adjust accordingly, causing fluctuations in the amount of paint sprayed per unit area and uneven film thickness. When the lifting speed is adjusted, the acceleration remains constant; large speed differences can easily lead to mechanical vibration and flow fluctuations, while small speed differences result in excessively long transition times. Furthermore, the asynchronous adjustment of spray width and lifting speed, coupled with delayed pump flow response, can cause localized areas of excessive or insufficient thickness. Therefore, ensuring precise junction widths between adjacent spray rows according to the target junction width, maintaining a constant amount of paint sprayed per unit area during spray width changes, and synchronizing spray width changes with lifting speed adjustments have become pressing technical problems that need to be solved. Summary of the Invention
[0004] This invention provides a control method and system for a spraying robot. This invention solves the technical problems of uneven paint film thickness, fluctuating spraying amount per unit area, and unstable spraying quality in spraying robots caused by fixed junction width, uncompensated nozzle tilt angle projection offset, abrupt changes in the start and stop speed of the transverse axis, and lack of synchronous adjustment of the lifting speed when the spray width changes.
[0005] In view of the above problems, the present invention provides a control method for a painting robot, comprising:
[0006] Obtain the spray width, nozzle tilt angle compensation, and current lifting speed of the spraying robot in its current spraying operation;
[0007] The spray width and the nozzle tilt angle compensation are input into the pre-trained junction width prediction model, and the target junction width that minimizes the coating thickness deviation in the junction area is output.
[0008] Based on the lateral position of the current spraying column and the target intersection width, determine the lateral target position of the next spraying column, and control the lateral movement of the spraying robot according to the lateral target position, so that adjacent spraying columns can be connected according to the target intersection width.
[0009] Based on the spray width and the current lifting speed, a target lifting speed is determined to make the amount of paint applied per unit area consistent with that before the change in spray width, and the lifting axis movement of the painting robot is controlled according to the target lifting speed.
[0010] The present invention also provides a spraying robot control system, comprising:
[0011] The parameter acquisition module is used to acquire the spray width, nozzle tilt angle compensation amount, and current lifting speed of the spraying robot in the current spraying operation.
[0012] The junction width prediction module is used to input the spray width and the nozzle tilt angle compensation amount into the pre-trained junction width prediction model and output the target junction width that minimizes the deviation of the paint film thickness in the junction area.
[0013] The transverse axis control module is used to determine the transverse target position of the next spraying column based on the transverse position of the current spraying column and the target intersection width, and to control the transverse axis movement of the spraying robot according to the transverse target position so that adjacent spraying columns are connected according to the target intersection width.
[0014] The lifting axis control module is used to determine a target lifting speed that makes the amount of paint applied per unit area consistent with that before the change in spray width and the current lifting speed, and to control the lifting axis movement of the painting robot according to the target lifting speed.
[0015] One or more technical solutions provided in this invention have at least the following technical effects or advantages:
[0016] This invention utilizes a pre-trained overlap width prediction model to automatically output a target overlap width that minimizes the paint film thickness deviation in the overlap area based on the spray width and nozzle tilt angle compensation. It also accurately determines the lateral target position of the next spray column by combining the current lateral position of the spray column, while correcting for lateral projection offsets caused by nozzle tilt angles, ensuring precise overlap between adjacent spray columns according to the target overlap width. By determining the lateral axis movement speed curve based on the target overlap width, the lateral axis is controlled to start and stop smoothly, and spraying is paused during lateral axis movement and resumed after movement is delayed, effectively reducing overspraying, underspraying, paint film accumulation, and defects at the overlap area edges. Furthermore, by adjusting the spray width before changes... The target lifting speed is calculated based on the current lifting speed and the subsequent value, ensuring that the product of the target lifting speed and the changed spray width equals the product of the current lifting speed and the spray width before the change. This maintains a constant spray volume per unit area. The acceleration limit is dynamically determined based on the speed difference, allowing for a smooth transition in the lifting shaft speed. By acquiring the pump flow response delay time and determining the advance issuance time of the spray width change command, the spray width change and the lifting shaft speed adjustment are synchronized to reach the spraying execution time, avoiding local thickness deviations caused by response delays. Ultimately, this significantly improves the uniformity of the paint film, spraying quality, and paint utilization, reduces defects such as sagging, exposed substrate, and color difference, and enhances the automation level and stability of the spraying operation.
[0017] In summary, this invention solves the technical problems of uneven paint film thickness, fluctuating spraying amount per unit area, and unstable spraying quality in the spraying robot caused by fixed handover width, uncompensated nozzle tilt angle projection offset, sudden changes in the start and stop speed of the transverse axis, and failure to synchronously adjust the lifting speed when the spray width changes. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating the spraying robot control method provided in an embodiment of the present invention;
[0020] Figure 2 This is a schematic diagram of the process for determining the target position of the transverse axis in the spraying robot control method provided in this embodiment of the invention;
[0021] Figure 3 This is a schematic diagram of the structure of the spraying robot control system provided in an embodiment of the present invention.
[0022] The components represented by each number in the attached diagram are explained below:
[0023] Parameter acquisition module 11, handover width prediction module 12, transverse axis control module 13, lifting axis control module 14. Detailed Implementation
[0024] This invention provides a control method and system for a spraying robot, which specifically solves the technical problems of uneven paint film thickness, fluctuating spraying amount per unit area, and unstable spraying quality caused by fixed handover width, uncompensated nozzle tilt angle projection offset, sudden changes in the start and stop speed of the transverse axis, and failure to adjust the lifting speed synchronously when the spray width changes.
[0025] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0026] Example 1, as Figure 1 As shown, the present invention provides a control method for a painting robot, including:
[0027] S100: Obtain the spray width, nozzle tilt angle compensation amount, and current lifting speed of the current spraying operation of the spraying robot.
[0028] Currently, when spraying robots acquire spray width, nozzle tilt angle compensation, and lifting speed, the spray width often relies on manual input or rough reading from external programs. Nozzle tilt angle compensation is frequently ignored or set solely by operator experience. Lifting speed is mostly read from driver feedback, which suffers from filtering delays and insufficient accuracy. This leads to inaccurate input to the subsequent joint width prediction model, difficulty in consistently controlling paint film thickness deviation in the joint area, and easy fluctuations in the amount of paint applied per unit area with changes in spray width. Therefore, accurately, in real-time, and synchronously acquiring the spray width, nozzle tilt angle compensation, and current lifting speed of the current spraying operation by the spraying robot has become a pressing technical problem that needs to be solved.
[0029] Step S100 in the method provided in this embodiment of the invention includes:
[0030] Obtain the spray width of the current spraying operation from the spraying process parameters of the spraying robot;
[0031] The nozzle tilt angle compensation amount is obtained from the pose sensor of the small four-axis robotic arm of the spraying robot;
[0032] The current lifting speed is obtained from the encoder of the lifting shaft of the painting robot.
[0033] In this embodiment of the invention, after the start of the current spraying operation, the spraying robot controller acquires the spray width, nozzle tilt angle compensation, and current lifting speed according to a set sampling period. The set sampling period can be set to 5 milliseconds to 50 milliseconds, preferably 10 milliseconds. Because the lifting speed of the spraying robot typically varies within the range of 0 to 500 millimeters per second, the lateral axis and lifting axis need to respond promptly in the intersection area. An excessively long sampling period will lead to lag in speed change capture, while an excessively short sampling period will increase the controller's computational burden and the impact of encoder signal jitter. With a 10-millisecond sampling period, the displacement of the lifting axis within each sampling period is approximately 0 to 5 millimeters, which can reflect speed changes while ensuring data stability.
[0034] Furthermore, the spray width can be obtained from the spraying process parameters of the spraying robot. These parameters can be pre-stored in the controller's process formula library, which includes the spray width, spray flow rate, atomizing air pressure, fan-shaped control air pressure, nozzle type, nozzle-to-wall distance, and paint characteristic parameters corresponding to the current spraying operation. The controller reads the corresponding spray width based on the current job number or spraying program segment. For example, if the process formula for the current spraying operation records a spray width of 400 mm, the controller directly reads this value from the process parameter storage area and uses it as the spray width for the current operation. The effective range of the spray width can be set from 50 mm to 500 mm. Too small a spray width will increase the number of spray rows and the overlap area, while too large a spray width will easily cause significant edge thickness attenuation and paint waste. If the read spray width exceeds this range, the controller can issue an alarm and maintain the previous effective spray width value to avoid abnormalities in subsequent overlap width predictions.
[0035] Furthermore, the nozzle tilt angle compensation amount can be obtained from the pose sensor of the small four-axis robotic arm of the painting robot. The small four-axis robotic arm is used to adjust the spray gun posture so that the central axis of the nozzle has a certain tilt angle relative to the normal of the wall, thereby compensating for the paint film thickness at the sprayed edge. The pose sensor can be set at the joint of the robotic arm, the spray gun mounting base, or the end of the small four-axis robotic arm. The pose sensor can include a joint encoder, an inertial measurement unit, or an angle sensor. After the controller obtains the joint angle or posture data output by the pose sensor, it calculates the actual direction of the nozzle central axis through the forward kinematics relationship of the small four-axis robotic arm, and then compares this actual direction with the direction of the normal of the wall to obtain the nozzle tilt angle. The component of the nozzle tilt angle in the lateral direction is determined as the nozzle tilt angle compensation amount. For example, if the pose sensor measures the lateral deflection joint angle of the small four-axis robotic arm to be 5 degrees, after forward kinematics calculation, the tilt angle of the nozzle central axis in the lateral direction is 3 degrees, and the controller uses this 3 degrees as the nozzle tilt angle compensation amount. The effective range of nozzle tilt angle compensation can be set from -15 degrees to 15 degrees, and the resolution can be set to 0.1 degrees. Excessive tilt angle will cause significant variations in the distance from the nozzle to the wall at different lateral positions, resulting in severe distortion of the paint film thickness distribution. Insufficient tilt angle will fail to effectively compensate for thickness deviations in the junction area. The sampling frequency of the pose sensor can be set to 100 Hz to ensure that the tilt angle compensation can follow the posture adjustment of the small four-axis robotic arm.
[0036] Furthermore, the current lifting speed can be obtained from the lifting shaft encoder of the painting robot. The lifting shaft encoder can be installed at the output end of the lifting shaft motor, the end of the lead screw, or the guide rail position detection point. The encoder outputs the position pulse or absolute position value of the lifting shaft. The controller reads the position value of the lifting shaft encoder according to a set sampling period and calculates the position difference between two adjacent sampling periods. The position difference is divided by the sampling period to obtain the current lifting speed. The effective range of the current lifting speed can be set to 0 to 500 mm / s, because too low a lifting speed will reduce the painting efficiency, while too high a lifting speed will result in insufficient paint film thickness for a single row of spraying. To reduce the impact of encoder pulse jitter and mechanical vibration on speed calculation, the controller can perform low-pass filtering on the calculated lifting speed. The filtering time constant can be set to 10 ms to 50 ms, preferably 20 ms, because too small a filtering time constant cannot effectively suppress jitter, while too large a filtering time constant will cause speed response lag, affecting the smooth transition of the lifting speed when the spray width changes.
[0037] Finally, when acquiring the spray width, nozzle tilt angle compensation, and current lifting speed, the controller can perform timestamp alignment on these three parameters. The controller can add a separate acquisition time for each of the spray width, nozzle tilt angle compensation, and current lifting speed within each sampling period, and store parameter combinations with the same acquisition time or a time difference less than a preset synchronization threshold in a cache queue. The synchronization threshold can be set from 10 milliseconds to 30 milliseconds, preferably 20 milliseconds, because the motion control cycle of the painting robot's lateral and lifting axes is typically in the millisecond range. If the time difference between the three parameters is too large, it will cause the handover width prediction and lifting speed compensation to be based on different states at different times, thereby reducing the accuracy of paint film thickness control. Timestamp alignment ensures that subsequent handover width prediction models and lifting speed determination processes use parameters from the same painting operation state.
[0038] This invention ensures that the spray width is consistent with the current spray formula and spray program by obtaining the spray width from the spraying process parameters; by obtaining attitude data from the posture sensor of the small four-axis robotic arm and calculating the nozzle tilt angle compensation, it can accurately reflect the influence of the actual nozzle posture on the lateral thickness distribution of the spray; by obtaining the position from the lifting shaft encoder and calculating the current lifting speed, it can obtain a real-time, stable and highly accurate lifting shaft speed; by aligning the timestamps and verifying the validity of the three parameters, it provides reliable input for subsequent handover width prediction and target lifting speed determination, thereby helping to reduce the paint film thickness deviation in the handover area, keeping the spray amount per unit area consistent before and after the spray width change, and improving the spraying quality and automation control level.
[0039] S200: Input the spray width and the nozzle tilt angle compensation amount into the pre-trained junction width prediction model, and output the target junction width that minimizes the coating thickness deviation in the junction area.
[0040] Currently, the junction width of spraying robots often uses fixed values or relies on manual experience, without fully considering the impact of spray width and nozzle tilt angle compensation on the lateral thickness distribution of a single row of spraying. This leads to the paint film thickness in the junction area between adjacent spraying rows being easily too thick or too thin, and the amount of paint sprayed per unit area fluctuates with changes in spray width, resulting in problems such as sagging, exposed substrate, color difference, and paint waste. Therefore, how to establish a target junction width that can accurately reflect the impact of spray width and nozzle tilt angle compensation and quickly output the target junction width that minimizes the deviation in paint film thickness in the junction area has become an urgent technical problem to be solved.
[0041] In step S200 of the method provided in this embodiment of the invention, the training process of the pre-trained intersection width prediction model includes:
[0042] A single-column spraying transverse thickness distribution analytical model is constructed. The single-column spraying transverse thickness distribution analytical model uses the spray width and nozzle tilt angle compensation amount as parameters to output the paint film thickness at each position of the single-column spraying in the transverse direction.
[0043] Acquire multiple spray pattern samples and multiple nozzle tilt angle compensation amount samples;
[0044] For each combination of spray pattern sample and each nozzle tilt angle compensation sample, the lateral thickness distribution of two adjacent spray patterns is generated using the single-column spray lateral thickness distribution analytical model.
[0045] The relative orientation of the transverse thickness distribution of two adjacent spray columns in the junction area is determined by the direction of the nozzle tilt angle compensation.
[0046] The lateral thickness distribution of two adjacent columns of sprayed coating is superimposed in the junction area according to the relative posture to obtain the superimposed thickness distribution of the junction area;
[0047] With the goal of minimizing the deviation between the superimposed thickness distribution of the intersection area and the thickness of the single-column central area, the optimal intersection width corresponding to the combination of each spray pattern sample and each nozzle tilt angle compensation sample is obtained by numerical solution within the preset intersection width range.
[0048] Using the spray pattern sample and the nozzle tilt angle compensation sample as input, and the corresponding optimal junction width as output, the regression model is trained until the convergence is verified, thus obtaining the pre-trained junction width prediction model.
[0049] The analytical model for the transverse thickness distribution of a single-column spray coating is constructed, including:
[0050] The spraying flow rate, nozzle-to-wall distance, and paint characteristic parameters are obtained, wherein the paint characteristic parameters include at least the paint viscosity.
[0051] The fan-shaped coverage width is determined based on the spray pattern, and the lateral projection offset is determined by coordinate transformation based on the nozzle tilt angle compensation amount. The nozzle tilt angle compensation amount causes the distance from the nozzle to the wall to change at various lateral positions, and the lateral projection offset is the offset of the projection position of the nozzle center axis on the wall relative to the projection position of the nozzle center axis on the wall without tilt angle compensation.
[0052] Using the lateral position as the independent variable and the paint film thickness at each lateral position of a single-column spray as the dependent variable, an analytical model of the lateral thickness distribution of a single-column spray is constructed. The analytical model of the lateral thickness distribution of a single-column spray is a Gaussian function, which includes a peak position parameter, a width parameter, and an amplitude parameter.
[0053] The lateral projection offset is determined as the peak position parameter, and the fan-shaped coverage width is divided by the preset coverage coefficient to determine the width parameter. The preset coverage coefficient is determined based on the distance between the lateral position and the peak position when the thickness of the sprayed fan-shaped edge decays to a preset proportion of the peak thickness.
[0054] The amplitude parameter is determined based on the spray flow rate, the distance from the nozzle to the wall, and the viscosity of the paint, wherein the amplitude parameter is directly proportional to the spray flow rate and inversely proportional to the distance from the nozzle to the wall and the viscosity of the paint.
[0055] Based on the peak position parameter, the width parameter, and the amplitude parameter, an analytical model for the transverse thickness distribution of a single-column spray coating is obtained.
[0056] In this embodiment of the invention, when constructing an analytical model of the transverse thickness distribution of a single-column spray coating, the controller first acquires the spray flow rate, the distance from the nozzle to the wall, and the paint characteristic parameters. The spray flow rate can be obtained from the flow rate setpoint of the spray pump, the flow meter feedback value, or the process formula. The value range can be set to 50 ml / min to 500 ml / min, preferably 100 ml / min to 300 ml / min. This range is set because too small a spray flow rate will result in insufficient single-column paint film thickness, while too large a spray flow rate will easily cause sagging and paint waste. If the acquired spray flow rate exceeds this range, the controller can issue an alarm and adopt the previous valid value to avoid abnormal amplitude parameters in the analytical model.
[0057] Meanwhile, the distance from the nozzle to the wall can be measured by a laser rangefinder or an ultrasonic distance sensor. The value can be set from 150 mm to 500 mm, preferably 200 mm to 350 mm. Too small a distance will result in an excessively thick paint film and reduced spray width, while too large a distance will result in an excessively thin paint film and increased edge attenuation. Paint characteristic parameters include at least paint viscosity, which can be read from a process formulation library. The value can be set from 20 centipoise to 300 centipoise, preferably 40 centipoise to 150 centipoise. Too low a viscosity will cause the paint to flow easily, while too high a viscosity will result in poor atomization; both will alter the lateral thickness distribution.
[0058] Furthermore, the fan-shaped coverage width is determined based on the spray pattern. The spray pattern can be read from the spraying process parameters; for example, if the spray pattern for the current spraying operation is 400 mm, then the fan-shaped coverage width can be taken as 400 mm. The lateral projection offset is then determined through coordinate transformation based on the nozzle tilt angle compensation amount. The nozzle tilt angle compensation amount can be taken as the tilt angle component of the nozzle's central axis in the lateral direction. If the small four-axis robotic arm also has a longitudinal tilt angle or rotation angle, the direction of the nozzle's central axis is transformed to the wall coordinate system through a homogeneous transformation matrix, and then the lateral component is taken as the lateral projection offset. The lateral projection offset means the offset of the projected position of the nozzle's central axis on the wall relative to the projected position of the nozzle's central axis on the wall without tilt angle compensation.
[0059] Then, using the lateral position as the independent variable and the paint film thickness at each lateral position of a single-column spray as the dependent variable, an analytical model of the lateral thickness distribution of a single-column spray is constructed. This analytical model is a Gaussian function, including a peak position parameter, a width parameter, and an amplitude parameter. The thickness is equal to the amplitude parameter multiplied by the negative power of the natural constant e, where the exponent is the square of the difference between the lateral position and the peak position divided by the negative of twice the square of the width parameter. The lateral projection offset is determined as the peak position parameter, and the width parameter is determined by dividing the fan-shaped coverage width by a preset coverage coefficient.
[0060] The preset coverage coefficient is determined based on the distance between the lateral position and the peak position when the thickness of the sprayed fan-shaped edge decays to a preset proportion of the peak thickness. The preset proportion can be set to 5%. When the preset proportion is 5%, the distance from the edge position to the peak position is half the width of the fan-shaped coverage. According to the Gaussian function relationship, the preset coverage coefficient is approximately 4.9. 5% can well characterize the effective coverage range of the sprayed fan-shaped edge, while avoiding including almost unpainted edge areas in the model.
[0061] Furthermore, the amplitude parameter is determined based on the spray flow rate, nozzle-to-wall distance, and paint viscosity. The amplitude parameter is directly proportional to the spray flow rate and inversely proportional to the nozzle-to-wall distance and paint viscosity. Amplitude parameter = calibration coefficient × spray flow rate / (nozzle-to-wall distance × paint viscosity), where the calibration coefficient is obtained through single-column spraying experiments. An analytical model of the transverse thickness distribution of single-column spraying is obtained using the peak position parameter, width parameter, and amplitude parameter.
[0062] Furthermore, during the training of the junction width prediction model, multiple spray width samples and multiple nozzle tilt angle compensation samples were obtained. The spray width sample range could be set to 50 mm to 500 mm, with an interval of 10 mm, resulting in a total of 46 spray width samples. The nozzle tilt angle compensation sample range could be set to -15 degrees to 15 degrees, with an interval of 1 degree, resulting in a total of 31 nozzle tilt angle compensation samples. The reason for setting the above intervals is that too large an interval cannot fully cover the impact of spray width and tilt angle changes on the junction width, while too small an interval would significantly increase sample generation and training time. The spray width samples and nozzle tilt angle compensation samples were combined pairwise, resulting in a total of 1426 combinations.
[0063] Furthermore, for each combination of spray pattern sample and each nozzle tilt angle compensation sample, the lateral thickness distribution of adjacent spray patterns is generated using a single-column spray lateral thickness distribution analytical model. The center distance between two adjacent spray patterns is equal to the current spray pattern minus the candidate junction width. The center position of the current spray pattern column can be set as the origin, and the center position of the next spray pattern column is equal to the center distance. The relative orientation of the lateral thickness distribution of adjacent spray patterns in the junction area is determined based on the direction of the nozzle tilt angle compensation.
[0064] The relative attitude can include same-direction offset, opposite-direction offset, and back-direction offset. If the current spray column and the next spray column use the same nozzle tilt angle compensation direction, the Gaussian peaks of the two columns will offset in the same direction; if the current spray column uses a positive tilt angle compensation and the next spray column uses a negative tilt angle compensation, the Gaussian peaks of the two columns will offset in opposite directions, that is, both columns' peaks will shift towards the inside of the junction area; if the current spray column uses a negative tilt angle compensation and the next spray column uses a positive tilt angle compensation, the Gaussian peaks of the two columns will offset back-direction. Opposite-direction offset is preferred because it allows more paint to be superimposed in the junction area, thereby compensating for edge thickness attenuation and making the total thickness of the junction area closer to the thickness of the center area of a single column.
[0065] Then, the lateral thickness distributions of the two adjacent sprayed columns are superimposed in the junction area according to their relative orientation. During superposition, for each lateral position, the paint film thickness of the current sprayed column is added to the paint film thickness of the next sprayed column to obtain the superimposed thickness distribution in the junction area. The thickness of the center area of a single column can be taken as the average thickness within 10 mm to the left and right of the center position of the single column, because there may be slight fluctuations in the actual sprayed center area, and using the average value can reduce the impact of noise.
[0066] Furthermore, with the objective of minimizing the deviation between the thickness distribution of the overlapping area and the thickness of the single-column central area, the optimal overlap width corresponding to each spray pattern sample and each nozzle tilt angle compensation sample combination is obtained through numerical solution within a preset overlap width range. The objective function can be set as the sum of squares of the differences between the total thickness at each point in the overlap area and the thickness of the single-column central area. The preset overlap width range can be set to 5% to 40% of the spray pattern, preferably 10% to 30%. This range is set because if the overlap width is too small, the edge attenuation cannot be compensated, which easily leads to depressions and exposed substrate; if the overlap width is too large, there will be too much paint in the overlapping area, which easily leads to bulges, runs, and paint waste.
[0067] The numerical solution involves first performing a coarse-search mesh within a preset junction width range with a step size of 1 mm to obtain the optimal value, and then performing a fine-tuning search near the optimal value with a step size of 0.1 mm. Through this solution, the optimal junction width corresponding to each spray pattern sample and each nozzle tilt angle compensation sample combination is obtained.
[0068] Furthermore, using spray pattern samples and nozzle tilt angle compensation samples as inputs, and the corresponding optimal junction width as output, a regression model is trained. The regression model can employ a multilayer perceptron, with 2 nodes in the input layer, 12 nodes in the hidden layer, and 1 node in the output layer. The activation function is the hyperbolic tangent function, the loss function is the mean squared error, and the optimizer is an adaptive moment estimator. The learning rate is set to 0.001, the batch size to 32, the number of training epochs to 500, the validation set ratio to 20%, and the early stopping tolerance to 20 epochs. The validation convergence condition can be set as either the validation loss decreasing by less than 0.0001 for 20 consecutive epochs, or the validation loss being less than 0.00001. The ratio of training set, validation set, and test set can be set to 7:1.5:1.5.
[0069] Before training, the input and output data were normalized. The spray width sample range was set to 50 mm to 500 mm, and the nozzle tilt angle compensation sample range was set to -15 degrees to +15 degrees. Both were mapped to a range of -1 to +1 using min-max normalization, with data truncated at the range boundary when outside the range. The optimal overlap width was mapped to a range of 0 to 1 using the minimum and maximum values from all samples, with data truncated at the range boundary when outside the range. The maximum and minimum values used for normalization were saved together with the regression model parameters. When used online, the same set of parameters was used to process the current spray width and the current nozzle tilt angle compensation, ensuring consistency in data scale between training and inference.
[0070] If the spray width is zero, negative, infinite, or a non-numerical value, the controller uses the previous valid spray width, with a hold time set to 500 milliseconds. If no valid value is found after 500 milliseconds, spraying stops and an alarm is triggered. If the nozzle tilt angle compensation is infinite, a non-numerical value, or empty, the controller uses the previous valid tilt angle compensation, with a hold time set to 200 milliseconds. If no valid value is found after 200 milliseconds, spraying pauses and an alarm is triggered. These hold times are set because short-term communication anomalies or sensor jitter can be smoothly transitioned to the previous valid value; however, if the hold time is too long, operation based on erroneous parameters cannot continue.
[0071] If the maximum spray width or the maximum tilt angle equals the minimum, the normalization denominator is zero. In this case, the controller recalculates using the default spray width range of 50 mm to 500 mm and the default tilt angle range of -15 degrees to +15 degrees, and issues a parameter configuration error alarm. If the maximum junction width equals the minimum, denormalization cannot recover the true value. The controller can use the median of the preset junction width range as the target junction width and pause model output.
[0072] After training, the regression model parameters are fixed and deployed to the spraying robot controller. When used online, the current spray width and the current nozzle tilt angle compensation are input, and the target junction width is output.
[0073] This invention constructs an analytical model for the transverse thickness distribution of a single-column spray coating. It incorporates the spray width, nozzle tilt angle compensation, spray flow rate, nozzle-to-wall distance, and paint viscosity into a unified Gaussian function model. This analytical model is then used to generate a large number of samples to train a regression model. This approach preserves the physical interpretability of the spray thickness distribution while enabling rapid prediction of the target overlap width. It minimizes the deviation between the superimposed thickness of adjacent spray columns at the overlap and the thickness of the central area of a single column, thereby reducing issues such as excessively thick or thin overlaps, sagging, and exposed substrate. This improves paint film uniformity, spray quality, and paint utilization.
[0074] S300: Based on the lateral position of the current spraying column and the target intersection width, determine the lateral target position of the next spraying column, and control the lateral movement of the spraying robot according to the lateral target position, so that adjacent spraying columns are connected according to the target intersection width.
[0075] Currently, when painting robots transition between adjacent painting rows, the lateral axis movement distance is often based on a fixed step distance or manually taught values. This fails to consider variations in spray width and target transition width, nor does it account for lateral projection offsets caused by nozzle tilt angle compensation. This easily leads to inaccurate center-to-center distances between adjacent painting rows, resulting in excessively thick or thin paint, runs, or exposed substrate in the transition area. Furthermore, abrupt changes in the lateral axis start-stop speed and the lack of coordination between nozzle pauses and resumptions with the lateral axis movement can also cause paint buildup or gaps at the transition edge. Therefore, accurately determining the lateral target position of the next painting row and correcting for projection offsets and controlling the speed curve of the lateral axis movement distance to ensure precise transitions between adjacent painting rows according to the target transition width has become a pressing technical problem that needs to be solved.
[0076] Step S300 in the method provided in this embodiment of the invention, as follows: Figure 2 As shown, it includes:
[0077] Get the horizontal position of the current spray column on the wall;
[0078] Based on the lateral position of the current spray column, the spray width, and the target intersection width, the lateral target position of the next spray column is determined, wherein the distance between the lateral target position of the next spray column and the lateral position of the current spray column is equal to the difference between the spray width and the target intersection width.
[0079] Calculate the difference between the lateral target position of the next spray column and the lateral position of the current spray column, and determine the absolute value of the difference as the moving distance of the lateral axis. When the difference is greater than zero, the moving direction of the lateral axis is determined to be positive, and when the difference is less than zero, the moving direction of the lateral axis is determined to be negative.
[0080] The projection offset of the nozzle in the lateral direction is determined based on the nozzle tilt angle compensation amount, and the moving distance is corrected based on the projection offset amount to obtain the corrected moving distance.
[0081] The lateral axis movement is controlled according to the corrected moving distance and the moving direction, so that the nozzle moves to the lateral target position of the next spray column.
[0082] In this embodiment of the invention, the controller acquires the lateral position of the current spray column on the wall. This lateral position can be obtained by acquiring the current position of the lateral axis encoder and then calculating it in conjunction with the calibration projection relationship of the nozzle on the wall. The calibration projection relationship can be determined before each spraying operation begins through laser ranging and visual calibration. For example, the nozzle is controlled to move to a known lateral axis position, and the spraying center on the wall is photographed by a vision sensor to establish the correspondence between the lateral axis position and the lateral position of the spray column center. The current lateral position of the spray column can be denoted as C0, in millimeters. To reduce the impact of uneven wall surface and robot vibration, the lateral position can be averaged over multiple consecutive sampling periods. The sampling period can be set to 10 milliseconds, the number of averages can be set to 5, and the averaging time is approximately 50 milliseconds. Because the lateral axis moves at a basically uniform speed during spraying, short-time averaging can suppress encoder jitter and will not significantly lag behind the actual position.
[0083] Furthermore, the controller determines the lateral target position of the next spray column based on the lateral position, spray width, and target junction width of the current spray column. The distance between the lateral target position of the next spray column and the lateral position of the current spray column is equal to the difference between the spray width and the target junction width, which is the center distance between the centers of two adjacent spray columns.
[0084] Simultaneously, the controller calculates the difference between the lateral target position of the next spray column and the lateral position of the current spray column. The absolute value of the difference is determined as the movement distance of the lateral axis. When the difference is greater than zero, the movement direction of the lateral axis is determined to be positive; when the difference is less than zero, the movement direction of the lateral axis is determined to be negative.
[0085] Further, the projected offset of the nozzle in the lateral direction is determined based on the nozzle tilt angle compensation amount, and the moving distance is corrected based on the projected offset amount to obtain the corrected moving distance, including:
[0086] Obtain the current distance from the nozzle to the wall;
[0087] Based on the nozzle tilt angle compensation amount and the current distance from the nozzle to the wall, the projection offset of the nozzle in the lateral direction is calculated using trigonometric functions, wherein the projection offset is equal to the product of the current distance from the nozzle to the wall and the tangent of the nozzle tilt angle compensation amount;
[0088] Determine whether the direction of the projection offset is consistent with the direction of movement: if the direction of the projection offset is consistent with the direction of movement, subtract the projection offset from the movement distance to obtain the corrected movement distance; if the direction of the projection offset is opposite to the direction of movement, add the projection offset to the movement distance to obtain the corrected movement distance.
[0089] In this embodiment of the invention, the controller determines the lateral projection offset of the nozzle based on the nozzle tilt angle compensation amount. The nozzle tilt angle compensation amount represents the tilt angle of the nozzle's central axis relative to the wall normal in the lateral direction. The nozzle tilt angle compensation amount causes the distance from the nozzle to the wall to change at various lateral positions, and causes the projected position of the nozzle's central axis on the wall to shift relative to the position without tilt angle compensation. The projection offset can be calculated by multiplying the current distance from the nozzle to the wall by the tangent of the nozzle tilt angle compensation amount. The current distance from the nozzle to the wall can be obtained by a laser rangefinder.
[0090] Furthermore, the controller determines whether the direction of the projected offset is consistent with the direction of movement. If the direction of the projected offset is consistent with the direction of movement, the absolute value of the projected offset is subtracted from the movement distance to obtain the corrected movement distance; if the direction of the projected offset is opposite to the direction of movement, the absolute value of the projected offset is added to the movement distance to obtain the corrected movement distance. The reason for this correction is that the nozzle tilt angle causes the spraying center to shift relative to the projected position of the nozzle on the wall. The lateral axis needs to compensate for this shift to ensure that the spraying center accurately falls on the lateral target position of the next spraying column.
[0091] If the corrected movement distance is less than zero, the controller sets the corrected movement distance to zero and re-determines whether reverse movement is needed. If the corrected movement distance is greater than the maximum travel of the lateral axis, the controller limits the corrected movement distance to the maximum travel of the lateral axis and issues a target position overtravel warning. The maximum travel of the lateral axis can be set according to the robot model, for example, 2000 mm, to prevent the lateral axis movement from exceeding the mechanical limits and avoid collisions and damage.
[0092] Further, controlling the lateral axis movement based on the corrected moving distance and the moving direction to move the nozzle to the lateral target position of the next spray column includes:
[0093] The motion speed curve of the transverse axis is determined based on the target intersection width, wherein the rate of change of the motion speed curve during the start-up and stop phases of the transverse axis is less than a preset rate of change threshold, so that the transverse speed of the nozzle when resuming spraying is consistent with that of the single-row spraying area.
[0094] The transverse axis movement is controlled based on the corrected moving distance, the moving direction, and the movement speed curve;
[0095] During the lateral axis movement, the nozzle is controlled to pause spraying. After the lateral axis movement is completed, the nozzle is controlled to resume spraying, so that the nozzle moves to the lateral target position of the next spraying column.
[0096] In this embodiment of the invention, the motion speed curve of the transverse axis is determined based on the target intersection width. The target intersection width first determines the center distance between two adjacent spray columns, which is equal to the spray width minus the target intersection width. The center distance is then corrected by combining the projection offset to obtain the corrected movement distance. The corrected movement distance is combined with the acceleration threshold and the constant speed segment speed to determine the speed curve. The rate of change of the motion speed curve during the start and stop phases of the transverse axis is less than a preset rate of change threshold, so that the transverse speed of the nozzle when resuming spraying is consistent with that of the single-column spraying area.
[0097] The velocity change rate is acceleration, and the acceleration threshold can be set to 0.5 m / s². This value is determined by the vibration test of the transverse axis and the spraying cycle requirements. Acceleration and deceleration tests are conducted under full load conditions on the transverse axis. When the acceleration exceeds 0.5 m / s², the transverse axis guide rail and nozzle mounting seat vibrate significantly, and the paint film thickness fluctuation exceeds the allowable range at the moment of resumed spraying. When the acceleration is less than 0.5 m / s², the transverse axis movement time increases significantly, the single-row spraying cycle is prolonged, and the overall spraying efficiency is affected. Setting it to 0.5 m / s² can control the vibration at the moment of resumed spraying within the allowable deviation of the paint film thickness and also meet the spraying cycle requirements.
[0098] Meanwhile, the constant speed segment speed is determined based on the moving distance and spraying cycle time. Specifically, the moving distance of the transverse axis between adjacent spraying columns is typically 0.2 meters to 0.5 meters, requiring the moving time to be controlled between 1 second and 2.5 seconds, while not exceeding the rated speed and vibration limit of the transverse axis motor. Therefore, the constant speed segment speed is set to 0.3 meters per second, which satisfies the spraying cycle time while avoiding vibration caused by excessive transverse axis speed. Under the condition of a constant speed segment speed of 0.3 meters per second and an acceleration threshold of 0.5 meters per square second, it takes at least 0.6 seconds to accelerate from zero to 0.3 meters per second. The start-up phase time is set to 0.6 seconds to 1.0 second, preferably 0.8 seconds, and the stop phase time is set to 0.6 seconds to 1.0 second, preferably 0.8 seconds. This time matches the constant speed segment speed and acceleration threshold, ensuring smooth start and stop of the transverse axis while meeting the spraying cycle time requirements. The speed curve adopts an S-shaped curve, including an acceleration section, a constant speed section, and a deceleration section, so that the acceleration changes continuously, avoiding start-stop impact, thereby reducing the fluctuation of paint film thickness at the moment of resumed spraying.
[0099] Furthermore, the movement of the transverse axis is controlled based on the corrected movement distance, movement direction, and movement speed curves. During the movement of the transverse axis, the controller controls the nozzle to pause spraying. The advance time for pausing spraying can be set from 10 milliseconds to 30 milliseconds, preferably 20 milliseconds, because there is a response delay from the spray gun receiving the shut-off signal to the actual stop of spraying. Early shut-off can avoid overspraying at the moment the transverse axis starts.
[0100] Finally, after the lateral axis movement is complete, the nozzles are controlled to resume spraying. The delay time for resuming spraying can be set to 10 to 50 milliseconds, preferably 20 milliseconds. This is because the mechanical vibration needs a short time to decay after the lateral axis stops. Resuming spraying after the vibration has stabilized can reduce paint film buildup or gaps at the edges of the junction area. After the lateral axis movement is complete, the nozzles move to the lateral target position of the next spraying column, and then the lifting axis movement and spraying operation of the next spraying column begin.
[0101] This invention determines the lateral target position of the next spray column based on the current lateral position of the spray column, the spray width, and the target junction width, enabling the center distance between adjacent spray columns to automatically adjust with the spray width and junction width. By calculating the projection offset based on the nozzle tilt angle compensation and the distance from the nozzle to the wall, and correcting the lateral axis movement distance, the spray center offset caused by the nozzle tilt angle can be eliminated, ensuring the spray center accurately falls on the target position. By determining the lateral axis movement speed curve based on the target junction width, and pausing spraying during lateral axis movement and resuming spraying after movement, the vibration during lateral axis start-stop and the overspraying or underspraying at the junction edge can be reduced, thereby reducing the paint film thickness deviation in the junction area and improving spray uniformity, automation, and paint utilization.
[0102] S400: Based on the spray width and the current lifting speed, determine a target lifting speed that makes the amount of paint applied per unit area consistent with that before the change in spray width, and control the lifting axis movement of the painting robot according to the target lifting speed.
[0103] Currently, when spraying robots change the spray width, they often only adjust the spray width without correspondingly adjusting the lifting speed. This leads to variations in the amount of paint sprayed per unit area and fluctuations in paint film thickness. Alternatively, when adjusting the lifting speed, a fixed acceleration is used. Large speed differences can easily cause mechanical vibration and flow fluctuations, while small speed differences result in excessively long transition times. Furthermore, the spray width change command and the lifting shaft speed adjustment are not synchronized. The delayed pump flow response causes the actual spray width change to lag behind the lifting shaft speed adjustment, resulting in areas that are too thick or too thin. Therefore, how to maintain a constant amount of paint sprayed per unit area before and after a change in spray width, and how to ensure that the change in spray width and the adjustment of the lifting shaft speed arrive at the spraying execution time simultaneously, has become a pressing technical problem that needs to be solved.
[0104] Step S400 in the method provided in this embodiment of the invention includes:
[0105] The spray width before the change is taken as the spray width before the change, and the spray width after the change is taken as the spray width after the change.
[0106] Based on the spray width before the change, the spray width after the change, and the current lifting speed, a target lifting speed is determined to make the amount of paint applied per unit area consistent with that before the change in spray width, wherein the product of the target lifting speed and the spray width after the change is equal to the product of the current lifting speed and the spray width before the change.
[0107] Obtain the speed difference between the current lifting speed and the target lifting speed;
[0108] The acceleration limit of the lifting shaft is determined based on the speed difference, wherein the larger the speed difference, the larger the acceleration limit.
[0109] The lifting shaft is controlled according to the acceleration limit to smoothly transition from the current lifting speed to the target lifting speed, so that the amount of paint applied per unit area remains constant before and after the change in spray width.
[0110] In this embodiment of the invention, the spray width before the change is first obtained as the pre-change spray width, and the spray width after the change is obtained as the post-change spray width. The pre-change and post-change spray widths can be read from the spraying process parameters, the process formula library, or the spraying program segment. Simultaneously, the current lifting speed before the spray width change is obtained as the current lifting speed. The current lifting speed is obtained from the lifting shaft encoder. First, the lifting shaft position value is read, then the position difference between adjacent sampling periods is calculated, and the lifting speed is obtained by dividing the position difference by the sampling period.
[0111] Furthermore, the target lifting speed is determined based on the spray width before the change, the spray width after the change, and the current lifting speed. The product of the target lifting speed and the spray width after the change is equal to the product of the current lifting speed and the spray width before the change. Therefore, the target lifting speed = current lifting speed × spray width before the change / spray width after the change. The amount of paint applied per unit area remains unchanged before and after the change in spray width because the amount of paint applied per unit area is inversely proportional to the product of the spray width and the lifting speed.
[0112] Furthermore, the speed difference between the current lifting speed and the target lifting speed is obtained, where the speed difference = |target lifting speed - current lifting speed|. The controller determines the acceleration limit of the lifting shaft based on the speed difference; the larger the speed difference, the larger the acceleration limit.
[0113] In one specific implementation, after obtaining the speed difference between the current lifting speed and the target lifting speed, an acceleration limit is determined based on the expected transition time and the maximum allowable acceleration of the lifting shaft. The expected transition time is set to 0.3 to 1.0 seconds, preferably 0.5 seconds, because a transition time that is too short will cause drastic changes in the lifting shaft speed, easily leading to mechanical vibration and paint flow fluctuations, resulting in uneven paint film thickness; a transition time that is too long will prolong the spray pattern change process, affecting the spraying cycle. The maximum allowable acceleration of the lifting shaft is set to 100 mm / s², a value determined through lifting shaft vibration and flow fluctuation tests. When the acceleration exceeds 100 mm / s², the lifting shaft vibration and paint flow fluctuations exceed the allowable range; when the acceleration is below 100 mm / s², the lifting shaft operates smoothly. The maximum transition time is set to 2 seconds, because exceeding 2 seconds results in an excessively long spray pattern change process, easily causing localized paint film thickness deviations to accumulate.
[0114] Next, the required acceleration is calculated as: Required acceleration = Speed difference / Desired transition time. The required acceleration is compared with the maximum allowable acceleration of the lifting shaft, and the smaller value is taken as the actual acceleration limit. If the required acceleration is less than or equal to the maximum acceleration, the actual acceleration limit is equal to the required acceleration, and the actual transition time is equal to the desired transition time. If the required acceleration is greater than the maximum acceleration, the actual acceleration limit is equal to the maximum acceleration, and the actual transition time is equal to the speed difference divided by the maximum acceleration. Then, it is determined whether the actual transition time exceeds the maximum transition time. If it does not exceed the maximum transition time, the lifting shaft is controlled to smoothly transition from the current lifting speed to the target lifting speed according to the actual acceleration limit. If it exceeds the maximum transition time, the spray pattern change process is divided into multiple segments, with the speed difference of each segment not exceeding the product of the maximum acceleration and the maximum transition time. The lifting shaft speed transition is completed segment by segment, and the spray pattern change and lifting shaft speed adjustment are synchronized to the spraying execution time.
[0115] Finally, the lifting shaft is smoothly transitioned from the current lifting speed to the target lifting speed according to the acceleration limit. During the transition, the lifting shaft speed gradually changes, and the spray flow rate and spray width are also adjusted synchronously according to the spray width change command, so that the spray amount per unit area remains constant before and after the spray width change. If the lifting shaft speed increases, the spray width decreases, and the spray amount per unit area remains unchanged; if the lifting shaft speed decreases, the spray width increases, and the spray amount per unit area also remains unchanged.
[0116] Step S400 in the method provided in this embodiment of the invention further includes:
[0117] Obtain the pump flow response delay time of the spraying robot;
[0118] Based on the pumping flow response delay time, determine the advance issuance time of the spray width change command;
[0119] The spray width change command is issued at the advance issuance time, so that the spray width change and the adjustment of the lifting shaft speed are synchronized to the spraying execution time.
[0120] In this embodiment of the invention, the pump flow response delay time of the painting robot is first obtained. This delay time can be obtained through a flow meter step response test. During the test, with the painting robot in a stable painting state, a step command is issued to change the pump flow rate from a first flow rate value to a second flow rate value. The time required for the flow meter feedback value to change from the first flow rate value to 90% of the second flow rate value is recorded as the pump flow response delay time. Repeating the test multiple times and taking the average value can improve the accuracy of the delay time; the number of repetitions can be set to 5 times.
[0121] The first and second flow rates are not fixed values; they are simply two test flow rates used to measure the pump flow response delay time. Three conditions must be met when setting them: both flow rates should be within the normal operating flow range of the painting robot; the difference between them should be large enough to make the flow meter feedback change obvious, facilitating accurate recording of the response time; and the flow rate must not exceed the maximum allowable flow rate of the pump, pipeline, and nozzle, nor be lower than the minimum flow rate required for stable pumping.
[0122] Furthermore, the advance issuance time of the spray width change command is determined based on the pump flow response delay time. The target spraying execution time is the time when the spray width change should actually take effect. Therefore, the advance issuance time = target spraying execution time - pump flow response delay time - safety margin. The safety margin can be set to 5 milliseconds because there may be slight fluctuations in the controller timing accuracy, communication transmission, and valve action. Reserving a safety margin ensures that the actual change in pump flow is not later than the target spraying execution time.
[0123] Finally, a spray pattern change command is issued in advance. This command controls the pump flow rate to change from a first flow rate value to a second flow rate value, and correspondingly controls the fan-shaped control air pressure to change the spray pattern from its initial value to its final value. Simultaneously, a lift shaft speed adjustment command takes effect at the target spraying execution time, or the lift shaft speed adjustment command is also issued in advance based on the lift shaft response delay time, ensuring that the actual start time of lift shaft speed change coincides with the actual start time of pump flow rate change. Through this synchronous control, the spray pattern change and lift shaft speed adjustment arrive at the spraying execution time simultaneously, avoiding delays in spray pattern change due to pump flow rate response delays, and preventing localized over-thickness or under-thickness due to premature or delayed lift shaft speed changes.
[0124] This invention calculates the target lifting speed based on the spray width before and after the change, and the current lifting speed, ensuring that the product of the target lifting speed and the spray width after the change equals the product of the current lifting speed and the spray width before the change, thus maintaining a constant coating amount per unit area. By determining the acceleration limit based on the speed difference, a larger acceleration limit is set for a larger speed difference, enabling a smooth transition in the lifting shaft speed and reducing mechanical vibration and flow fluctuations. By acquiring the pump flow response delay time and determining the advance issuance time of the spray width change command, the spray width change and the lifting shaft speed adjustment can be synchronized to the spraying execution time, avoiding local thickness deviations caused by response delays, thereby improving paint film uniformity, coating quality, and automation control level.
[0125] In summary, the embodiments of the present invention have at least the following technical effects:
[0126] This invention utilizes a pre-trained overlap width prediction model to automatically output a target overlap width that minimizes the paint film thickness deviation in the overlap area based on the spray width and nozzle tilt angle compensation. It also accurately determines the lateral target position of the next spray column by combining the current lateral position of the spray column, while correcting for lateral projection offsets caused by nozzle tilt angles, ensuring precise overlap between adjacent spray columns according to the target overlap width. By determining the lateral axis movement speed curve based on the target overlap width, the lateral axis is controlled to start and stop smoothly, and spraying is paused during lateral axis movement and resumed after movement is delayed, effectively reducing overspraying, underspraying, paint film accumulation, and defects at the overlap area edges. Furthermore, by adjusting the spray width before changes... The target lifting speed is calculated based on the current lifting speed and the subsequent value, ensuring that the product of the target lifting speed and the changed spray width equals the product of the current lifting speed and the spray width before the change. This maintains a constant spray volume per unit area. The acceleration limit is dynamically determined based on the speed difference, allowing for a smooth transition in the lifting shaft speed. By acquiring the pump flow response delay time and determining the advance issuance time of the spray width change command, the spray width change and the lifting shaft speed adjustment are synchronized to reach the spraying execution time, avoiding local thickness deviations caused by response delays. Ultimately, this significantly improves the uniformity of the paint film, spraying quality, and paint utilization, reduces defects such as sagging, exposed substrate, and color difference, and enhances the automation level and stability of the spraying operation.
[0127] In summary, this invention solves the technical problems of uneven paint film thickness, fluctuating spraying amount per unit area, and unstable spraying quality in the spraying robot caused by fixed handover width, uncompensated nozzle tilt angle projection offset, sudden changes in the start and stop speed of the transverse axis, and failure to synchronously adjust the lifting speed when the spray width changes.
[0128] Example 2, as Figure 3 As shown, based on the same inventive concept as the spraying robot control method provided in Embodiment 1, this embodiment of the invention also provides a spraying robot control system, including:
[0129] The parameter acquisition module 11 is used to acquire the spray width, nozzle tilt angle compensation amount and current lifting speed of the current spraying operation of the spraying robot;
[0130] The junction width prediction module 12 is used to input the spray width and the nozzle tilt angle compensation amount into the pre-trained junction width prediction model and output the target junction width that minimizes the deviation of the paint film thickness in the junction area.
[0131] The transverse axis control module 13 is used to determine the transverse target position of the next spraying column based on the transverse position of the current spraying column and the target intersection width, and to control the transverse axis movement of the spraying robot based on the transverse target position so that adjacent spraying columns are connected according to the target intersection width.
[0132] The lifting axis control module 14 is used to determine a target lifting speed that makes the amount of paint applied per unit area consistent with the amount of paint applied before the change of the spray width and the current lifting speed, and to control the lifting axis movement of the painting robot according to the target lifting speed.
[0133] In one embodiment, the parameter acquisition module 11 is specifically used for:
[0134] Obtain the spray width of the current spraying operation from the spraying process parameters of the spraying robot;
[0135] The nozzle tilt angle compensation amount is obtained from the pose sensor of the small four-axis robotic arm of the spraying robot;
[0136] The current lifting speed is obtained from the encoder of the lifting shaft of the painting robot.
[0137] In one embodiment, the handover width prediction module 12 is specifically used for:
[0138] The training process for the pre-trained handover width prediction model includes:
[0139] A single-column spraying transverse thickness distribution analytical model is constructed. The single-column spraying transverse thickness distribution analytical model uses the spray width and nozzle tilt angle compensation amount as parameters to output the paint film thickness at each position of the single-column spraying in the transverse direction.
[0140] Acquire multiple spray pattern samples and multiple nozzle tilt angle compensation amount samples;
[0141] For each combination of spray pattern sample and each nozzle tilt angle compensation sample, the lateral thickness distribution of two adjacent spray patterns is generated using the single-column spray lateral thickness distribution analytical model.
[0142] The relative orientation of the transverse thickness distribution of two adjacent spray columns in the junction area is determined by the direction of the nozzle tilt angle compensation.
[0143] The lateral thickness distribution of two adjacent columns of sprayed coating is superimposed in the junction area according to the relative posture to obtain the superimposed thickness distribution of the junction area;
[0144] With the goal of minimizing the deviation between the superimposed thickness distribution of the intersection area and the thickness of the single-column central area, the optimal intersection width corresponding to the combination of each spray pattern sample and each nozzle tilt angle compensation sample is obtained by numerical solution within the preset intersection width range.
[0145] Using the spray pattern sample and the nozzle tilt angle compensation sample as input, and the corresponding optimal junction width as output, the regression model is trained until the convergence is verified, thus obtaining the pre-trained junction width prediction model.
[0146] Construct an analytical model for the transverse thickness distribution of a single-column spray coating, including:
[0147] The spraying flow rate, nozzle-to-wall distance, and paint characteristic parameters are obtained, wherein the paint characteristic parameters include at least the paint viscosity.
[0148] The fan-shaped coverage width is determined based on the spray pattern, and the lateral projection offset is determined by coordinate transformation based on the nozzle tilt angle compensation amount. The nozzle tilt angle compensation amount causes the distance from the nozzle to the wall to change at various lateral positions, and the lateral projection offset is the offset of the projection position of the nozzle center axis on the wall relative to the projection position of the nozzle center axis on the wall without tilt angle compensation.
[0149] Using the lateral position as the independent variable and the paint film thickness at each lateral position of a single-column spray as the dependent variable, an analytical model of the lateral thickness distribution of a single-column spray is constructed. The analytical model of the lateral thickness distribution of a single-column spray is a Gaussian function, which includes a peak position parameter, a width parameter, and an amplitude parameter.
[0150] The lateral projection offset is determined as the peak position parameter, and the fan-shaped coverage width is divided by the preset coverage coefficient to determine the width parameter. The preset coverage coefficient is determined based on the distance between the lateral position and the peak position when the thickness of the sprayed fan-shaped edge decays to a preset proportion of the peak thickness.
[0151] The amplitude parameter is determined based on the spray flow rate, the distance from the nozzle to the wall, and the viscosity of the paint, wherein the amplitude parameter is directly proportional to the spray flow rate and inversely proportional to the distance from the nozzle to the wall and the viscosity of the paint.
[0152] Based on the peak position parameter, the width parameter, and the amplitude parameter, an analytical model for the transverse thickness distribution of a single-column spray coating is obtained.
[0153] In one embodiment, the transverse axis control module 13 is specifically used for:
[0154] Get the horizontal position of the current spray column on the wall;
[0155] Based on the lateral position of the current spray column, the spray width, and the target intersection width, the lateral target position of the next spray column is determined, wherein the distance between the lateral target position of the next spray column and the lateral position of the current spray column is equal to the difference between the spray width and the target intersection width.
[0156] Calculate the difference between the lateral target position of the next spray column and the lateral position of the current spray column, and determine the absolute value of the difference as the moving distance of the lateral axis. When the difference is greater than zero, the moving direction of the lateral axis is determined to be positive, and when the difference is less than zero, the moving direction of the lateral axis is determined to be negative.
[0157] The projection offset of the nozzle in the lateral direction is determined based on the nozzle tilt angle compensation amount, and the moving distance is corrected based on the projection offset amount to obtain the corrected moving distance.
[0158] The lateral axis movement is controlled according to the corrected moving distance and the moving direction, so that the nozzle moves to the lateral target position of the next spray column.
[0159] The nozzle's lateral projection offset is determined based on the nozzle tilt angle compensation amount, and the moving distance is corrected based on the projection offset to obtain the corrected moving distance, including:
[0160] Obtain the current distance from the nozzle to the wall;
[0161] Based on the nozzle tilt angle compensation amount and the current distance from the nozzle to the wall, the projection offset of the nozzle in the lateral direction is calculated using trigonometric functions, wherein the projection offset is equal to the product of the current distance from the nozzle to the wall and the tangent of the nozzle tilt angle compensation amount;
[0162] Determine whether the direction of the projection offset is consistent with the direction of movement: if the direction of the projection offset is consistent with the direction of movement, subtract the projection offset from the movement distance to obtain the corrected movement distance; if the direction of the projection offset is opposite to the direction of movement, add the projection offset to the movement distance to obtain the corrected movement distance.
[0163] Controlling the lateral axis movement based on the corrected moving distance and the moving direction to move the nozzle to the lateral target position of the next spray column includes:
[0164] The motion speed curve of the transverse axis is determined based on the target intersection width, wherein the rate of change of the motion speed curve during the start-up and stop phases of the transverse axis is less than a preset rate of change threshold, so that the transverse speed of the nozzle when resuming spraying is consistent with that of the single-row spraying area.
[0165] The transverse axis movement is controlled based on the corrected moving distance, the moving direction, and the movement speed curve;
[0166] During the lateral axis movement, the nozzle is controlled to pause spraying. After the lateral axis movement is completed, the nozzle is controlled to resume spraying, so that the nozzle moves to the lateral target position of the next spraying column.
[0167] In one embodiment, the lifting shaft control module 14 is specifically used for:
[0168] The spray width before the change is taken as the spray width before the change, and the spray width after the change is taken as the spray width after the change.
[0169] Based on the spray width before the change, the spray width after the change, and the current lifting speed, a target lifting speed is determined to make the amount of paint applied per unit area consistent with that before the change in spray width, wherein the product of the target lifting speed and the spray width after the change is equal to the product of the current lifting speed and the spray width before the change.
[0170] Obtain the speed difference between the current lifting speed and the target lifting speed;
[0171] The acceleration limit of the lifting shaft is determined based on the speed difference, wherein the larger the speed difference, the larger the acceleration limit.
[0172] The lifting shaft is controlled according to the acceleration limit to smoothly transition from the current lifting speed to the target lifting speed, so that the amount of paint applied per unit area remains constant before and after the change in spray width.
[0173] Obtain the pump flow response delay time of the spraying robot;
[0174] Based on the pumping flow response delay time, determine the advance issuance time of the spray width change command;
[0175] The spray width change command is issued at the advance issuance time, so that the spray width change and the adjustment of the lifting shaft speed are synchronized to the spraying execution time.
[0176] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this specification. Additionally, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0177] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0178] This specification and accompanying drawings are merely illustrative examples of the invention and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its scope. Therefore, if such modifications and modifications fall within the scope of the invention and its equivalents, the invention is intended to include these modifications and modifications.
Claims
1. A control method for a spraying robot, characterized in that, The method includes: Obtain the spray width, nozzle tilt angle compensation, and current lifting speed of the spraying robot in its current spraying operation; The spray width and the nozzle tilt angle compensation are input into the pre-trained junction width prediction model, and the target junction width that minimizes the coating thickness deviation in the junction area is output. Based on the lateral position of the current spraying column and the target intersection width, determine the lateral target position of the next spraying column, and control the lateral movement of the spraying robot according to the lateral target position, so that adjacent spraying columns can be connected according to the target intersection width. Based on the spray width and the current lifting speed, a target lifting speed is determined to make the amount of paint applied per unit area consistent with that before the change in spray width, and the lifting axis movement of the painting robot is controlled according to the target lifting speed.
2. The spraying robot control method according to claim 1, characterized in that, Obtain the spray width, nozzle tilt angle compensation, and current lifting speed of the spraying robot's current spraying operation, including: Obtain the spray width of the current spraying operation from the spraying process parameters of the spraying robot; The nozzle tilt angle compensation amount is obtained from the pose sensor of the small four-axis robotic arm of the spraying robot; The current lifting speed is obtained from the encoder of the lifting shaft of the painting robot.
3. The spraying robot control method according to claim 1, characterized in that, The training process for the pre-trained handover width prediction model includes: A single-column spraying transverse thickness distribution analytical model is constructed. The single-column spraying transverse thickness distribution analytical model uses the spray width and nozzle tilt angle compensation amount as parameters to output the paint film thickness at each position of the single-column spraying in the transverse direction. Acquire multiple spray pattern samples and multiple nozzle tilt angle compensation amount samples; For each combination of spray pattern sample and each nozzle tilt angle compensation sample, the lateral thickness distribution of two adjacent spray patterns is generated using the single-column spray lateral thickness distribution analytical model. The relative orientation of the transverse thickness distribution of two adjacent spray columns in the junction area is determined by the direction of the nozzle tilt angle compensation. The lateral thickness distribution of two adjacent columns of sprayed coating is superimposed in the junction area according to the relative posture to obtain the superimposed thickness distribution of the junction area; With the goal of minimizing the deviation between the superimposed thickness distribution of the intersection area and the thickness of the single-column central area, the optimal intersection width corresponding to the combination of each spray pattern sample and each nozzle tilt angle compensation sample is obtained by numerical solution within the preset intersection width range. Using the spray pattern sample and the nozzle tilt angle compensation sample as input, and the corresponding optimal junction width as output, the regression model is trained until the convergence is verified, thus obtaining the pre-trained junction width prediction model.
4. The spraying robot control method according to claim 3, characterized in that, Construct an analytical model for the transverse thickness distribution of a single-column spray coating, including: The spraying flow rate, nozzle-to-wall distance, and paint characteristic parameters are obtained, wherein the paint characteristic parameters include at least the paint viscosity. The fan-shaped coverage width is determined based on the spray pattern, and the lateral projection offset is determined by coordinate transformation based on the nozzle tilt angle compensation amount. The nozzle tilt angle compensation amount causes the distance from the nozzle to the wall to change at various lateral positions, and the lateral projection offset is the offset of the projection position of the nozzle center axis on the wall relative to the projection position of the nozzle center axis on the wall without tilt angle compensation. Using the lateral position as the independent variable and the paint film thickness at each lateral position of a single-column spray as the dependent variable, an analytical model of the lateral thickness distribution of a single-column spray is constructed. The analytical model of the lateral thickness distribution of a single-column spray is a Gaussian function, which includes a peak position parameter, a width parameter, and an amplitude parameter. The lateral projection offset is determined as the peak position parameter, and the fan-shaped coverage width is divided by the preset coverage coefficient to determine the width parameter. The preset coverage coefficient is determined based on the distance between the lateral position and the peak position when the thickness of the sprayed fan-shaped edge decays to a preset proportion of the peak thickness. The amplitude parameter is determined based on the spray flow rate, the distance from the nozzle to the wall, and the viscosity of the paint, wherein the amplitude parameter is directly proportional to the spray flow rate and inversely proportional to the distance from the nozzle to the wall and the viscosity of the paint. Based on the peak position parameter, the width parameter, and the amplitude parameter, an analytical model for the transverse thickness distribution of a single-column spray coating is obtained.
5. The spraying robot control method according to claim 1, characterized in that, Based on the lateral position of the current spraying column and the target intersection width, determine the lateral target position of the next spraying column, and control the lateral movement of the spraying robot according to the lateral target position, so that adjacent spraying columns intersect according to the target intersection width, including: Get the horizontal position of the current spray column on the wall; Based on the lateral position of the current spray column, the spray width, and the target intersection width, the lateral target position of the next spray column is determined, wherein the distance between the lateral target position of the next spray column and the lateral position of the current spray column is equal to the difference between the spray width and the target intersection width. Calculate the difference between the lateral target position of the next spray column and the lateral position of the current spray column, and determine the absolute value of the difference as the moving distance of the lateral axis. When the difference is greater than zero, the moving direction of the lateral axis is determined to be positive, and when the difference is less than zero, the moving direction of the lateral axis is determined to be negative. The projection offset of the nozzle in the lateral direction is determined based on the nozzle tilt angle compensation amount, and the moving distance is corrected based on the projection offset amount to obtain the corrected moving distance. The lateral axis movement is controlled according to the corrected moving distance and the moving direction, so that the nozzle moves to the lateral target position of the next spray column.
6. The spraying robot control method according to claim 5, characterized in that, The nozzle's lateral projection offset is determined based on the nozzle tilt angle compensation amount, and the moving distance is corrected based on the projection offset to obtain the corrected moving distance, including: Obtain the current distance from the nozzle to the wall; Based on the nozzle tilt angle compensation amount and the current distance from the nozzle to the wall, the projection offset of the nozzle in the lateral direction is calculated using trigonometric functions, wherein the projection offset is equal to the product of the current distance from the nozzle to the wall and the tangent of the nozzle tilt angle compensation amount; Determine whether the direction of the projection offset is consistent with the direction of movement: if the direction of the projection offset is consistent with the direction of movement, subtract the projection offset from the movement distance to obtain the corrected movement distance; if the direction of the projection offset is opposite to the direction of movement, add the projection offset to the movement distance to obtain the corrected movement distance.
7. The spraying robot control method according to claim 5, characterized in that, Controlling the lateral axis movement based on the corrected moving distance and the moving direction to move the nozzle to the lateral target position of the next spray column includes: The motion speed curve of the transverse axis is determined based on the target intersection width, wherein the rate of change of the motion speed curve during the start-up and stop phases of the transverse axis is less than a preset rate of change threshold, so that the transverse speed of the nozzle when resuming spraying is consistent with that of the single-row spraying area. The transverse axis movement is controlled based on the corrected movement distance, the movement direction, and the movement speed curve. During the lateral axis movement, the nozzle is controlled to pause spraying. After the lateral axis movement is completed, the nozzle is controlled to resume spraying, so that the nozzle moves to the lateral target position of the next spraying column.
8. The spraying robot control method according to claim 1, characterized in that, Based on the spray width and the current lifting speed, a target lifting speed is determined to ensure that the amount of paint applied per unit area remains consistent with that before the change in spray width. The lifting axis movement of the painting robot is then controlled according to the target lifting speed, including: The spray width before the change is taken as the spray width before the change, and the spray width after the change is taken as the spray width after the change. Based on the spray width before the change, the spray width after the change, and the current lifting speed, a target lifting speed is determined to make the amount of paint applied per unit area consistent with that before the change in spray width, wherein the product of the target lifting speed and the spray width after the change is equal to the product of the current lifting speed and the spray width before the change. Obtain the speed difference between the current lifting speed and the target lifting speed; The acceleration limit of the lifting shaft is determined based on the speed difference, wherein the larger the speed difference, the larger the acceleration limit. The lifting shaft is controlled according to the acceleration limit to smoothly transition from the current lifting speed to the target lifting speed, so that the amount of paint applied per unit area remains constant before and after the change in spray width.
9. The spraying robot control method according to claim 1, characterized in that, The method further includes: Obtain the pump flow response delay time of the spraying robot; Based on the pumping flow response delay time, determine the advance issuance time of the spray width change command; The spray width change command is issued at the advance issuance time, so that the spray width change and the adjustment of the lifting shaft speed are synchronized to the spraying execution time.
10. A spray painting robot control system, characterized in that, The method for controlling a painting robot according to any one of claims 1 to 9 includes: The parameter acquisition module is used to acquire the spray width, nozzle tilt angle compensation amount, and current lifting speed of the spraying robot in the current spraying operation. The junction width prediction module is used to input the spray width and the nozzle tilt angle compensation amount into the pre-trained junction width prediction model and output the target junction width that minimizes the deviation of the paint film thickness in the junction area. The transverse axis control module is used to determine the transverse target position of the next spraying column based on the transverse position of the current spraying column and the target intersection width, and to control the transverse axis movement of the spraying robot according to the transverse target position so that adjacent spraying columns are connected according to the target intersection width. The lifting axis control module is used to determine a target lifting speed that makes the amount of paint applied per unit area consistent with that before the change in spray width and the current lifting speed, and to control the lifting axis movement of the painting robot according to the target lifting speed.
