A method of programming a coater
By using a camera to acquire PCB images and draw adhesive application effect diagrams on the coating machine, the problem of inaccurate spraying position in coating machine programming is solved, achieving accurate identification of adhesive application position and efficient programming.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DONGGUAN HUICHUANG INTELLIGENT EQUIP CO LTD
- Filing Date
- 2025-11-21
- Publication Date
- 2026-04-10
AI Technical Summary
The existing coating machine programming method relies on the operator's experience, which leads to inaccurate spraying position, requiring multiple trial sprays and adjustments, resulting in low efficiency and high cost, and it cannot accurately identify the coating effect.
By acquiring images of the entire PCB board using a camera, drawing a coating effect diagram and generating a coating motion trajectory, and displaying the actual coating width using the coating effect diagram, we can achieve WYSIWYG coating position recognition and control.
It enables precise identification and control of the adhesive application position, improves the programming efficiency of the coating machine, simplifies the programming process, and avoids coating position errors and PCB waste.
Smart Images

Figure CN121155861B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of coating machine technology, in particular to a programming method of a coating machine. BACKGROUND
[0002] PCB (i.e. printed circuit board) needs to be treated on the surface in the production process, and the three-proofing generally refers to the waterproof, moisture-proof and dust-proof treatment of the surface of electronic products, which usually sprays protective paint, glue and other surface materials to reduce or eliminate the adverse effects of complex environment on the performance of electronic devices, and the three-proofing treatment of PCB usually uses a coating machine for coating.
[0003] In the prior art, the programming of the coating machine adopts a teaching mode, that is, the operator manually operates the movement of the glue gun, the operator edits the movement track of the glue gun, records each movement track, and saves all movement tracks, in this mode, if the final spraying effect on the PCB needs to be known, the glue gun needs to be sprayed on the PCB, and the final glue coating effect can be seen after spraying, during spraying, the coating position may be incorrect due to inaccurate spraying position of the glue gun, which may even cause the PCB to be scrapped, then before the next test spraying, the glue on the PCB is cleaned or a new PCB is replaced, and the incorrect position is adjusted again for test spraying operation until the spraying effect on the PCB is correct, the whole debugging process is complicated, the programming efficiency is reduced, and multiple PCBs are wasted, which increases the production cost; the teaching mode completely relies on the operation experience of the operator, and cannot accurately identify the effect after the glue gun is sprayed, so the track needs to be repeatedly modified and sprayed, which is very time-consuming.
[0004] Therefore, it is necessary to design a new technical solution to solve the above problems. SUMMARY
[0005] Therefore, the present application aims at the defects in the prior art, and the main purpose is to provide a programming method of a coating machine, which draws a glue coating effect diagram on the whole board image of the PCB after the camera obtains the whole board image of the PCB, and the glue coating effect diagram can show the actual glue coating width, so as to obtain the glue coating movement track, this method can realize what you see is what you get, does not need to simulate actual glue coating, can accurately identify and position the glue coating position, can accurately coat on the PCB according to the glue coating movement track during actual glue coating, and the coating position is accurate, the programming method is simple, and the programming efficiency of the coating machine is improved.
[0006] To achieve the above purpose, the present application adopts the following technical solutions:
[0007] A programming method of a coating machine, comprising the following steps:
[0008] Step S1: taking the entire PCB by a camera to obtain an entire PCB board image, and converting the pixels of the camera to obtain point coordinate values of each pixel on the PCB;
[0009] Step S2: drawing a glue coating effect diagram on the entire board image according to the area of the PCB required to be coated with glue, and the glue coating effect diagram can display the actual glue coating width;
[0010] Step S3: generating a glue coating motion track according to the glue coating effect diagram;
[0011] Step S4: the coating machine controls the movement of the spray gun according to the glue coating motion track, so that the spray gun performs glue coating operation on the PCB.
[0012] As a preferred solution, in step S1, the camera is an industrial camera, first, the starting position and the ending position of the camera shooting are set, then the camera is controlled to move a fixed distance, the camera shoots a plurality of sub-images from the starting position to the ending position, and finally the plurality of sub-images are spliced into the entire PCB board image, and then the point coordinate values of any position on the PCB board are obtained;
[0013] Or, in step S1, the camera is a panoramic camera, the entire PCB is shot by the panoramic camera to directly obtain the entire PCB board image, and then the point coordinate values of any position on the PCB board are obtained.
[0014] As a preferred solution, before step S1, a MARK correction step is provided, when the first PCB is programmed, two reference MARK point center positions are set on the first PCB by the camera, and the starting point of the reference coordinate system is obtained according to the two reference MARK point center positions, after the subsequent PCB is fed, the MARK points are automatically photographed and calibrated, the distance and angle of the deviation are automatically calibrated, the error of the current PCB coordinate is corrected, the MARK correction step is completed, and the glue coating motion track starts to move based on the starting point.
[0015] As a preferred solution, when drawing the glue coating effect diagram, first, coating parameters are selected, the coating parameters include at least one of the glue coating width of the glue, the track spacing when the area is automatically generated, the height of the spray gun from the PCB, the rotation angle of the spray gun, and the inclination angle of the spray gun, and then the part to be coated is drawn on the entire board image, so that the actual glue coating effect and the actual glue coating width on the PCB can be displayed on the glue coating effect diagram.
[0016] As a preferred scheme, before drawing the glue coating effect picture, the glue width of the spray gun needs to be calibrated according to the characteristics of the PCB, and multiple sets of different coating parameters are calibrated for free selection during drawing, so that the actual glue coating effect is correct, and the calibration of the glue width of the spray gun comprises the following steps: first, the coating machine controls the nozzle of the spray gun to spray on the calibration plate at height A, and then the glue width B sprayed by the spray gun at height A is obtained, height A and glue width B form a set of coating parameters, and multiple sets of different coating parameters are calibrated according to this step.
[0017] As a preferred scheme, the spray gun is provided with multiple spray guns, and the position of each spray gun is fixed relative to the position of the camera. Before drawing the glue coating effect picture, the position of each spray gun needs to be calibrated, and each spray gun is driven to spray at the same position. After the spraying operation of one spray gun is completed, the camera is driven to pick up at the position, and then the position of the spray gun is calibrated, so that different spray guns can spray at the same position during subsequent actual glue coating operation. The spray gun can be inclined, and the position of the spray gun needs to be calibrated after the spray gun needs to be inclined for spraying.
[0018] As a preferred scheme, when drawing the glue coating effect picture, after the shape contour of the area needing glue coating on the PCB is set, the glue coating movement track in the shape contour can be automatically generated according to the set coating parameters.
[0019] As a preferred scheme, before step S1, the PCB is fed into the coating machine and fixed, and in step S1, the whole plate image is displayed on the display of the coating machine, and steps S2, S3 and S4 are operated on the display.
[0020] As a preferred scheme, in step S3, after the glue coating movement track is generated, the glue coating movement track can be modified on the display as needed.
[0021] As a preferred scheme, after the whole plate image is generated, the coating parameters of the coating machine are obtained, and then the whole plate image and the coating parameters are exported to other equipment for programming. After programming is completed, the glue coating movement track generated after programming is imported into the coating machine.
[0022] The present application has obvious advantages and beneficial effects compared with the prior art, and specifically, from the above technical scheme, it can be known that:
[0023] Mainly, after the whole board image of the PCB is acquired by the camera, the glue coating effect diagram is drawn on the whole board image, the actual glue coating width can be displayed on the glue coating effect diagram, and the glue coating motion track is obtained. This kind of mode can realize what is seen is what is obtained, does not need to carry out actual glue coating simulation, can accurately identify and position the glue coating position, so that the glue coating can be accurately coated on the PCB according to the glue coating motion track in actual glue coating, and the situation that the coating position is not accurate does not occur. The programming mode is simple, and the programming efficiency of the coating machine is improved.
[0024] Secondly, when the glue coating effect diagram is drawn, the coating parameters need to be selected, and the glue coating effect diagram can display the actual glue coating effect and the actual glue coating width on the PCB after the coating parameters are set and then drawn, so that the glue coating operation of the spray gun on the PCB can be accurately carried out.
[0025] Furthermore, by calibrating the glue width of the spray gun and the position of the spray gun, the glue width displayed on the glue coating effect diagram is the actual glue width of the spray coating, and the effect that what is seen is what is obtained is further ensured.
[0026] In order to more clearly illustrate the structural features and effects of the present application, the present application will be described in detail below in combination with the drawings and specific embodiments. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 is a working process schematic diagram of the preferred embodiment of the present application;
[0028] Figure 2 is a control panel schematic diagram of the preferred embodiment of the present application;
[0029] Figure 3 is a glue coating effect diagram drawn on the whole board image of the preferred embodiment of the present application;
[0030] Figure 4 is a drawing tool selection schematic diagram of the preferred embodiment of the present application.
[0031] EXPLANATION OF THE DRAWINGS:
[0032] 10, display; 101, whole board image display area;
[0033] 102, quick programming tool display area; 103, glue coating motion instruction display area;
[0034] 20, transverse coating area; 30, longitudinal coating area;
[0035] 40, back type coating area; 50, circular ring coating area;
[0036] 60, glue coating motion track; 61, area motion track;
[0037] 62, switching motion track. Detailed Implementation
[0038] First, it should be noted that in the description of this invention, the terms "upper," "lower," "left," "right," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0039] Please refer to Figures 1 to 4 As shown, it illustrates the specific structure of a preferred embodiment of the present invention, including the following steps:
[0040] Preliminary steps:
[0041] 1. First, load the PCB into the coating machine and fix the PCB in place.
[0042] 2. A MARK correction step is included. When programming the first PCB, two reference MARK points are set on the PCB using a camera. The starting point of the reference coordinate system is obtained based on the center positions of the two reference MARK points. After subsequent PCBs are loaded, the MARK points are automatically photographed to calibrate the MARK. The distance and angle of the deviation are automatically calibrated to correct the error of the current PCB coordinates, completing the MARK correction step so that the adhesive coating trajectory starts moving from the starting point. In actual processing, as the PCB enters the coating area through the coating machine track, the actual position may deviate from the ideal position. Each PCB is calibrated by taking a MARK photo with a camera to ensure that the coating data of the first PCB is correctly presented on every PCB. The setting of the reference MARK points plays an error correction role, meeting the requirements of high-precision PCB adhesive coating operations. At the same time, it also plays a foolproof role, preventing the PCB to be coated from being placed backwards or other types of PCBs from being loaded incorrectly.
[0043] In some other embodiments, for PCB coating with low precision requirements, since the PCB loading offset is not too large, the MARK correction step may not be set.
[0044] 3. The width of the spray gun glue needs to be calibrated according to the characteristics of the PCB, and multiple sets of different coating parameters are calibrated for free selection during drawing, so as to ensure that the actual glue coating effect is correct. The calibration of the width of the spray gun glue includes the following steps: first, the coating machine controls the nozzle of the spray gun to spray on the calibration plate at height A, then obtains the glue width B sprayed by the spray gun at height A, height A and glue width B form a set of coating parameters, and multiple sets of different coating parameters are calibrated according to this step, for example: height A1 and glue width B1 form a set of coating parameters, height A2 and glue width B2 form a set of coating parameters, and a set of coating parameters defines a process. Due to the different heights required for avoidance of different components on the PCB, multiple sets of coating parameters are set, so that the parameters can be selected as needed during subsequent drawing of the glue coating effect diagram, thereby ensuring that the effect shown on the glue coating effect diagram after selecting the parameters is the actual spraying effect.
[0045] 4. Multiple spray guns may need to work alternately during spraying on a PCB, so multiple spray guns are arranged on the coating machine, and the position of each spray gun relative to the position of the camera is fixed. The position of each spray gun needs to be calibrated, and each spray gun needs to be driven to spray at the same position. Each time a spray gun sprays, the camera is driven to pick up at the position, and then the position of the spray gun is calibrated to ensure that different spray guns can spray at the same position during subsequent actual glue coating operations. The spray gun can be inclined, that is, the spray gun has an inclination function. Therefore, when the spray gun needs to be inclined for spraying, the spray gun needs to be inclined and then calibrated to ensure that the glue spraying effect diagram drawn can correctly show the actual spraying position of the spray gun.
[0046] Programming steps:
[0047] Step S1: The entire PCB is photographed by the camera to obtain an entire PCB image. The pixel of the camera is converted to obtain the point coordinate value of each pixel on the PCB.
[0048] Specifically, the camera is an industrial camera. First, the starting position and the ending position of the camera are set, and then the camera is controlled to move a fixed distance. The camera photographs multiple sub-images from the starting position to the ending position. Finally, the multiple sub-images are spliced into an entire PCB image, and then the point coordinate value of any position on the PCB is obtained. Since the positions of the camera and the spray gun are fixed, the point coordinate value facilitates accurate positioning during glue spraying.
[0049] Alternatively, in step S1, the camera is a panoramic camera. The entire PCB is photographed by the panoramic camera to directly obtain an entire PCB image, and then the point coordinate value of any position on the PCB is obtained.
[0050] Step S2: draw a glue coating effect diagram on the whole board image according to the area of the PCB required to be coated with glue, and the actual glue coating width can be displayed on the glue coating effect diagram;
[0051] Specifically, referring to Figures 2 to 4 the drawing of the glue coating effect diagram, first select the coating parameters, the coating parameters including at least one of the glue coating width, the trajectory interval when the area is automatically generated, the height of the nozzle of the spray gun from the PCB, the rotation angle of the spray gun, the inclination angle of the spray gun, and then draw the part to be coated on the whole board image, so that the actual glue coating effect and the actual glue coating width on the PCB can be displayed on the glue coating effect diagram; wherein, after setting multiple processes, the process can be directly selected as needed, that is, the corresponding coating parameters can be obtained, and the operation is more convenient.
[0052] Further, after setting the contour of the area on the PCB required to be coated with glue when drawing the glue coating effect diagram, the glue coating motion trajectory within the contour can be automatically generated according to the set coating parameters, wherein the contour includes a closed graph such as a rectangle, a square, and a polygon. For example, when drawing a rectangle, the internal glue coating motion trajectory of the rectangle can be automatically generated according to the selected process. The automatically generated glue coating motion trajectory can be in multiple ways, such as from left to right, right to left, top to bottom, bottom to top, and the like.
[0053] In order to further improve the programming efficiency, according to the user's needs, we can set some quick programming shortcut programming tools. After selecting these shortcut programming tools, some coating effects that need to be filled can be quickly generated according to the coating parameters set in the foregoing, and the trajectory of the filling is automatically generated. In this embodiment, referring to Figure 4 the display screen 10 of the coating machine has shortcut programming tools, the shortcut programming tools include layers, primitives, and modes, the layers include single primitive options, continuous line options, and area options, the primitives include point options, circle options, line options, rectangle options, and arc options, and the modes include orthogonal line options (i.e. horizontal and vertical line options), horizontal coating options, return type coating options, vertical coating options, area dam options, and non-coating options. For example: 1. After selecting the single primitive option, and then selecting the point option, a point can be selected on the whole board image; 2. After selecting the continuous line option, and then selecting the line option and the orthogonal line option, multiple straight lines connected to each other can be drawn on the whole board image. If the orthogonal line option is not selected, the multiple lines drawn can be inclined lines; 3. After selecting the continuous area option, and then selecting the rectangle option and the horizontal coating option, an area can be selected on the whole board image, and the horizontal coating trajectory is automatically filled, so that a horizontal coating area 20 (see Figure 3 ) is formed on the whole board image. When the vertical coating option is selected, a vertical coating area 30 (see Figure 3As shown), when the back type coating option is selected, a back type coating area 40 (see Figure 3 As shown); 4, after selecting the single element option, the circle option is selected, a circle is drawn on the whole board image, thereby forming a circular ring coating area 50 (see Figure 3 The shortcut programming tool is not limited to this;
[0054] In some other embodiments, the shortcut programming tool can also only have a single point and a single line function, and the operator draws a track of a region by a line.
[0055] Step S3: generating the glue coating motion track according to the glue coating effect diagram; wherein the glue coating motion track 60 includes a region motion track 61 in each region and a switching motion track 62 when adjacent regions are switched.
[0056] Step S4: the coating machine controls the movement of the spray gun according to the glue coating motion track, so that the spray gun performs glue coating operation on the PCB.
[0057] In this embodiment, in step S1, the whole board image is displayed on the display 10 of the coating machine, steps S2, S3 and S4 are operated on the display 10, in step S3, after the glue coating motion track is generated, camera movement simulation is first performed on the control panel 30 according to the glue coating motion track, and then spray gun movement simulation is performed, the glue coating motion track is modified on the display as needed, thereby ensuring accurate identification of the spray coating region or the non-spray coating region; wherein the display 10 includes a whole board image display area 101, a shortcut programming tool display area 102 and a glue coating motion instruction display area 103; in this way, programming is directly performed on the coating machine.
[0058] The whole board image can also be generated first, then the coating parameters of the coating machine are obtained, and then the whole board image and the coating parameters are exported to other equipment for programming, after the programming is completed, the generated glue coating motion track after programming is imported into the coating machine; the function of offline programming is realized, so that the user can program on other equipment, that is, the coating machine can be programmed while producing, realizing non-stop programming and saving programming time; the above two programming methods can be selected as needed.
[0059] The design focus of the present application is:
[0060] Mainly, after the whole board image of the PCB is acquired by the camera, the glue coating effect diagram is drawn on the whole board image, the actual glue coating width can be displayed on the glue coating effect diagram, and the glue coating motion track is obtained. This kind of mode can realize what you see is what you get, without actual glue coating simulation, the glue coating position can be accurately identified and positioned, so that the glue can be accurately coated on the PCB according to the glue coating motion track during actual glue coating, the situation that the coating position is not accurate will not occur, the programming mode is simple, and the programming efficiency of the coating machine is improved.
[0061] Secondly, when the glue coating effect diagram is drawn, the coating parameters need to be selected, and the glue coating effect diagram can display the actual glue coating effect and the actual glue coating width on the PCB after the coating parameters are set, so that the glue gun can accurately perform the glue coating operation on the PCB.
[0062] Furthermore, by calibrating the glue width of the glue gun and the position of the glue gun, the glue width displayed on the glue coating effect diagram is the actual glue spraying width, and the effect of what you see is what you get is further ensured.
[0063] The above is only a preferred embodiment of the present application, and does not limit the technical scope of the present application, so any slight modification, equivalent change and modification of the above embodiment according to the technical essence of the present application still belongs to the scope of the technical solution of the present application.
Claims
1. A programming method for a coating machine, characterized in that: Includes the following steps: Step S1: Take a picture of the entire PCB with a camera to obtain a full image of the PCB, convert the camera pixels to obtain the coordinate value of each pixel on the PCB. Step S2: Draw a coating effect diagram on the whole board image according to the area of the PCB to be coated with glue. The coating effect diagram can show the actual coating width. Before drawing the coating effect diagram, the spray gun adhesive width needs to be calibrated according to the characteristics of the PCB. Multiple sets of different coating parameters are calibrated for free selection during drawing, thereby ensuring that the actual coating effect is correct. The calibration of the spray gun adhesive width includes the following steps: First, the coating machine controls the nozzle of the spray gun to spray onto the calibration board at a height A. Then, the adhesive width B sprayed by the spray gun at a height A is obtained. Height A and adhesive width B form a set of coating parameters. Multiple sets of different coating parameters are calibrated according to this step. When drawing the glue coating effect diagram, first select the coating parameters, which include at least one of the following: glue coating width, trajectory spacing when automatically generating the area, height of the spray gun nozzle from the PCB, rotation angle of the spray gun, and tilt angle of the spray gun. Then, draw the area to be coated on the whole board image so that the glue coating effect diagram can display the actual glue coating effect and the actual glue coating width on the PCB. Step S3: Generate the adhesive application trajectory based on the adhesive application effect diagram. After setting the outline of the area on the PCB that needs to be coated, the adhesive application trajectory within the outline can be automatically generated according to the set coating parameters. Step S4: The coating machine controls the movement of the spray gun according to the adhesive application trajectory, so that the spray gun performs adhesive application on the PCB.
2. The programming method for a coating machine according to claim 1, characterized in that: In step S1, the camera is an industrial camera. First, the starting position and ending position of the camera are set. Then, the camera is controlled to move a fixed distance. The camera takes multiple sub-images from the starting position to the ending position. Finally, the multiple sub-images are stitched together to form the whole image of the PCB, thereby obtaining the coordinate values of any point on the PCB. Alternatively, in step S1, the camera is a panoramic camera, which captures the entire PCB to directly obtain a full image of the PCB, and then obtains the coordinate values of any point on the PCB.
3. The programming method for a coating machine according to claim 1, characterized in that: Before step S1, a MARK correction step is set. When programming the first PCB, the center positions of two reference MARK points are set on the first PCB by a camera. The starting point of the reference coordinate system is obtained based on the center positions of the two reference MARK points. After subsequent PCBs are loaded, the MARK points will be automatically photographed to calibrate the MARK. The distance and angle of the deviation will be automatically calibrated to correct the error of the coordinates of the current PCB, thus completing the MARK correction step so that the adhesive application trajectory starts moving based on the starting point.
4. The programming method for a coating machine according to claim 1, characterized in that: Multiple spray guns are provided, and the position of each spray gun relative to the camera is fixed. Before drawing the glue application effect diagram, the position of each spray gun needs to be calibrated, and each spray gun is driven to perform spraying operations at the same position. After each spray gun finishes spraying, the camera is driven to pick up the image at that position, and then the position of the spray gun is calibrated so that different spray guns can spray at the same position during subsequent actual glue application operations. The spray guns can be tilted. When a spray gun needs to be tilted for spraying, it needs to be tilted before the spray gun position is calibrated.
5. The programming method for a coating machine according to claim 1, characterized in that: Before step S1, the PCB is loaded into the coating machine and fixed. In step S1, the image of the entire board is displayed on the screen of the coating machine. Steps S2, S3 and S4 are all performed on the screen.
6. The programming method for a coating machine according to claim 5, characterized in that: In step S3, after generating the adhesive application trajectory, the adhesive application trajectory can be modified on the display as needed.
7. The programming method for a coating machine according to claim 1, characterized in that: After generating the whole board image, first obtain the coating parameters of the coating machine, then export the whole board image and coating parameters to other devices for programming. After the programming is completed, import the glue application motion trajectory generated by the programming into the coating machine.
Citation Information
Patent Citations
Track path teaching method based on 2D picture, and dispensing equipment
CN112289131A
Method and system for correcting positioning error of dispensing machine and method for identifying MARK point
CN116099725A
System and method for providing a painting program for coating circuit boards
WO2024132471A1