An algorithm for accurately importing PCB component coordinates based on multi-point marking

The multi-point marking algorithm calculates the oblique angle and deflection angle, and generates high-precision SMT working coordinates, solving the problem of large coordinate errors in the existing technology, improving the mounting accuracy and efficiency, and reducing manual calibration time.

CN112232015BActive Publication Date: 2024-11-22HUAWEI SILKROAD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011190776.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-11-22
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

The existing SMT patch machine equipment has large errors when generating PCB component coordinates, which require manual calibration, which takes a long time and is inefficient, and cannot effectively resist linear distortion of the XY axis of the patch machine and linear distortion of the PCB board.

Method used

Using a coordinate precision import algorithm based on multi-point marking, the angle and deflection angle of the equivalent bevel coordinate system are calculated by setting four marking points and two coordinate systems, and the sine theorem is used to generate high-precision SMT working coordinates to reduce Linear error.

Benefits of technology

It improves the generation accuracy of SMT working coordinates, reduces manual calibration time, improves mounting accuracy and efficiency, and reduces labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112232015B_ABST
    Figure CN112232015B_ABST
Patent Text Reader

Abstract

The present invention discloses a PCB component coordinate precision import algorithm based on multi-point marking, S1, first set four marking points and two coordinate systems, the PCB original coordinate system is a plane rectangular coordinate system (xOy), the angle of which is 90 degrees, the SMT working coordinate system is a plane oblique coordinate system (x'O'y'), the angle of which is θ, the conversion space system of any point N from the (xOy) coordinate system to the (x'O'y') coordinate system can be described as N'(x', y') = F(N(x, y)), the present invention relates to the technical field of SMT placement machine equipment. The PCB component coordinate precision import algorithm based on multi-point marking effectively counteracts the linear errors brought by the placement machine system and the PCB board itself, improves the generation accuracy of the SMT working coordinates, and thus improves the placement accuracy. Since the high-precision coordinates are automatically generated, no manual modification and calibration is required in the later stage, which improves the generation efficiency and reduces the labor cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of SMT placement machine equipment, and in particular to a PCB component coordinate precision import algorithm based on multi-point marking. Background Art

[0002] The chip mounter, also known as the "mounting machine" or "surface mount system", is a device that is placed after the dispensing machine or screen printer in the production line. It is a device that accurately places surface mount components on the PCB pads by moving the mounting head. It is divided into manual and fully automatic. It is a device used to place components at high speed and high precision. It is the most critical and complex equipment in the entire SMI production. The chip mounter is a chip mounter used in the production of SMT. Now, the chip mounter has developed from the early low-speed mechanical chip mounter to the high-speed optical centering chip mounter, and has developed towards multi-functional, flexible connection modularization.

[0003] The coordinates of the PCB components mounted by the SMT machine are the coordinates of the components in the coordinate system of the SMT machine equipment, which are called SMT working coordinates, rather than the coordinates directly generated by the PCB drawing software, which are called PCB original coordinates. The SMT working coordinates are generated by the PCB original coordinates. The specific operation is to put an actual PCB board into the mounting area of ​​the SMT machine, fix the clamp, select the marked point component, determine the PCB original coordinates, save the SMT working coordinates of the current component, and then generate the SMT working coordinates of all components from the PCB original coordinates of the selected marked point and the SMT working coordinates.

[0004] The existing method is to select 2 marking points for calculation. This method will cause the generated SMT work coordinates to have a large error, and the larger the PCB board, the greater the error. This error comes from two aspects of linear errors. The first is the mechanical installation error of the XY guide rail of the placement machine. The placement machine will try its best to ensure that the XY axis is vertical when it leaves the factory, but since the mechanical installation cannot guarantee absolute verticality, it will be obvious on larger PCB boards. The second is the linear error of the PCB itself. Because the PCB production process, especially the XY axis of the printed pad equipment, cannot guarantee absolute verticality, the position of the produced PCB pad also has a certain linear error.

[0005] The original PCB coordinates are directly generated by the drawing software and exist in an absolute plane rectangular coordinate system; while the SMT working coordinates actually exist in a plane oblique coordinate system. The two marking points cannot form a true correspondence, nor can they describe the oblique angle of the SMT working coordinate system. Therefore, the existing methods cannot counter the errors caused by the linear distortion of the XY axis of the placement machine and the linear distortion of the PCB board. Summary of the invention

[0006] In view of the shortcomings of the prior art, the present invention provides a PCB component coordinate precise import algorithm based on multi-point marking, which solves the problems that the prior art generates large coordinate errors, requires manual modification and calibration at a later stage, is time-consuming, inefficient, and easily misses detection, resulting in losses.

[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: a PCB component coordinate accurate import algorithm based on multi-point marking, specifically comprising the following steps:

[0008] S1. First, set four marking points and two coordinate systems. The original PCB coordinate system is a plane rectangular coordinate system (xOy) with an angle of 90 degrees. The SMT working coordinate system is a plane oblique coordinate system (x'O'y') with an angle of θ. The conversion space system of any point N from the (xOy) coordinate system to the (x'O'y') coordinate system can be described as N'(x', y') = F(N(x, y));

[0009] S2. Calculate the angle θ of the equivalent oblique coordinate system and the deflection angle β of the PCB board from the x-axis direction according to three points of the four-point mark. Use the angle difference of the three marking points ∠ADC and ∠A'D'C' to calculate the angle difference of the oblique coordinate system. Further calculate the equivalent angle θ of the oblique coordinate system. From the deflection angle difference of the sides DC and D'C', the deflection angle β of the actual placement of the PCB board can be calculated.

[0010] S3. Calculate the coordinates (xn', yn') of any point N (xn, yn) in the PCB original coordinate system (xoy) and in the SMT working coordinate system (x'O'y') according to the coordinates (x0, y0) of the fourth known point M in the PCB original coordinate system (xoy) and in the SMT working coordinate system (x'O'y');

[0011] S4. According to the angle θ of the oblique coordinate system calculated in step S2 and the deflection angle β of the PCB board from the x-axis direction, let a=xn-x0, b=yn-y0, and apply the sine theorem in the triangle △PQN: PN / sin(π-θ)=PQ / sin(θ-β)=QN / sin(β). The final calculation result is: xn'=x0'+(xn-x0-(yn-y0)*ctg(θ-β))*sin(θ-β) / sin(π-θ), yn'=y0'+(xn-x0-(yn-y0)*ctg(θ-β))*sin(β) / sin(π-θ)+(yn-y0) / sin(θ-β). The four marking points are used to completely describe the linear error system N'(x', y')=F(N(x, y)). Therefore, the SMT working coordinates can be accurately generated according to the original PCB coordinates.

[0012] Preferably, the algorithm outputs a result that is a list of SMT work coordinates of all imported components.

[0013] Preferably, at least four or more marking points are selected in step S1.

[0014] Preferably, the algorithm needs to be integrated into the control system software of the placement machine host computer for use.

[0015] Preferably, when in use, the software human-computer interaction interface on the placement machine control system needs to open a PCB original coordinate file, and place an actual PCB board into the placement area of ​​the placement machine and fix it with a splint.

[0016] Beneficial Effects

[0017] The present invention provides a PCB component coordinate accurate import algorithm based on multi-point marking. Compared with the prior art, it has the following beneficial effects:

[0018] (1) This PCB component coordinate precise import algorithm based on multi-point marking effectively counteracts the linear errors caused by the placement machine system and the PCB board itself, improves the generation accuracy of the SMT work coordinates, and thus improves the placement accuracy.

[0019] (2) This PCB component coordinate accurate import algorithm based on multi-point marking automatically generates high-precision coordinates, which does not require manual modification and calibration at a later stage, thereby improving generation efficiency and reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a corresponding relationship diagram between the PCB original coordinate system and the SMT working coordinate system of the present invention;

[0021] Figure 2 The figure is calculated for the main body of the algorithm of the present invention. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] See also Figure 1-2 The present invention provides a technical solution: a PCB component coordinate accurate import algorithm based on multi-point marking, which specifically includes the following steps:

[0024] S1. First, set four marking points and two coordinate systems. The original PCB coordinate system is a plane rectangular coordinate system (xOy) with an angle of 90 degrees. The SMT working coordinate system is a plane oblique coordinate system (x'O'y') with an angle of θ. The conversion space system of any point N from the (xOy) coordinate system to the (x'O'y') coordinate system can be described as N'(x', y') = F(N(x, y));

[0025] S2. Calculate the angle θ of the equivalent oblique coordinate system and the deflection angle β of the PCB board from the x-axis direction according to three points of the four-point mark. Use the angle difference of the three marking points ∠ADC and ∠A'D'C' to calculate the angle difference of the oblique coordinate system. Further calculate the equivalent angle θ of the oblique coordinate system. From the deflection angle difference of the sides DC and D'C', the deflection angle β of the actual placement of the PCB board can be calculated.

[0026] S3. Calculate the coordinates (xn', yn') of any point N (xn, yn) in the PCB original coordinate system (xoy) and in the SMT working coordinate system (x'O'y') according to the coordinates (x0, y0) of the fourth known point M in the PCB original coordinate system (xoy) and in the SMT working coordinate system (x'O'y');

[0027] S4. According to the angle θ of the oblique coordinate system calculated in step S2 and the deflection angle β of the PCB board from the x-axis direction, let a=xn-x0, b=yn-y0, and apply the sine theorem in the triangle △PQN: PN / sin(π-θ)=PQ / sin(θ-β)=QN / sin(β). The final calculation result is: xn'=x0'+(xn-x0-(yn-y0)*ctg(θ-β))*sin(θ-β) / sin(π-θ), yn'=y0'+(xn-x0-(yn-y0)*ctg(θ-β))*sin(β) / sin(π-θ)+(yn-y0) / sin(θ-β). The four marking points are used to completely describe the linear error system N'(x', y')=F(N(x, y)). Therefore, the SMT working coordinates can be accurately generated according to the original PCB coordinates.

[0028] In the present invention, the result output by the algorithm is a list of SMT work coordinates of all imported components.

[0029] In the present invention, at least four or more marking points are selected in step S1.

[0030] In the present invention, the algorithm needs to be integrated in the control system software of the placement machine host computer for use.

[0031] In the present invention, when in use, the software human-machine interaction interface on the placement machine control system needs to open a PCB original coordinate file, and place an actual PCB board into the placement area of ​​the placement machine and fix it with a clamp.

[0032] When in use, this algorithm needs to be integrated into the upper computer control system software of the placement machine. Open a PCB original coordinate file in the human-computer interaction interface of the placement machine control system software, place an actual PCB board into the placement area of ​​the placement machine, and fix it with a clamp. Specify 4 marking points, save their PCB original coordinates and coordinates in the SMT working coordinate system respectively, and then run the above algorithm to finally output the coordinate list of all components in the SMT working coordinate system.

[0033] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0034] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for accurately importing PCB component coordinates based on multi-point marking, characterized in that: The specific steps include: S1. First, set four marking points and two coordinate systems. The original PCB coordinate system is a plane rectangular coordinate system xoy, whose angle is 90 degrees. The SMT working coordinate system is a plane oblique coordinate system x'o'y', whose angle is θ. The transformation space system of any point N from the xoy coordinate system to the x'o'y' coordinate system is described as N'(x', y') = F(N(x, y)); S2. Calculate the angle θ of the equivalent oblique coordinate system and the deflection angle β of the PCB board from the x-axis direction according to three points in the four-point mark, calculate the angle difference of the oblique coordinate system using the angle difference of the three marking points ∠ADC and ∠A'D'C', further calculate the equivalent angle θ of the oblique coordinate system, and calculate the deflection angle β of the actual placement of the PCB board from the deflection angle difference of the sides DC and D'C'; S3. Calculate the coordinates (xn, yn) of any point N in the plane rectangular coordinate system xoy and its coordinates (xn', yn') in the plane oblique coordinate system based on the coordinates (x0, y0) of the fourth known point M in the plane rectangular coordinate system xoy and its coordinates (x0', y0') in the plane oblique coordinate system x'o'y'; S4. According to the angle θ of the oblique coordinate system calculated in step S2 and the deflection angle β of the PCB board from the x-axis, let a = xn-x0, b = yn-y0, and apply the sine theorem in the triangle △PQN': PN' / sin(π-θ) = PQ / sin(θ-β) = QN' / sin(β), and the final calculation result is: xn'=x0'+(xn-x0-(yn-y0)*ctg(θ-β))*sin(θ-β) / sin(π-θ), yn'=y0'+(xn-x0-(yn-y0)*ctg(θ-β))*sin(β) / sin(π-θ)+(yn-y0) / sin(θ-β), and 4 marking points are used to completely describe the system's linear error system N'(x', y')=F(N(x, y)), so the SMT working coordinates are accurately generated based on the original PCB coordinates.

2. The method for accurately importing PCB component coordinates based on multi-point marking according to claim 1, characterized in that: The output of the method is a list of SMT work coordinates of all imported components.

3. The method for accurately importing PCB component coordinates based on multi-point marking according to claim 1, characterized in that: In step S1, at least four or more marking points are selected.

4. The method for accurately importing PCB component coordinates based on multi-point marking according to claim 1, characterized in that: This method needs to be integrated into the placement machine host control system software for use.

5. The method for accurately importing PCB component coordinates based on multi-point marking according to claim 1, characterized in that: When in use, the software human-computer interaction interface on the placement machine control system needs to open a PCB original coordinate file, place an actual PCB board into the placement area of ​​the placement machine, and fix it with a clamp.