CN112935442B - Method, device, equipment and medium for determining automatic welding process parameters - Google Patents

Method, device, equipment and medium for determining automatic welding process parameters Download PDF

Info

Publication number
CN112935442B
CN112935442B CN202110152554.3A CN202110152554A CN112935442B CN 112935442 B CN112935442 B CN 112935442B CN 202110152554 A CN202110152554 A CN 202110152554A CN 112935442 B CN112935442 B CN 112935442B
Authority
CN
China
Prior art keywords
solder
pad
volume
welded
solder joint
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110152554.3A
Other languages
Chinese (zh)
Other versions
CN112935442A (en
Inventor
尚万峰
任豪
吴新宇
唐龙
胡勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN202110152554.3A priority Critical patent/CN112935442B/en
Publication of CN112935442A publication Critical patent/CN112935442A/en
Application granted granted Critical
Publication of CN112935442B publication Critical patent/CN112935442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23KSOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
    • B23K1/00Soldering, e.g. brazing, or unsoldering
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23KSOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
    • B23K2101/00Articles made by soldering, welding or cutting
    • B23K2101/36Electric or electronic devices
    • B23K2101/42Printed circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P70/00Climate change mitigation technologies in the production process for final industrial or consumer products
    • Y02P70/50Manufacturing or production processes characterised by the final manufactured product

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Electric Connection Of Electric Components To Printed Circuits (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for determining automatic welding process parameters. The method comprises the following steps: acquiring a welding spot image of a welding spot to be welded; determining the inner diameter and the outer diameter of the welding pad of the welding spot to be welded according to the welding spot image; and determining the required volume of the welding flux matched with the welding spot to be welded and the heating time of the welding spot according to the inner diameter of the welding spot, the outer diameter of the welding spot and the pin size of the component to be welded so as to adjust the parameters of an automatic welding process. The technical scheme aims at determining the welding process parameters of the direct-insert type electronic components in the mixed printed circuit board, and improves the degree of automation and the system reliability.

Description

自动焊接工艺参数的确定方法、装置、设备以及介质Method, device, equipment and medium for determining automatic welding process parameters

技术领域technical field

本发明实施例涉及自动焊接技术领域,尤其涉及一种自动焊接工艺参数的确定方法、装置、设备以及介质。The embodiments of the present invention relate to the technical field of automatic welding, and in particular to a method, device, equipment and medium for determining automatic welding process parameters.

背景技术Background technique

随着数字化、自动化、计算机、机械设计技术的发展,以及对焊接质量的高度重视,自动焊接已发展成为一种先进的制造技术。With the development of digitalization, automation, computer and mechanical design technology, and the high emphasis on welding quality, automatic welding has developed into an advanced manufacturing technology.

其中,波峰焊技术常用于直插型元器件的自动焊接,是一种通过将插件板的焊接面直接与高温液态锡接触以达到焊接目的的自动焊接技术。但是,这种技术焊接温度较高,不适用于含有贴片型元器件和直插型元器件的混合型印刷电路板。Among them, wave soldering technology is often used for automatic soldering of in-line components. It is an automatic soldering technology that directly contacts the soldering surface of the plug-in board with high-temperature liquid tin to achieve the purpose of soldering. However, this technique has a high soldering temperature and is not suitable for hybrid printed circuit boards containing SMD components and in-line components.

对于混合型印刷电路板中直插型电子元器件的焊接,目前较为常用的方法是人工焊接,但是人工焊接的方法效率较低,焊点的一致性较差,成本也较高。针对这一问题,可以采用基于示教再现的自动焊接系统来代替人工,但是这些工艺系统的自动化程度不高,在大批量焊接之前需要专业的工程师进行人工调试并以经验确定焊接工艺参数(焊料需求量,焊点加热时间),主观性强,存在一定的不确定性。For the soldering of in-line electronic components in hybrid printed circuit boards, manual soldering is currently the most commonly used method, but the manual soldering method has low efficiency, poor consistency of solder joints, and high cost. In response to this problem, automatic welding systems based on teaching and reproduction can be used instead of manual labor, but the degree of automation of these process systems is not high, and professional engineers are required to manually debug and determine welding process parameters (solder Demand, solder joint heating time), highly subjective, there is a certain degree of uncertainty.

因此,对于混合型印刷电路板中直插型电子元器件的焊接,如何提高自动化程度是亟待解决的问题。Therefore, for the soldering of in-line electronic components in hybrid printed circuit boards, how to improve the degree of automation is an urgent problem to be solved.

发明内容Contents of the invention

本发明实施例提供了一种自动焊接工艺参数的确定方法、装置、设备以及介质,以提高焊接混合型印刷电路板中直插型电子元器件的自动化程度。Embodiments of the present invention provide a method, device, equipment and medium for determining automatic welding process parameters, so as to improve the automation degree of welding in-line electronic components in hybrid printed circuit boards.

第一方面,本发明实施例提供了一种自动焊接工艺参数的确定方法,包括:In the first aspect, the embodiment of the present invention provides a method for determining automatic welding process parameters, including:

获取待焊接焊点的焊点图像;Obtain the solder joint image of the solder joint to be welded;

根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径;determining the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image;

根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整自动焊接工艺参数。According to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded, the required volume of solder and the heating time of the solder spot matching the solder joint to be soldered are determined, so as to adjust the automatic welding process parameters.

第二方面,本发明实施例还提供了一种自动焊接工艺参数的确定装置,包括:In the second aspect, the embodiment of the present invention also provides a device for determining automatic welding process parameters, including:

焊点图像获取模块,用于获取待焊接焊点的焊点图像;Solder spot image obtaining module, is used for obtaining the spot image of spot to be welded;

焊盘内外径确定模块,用于根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径;A pad inner and outer diameter determining module, configured to determine the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image;

焊接工艺参数确定模块,用于根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整自动焊接工艺参数。The welding process parameter determination module is used to determine the required volume of solder and the heating time of the solder spot matching the solder joint to be welded according to the inner diameter of the solder pad, the outer diameter of the solder pad and the pin size of the components to be welded, To adjust the automatic welding process parameters.

第三方面,本发明实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序所述处理器执行所述程序时实现如本发明实施例中任一所述的自动焊接工艺参数的确定方法。In the third aspect, the embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the computer program implemented in the present invention is realized The method for determining the automatic welding process parameters described in any of the examples.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明实施例中任一所述的自动焊接工艺参数的确定方法。In the fourth aspect, the embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the automatic welding process parameters as described in any one of the embodiments of the present invention are realized. Determine the method.

本发明实施例提供的技术方案中,首先根据待焊接焊点的焊点图像确定待焊接焊点的焊盘内径和焊盘外径,然后根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整与所述待焊接焊点对应的自动焊接工艺参数。上述技术方案,能够根据待焊接焊点的焊盘内径和焊盘外径,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,提高了不同尺寸焊点自动焊接工艺参数的一致性,也即能够根据待焊接焊点的尺寸确定匹配的自动焊接工艺参数,针对混合型印刷电路板中直插型电子元器件的焊接工艺参数的确定,提高了自动化程度和系统可靠性,进而提高了焊接混合型印刷电路板中直插型电子元器件的自动化程度,也避免了人工确定焊接工艺参数存在的主观性和不一致性。In the technical solution provided by the embodiment of the present invention, the inner diameter and the outer diameter of the pad to be welded are first determined according to the image of the solder joint to be welded, and then according to the inner diameter of the solder pad, the outer diameter of the solder pad and The pin size of the components to be welded determines the required volume of solder and the heating time of the solder joints to adjust the automatic welding process parameters corresponding to the solder joints to be welded. The above technical scheme can determine the required volume of solder and the heating time of the solder joints that match the solder joints to be welded according to the inner diameter and outer diameter of the solder joints to be welded, which improves the accuracy of the automatic welding process parameters of different sizes of solder joints. Consistency, that is, the ability to determine the matching automatic welding process parameters according to the size of the solder joints to be welded. For the determination of the welding process parameters of the in-line electronic components in the hybrid printed circuit board, the degree of automation and system reliability are improved. Furthermore, the automation degree of the in-line electronic components in the soldering hybrid printed circuit board is improved, and the subjectivity and inconsistency of manually determining the soldering process parameters are avoided.

附图说明Description of drawings

图1是本发明实施例一中的一种自动焊接工艺参数的确定方法的流程图;Fig. 1 is a flowchart of a method for determining automatic welding process parameters in Embodiment 1 of the present invention;

图2是本发明实施例一中的焊点图像示例图;FIG. 2 is an example diagram of a solder joint image in Embodiment 1 of the present invention;

图3是本发明实施例一中的焊盘前景图像示例图;3 is an example diagram of a foreground image of a pad in Embodiment 1 of the present invention;

图4是本发明实施例一中的元器件通孔前景图像示例图;Fig. 4 is an example diagram of the foreground image of the component through-hole in the first embodiment of the present invention;

图5是本发明实施例一中的焊盘前景去噪图像示例图;FIG. 5 is an example diagram of a foreground denoising image of a pad in Embodiment 1 of the present invention;

图6是本发明实施例一中的元器件通孔前景去噪图像示例图;FIG. 6 is an example diagram of a foreground denoising image of through holes of components in Embodiment 1 of the present invention;

图7是本发明实施例一中的焊盘前景边缘图像示例图;FIG. 7 is an example diagram of a foreground edge image of a pad in Embodiment 1 of the present invention;

图8是本发明实施例一中的元器件通孔前景边缘图像示例图;Fig. 8 is an example diagram of a foreground edge image of a through hole of a component in Embodiment 1 of the present invention;

图9是本发明实施例一中的焊盘外圆检测结果示例图;FIG. 9 is an example diagram of the detection result of the outer circle of the pad in Embodiment 1 of the present invention;

图10是本发明实施例一中的焊盘内圆检测结果示例图;FIG. 10 is an example diagram of the detection result of the inner circle of the pad in Embodiment 1 of the present invention;

图11是本发明实施例一中的焊点焊料剖面示意图;Fig. 11 is a schematic cross-sectional view of solder joint solder in Embodiment 1 of the present invention;

图12是本发明实施例二中的一种自动焊接工艺参数的确定方法的流程图;Fig. 12 is a flowchart of a method for determining automatic welding process parameters in Embodiment 2 of the present invention;

图13是本发明实施例三中的一种自动焊接工艺参数的确定装置的结构图;Fig. 13 is a structural diagram of a device for determining automatic welding process parameters in Embodiment 3 of the present invention;

图14是本发明实施例四中的一种计算机设备的结构示意图。FIG. 14 is a schematic structural diagram of a computer device in Embodiment 4 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

实施例一Embodiment one

图1为本发明实施例一提供的一种自动焊接工艺参数的确定方法的流程图,本实施例可适用于对混合型印刷电路板中直插型电子元器件进行自动化焊接的情况,该方法可以由本发明实施例提供的自动焊接工艺参数的确定装置来执行,该装置可采用软件和/或硬件的方式实现,并一般可集成在计算机设备中,例如可以是用于控制自动焊接的工控机。Figure 1 is a flow chart of a method for determining automatic welding process parameters provided by Embodiment 1 of the present invention. This embodiment is applicable to the automatic welding of in-line electronic components in hybrid printed circuit boards. The method It can be performed by the device for determining automatic welding process parameters provided by the embodiment of the present invention. The device can be implemented in the form of software and/or hardware, and can generally be integrated in computer equipment, such as an industrial computer for controlling automatic welding. .

如图1所示,本实施例的方法具体包括:As shown in Figure 1, the method of this embodiment specifically includes:

S110、获取待焊接焊点的焊点图像。S110. Obtain a solder joint image of the solder joint to be welded.

待焊接焊点指的是PCB(Printed Circuit Board,印制电路板)上待焊接的直插型焊点,例如可以是混合型PCB上待焊接的直插型焊点。其中,待焊接焊点的尺寸不完全相同。The solder joint to be soldered refers to an in-line solder joint to be soldered on a PCB (Printed Circuit Board, printed circuit board), for example, it may be an in-line solder joint to be soldered on a hybrid PCB. Wherein, the sizes of the solder joints to be welded are not exactly the same.

待焊接焊点的焊点图像是通过摄像机采集的,可以参照如图2(在本实施例中,图2、图9、图10均以灰度图进行展示)所示的焊点图像。The solder spot images of the solder joints to be welded are collected by a camera, and can refer to the solder joint images shown in FIG.

S120、根据焊点图像确定待焊接焊点的焊盘内径和焊盘外径。S120. Determine the pad inner diameter and pad outer diameter of the solder joint to be soldered according to the solder joint image.

对焊点图像进行识别,识别出待焊接焊点的焊盘内圆和焊盘外圆,并根据焊盘内圆和焊盘外圆分别确定焊盘内径和焊盘外径。Recognize the image of the solder joint, identify the inner circle and outer circle of the pad to be welded, and determine the inner diameter and outer diameter of the pad respectively according to the inner circle and outer circle of the solder pad.

其中,焊盘内圆为焊盘内侧边缘(也即通孔外侧边缘),焊盘外圆为焊盘外侧边缘。Wherein, the inner circle of the pad is the inner edge of the pad (that is, the outer edge of the through hole), and the outer circle of the pad is the outer edge of the pad.

如果采集焊点图像的摄像机的成像质量高,焊点图像中噪声较少,可以对焊点图像直接进行霍夫变换处理,提取出焊点图像中的焊盘内圆和焊盘外圆,进而得到待焊接焊点的焊盘内径和焊盘外径。If the imaging quality of the camera that collects the solder joint image is high and the noise in the solder joint image is less, the Hough transform process can be directly performed on the solder joint image to extract the inner circle and outer circle of the solder joint in the solder joint image, and then Obtain the pad inner diameter and pad outer diameter of the solder joint to be soldered.

如果采集焊点图像的摄像机的成像质量不高,且受光照的响应,焊点图像中噪声较多,则可以先对焊盘图像进行预处理以消除噪声,然后再对预处理后的焊点图像进行霍夫变换处理,提取出焊点图像中的焊盘内圆和焊盘外圆,进而得到待焊接焊点的焊盘内径和焊盘外径。If the imaging quality of the camera that collects the image of the solder joint is not high, and the response to light is more noisy in the image of the solder joint, you can first preprocess the image of the solder joint to eliminate noise, and then perform preprocessing on the solder joint after preprocessing The image is subjected to Hough transform processing to extract the inner circle and outer circle of the pad in the image of the solder joint, and then obtain the inner diameter and outer diameter of the solder joint to be welded.

作为一种可选的实施方式,根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径,可以具体为:As an optional implementation manner, determining the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image may specifically be:

根据所述焊点图像分别提取焊盘前景图像和元器件通孔前景图像;extracting pad foreground images and component through-hole foreground images respectively according to the solder joint images;

对所述焊盘前景图像进行去噪处理后,提取焊盘边缘,并利用所述焊盘边缘进行霍夫计算,确定焊盘外圆,得到与所述焊盘外圆对应的焊盘外径;After denoising the foreground image of the pad, extract the edge of the pad, and use the edge of the pad to perform Hough calculation, determine the outer circle of the pad, and obtain the outer diameter of the pad corresponding to the outer circle of the pad ;

对所述元器件通孔前景图像进行去噪处理后,提取元器件通孔边缘,并利用所述元器件通孔边缘进行霍夫计算,确定焊盘内圆,得到与所述焊盘内圆对应的焊盘内径。After denoising the foreground image of the through hole of the component, extract the edge of the through hole of the component, and use the edge of the through hole of the component to perform Hough calculation to determine the inner circle of the pad, and obtain the inner circle of the pad. Corresponding pad inner diameter.

焊盘前景图像,指的是以焊盘区域为感兴趣区域的图像;元器件通孔前景图像,指的是以元器件通孔为感兴趣区域的图像。The foreground image of the pad refers to the image with the pad area as the region of interest; the foreground image of the through hole of the component refers to the image with the through hole of the component as the region of interest.

由于元器件通孔和焊盘的颜色不同,可以使用不同颜色范围的掩模对焊点图像进行处理,以提取焊盘前景图像和元器件通孔前景图像。首先,将焊点图像由RGB图像转换为HSV图像,然后分别利用使用不同颜色范围的掩模对颜色空间转换后的焊点图像进行处理,得到焊盘前景图像和元器件通孔前景图像。以图2为例,焊盘前景图像如图3所示,元器件通孔前景图像如图4所示。Due to the different colors of component through holes and pads, the solder joint image can be processed with masks of different color ranges to extract the pad foreground image and component through hole foreground image. Firstly, the solder joint image is converted from RGB image to HSV image, and then the color space converted solder joint image is processed by using masks with different color ranges respectively to obtain the pad foreground image and component via hole foreground image. Taking Figure 2 as an example, the foreground image of the pad is shown in Figure 3, and the foreground image of the through hole of the component is shown in Figure 4.

由于焊盘前景图像和元器件通孔前景图像中存在大量的噪声,为了提高边缘提取的效果,分别对焊盘前景图像和元器件通孔前景图像进行去噪处理,得到焊盘前景去噪图像和元器件通孔前景去噪图像,例如可以分别对焊盘前景图像和元器件通孔前景图像进行开运算操作,以消除焊盘前景图像和元器件通孔前景图像中的噪声。示例性的,对如图3所示的焊盘前景图像进行开运算操作,得到如图5所示的焊盘前景去噪图像;对如图4所示的元器件通孔前景图像进行开运算操作,得到如图6所示的元器件通孔前景去噪图像。Due to the large amount of noise in the pad foreground image and component through-hole foreground image, in order to improve the effect of edge extraction, the pad foreground image and component through-hole foreground image are denoised separately to obtain the pad foreground denoised image and component through-hole foreground denoising image, for example, the pad foreground image and component through-hole foreground image can be respectively opened to eliminate noise in the pad foreground image and component through-hole foreground image. Exemplarily, the opening operation is performed on the foreground image of the pad as shown in Figure 3 to obtain the denoised image of the foreground of the pad as shown in Figure 5; the opening operation is performed on the foreground image of the through hole of the component as shown in Figure 4 Operation, to obtain the foreground denoising image of the component through-hole as shown in Figure 6.

在对焊盘前景图像和元器件通孔前景图像进行去噪处理后,进行边缘提取,得到焊盘前景边缘图像和元器件通孔前景边缘图像。示例性的,对如图5所示的焊盘前景去噪图像进行边缘提取,得到如图7所示的焊盘前景边缘图像;对如图6所示的元器件通孔前景去噪图像进行边缘提取,得到如图8所示的元器件通孔前景边缘图像。After denoising the pad foreground image and component through-hole foreground image, edge extraction is performed to obtain the pad foreground edge image and component through-hole foreground edge image. Exemplarily, edge extraction is performed on the foreground denoising image of the pad as shown in FIG. 5 to obtain the foreground edge image of the pad as shown in FIG. 7; The edge is extracted, and the foreground edge image of the through hole of the component is obtained as shown in Figure 8.

分别利用焊盘前景边缘图像和元器件通孔前景边缘图像中的边缘点进行霍夫运算,投票出参数空间中概率最大的两个圆,作为焊盘外圆和焊盘内圆。示例性的,利用如图7所示的焊盘前景边缘图像的边缘点进行霍夫运算,投票出参数空间中概率最大的圆作为焊盘外圆,如图9中圆1所示;利用如图8所示的元器件通孔前景边缘图像的边缘点进行霍夫运算,投票出参数空间中概率最大的圆作为焊盘内圆,如图10中圆2所示。Using the edge points in the foreground edge image of the pad and the foreground edge image of the through hole of the component to perform the Hough operation, the two circles with the highest probability in the parameter space are voted out as the outer circle of the pad and the inner circle of the pad. Exemplarily, use the edge points of the foreground edge image of the pad as shown in FIG. 7 to perform Hough operation, and vote the circle with the highest probability in the parameter space as the outer circle of the pad, as shown in circle 1 in FIG. 9; Hough operation is performed on the edge points of the foreground edge image of the through hole of the component shown in Figure 8, and the circle with the highest probability in the parameter space is voted as the inner circle of the pad, as shown in circle 2 in Figure 10.

在得到焊盘外圆和焊盘内圆后,即可确定与焊盘外圆对应的焊盘外径,以及与焊盘内圆对应的焊盘内径。After obtaining the outer circle of the pad and the inner circle of the pad, the outer diameter of the pad corresponding to the outer circle of the pad and the inner diameter of the pad corresponding to the inner circle of the pad can be determined.

要确定直插型焊点的自动焊接工艺参数,首先获得焊点的尺寸信息,包括焊盘内径、焊盘外径以及印刷电路板的厚度。同一批印刷电路板的厚度可以通过一次测量得到,因此在实际应用中只需通过机器视觉方式来测量混合电路板上每个直插型焊点的焊盘内外径即可。在上述实施方式中,采用霍夫变换的方法来测量焊点的尺寸。To determine the automatic welding process parameters of in-line solder joints, first obtain the size information of the solder joints, including the inner diameter of the pad, the outer diameter of the pad, and the thickness of the printed circuit board. The thickness of the same batch of printed circuit boards can be obtained by one measurement. Therefore, in practical applications, it is only necessary to measure the inner and outer diameters of the solder pads of each in-line solder joint on the hybrid circuit board by means of machine vision. In the above embodiments, the size of the solder joints is measured by using the Hough transform method.

S130、根据焊盘内径、焊盘外径以及待焊接元器件的引脚尺寸,确定与待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整自动焊接工艺参数。S130. According to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be soldered, determine the required volume of solder matching the solder joint to be soldered and the heating time of the solder joint, so as to adjust the automatic welding process parameters.

待焊接元器件的引脚尺寸,可以是引脚横截面积,也可以是引脚横截面直径。其中,待焊接元器件的引脚尺寸可以通过预先测量或计算获得。The pin size of the component to be soldered can be the cross-sectional area of the pin or the cross-sectional diameter of the pin. Wherein, the pin size of the components to be welded can be obtained through pre-measurement or calculation.

待焊接焊点的焊盘内径、焊盘外径不同,待焊接元器件的引脚尺寸不同,与待焊接焊点以及待焊接元器件对应的自动焊接工艺参数就不同。根据焊盘内径、焊盘外径以及待焊接元器件的引脚尺寸的不同,确定与待焊接焊点匹配的焊料需求体积和焊点加热时间,作为与待焊接焊点匹配的自动焊接工艺参数,以实现根据与待焊接焊点匹配的自动焊接工艺参数对待焊接焊点以及待焊接元器件进行自动焊接操作。The pad inner diameter and pad outer diameter of the solder joints to be soldered are different, and the pin sizes of the components to be soldered are different, and the automatic welding process parameters corresponding to the solder joints to be soldered and the components to be soldered are different. According to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded, determine the required volume of solder and the heating time of the solder joint that match the solder joint to be soldered, as the automatic welding process parameters that match the solder joint to be soldered , so as to realize the automatic welding operation of the welding spot and components to be welded according to the automatic welding process parameters matched with the welding spot to be welded.

作为一种可选的实施方式,根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,可以具体为:As an optional implementation, according to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded, determine the required volume of solder and the heating time of the solder point that match the solder joint to be soldered , which can be specified as:

根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与所述待焊接焊点匹配的焊料需求体积和焊点加热时间。According to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded, according to the target welding related parameters, the required volume of solder and the heating time of the solder spot matching the solder joint to be welded are calculated.

其中,目标焊接关联参数,指的是与焊接同一批印刷电路板相匹配的焊接关联参数,例如可以是印刷电路板厚度、焊料焊接高度、焊接温度、焊料材质、焊料形状(如丝状焊料的半径)、焊料焊接高度、焊料传送装置的速度,等。Wherein, the target soldering related parameters refer to the soldering related parameters that match the same batch of printed circuit boards to be welded, for example, the thickness of the printed circuit board, the soldering height of the solder, the soldering temperature, the material of the solder, the shape of the solder (such as the shape of the wire solder) Radius), solder welding height, speed of solder conveyor, etc.

理想的已焊焊点上的焊料应该是分布均匀且对称的,可以按照理想的已焊焊点上的焊料形状预先生成计算模型,进而按照该计算模型,根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,以及上述提到的这些目标焊接关联参数,对所述待焊接焊点匹配的焊料需求体积和焊点加热时间进行计算。The solder on the ideal soldered spot should be evenly and symmetrically distributed, and a calculation model can be generated in advance according to the shape of the solder on the ideal soldered spot, and then according to the calculation model, according to the inner diameter of the pad, the solder The outer diameter of the disk, the pin size of the components to be welded, and the above-mentioned target welding related parameters are used to calculate the required volume of solder and the heating time of the solder joints matched by the solder joints to be welded.

进一步的,作为一种可选的实施方式,可以将根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,具体为:Further, as an optional implementation, according to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded, according to the target welding associated parameters, the calculation and the welding to be welded The volume of solder required for point matching and the heating time of solder joints are as follows:

根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,分别计算所述待焊接焊点的上部焊料体积、通孔焊料体积、下部焊料体积,以及所述待焊接元器件的引脚体积;Calculate the upper solder volume, through-hole solder volume, and lower solder volume of the solder joint to be soldered according to the inner diameter of the solder pad, the outer diameter of the solder pad, and the pin size of the components to be soldered, and according to the target soldering related parameters. , and the pin volume of the components to be welded;

将所述上部焊料体积、所述通孔焊料体积和所述下部焊料体积的累加和,减去所述引脚体积得到的差值作为所述焊料需求体积;taking the cumulative sum of the upper solder volume, the through-hole solder volume and the lower solder volume, and subtracting the pin volume as the required solder volume;

根据所述焊料需求体积计算所述焊点加热时间。The solder spot heating time is calculated according to the required solder volume.

如图11所示,焊料体积大致可以分为上部焊料体积、通孔焊料体积和下部焊料体积。需要指出的是,本实施例所述的上部焊料体积、通孔焊料体积和下部焊料体积中均包括待焊接元器件的部分引脚体积。As shown in Figure 11, the solder volume can be roughly divided into upper solder volume, via solder volume and lower solder volume. It should be pointed out that the upper solder volume, the through-hole solder volume and the lower solder volume in this embodiment all include part of the lead volume of the components to be soldered.

按照预先生成的计算模型,根据焊盘外径R1、焊盘内径R2以及目标焊接关联参数分别计算上部焊料体积V1、通孔焊料体积V2和下部焊料体积V3According to the pre-generated calculation model, the upper solder volume V 1 , the through-hole solder volume V 2 and the lower solder volume V 3 are respectively calculated according to the outer diameter R 1 of the pad, the inner diameter R 2 of the pad and the target soldering related parameters.

假设待焊接元器件的引脚横截面积为Spin,印刷电路板厚度为d,上部焊料高度(即为上部焊料的焊接厚度)为H,下部焊料高度(即为下部焊料的焊接厚度)为h,则焊料需求体积为:V=V1+V2+V3-Spin×(d+H+h)。Assuming that the pin cross-sectional area of the component to be soldered is S pin , the thickness of the printed circuit board is d, the height of the upper solder (that is, the soldering thickness of the upper solder) is H, and the height of the lower solder (that is, the soldering thickness of the lower solder) is h, then the required volume of solder is: V=V 1 +V 2 +V 3 -S pin ×(d+H+h).

其中,通孔焊料体积为:

Figure BDA0002932491230000091
where the through-hole solder volume is:
Figure BDA0002932491230000091

进一步的,根据所述焊料需求体积计算所述焊点加热时间,可以具体为:Further, calculating the heating time of the solder joint according to the required volume of the solder may be specifically:

通过公式

Figure BDA0002932491230000092
计算所述待焊接焊点的焊点加热时间T;其中,by formula
Figure BDA0002932491230000092
Calculating the spot heating time T of the spot to be welded; Wherein,

V为所述待焊接焊点所需的焊料体积,vs为焊料传送装置的速度,r0为丝状焊料的半径。V is the volume of solder required for the solder joint to be soldered, v s is the speed of the solder conveying device, r 0 is the radius of the filamentary solder.

作为一种可选的实施方式,所述目标焊接关联参数包括:所述待焊接焊点上部焊料高度和熔融焊料润湿角。其中,熔融焊料润湿角与焊接材料及焊接温度有关,可以在得到自动焊接系统所用焊料以及焊接温度后通过查阅材料润湿角表确定。As an optional implementation manner, the target soldering related parameters include: the solder height at the upper part of the solder joint to be soldered and the wetting angle of molten solder. Among them, the wetting angle of the molten solder is related to the welding material and the welding temperature, and can be determined by consulting the material wetting angle table after obtaining the solder used in the automatic welding system and the welding temperature.

相应的,计算所述待焊接焊点的上部焊料体积,可以具体为:Correspondingly, calculating the upper solder volume of the solder joint to be welded can be specifically:

根据所述焊盘外径、所述待焊接焊点上部焊料高度和所述熔融焊料润湿角,确定与所述待焊接焊点对应的高阶曲线形式的上部焊料轮廓线;将所述上部焊料轮廓线绕通孔中心轴旋转一周得到的旋转体的体积作为所述待焊接焊点的上部焊料体积。According to the outer diameter of the pad, the height of the upper solder of the solder joint to be soldered and the wetting angle of the molten solder, determine the upper solder contour line in the form of a high-order curve corresponding to the solder joint to be soldered; The volume of the rotating body obtained by rotating the solder contour line around the central axis of the through hole for one revolution is used as the upper solder volume of the solder joint to be soldered.

同理,作为一种可选的实施方式,所述目标焊接关联参数还包括:所述待焊接焊点下部焊料高度和熔融焊料润湿角;相应的,计算所述待焊接焊点的下部焊料体积,可以具体为:Similarly, as an optional implementation manner, the target welding associated parameters further include: the height of the solder at the lower part of the solder joint to be soldered and the wetting angle of the molten solder; Volume, which can be specified as:

根据所述焊盘内径、所述待焊接焊点下部焊料高度和所述熔融焊料润湿角,确定与所述待焊接焊点对应的高阶曲线形式的下部焊料轮廓线;将所述下部焊料轮廓线绕通孔中心轴旋转一周得到的旋转体的体积作为所述待焊接焊点的下部焊料体积。According to the inner diameter of the pad, the height of the solder at the lower part of the solder joint to be soldered and the wetting angle of the molten solder, determine the lower solder contour line in the form of a high-order curve corresponding to the solder joint to be soldered; The volume of the rotating body obtained by rotating the contour line around the central axis of the through hole for one revolution is used as the lower solder volume of the solder joint to be soldered.

标准已焊焊点上的焊料外形为凹形锥体,在本实施例中可以采用高阶曲线来近似模拟理想焊点的上部焊料体积以及下部焊料体积的纵向截面轮廓。具体的,可以首先将上部焊料形状和下部焊料形状分别视为由高阶曲线绕轴旋转一周得到的旋转体,通过使用计算旋转体体积的方法计算出该部分焊料的体积。The shape of the solder on the standard soldered spot is a concave cone. In this embodiment, a high-order curve can be used to approximate the longitudinal cross-sectional profile of the upper solder volume and the lower solder volume of the ideal solder joint. Specifically, firstly, the upper solder shape and the lower solder shape can be regarded as a body of revolution obtained by rotating a high-order curve around an axis, and the volume of this part of solder can be calculated by using a method for calculating the volume of a body of revolution.

假设印刷电路板上表面待焊接焊点的焊盘中心为原点,竖直向上方向为z轴正方向,通孔中心水平至焊盘右上边缘的方向为x轴正方向。因此,如图11所示,以焊点上部焊料左半部分的轮廓线为例,上部焊料轮廓线可以表示为:Assume that the center of the pad to be soldered on the upper surface of the printed circuit board is the origin, the vertical upward direction is the positive direction of the z-axis, and the direction from the center of the through hole horizontally to the upper right edge of the pad is the positive direction of the x-axis. Therefore, as shown in Figure 11, taking the contour line of the left half of the upper solder joint as an example, the upper solder contour line can be expressed as:

z1(x)=a3(x+R1)3+a2(x+R1)2+a1(x+R1)+a0z 1 (x)=a 3 (x+R 1 ) 3 +a 2 (x+R 1 ) 2 +a 1 (x+R 1 )+a 0 ;

其边界条件为:

Figure BDA0002932491230000101
其中,Its boundary conditions are:
Figure BDA0002932491230000101
in,

a0,a1,a2,a3为系数,R1是焊盘外径,H是上部焊料高度,α为熔融焊料润湿角。a 0 , a 1 , a 2 , and a 3 are coefficients, R 1 is the outer diameter of the pad, H is the height of the upper solder, and α is the wetting angle of the molten solder.

进而,上部焊料体积为

Figure BDA0002932491230000111
S1为上部焊料任一横截面的面积。In turn, the upper solder volume is
Figure BDA0002932491230000111
S 1 is the area of any cross-section of the upper solder.

可选的,上部焊料高度为焊盘外径的1.0-1.2倍。Optionally, the height of the upper solder is 1.0-1.2 times the outer diameter of the pad.

同理,假设印刷电路板上表面待焊接焊点的焊盘中心为原点,竖直向上方向为z轴正方向,通孔中心水平至焊盘右下边缘的方向为x轴正方向(图未示出),以焊点下部焊料右半部分的轮廓线为例,下部焊料轮廓线可以表示为:Similarly, assume that the center of the pad to be soldered on the upper surface of the printed circuit board is the origin, the vertical upward direction is the positive direction of the z-axis, and the direction from the center of the through hole horizontally to the lower right edge of the pad is the positive direction of the x-axis (not shown in the figure) shown), taking the outline of the right half of the lower part of the solder joint as an example, the lower solder outline can be expressed as:

z2(x)=b3(x-r)3+b2(x-r)2+b1(x-r)+b0z 2 (x)=b 3 (xr) 3 +b 2 (xr) 2 +b 1 (xr)+b 0 ;

其边界条件为:

Figure BDA0002932491230000112
其中,Its boundary conditions are:
Figure BDA0002932491230000112
in,

b0,b1,b2,b3为系数,r是下部焊料最大横截面积的半径,h是下部焊料高度,α为熔融焊料润湿角。其中,r和h与焊接透锡率需求有关。b 0 , b 1 , b 2 , b 3 are coefficients, r is the radius of the maximum cross-sectional area of the lower solder, h is the height of the lower solder, and α is the wetting angle of the molten solder. Among them, r and h are related to the requirement of solder penetration rate.

进而,下部焊料体积为

Figure BDA0002932491230000113
S2为下部焊料任一横截面的面积。In turn, the lower solder volume is
Figure BDA0002932491230000113
S 2 is the area of any cross-section of the lower solder.

在上述实施方式中,提供了一种标准焊点外形的数学建模方法,使用高次曲线拟合标准焊点焊料的外形,并利用旋转体体积的求解方法计算焊点中焊料的体积,以保证了不同尺寸焊点自动焊接工艺参数的一致性。In the above embodiment, a mathematical modeling method for the shape of a standard solder joint is provided, using a high-order curve to fit the shape of the solder in the standard solder joint, and using the solution method for the volume of a rotating body to calculate the volume of the solder in the solder joint to It ensures the consistency of automatic welding process parameters of different sizes of solder joints.

作为一种可选的实施方式,所述目标焊接关联参数还包括:与透锡率关联的经验参数;相应的,计算所述待焊接焊点的下部焊料体积,可以具体为:As an optional implementation manner, the target welding related parameters also include: empirical parameters associated with the tin penetration rate; correspondingly, calculating the lower solder volume of the solder joint to be welded may be specifically:

将所述待焊接焊点的上部焊料体积与所述经验参数的乘积作为所述待焊接焊点的下部焊料体积。The product of the upper solder volume of the solder joint to be soldered and the empirical parameter is used as the lower solder volume of the solder joint to be soldered.

与透锡率关联的经验参数,是根据透锡率个性化需求预先选取的参数,其取值范围为(0,1]。The empirical parameters associated with the tin penetration rate are parameters pre-selected according to the individual requirements of the tin penetration rate, and its value range is (0,1].

在本实施方式中,为了减少焊料体积的计算量,可以使用上部焊料体积与经验参数γ来估算下部焊料体积,也即将上部焊料体积与经验参数γ的乘积作为上部焊料体积,即:V3=γV1,0<γ≤1。In this embodiment, in order to reduce the amount of calculation of the solder volume, the upper solder volume and the empirical parameter γ can be used to estimate the lower solder volume, that is, the product of the upper solder volume and the empirical parameter γ is used as the upper solder volume, that is: V 3 = γV 1 , 0<γ≤1.

进一步的,在本实施方式中,计算焊料需求体积的计算模型可以写成如下形式:Further, in this embodiment, the calculation model for calculating the required volume of solder can be written as follows:

V=C(R1,R2,d,Spin,α,γ);其中,函数C表示焊料需求体积计算函数,其自变量为:焊点的尺寸(R1,R2),印刷电路板厚度d,元器件引脚横截面积Spin,与焊接温度和焊料材料有关的熔融焊料润湿角α,以及经验参数γ。V=C(R 1 ,R 2 ,d,S pin ,α,γ); Among them, the function C represents the calculation function of the required volume of solder, and its independent variables are: the size of the solder joint (R 1 ,R 2 ), the printed circuit Board thickness d, component pin cross-sectional area S pin , molten solder wetting angle α related to soldering temperature and solder material, and empirical parameter γ.

在本实施方式中,通过对优质焊点进行形貌上的建模,确定标准焊点焊料量与焊点尺寸间的关系,利用计算机根据计算模型自动定参的方式能够提高焊点自动焊接参数的一致性。In this embodiment, by modeling the topography of high-quality solder joints, the relationship between the amount of solder in standard solder joints and the size of solder joints is determined, and the automatic parameterization of solder joints can be improved by using a computer to automatically determine parameters based on the calculation model. consistency.

需要指出的是,引脚横截面积Spin和印刷电路板厚度d,都可以通过预先测量来确定。进而,基于机器视觉测量的焊盘内径和焊盘外径,即可计算得到焊点的焊料需求体积,并可以基于焊料需求体积计算得到焊点加热时间。It should be pointed out that both the pin cross-sectional area S pin and the thickness d of the printed circuit board can be determined by pre-measurement. Furthermore, based on the inner diameter and outer diameter of the solder pad measured by the machine vision, the required solder volume of the solder joint can be calculated, and the heating time of the solder joint can be calculated based on the required solder volume.

本发明实施例提供的技术方案中,首先根据待焊接焊点的焊点图像确定待焊接焊点的焊盘内径和焊盘外径,然后根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整与所述待焊接焊点对应的自动焊接工艺参数。上述技术方案,能够根据待焊接焊点的焊盘内径和焊盘外径,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,提高了不同尺寸焊点自动焊接工艺参数的一致性,也即能够根据待焊接焊点的尺寸确定匹配的自动焊接工艺参数,针对混合型印刷电路板中直插型电子元器件的焊接工艺参数的确定,提高了自动化程度和系统可靠性,进而提高了焊接混合型印刷电路板中直插型电子元器件的自动化程度,也避免了人工确定焊接工艺参数存在的主观性和不一致性。In the technical solution provided by the embodiment of the present invention, the inner diameter and the outer diameter of the pad to be welded are first determined according to the image of the solder joint to be welded, and then according to the inner diameter of the solder pad, the outer diameter of the solder pad and The pin size of the components to be welded determines the required volume of solder and the heating time of the solder joints to adjust the automatic welding process parameters corresponding to the solder joints to be welded. The above technical scheme can determine the required volume of solder and the heating time of the solder joints that match the solder joints to be welded according to the inner diameter and outer diameter of the solder joints to be welded, which improves the accuracy of the automatic welding process parameters of different sizes of solder joints. Consistency, that is, the ability to determine the matching automatic welding process parameters according to the size of the solder joints to be welded. For the determination of the welding process parameters of the in-line electronic components in the hybrid printed circuit board, the degree of automation and system reliability are improved. Furthermore, the automation degree of the in-line electronic components in the soldering hybrid printed circuit board is improved, and the subjectivity and inconsistency of manually determining the soldering process parameters are avoided.

实施例二Embodiment two

图12为本发明实施例二提供的一种自动焊接工艺参数的确定方法的流程图。本实施例以前述实施例为基础进行具体化,其中,在确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间之后,还包括:FIG. 12 is a flow chart of a method for determining automatic welding process parameters provided by Embodiment 2 of the present invention. This embodiment is embodied on the basis of the foregoing embodiments, wherein, after determining the required volume of solder and the heating time of the solder joint that match the solder joint to be welded, it further includes:

根据与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,生成与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录;generating a welding process parameter record corresponding to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded according to the required volume of solder matched with the solder joint to be welded and the heating time of the solder joint;

相应的,根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,可以具体为:Correspondingly, according to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded, determine the required volume of solder and the heating time of the solder joint that match the solder joint to be soldered, which can be specifically:

如果存在与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录,则根据所述焊接工艺参数记录确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间;If there is a welding process parameter record corresponding to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded, then determine the solder that matches the solder joint to be welded according to the welding process parameter record Required volume and solder joint heating time;

如果不存在与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录,则根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与所述待焊接焊点匹配的焊料需求体积和焊点加热时间。If there is no welding process parameter record corresponding to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded, then according to the inner diameter of the pad, the outer diameter of the pad and the component to be welded According to the pin size of the device, according to the target welding related parameters, the required volume of solder and the heating time of the solder joint matching the solder joint to be welded are calculated.

在本实施例中,当确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间之后,可以将焊料需求体积和焊点加热时间,同待焊接焊点以及待焊接元器件的引脚尺寸信息一起进行存储,作为一条焊接工艺参数记录。其中,一条焊接工艺参数记录中可以包括:焊盘内径、焊盘外径、待焊接元器件的引脚尺寸(横截面积或引脚横截面直径或引脚横截面半径)、焊料需求体积和焊点加热时间。可选的,焊接工艺参数记录中还可以包括印刷电路板厚度、熔融焊料润湿角、经验参数等,本实施例对此不作具体限定。In this embodiment, after determining the required volume of solder and the heating time of the solder joint that match the solder joint to be soldered, the required volume of solder and the heating time of the solder joint can be combined with the solder joint to be soldered and the lead of the components to be soldered. The foot size information is stored together as a welding process parameter record. Among them, a welding process parameter record can include: pad inner diameter, pad outer diameter, pin size (cross-sectional area or pin cross-sectional diameter or pin cross-sectional radius), solder required volume and Solder spot heating time. Optionally, the welding process parameter record may also include the thickness of the printed circuit board, the wetting angle of the molten solder, empirical parameters, etc., which are not specifically limited in this embodiment.

可选的,将生成的焊接工艺参数记录存储至焊点信息库中。其中,在本批次印刷电路板焊接前,与本批次印刷电路板对应的焊点信息库可以为空。Optionally, the generated welding process parameter records are stored in the welding point information database. Wherein, before the current batch of printed circuit boards is soldered, the solder joint information database corresponding to the current batch of printed circuit boards may be empty.

进而,在根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径之后,可以首先根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,查询焊点信息库,判断是否存在匹配的焊接工艺参数记录,若是,则根据该匹配的焊接工艺参数记录确定焊料需求体积和焊点加热时间,若否,再根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,并根据计算得到的焊料需求体积和焊点加热时间生成对应的焊接工艺参数记录进行存储。Furthermore, after determining the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image, firstly, according to the inner diameter of the solder pad, the outer diameter of the pad and the lead of the component to be welded Size, query the solder joint information database, and judge whether there is a matching welding process parameter record. If so, then determine the required volume of solder and the heating time of the solder joint according to the matching welding process parameter record. If not, then according to the inner diameter of the pad, The outer diameter of the pad and the pin size of the component to be welded are calculated according to the target soldering related parameters, and the required volume of solder and the heating time of the soldered spot that match the soldered spot to be welded are calculated, and according to the calculated required volume of solder and Solder spot heating time generates corresponding welding process parameter records for storage.

如图12所示,本实施例的方法具体包括:As shown in Figure 12, the method of this embodiment specifically includes:

S210、获取待焊接焊点的焊点图像。S210. Obtain a solder joint image of the solder joint to be welded.

S220、根据焊点图像确定待焊接焊点的焊盘内径和焊盘外径。S220. Determine the pad inner diameter and pad outer diameter of the solder joint to be soldered according to the solder joint image.

可选的,首先,根据所述焊点图像分别提取焊盘前景图像和元器件通孔前景图像。Optionally, firstly, a pad foreground image and a component through-hole foreground image are respectively extracted according to the solder joint image.

其次,对所述焊盘前景图像进行去噪处理后,提取焊盘边缘,并利用所述焊盘边缘进行霍夫计算,确定焊盘外圆,得到与所述焊盘外圆对应的焊盘外径;Secondly, after denoising the foreground image of the pad, extract the edge of the pad, and use the edge of the pad to perform Hough calculation, determine the outer circle of the pad, and obtain the pad corresponding to the outer circle of the pad outer diameter;

再次,对所述元器件通孔前景图像进行去噪处理后,提取元器件通孔边缘,并利用所述元器件通孔边缘进行霍夫计算,确定焊盘内圆,得到与所述焊盘内圆对应的焊盘内径。Again, after denoising the foreground image of the through hole of the component, extract the edge of the through hole of the component, and use the edge of the through hole of the component to perform Hough calculation, determine the inner circle of the pad, and obtain the The inner diameter of the pad corresponding to the inner circle.

S230、判断是否存在与焊盘内径、焊盘外径以及待焊接元器件的引脚尺寸匹配的焊接工艺参数记录,若是,则执行S240,若否,则执行S250。S230. Determine whether there is a welding process parameter record matching the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded. If yes, execute S240; if not, execute S250.

S240、根据焊接工艺参数记录,确定与待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整自动焊接工艺参数。S240. According to the welding process parameter records, determine the required volume of solder and the heating time of the solder joints that match the solder joints to be welded, so as to adjust the automatic welding process parameters.

S250、根据焊盘内径、焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与待焊接焊点匹配的焊料需求体积和焊点加热时间。S250. According to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the components to be welded, according to the target welding related parameters, calculate the required volume of solder and the heating time of the solder joints that match the solder joints to be welded.

可选的,根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,分别计算所述待焊接焊点的上部焊料体积V1、通孔焊料体积V2、下部焊料体积V3,以及所述待焊接元器件的引脚体积;将上部焊料体积V1、通孔焊料体积V2和下部焊料体积V3的累加和,减去引脚体积Spin×(d+H+h)得到的差值作为焊料需求体积V;根据焊料需求体积V计算焊点加热时间T。Optionally, according to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be soldered, the upper solder volume V 1 and the through hole of the solder joint to be soldered are respectively calculated according to the target soldering related parameters. Solder volume V 2 , lower solder volume V 3 , and the lead volume of the component to be soldered; the sum of the upper solder volume V 1 , through-hole solder volume V 2 and lower solder volume V 3 is subtracted from the lead The difference obtained by the volume S pin × (d+H+h) is used as the required volume V of the solder; the heating time T of the solder joint is calculated according to the required volume V of the solder.

其中:

Figure BDA0002932491230000151
in:
Figure BDA0002932491230000151

z1(x)=a3(x+R1)3+a2(x+R1)2+a1(x+R1)+a0z 1 (x)=a 3 (x+R 1 ) 3 +a 2 (x+R 1 ) 2 +a 1 (x+R 1 )+a 0 ;

Figure BDA0002932491230000152
Figure BDA0002932491230000152

V=V1+V2+V3-Spin×(d+H+h);

Figure BDA0002932491230000153
V=V 1 +V 2 +V 3 -S pin ×(d+H+h);
Figure BDA0002932491230000153

S260、根据与待焊接焊点匹配的焊料需求体积和焊点加热时间,生成与焊盘内径、焊盘外径以及待焊接元器件的引脚尺寸匹配的焊接工艺参数记录进行存储。S260. Generate and store welding process parameter records matching the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded according to the required volume of solder and the heating time of the soldered joint.

本实施例未尽详细解释之处请参见前述实施例,在此不再赘述。For details not explained in this embodiment, please refer to the foregoing embodiments, and details are not repeated here.

在上述技术方案中,通过科学的计算方法计算不同大小直插型焊点所需要的焊料体积和加热时间,提高了自动电子焊接系统的生产效率,同时避免了人工定参存在的主观性和不一致性。另外,针对同批次的印刷电路板生成焊接工艺参数记录进行存储,避免针对相同尺寸直插型焊点进行焊接工艺参数的重复计算,减少算力的浪费。In the above technical scheme, the volume of solder and heating time required for in-line solder joints of different sizes are calculated by scientific calculation methods, which improves the production efficiency of the automatic electronic welding system and avoids the subjectivity and inconsistency of manual parameter setting sex. In addition, the welding process parameter records are generated and stored for the same batch of printed circuit boards, avoiding repeated calculation of welding process parameters for the same size in-line solder joints, and reducing the waste of computing power.

经实验证明,本实施例提供的技术方案,针对不同大小的焊点均可以精准地确定自动焊接工艺参数,使自动焊接完成得到的已焊接焊点的外形标准且一致性高。如表1所示,依据本技术方案确定的焊料体积与人工实验确定的优化后的焊料体积参数一致。Experiments have proved that the technical solution provided by this embodiment can accurately determine the automatic welding process parameters for solder joints of different sizes, so that the appearance of the welded joints obtained after automatic welding is standard and consistent. As shown in Table 1, the solder volume determined according to the technical solution is consistent with the optimized solder volume parameters determined by manual experiments.

表1Table 1

Figure BDA0002932491230000161
Figure BDA0002932491230000161

实施例三Embodiment three

图13为本发明实施例三提供的一种自动焊接工艺参数的确定装置的结构示意图,该装置可采用软件和/或硬件的方式实现,并一般可集成在计算设备中,例如可以是用于控制自动焊接的工控机。如图13所示,所述装置包括:焊点图像获取模块310、焊盘内外径确定模块320和焊接工艺参数确定模块330。其中,Fig. 13 is a schematic structural diagram of a device for determining automatic welding process parameters provided by Embodiment 3 of the present invention. The device can be implemented in the form of software and/or hardware, and can generally be integrated in computing equipment, for example, it can be used for Control the industrial computer of automatic welding. As shown in FIG. 13 , the device includes: a welding point image acquisition module 310 , a welding pad inner and outer diameter determination module 320 and a welding process parameter determination module 330 . in,

焊点图像获取模块310,用于获取待焊接焊点的焊点图像;Welding point image acquisition module 310, for obtaining the welding point image of the welding spot to be welded;

焊盘内外径确定模块320,用于根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径;A pad inner and outer diameter determining module 320, configured to determine the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image;

焊接工艺参数确定模块330,用于根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整自动焊接工艺参数。The welding process parameter determination module 330 is used to determine the required volume of solder and the heating time of the welding spot matching the welding spot to be welded according to the inner diameter of the welding pad, the outer diameter of the welding pad and the pin size of the components to be welded , to adjust the automatic welding process parameters.

本发明实施例提供的技术方案中,首先根据待焊接焊点的焊点图像确定待焊接焊点的焊盘内径和焊盘外径,然后根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整与所述待焊接焊点对应的自动焊接工艺参数。上述技术方案,能够根据待焊接焊点的焊盘内径和焊盘外径,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,提高了不同尺寸焊点自动焊接工艺参数的一致性,也即能够根据待焊接焊点的尺寸确定匹配的自动焊接工艺参数,针对混合型印刷电路板中直插型电子元器件的焊接工艺参数的确定,提高了自动化程度和系统可靠性,进而提高了焊接混合型印刷电路板中直插型电子元器件的自动化程度,也避免了人工确定焊接工艺参数存在的主观性和不一致性。In the technical solution provided by the embodiment of the present invention, the inner diameter and the outer diameter of the pad to be welded are first determined according to the image of the solder joint to be welded, and then according to the inner diameter of the solder pad, the outer diameter of the solder pad and The pin size of the components to be welded determines the required volume of solder and the heating time of the solder joints to adjust the automatic welding process parameters corresponding to the solder joints to be welded. The above technical scheme can determine the required volume of solder and the heating time of the solder joints that match the solder joints to be welded according to the inner diameter and outer diameter of the solder joints to be welded, which improves the accuracy of the automatic welding process parameters of different sizes of solder joints. Consistency, that is, the ability to determine the matching automatic welding process parameters according to the size of the solder joints to be welded. For the determination of the welding process parameters of the in-line electronic components in the hybrid printed circuit board, the degree of automation and system reliability are improved. Furthermore, the automation degree of the in-line electronic components in the soldering hybrid printed circuit board is improved, and the subjectivity and inconsistency of manually determining the soldering process parameters are avoided.

在一种可选的实施方式中,焊接工艺参数确定模块330,具体用于根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与所述待焊接焊点匹配的焊料需求体积和焊点加热时间。In an optional implementation, the welding process parameter determination module 330 is specifically configured to calculate according to the target welding related parameters according to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the components to be welded. The required volume of solder and the heating time of the solder joints matched with the solder joints to be welded.

在一种可选的实施方式中,上述装置还包括:焊接工艺参数记录生成模块,用于在确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间之后,根据与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,生成与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录;In an optional implementation manner, the above-mentioned device further includes: a welding process parameter record generation module, which is used to determine the required volume of solder and the heating time of the welding spot matching the welding spot to be welded, according to the The volume of solder required for welding the solder joint and the heating time of the solder joint are matched, and a welding process parameter record corresponding to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded is generated;

相应的,焊接工艺参数确定模块330,具体用于如果存在与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录,则根据所述焊接工艺参数记录确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间;如果不存在与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录,则根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与所述待焊接焊点匹配的焊料需求体积和焊点加热时间。Correspondingly, the welding process parameter determination module 330 is specifically configured to, if there is a welding process parameter record corresponding to the inner diameter of the welding pad, the outer diameter of the welding pad, and the pin size of the component to be welded, then according to the welding process Parameter records determine the required volume of solder and the heating time of the solder joint that match the solder joint to be soldered; if there is no welding process corresponding to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be soldered According to the parameter record, according to the inner diameter of the pad, the outer diameter of the pad and the pin size of the components to be welded, according to the target welding related parameters, calculate the required volume of solder and the heating of the solder joints that match the solder joints to be welded time.

进一步的,焊接工艺参数确定模块330,包括:焊料体积计算单元和焊点加热时间计算单元,其中,Further, the welding process parameter determination module 330 includes: a solder volume calculation unit and a solder spot heating time calculation unit, wherein,

焊料体积计算单元,用于根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,分别计算所述待焊接焊点的上部焊料体积、通孔焊料体积、下部焊料体积,以及所述待焊接元器件的引脚体积;将所述上部焊料体积、所述通孔焊料体积和所述下部焊料体积的累加和,减去所述引脚体积得到的差值作为所述焊料需求体积;The solder volume calculation unit is used to calculate the upper solder volume of the solder joint to be soldered according to the inner diameter of the solder pad, the outer diameter of the solder pad, and the pin size of the components to be soldered, and according to the target soldering related parameters. Hole solder volume, lower solder volume, and lead volume of the component to be soldered; subtract the lead volume from the cumulative sum of the upper solder volume, the through-hole solder volume, and the lower solder volume The difference obtained is used as the required volume of solder;

焊点加热时间计算单元,用于根据所述焊料需求体积计算所述焊点加热时间。The solder joint heating time calculation unit is configured to calculate the solder joint heating time according to the required volume of solder.

可选的,所述目标焊接关联参数包括:所述待焊接焊点上部焊料高度和熔融焊料润湿角;焊料体积计算单元,具体用于根据所述焊盘外径、所述待焊接焊点上部焊料高度和所述熔融焊料润湿角,确定与所述待焊接焊点对应的高阶曲线形式的上部焊料轮廓线;将所述上部焊料轮廓线绕通孔中心轴旋转一周得到的旋转体的体积作为所述待焊接焊点的上部焊料体积。Optionally, the target welding associated parameters include: the height of the upper solder of the solder joint to be soldered and the wetting angle of the molten solder; a solder volume calculation unit, specifically configured to The height of the upper solder and the wetting angle of the molten solder determine the upper solder contour line in the form of a high-order curve corresponding to the solder joint to be soldered; the rotating body obtained by rotating the upper solder contour line around the central axis of the through hole for one revolution The volume of is used as the upper solder volume of the solder joint to be soldered.

可选的,所述目标焊接关联参数还包括:所述待焊接焊点下部焊料高度;焊料体积计算单元,具体用于根据所述焊盘内径、所述待焊接焊点下部焊料高度和所述熔融焊料润湿角,确定与所述待焊接焊点对应的高阶曲线形式的下部焊料轮廓线;将所述下部焊料轮廓线绕通孔中心轴旋转一周得到的旋转体的体积作为所述待焊接焊点的下部焊料体积;Optionally, the target welding associated parameters further include: the height of the solder below the solder joint to be soldered; a solder volume calculation unit, specifically configured to calculate the The molten solder wetting angle determines the lower solder contour line in the form of a high-order curve corresponding to the solder joint to be soldered; the volume of the rotating body obtained by rotating the lower solder contour line around the central axis of the through hole for one week is used as the volume of the to-be-soldered solder joint The lower solder volume of the solder joint;

可选的,所述目标焊接关联参数还包括:与透锡率关联的经验参数;焊料体积计算单元,具体用于将所述待焊接焊点的上部焊料体积与所述经验参数的乘积作为所述待焊接焊点的下部焊料体积。Optionally, the target welding associated parameters further include: empirical parameters associated with the tin penetration rate; a solder volume calculation unit, specifically configured to use the product of the upper solder volume of the solder joint to be welded and the empirical parameters as the Describes the lower solder volume of the solder joint to be soldered.

可选的,焊盘内外径确定模块320,具体用于根据所述焊点图像分别提取焊盘前景图像和元器件通孔前景图像;对所述焊盘前景图像进行去噪处理后,提取焊盘边缘,并利用所述焊盘边缘进行霍夫计算,确定焊盘外圆,得到与所述焊盘外圆对应的焊盘外径;对所述元器件通孔前景图像进行去噪处理后,提取元器件通孔边缘,并利用所述元器件通孔边缘进行霍夫计算,确定所述焊盘内圆,得到与所述焊盘内圆对应的焊盘内径。Optionally, the inner and outer diameter determination module 320 of the pad is specifically used to extract the foreground image of the pad and the foreground image of the through hole of the component according to the solder joint image; after denoising the foreground image of the pad, extract the solder joint The edge of the pad, and use the edge of the pad to perform Hough calculation to determine the outer circle of the pad, and obtain the outer diameter of the pad corresponding to the outer circle of the pad; after denoising the through-hole foreground image of the component , extract the edge of the through hole of the component, and use the edge of the through hole of the component to perform Hough calculation, determine the inner circle of the pad, and obtain the inner diameter of the pad corresponding to the inner circle of the pad.

上述自动焊接工艺参数的确定装置可执行本发明任意实施例所提供的自动焊接工艺参数的确定方法,具备执行的自动焊接工艺参数的确定方法相应的功能模块和有益效果。The above-mentioned device for determining automatic welding process parameters can execute the method for determining automatic welding process parameters provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the executed automatic welding process parameter determining method.

实施例四Embodiment Four

图14是本发明实施例四提供的一种计算机设备的硬件结构示意图。如图14所示,该计算机设备包括处理器410、存储器420、输入装置430和输出装置440;计算机设备中处理器410的数量可以是一个或多个,图14中以一个处理器410为例;计算机设备中的处理器410、存储器420、输入装置430和输出装置440可以通过总线或其他方式连接,图14中以通过总线连接为例。FIG. 14 is a schematic diagram of a hardware structure of a computer device provided by Embodiment 4 of the present invention. As shown in Figure 14, the computer equipment includes a processor 410, a memory 420, an input device 430 and an output device 440; the number of processors 410 in the computer equipment can be one or more, and one processor 410 is taken as an example in Figure 14 ; The processor 410, the memory 420, the input device 430 and the output device 440 in the computer device can be connected through a bus or in other ways. In FIG. 14, the connection through a bus is taken as an example.

存储器420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的自动焊接工艺参数的确定方法对应的程序指令/模块(例如,图13所示的自动焊接工艺参数的确定装置中的焊点图像获取模块310、焊盘内外径确定模块320和焊接工艺参数确定模块330)。处理器410通过运行存储在存储器420中的软件程序、指令以及模块,从而执行计算机设备的各种功能应用以及数据处理,即实现上述自动焊接工艺参数的确定方法。The memory 420, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the method for determining automatic welding process parameters in the embodiment of the present invention (for example, as shown in FIG. 13 The solder joint image acquisition module 310, the welding pad inner and outer diameter determination module 320 and the welding process parameter determination module 330 in the automatic welding process parameter determination device shown in the figure). The processor 410 executes various functional applications and data processing of the computer equipment by running the software programs, instructions and modules stored in the memory 420 , that is, realizes the method for determining the above-mentioned automatic welding process parameters.

存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器420可进一步包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至计算机设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required by a function; the data storage area may store data created according to the use of the computer device, and the like. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 420 may further include memory located remotely from the processor 410, and these remote memories may be connected to the computer device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

输入装置430可用于接收输入的数字或字符信息,以及产生与计算机设备的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。The input device 430 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the computer equipment. The output device 440 may include a display device such as a display screen.

实施例五Embodiment five

本发明实施例五还提供一种存储有计算机程序的计算机可读存储介质,计算机程序在由计算机处理器执行时用于执行一种自动焊接工艺参数的确定方法,包括:Embodiment 5 of the present invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a computer processor, the computer program is used to perform a method for determining automatic welding process parameters, including:

获取待焊接焊点的焊点图像;Obtain the solder joint image of the solder joint to be welded;

根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径;determining the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image;

根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整自动焊接工艺参数。According to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded, the required volume of solder and the heating time of the solder spot matching the solder joint to be soldered are determined, so as to adjust the automatic welding process parameters.

当然,本发明实施例所提供的存储有计算机程序的计算机可读存储介质,其计算机程序不限于如上的方法操作,还可以执行本发明任意实施例所提供的自动焊接工艺参数的确定方法中的相关操作。Of course, for the computer-readable storage medium stored with the computer program provided by the embodiment of the present invention, the computer program is not limited to the operation of the above method, and can also execute the method for determining the automatic welding process parameters provided by any embodiment of the present invention. related operations.

通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备执行本发明各个实施例的方法。Through the above description about the implementation mode, those skilled in the art can clearly understand that the present invention can be realized by means of software and necessary general-purpose hardware, and of course it can also be realized by hardware, but in many cases the former is a better implementation mode . Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a floppy disk of a computer , read-only memory (Read-Only Memory, ROM), random access memory (RandomAccess Memory, RAM), flash memory (FLASH), hard disk or optical disk etc., comprise several instructions in order to make a computer equipment carry out various embodiments of the present invention Methods.

值得注意的是,上述自动焊接工艺参数的确定装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that, in the above-mentioned embodiment of the automatic welding process parameter determination device, the included units and modules are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized ; In addition, the specific names of each functional unit are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (6)

1.一种自动焊接工艺参数的确定方法,其特征在于,包括:1. A method for determining automatic welding process parameters, characterized in that, comprising: 获取待焊接焊点的焊点图像;Obtain the solder joint image of the solder joint to be welded; 根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径;determining the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image; 根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,以调整自动焊接工艺参数;According to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded, determine the required volume of solder and the heating time of the solder joint that match the solder joint to be welded, so as to adjust the automatic welding process parameters; 根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,包括:According to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded, determine the required volume of solder and the heating time of the solder joint that match the solder joint to be soldered, including: 根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,分别计算所述待焊接焊点的上部焊料体积、通孔焊料体积、下部焊料体积,以及所述待焊接元器件的引脚体积;Calculate the upper solder volume, through-hole solder volume, and lower solder volume of the solder joint to be soldered according to the inner diameter of the solder pad, the outer diameter of the solder pad, and the pin size of the components to be soldered, and according to the target soldering related parameters. , and the pin volume of the components to be welded; 将所述上部焊料体积、所述通孔焊料体积和所述下部焊料体积的累加和,减去所述引脚体积得到的差值作为所述焊料需求体积;taking the cumulative sum of the upper solder volume, the through-hole solder volume and the lower solder volume, and subtracting the pin volume as the required solder volume; 根据所述焊料需求体积计算所述焊点加热时间;calculating the solder joint heating time according to the required volume of solder; 所述目标焊接关联参数包括:所述待焊接焊点的上部焊料高度和熔融焊料润湿角;The target soldering associated parameters include: the upper solder height and the molten solder wetting angle of the solder joint to be soldered; 计算所述待焊接焊点的上部焊料体积,包括:Calculate the upper solder volume of the solder joint to be soldered, including: 根据所述焊盘外径、所述待焊接焊点的上部焊料高度和所述熔融焊料润湿角,确定与所述待焊接焊点对应的高阶曲线形式的上部焊料轮廓线;determining an upper solder contour in the form of a high-order curve corresponding to the solder joint to be soldered according to the outer diameter of the pad, the height of the upper solder of the solder joint to be soldered, and the wetting angle of the molten solder; 将所述上部焊料轮廓线绕通孔中心轴旋转一周得到的旋转体的体积作为所述待焊接焊点的上部焊料体积;The volume of the rotating body obtained by rotating the upper solder contour line around the central axis of the through hole for one circle is used as the upper solder volume of the solder joint to be soldered; 在所述确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间之后,还包括:After the determination of the required volume of solder and the heating time of the solder joints matched with the solder joints to be welded, it also includes: 根据与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,生成与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录;generating a welding process parameter record corresponding to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded according to the required volume of solder matched with the solder joint to be welded and the heating time of the solder joint; 根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,包括:According to the inner diameter of the pad, the outer diameter of the pad, and the pin size of the component to be welded, determine the required volume of solder and the heating time of the solder joint that match the solder joint to be soldered, including: 如果存在与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录,则根据所述焊接工艺参数记录确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间;If there is a welding process parameter record corresponding to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded, then determine the solder that matches the solder joint to be welded according to the welding process parameter record Required volume and solder joint heating time; 如果不存在与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录,则根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与所述待焊接焊点匹配的焊料需求体积和焊点加热时间。If there is no welding process parameter record corresponding to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded, then according to the inner diameter of the pad, the outer diameter of the pad and the component to be welded According to the pin size of the device, according to the target welding related parameters, the required volume of solder and the heating time of the solder joint matching the solder joint to be welded are calculated. 2.根据权利要求1所述的方法,其特征在于,所述目标焊接关联参数还包括:所述待焊接焊点下部焊料高度;2. The method according to claim 1, wherein the target welding related parameters further comprise: the height of the solder at the lower part of the solder joint to be welded; 计算所述待焊接焊点的下部焊料体积,包括:Calculate the lower solder volume of the solder joint to be soldered, including: 根据所述焊盘内径、所述待焊接焊点下部焊料高度和所述熔融焊料润湿角,确定与所述待焊接焊点对应的高阶曲线形式的下部焊料轮廓线;determining a lower solder contour in the form of a high-order curve corresponding to the solder joint to be soldered according to the inner diameter of the pad, the height of the lower solder of the solder joint to be soldered, and the wetting angle of the molten solder; 将所述下部焊料轮廓线绕通孔中心轴旋转一周得到的旋转体的体积作为所述待焊接焊点的下部焊料体积;The volume of the rotating body obtained by rotating the lower solder contour line around the central axis of the through hole for a circle is used as the lower solder volume of the solder joint to be soldered; 或者,or, 所述目标焊接关联参数还包括:与透锡率关联的经验参数;The target welding associated parameters also include: empirical parameters associated with tin penetration rate; 计算所述待焊接焊点的下部焊料体积,包括:Calculate the lower solder volume of the solder joint to be soldered, including: 将所述待焊接焊点的上部焊料体积与所述经验参数的乘积作为所述待焊接焊点的下部焊料体积。The product of the upper solder volume of the solder joint to be soldered and the empirical parameter is used as the lower solder volume of the solder joint to be soldered. 3.根据权利要求1所述的方法,其特征在于,根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径,包括:3. The method according to claim 1, wherein determining the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image comprises: 根据所述焊点图像分别提取焊盘前景图像和元器件通孔前景图像;extracting pad foreground images and component through-hole foreground images respectively according to the solder joint images; 对所述焊盘前景图像进行去噪处理后,提取焊盘边缘,并利用所述焊盘边缘进行霍夫计算,确定焊盘外圆,得到与所述焊盘外圆对应的焊盘外径;After denoising the foreground image of the pad, extract the edge of the pad, and use the edge of the pad to perform Hough calculation, determine the outer circle of the pad, and obtain the outer diameter of the pad corresponding to the outer circle of the pad ; 对所述元器件通孔前景图像进行去噪处理后,提取元器件通孔边缘,并利用所述元器件通孔边缘进行霍夫计算,确定焊盘内圆,得到与所述焊盘内圆对应的焊盘内径。After denoising the foreground image of the through hole of the component, extract the edge of the through hole of the component, and use the edge of the through hole of the component to perform Hough calculation to determine the inner circle of the pad, and obtain the inner circle of the pad. Corresponding pad inner diameter. 4.一种自动焊接工艺参数的确定装置,其特征在于,包括:4. A device for determining automatic welding process parameters, characterized in that it comprises: 焊点图像获取模块,用于获取待焊接焊点的焊点图像;Solder spot image obtaining module, is used for obtaining the spot image of spot to be welded; 焊盘内外径确定模块,用于根据所述焊点图像确定所述待焊接焊点的焊盘内径和焊盘外径;A pad inner and outer diameter determining module, configured to determine the pad inner diameter and pad outer diameter of the solder joint to be welded according to the solder joint image; 焊接工艺参数确定模块,包括:焊料体积计算单元和焊点加热时间计算单元,其中,The welding process parameter determination module includes: a solder volume calculation unit and a solder spot heating time calculation unit, wherein, 焊料体积计算单元,用于根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,分别计算所述待焊接焊点的上部焊料体积、通孔焊料体积、下部焊料体积,以及所述待焊接元器件的引脚体积;将所述上部焊料体积、所述通孔焊料体积和所述下部焊料体积的累加和,减去所述引脚体积得到的差值作为焊料需求体积;The solder volume calculation unit is used to calculate the upper solder volume of the solder joint to be soldered according to the inner diameter of the solder pad, the outer diameter of the solder pad, and the pin size of the components to be soldered, and according to the target soldering related parameters. Hole solder volume, lower solder volume, and lead volume of the component to be soldered; subtract the lead volume from the cumulative sum of the upper solder volume, the through-hole solder volume, and the lower solder volume The obtained difference is used as the required volume of solder; 焊点加热时间计算单元,用于根据所述焊料需求体积计算所述焊点加热时间;A solder joint heating time calculation unit, configured to calculate the solder joint heating time according to the required volume of solder; 所述目标焊接关联参数包括:所述待焊接焊点的上部焊料高度和熔融焊料润湿角;焊料体积计算单元,具体用于根据所述焊盘外径、所述待焊接焊点的上部焊料高度和所述熔融焊料润湿角,确定与所述待焊接焊点对应的高阶曲线形式的上部焊料轮廓线;将所述上部焊料轮廓线绕通孔中心轴旋转一周得到的旋转体的体积作为所述待焊接焊点的上部焊料体积;The target welding related parameters include: the upper solder height of the solder joint to be soldered and the wetting angle of the molten solder; a solder volume calculation unit, which is specifically used to The height and the wetting angle of the molten solder determine the upper solder contour line in the form of a high-order curve corresponding to the solder joint to be soldered; the volume of the rotating body obtained by rotating the upper solder contour line around the central axis of the through hole for one cycle as the upper solder volume of the solder joint to be soldered; 焊接工艺参数记录生成模块,用于在确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间之后,根据与所述待焊接焊点匹配的焊料需求体积和焊点加热时间,生成与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录;A welding process parameter record generating module, configured to generate a soldering point according to the required volume of solder and heating time of the soldering point matching the soldering point to be welded after determining the required volume of solder and the heating time of the soldering point matching the soldering point to be soldered A record of welding process parameters corresponding to the inner diameter of the pad, the outer diameter of the pad and the pin size of the component to be welded; 所述焊接工艺参数确定模块,具体用于如果存在与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录,则根据所述焊接工艺参数记录确定与所述待焊接焊点匹配的焊料需求体积和焊点加热时间;如果不存在与所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸对应的焊接工艺参数记录,则根据所述焊盘内径、所述焊盘外径以及待焊接元器件的引脚尺寸,按照目标焊接关联参数,计算与所述待焊接焊点匹配的焊料需求体积和焊点加热时间。The welding process parameter determination module is specifically configured to: if there is a welding process parameter record corresponding to the inner diameter of the welding pad, the outer diameter of the welding pad, and the pin size of the component to be welded, then according to the welding process parameter record Determine the required solder volume and solder spot heating time that match the solder joint to be soldered; if there is no welding process parameter record corresponding to the inner diameter of the solder pad, the outer diameter of the solder pad, and the pin size of the component to be soldered , then according to the inner diameter of the pad, the outer diameter of the pad and the pin size of the components to be welded, according to the target welding related parameters, calculate the required volume of solder and the heating time of the solder joints that match the solder joints to be soldered. 5.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1-3中任一所述的自动焊接工艺参数的确定方法。5. A computer device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the program, it realizes any of claims 1-3. A method for determining the automatic welding process parameters. 6.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-3中任一所述的自动焊接工艺参数的确定方法。6. A computer-readable storage medium, on which a computer program is stored, wherein when the program is executed by a processor, the method for determining automatic welding process parameters according to any one of claims 1-3 is realized.
CN202110152554.3A 2021-02-03 2021-02-03 Method, device, equipment and medium for determining automatic welding process parameters Active CN112935442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110152554.3A CN112935442B (en) 2021-02-03 2021-02-03 Method, device, equipment and medium for determining automatic welding process parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110152554.3A CN112935442B (en) 2021-02-03 2021-02-03 Method, device, equipment and medium for determining automatic welding process parameters

Publications (2)

Publication Number Publication Date
CN112935442A CN112935442A (en) 2021-06-11
CN112935442B true CN112935442B (en) 2023-04-28

Family

ID=76243611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110152554.3A Active CN112935442B (en) 2021-02-03 2021-02-03 Method, device, equipment and medium for determining automatic welding process parameters

Country Status (1)

Country Link
CN (1) CN112935442B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115922021A (en) 2021-08-12 2023-04-07 台达电子工业股份有限公司 Automatic solder processing system and automatic solder processing method
TWI774513B (en) * 2021-08-12 2022-08-11 台達電子工業股份有限公司 Automatic soldering processing system and automatic soldering processing method
JP7425776B2 (en) * 2021-08-17 2024-01-31 株式会社ミスミ Support system, support program and control method
CN114161075B (en) * 2022-02-14 2022-04-29 北京东方国信科技股份有限公司 Tubular workpiece synchronous rotation clamping mechanism and welding system based on visual detection
CN114980527B (en) * 2022-06-24 2024-02-09 中国科学院深圳先进技术研究院 Circuit board soldering path planning method and device and electronic equipment
CN115178909B (en) * 2022-07-11 2023-10-27 苏州汇川控制技术有限公司 Welding quality detection method and device, terminal equipment and medium
CN116252039B (en) * 2023-05-15 2023-07-28 上海耀焊科技有限公司 Intelligent control method and system for inertia friction welding machine

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6386435B1 (en) * 2000-08-11 2002-05-14 Emc Corporation Systems and methods for distributing solder paste using a tool having a solder paste aperture with a non-circular cross-sectional shape
CN105729475B (en) * 2016-04-28 2017-11-21 迈力(北京)机器人科技有限公司 Soldering tin technique storehouse method for building up and the system applied to the soldering tin technique storehouse
CN106129760B (en) * 2016-06-28 2018-10-16 湖北三江航天万峰科技发展有限公司 A kind of assembling and welding process of the multiple rows of gold-plated pin mother daughter board connector of row of high density
CN109396584B (en) * 2018-11-20 2020-10-20 武汉欣远拓尔科技有限公司 Intelligent welding method, system and device and storage medium
CN109865913B (en) * 2019-03-22 2021-04-02 北京无线电测量研究所 Path planning method for cleaning soldering bit in automatic welding

Also Published As

Publication number Publication date
CN112935442A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN112935442B (en) Method, device, equipment and medium for determining automatic welding process parameters
CN112801948B (en) Method, system and storage medium for detecting board line defect of printed circuit board
CN110211110A (en) A kind of detection method of scantling, system and terminal device
CN115564723A (en) Wafer defect detection method and application
CN115272199A (en) A PCB carrier defect detection method, system, electronic device and medium
CN113421242A (en) Deep learning-based welding spot appearance quality detection method and device and terminal
CN112184816A (en) Lithium battery flexible positioning method based on battery tabs
CN113379723A (en) Irregular glue overflow port detection method, device, equipment and storage medium
CN114841943A (en) Part detection method, device, equipment and storage medium
CN117173439A (en) GPU-based image processing methods, devices, storage media and electronic equipment
CN109657321B (en) Electronic assembly rapid process design system for printed board assembly and use method
CN112102242A (en) PCB component detection method based on lightweight network
CN118071759B (en) Method and device for detecting exposed defects of element pins and electronic equipment
CN118655084A (en) Surface defect detection method, system, electronic device and storage medium
CN114626118A (en) Building indoor model generation method and device
CN106206357B (en) Micro-chip pin direction embedded visual automatic detection system and detection method thereof
CN118840526A (en) Chip positioning method, device, electronic equipment and storage medium
CN111339729A (en) A balanced layout method, device and readable storage medium for automatically positioning screw hole positions
CN117630045A (en) A chip screening and prevention system based on machine vision
CN116993654A (en) Camera module defect detection method, device, equipment, storage medium and product
CN111250429B (en) Method and device for detecting sealing defect
CN107767372A (en) The online vision detection system of chip pin and its method that a kind of hierarchic parallel calculates
CN115294419A (en) Defect sample generation method and device, automatic optical detector and storage medium
CN111783758A (en) Character positioning method, device and automatic meter reading system
CN118967679B (en) A method for extracting appearance intelligent detection features, a computer system and a storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant