Adjusting method of circuit board processing equipment and circuit board processing equipment
The distance information between the circuit board and the image acquisition unit is collected through sensors, the information conversion relationship is established, and the focus of the circuit board processing equipment is automatically adjusted, which solves the problem of manual focal length adjustment in the prior art, and improves the operation efficiency of the circuit board processing equipment and Image definition.
Patent Information
- Application Number
- CN202310651890.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-02
- Publication Date
- 2024-12-03
AI Technical Summary
When handling circuit boards of different thicknesses, existing circuit board processing equipment needs to manually adjust the focal length of the camera, resulting in cumbersome operation and inefficient efficiency.
The sensor collects the relative distance information between the circuit board and the image acquisition unit, establishes an information conversion relationship, and automatically adjusts the height of the image acquisition unit to achieve focus.
Automatic adjustment of focus parameters is achieved, focusing efficiency is improved, manual intervention is reduced, and image acquisition is ensured.
Smart Images

Figure CN119072007A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit board processing, and in particular to a method for adjusting circuit board processing equipment. The present invention also relates to circuit board processing equipment. Background Art
[0002] With the development of electronic technology, electronic products are constantly developing towards miniaturization, lightness and multi-functionality. In order to meet these needs, circuit boards need to be processed, such as cutting and drilling. When the circuit board is placed on a circuit board processing device (such as a CCD molding machine or a CCD drilling machine) to collect images, due to the different thicknesses of the circuit boards, there will be a defocus problem caused by the change in the board surface height. The technicians need to manually adjust the focal length of the camera on the circuit board processing equipment to ensure that the object distance of the optical system remains roughly unchanged, so that the camera can capture a clear image of the circuit board surface. The purpose of focusing is achieved by manual adjustment, which is a cumbersome process and has low efficiency in processing the circuit board. Therefore, a new method for adjusting circuit board processing equipment is urgently needed to solve the above problems. Summary of the invention
[0003] In view of this, the embodiment of the present application provides a method for adjusting a circuit board processing device. The present application also relates to a circuit board processing device to solve the above problems existing in the prior art.
[0004] According to a first aspect of an embodiment of the present application, a method for adjusting a circuit board processing device is provided, wherein the circuit board processing device comprises an image acquisition unit, a workbench, and a sensor, and the workbench is provided with a circuit board to be processed, and the method comprises:
[0005] Based on the distance information collected by the sensor, determine the relative distance information between the image acquisition unit and the circuit board to be processed;
[0006] Based on an information conversion relationship, the relative distance information is converted into target height information of the image acquisition unit, wherein the target height information is height information of the image acquisition unit based on the circuit board processing equipment, and the information conversion relationship is determined based on a plurality of reference relative distance information and a plurality of reference target height information;
[0007] The height of the image acquisition unit is adjusted based on the target height information.
[0008] According to a second aspect of an embodiment of the present application, a method for adjusting circuit board processing equipment is provided, comprising:
[0009] Based on the distance information collected by the sensor, determine the relative distance information between the image acquisition unit and the circuit board to be processed;
[0010] Based on the information conversion relationship, the relative distance information is converted into the target height information of the image acquisition unit;
[0011] The height of the image acquisition unit is adjusted based on the target height information.
[0012] According to a third aspect of an embodiment of the present application, a circuit board processing device is provided, comprising:
[0013] A workbench for carrying circuit boards;
[0014] A spindle assembly is arranged above the workbench and is suitable for processing a circuit board. The spindle assembly comprises: an image acquisition unit for acquiring an image of the circuit board; a sensor for acquiring distance information from the sensor to the circuit board;
[0015] The control module is used to determine the relative distance information between the image acquisition unit and the circuit board according to the distance information, convert the relative distance information into the target height information of the image acquisition unit based on the information conversion relationship, and adjust the height of the image acquisition unit based on the target height information.
[0016] The present application provides an adjustment method for circuit board processing equipment, wherein the circuit board processing equipment includes an image acquisition unit, a workbench, and a sensor, wherein the workbench is used to place a circuit board to be processed, and the method includes: determining the relative distance information between the image acquisition unit and the circuit board to be processed based on the distance information acquired by the sensor; converting the relative distance information into target height information of the image acquisition unit based on an information conversion relationship, wherein the target height information is height information of the image acquisition unit based on the circuit board processing equipment, and the information conversion relationship is determined based on multiple reference relative distance information and multiple reference target height information; and adjusting the height of the image acquisition unit based on the target height information.
[0017] An embodiment of the present application realizes the pre-establishment of an information conversion relationship. After obtaining the relative distance information between the image acquisition unit and the circuit board to be processed, the target height information that can be recognized by the control system of the circuit board processing equipment is obtained based on the information conversion relationship, and then the height of the image acquisition unit is adjusted based on the target height information, thereby ensuring the clarity of the image captured by the image acquisition unit and realizing the effect of automatically adjusting the focusing parameters. There is no need for manual adjustment by technical personnel, thereby improving the focusing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a schematic diagram of a circuit board processing device provided by an embodiment of the present application;
[0019] Figure 2 It is a front view of a circuit board processing device provided by an embodiment of the present application;
[0020] Figure 3 This is a flow chart of a method for adjusting circuit board processing equipment provided in one embodiment of the present application.
[0021] Figure 1-Figure 2 The one-to-one correspondence between the component names and the reference numerals is as follows:
[0022] 10. Spindle assembly; 20. Workbench; 21. Circuit board;
[0023] 11. Spindle; 12. Image acquisition unit; 13. Sensor; 14. Base plate; 15. Slide; 16. Light source; 17. Bracket; 121. Camera; 122. Lens; 110. Tool. DETAILED DESCRIPTION
[0024] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0025] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.
[0026] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0027] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0028] At present, in vision-based circuit board processing equipment, the board surface height of the circuit board to be processed is consistent with the height of the target point (reference point) to be captured by the image acquisition part in the circuit board processing equipment. The image information of the board surface height is collected by the image acquisition part, and the actual position information of the board surface is determined based on the image information, thereby controlling the spindle to perform corresponding processing on the circuit board to be processed.
[0029] However, in actual applications, there are often application scenarios where the height of the circuit board surface changes. For example, the thickness of the processed circuit board itself changes, or the board height changes caused by the addition of cover plates, pads, bakelite plates, etc. In order to effectively deal with the camera defocus problem caused by the change in board height, technicians are required to manually adjust the focusing plane of the camera of the circuit board processing equipment, that is, the technicians manually control the height of the image acquisition part to ensure that the object distance of the optical system in the circuit board processing equipment remains approximately unchanged while ensuring the clarity of the image information.
[0030] During the manual adjustment process by the technician, the technician needs to manually operate the application program (Computer-numerical-control, computer numerical control machine tool), specifically by moving the Z-axis of the circuit board processing equipment to observe the clarity of the image taken by the image acquisition unit until the clarity meets the working conditions, thereby recording the Z-axis height at this time and manually setting the parameter "CAMQ" in the CNC system. The CAMQ parameter is the Z-axis direction height that controls the image acquisition unit to take pictures in the CNC system.
[0031] In the CNC system, after setting the height in the Z-axis direction, the circuit board processing equipment can be controlled to perform corresponding operations on the circuit board to be processed. The above-mentioned manual operation process of adjusting the CAMQ parameters is relatively cumbersome, and the manual focusing process of the technicians takes a long time, and the operation efficiency is low.
[0032] In the present application, a method for adjusting circuit board processing equipment is provided. The present application also relates to circuit board processing equipment, which will be described in detail one by one in the following embodiments.
[0033] A circuit board processing device includes a base, a crossbeam, a spindle assembly, a workbench, etc. The workbench is arranged on the base and moves along the second direction, the crossbeam is mounted above the workbench, and a plurality of spindle assemblies are slidably connected to the crossbeam along the first direction; each spindle assembly holds a tool at the bottom end, and the tool moves along the third direction to process the circuit board carried on the workbench; the first direction, the second direction, and the third direction are perpendicular to each other. In the contextual embodiment of the present invention, the circuit board processing device can be implemented as a drilling device, a forming device, a gong machine device, a drilling and gonging integrated device, etc., which is not limited here.
[0034] See also Figure 1 , Figure 1 A schematic diagram of a circuit board processing device provided by an embodiment of the present application is shown. Figure 2 is a front view of a circuit board processing device provided by an embodiment of the present application, such as Figure 1 and Figure 2 As shown, the circuit board processing equipment includes:
[0035] A workbench 20, used for carrying a circuit board 21;
[0036] The spindle assembly 10 is disposed above the workbench 20 to process the circuit board 21. The spindle assembly 10 includes:
[0037] An image acquisition unit 12, used to acquire an image of a circuit board 21 located on a workbench 20;
[0038] The sensor 13 is used to collect distance information from the sensor 13 to the circuit board 21;
[0039] The control module is used to determine the relative distance information between the image acquisition unit 12 and the circuit board 21 according to the distance information collected by the sensor 13, convert the relative distance information into the target height information of the image acquisition unit 12 based on the information conversion relationship, and adjust the height of the image acquisition unit 12 based on the target height information.
[0040] In actual applications, the circuit board processing equipment provided by the present application includes a workbench 20, which is used to place a circuit board 21 to be processed. When the circuit board 21 is placed on the workbench 20, an image acquisition unit 12 will acquire image information of the circuit board 21, and a control module will determine the actual position information of the circuit board 21 based on the image information, and then determine how to perform corresponding operations on the circuit board 21.
[0041] The sensor 13 is used to measure the distance information from the sensor 13 to the circuit board 21. The distance information specifically refers to the relative distance information between the sensor 13 and the circuit board 21. Then, through the positional relationship between the sensor 13 and the image acquisition unit 12, the acquired distance information is converted into the relative distance information between the image acquisition unit 12 and the circuit board 21.
[0042] Furthermore, when the sensor 13 and the image acquisition unit 12 are located in the same horizontal plane, the distance information collected by the sensor 13 is the relative distance information between the image acquisition unit 12 and the circuit board 21; when the sensor 13 and the image acquisition unit 12 are located in different horizontal planes, the distance information collected by the sensor 13 is combined with the offset distance information between the sensor 13 and the image acquisition unit 12 to determine the relative distance information between the image acquisition unit 12 and the circuit board 21.
[0043] When the image information collected by the image acquisition unit 12 is unclear, the control module cannot determine the actual position information of the circuit board. Therefore, it is necessary to focus the image acquisition unit 12 so that the image acquisition unit can collect a clear image of the circuit board. Based on this, the control module needs to further determine the relative distance information between the image acquisition unit 12 and the circuit board 21 based on the distance information collected by the sensor 13, and then convert the relative distance information into target height information that can be directly operated by the control module. The target height information can specifically guide the control module to adjust the height of the image acquisition unit 12 according to the target height information, so that the image acquisition unit 12 can focus on the circuit board and capture a clear circuit board image.
[0044] In a specific embodiment provided in the present application, the spindle assembly 10 also includes a base plate 14, and the image acquisition unit 12 and the sensor 13 are arranged on the base plate 14. The base plate 14 is constructed to drive the spindle assembly 10 to move along the second direction on the beam to adjust the position of the spindle assembly 10 in the second direction.
[0045] A base plate 14 is also provided in the circuit board processing equipment, and the image acquisition unit and the sensor 13 are both provided on the base plate 14. The control module can drive the spindle assembly 10 to move along the second direction on the beam by controlling the base plate 14, thereby adjusting the position of the spindle assembly 10 in the second direction.
[0046] In a specific embodiment provided in the present application, the sensor 13 is fixed on the bottom plate 14 via a bracket 17. The bracket 17 is specifically used to fix the sensor 13 on the bottom plate 14.
[0047] In a specific embodiment provided in the present application, the image acquisition unit 12 includes a camera 121 and a lens 122 connected to the camera 121 and configured to extend in the height direction; the height of the bottom of the lens 122 is flush with the height of the sensor 13. The camera 121 and the lens 122 can be fixed on a slide 15, and the slide 15 can move up and down relative to the bottom plate 14, thereby adjusting the height of the image acquisition unit 12.
[0048] In practical applications, the image acquisition unit 12 may further include a camera 121 and a lens 122 connected to the camera and extending in the height direction, and the camera 121 photographs the circuit board 21 located on the workbench 20 through the lens 122 .
[0049] Furthermore, the height of the bottom of the lens 122 can be flush with the height of the sensor 13 , so that the distance information collected by the sensor 13 can be directly used as the relative distance information between the image acquisition unit 12 and the circuit board 21 .
[0050] In addition, a slide 15 may be provided on the bottom plate 14, and the camera 121 and the lens 122 are connected by threads and fixedly connected to the slide 15 together. By controlling the slide 15, the slide 15 is moved up and down relative to the bottom plate 14, thereby controlling the image acquisition unit 12 to move up and down. By providing the slide 15, in the process of controlling the image acquisition unit 12 to move up and down, it is possible to move the slide 15 without moving the bottom plate 14, so that the operation is simpler and the energy consumption is lower.
[0051] In a specific embodiment provided in the present application, the spindle assembly 10 further includes a spindle 11 disposed on the base plate 14 , and the spindle 11 is configured to process the circuit board 21 .
[0052] Specifically, a spindle 11 is also provided on the base plate 14. The spindle 11 processes the circuit board 21 in response to the instructions of the control module. In actual applications, the spindle 11 can be relatively fixed to the base plate 14. The tool 110 clamped by the spindle 11 moves up and down along the third direction, thereby controlling the spindle 11 to process the circuit board 21.
[0053] In another specific embodiment provided in the present application, the main shaft 11 can also be slidably fixed on the bottom plate 14 , and the main shaft 11 can move up and down relative to the bottom plate 14 .
[0054] In a specific embodiment provided in the present application, the spindle assembly 10 further includes a light source 16 disposed on the base plate 14 , and the light source 16 is configured to provide illumination light for image acquisition by the image acquisition unit 12 .
[0055] In actual applications, when technicians are operating circuit board processing equipment to work on circuit boards, there may be insufficient lighting in the processing workshop, and the images captured by the image acquisition unit may not be clear. Therefore, a light source 16 may be provided on the base plate 14 to provide illumination for the image acquisition unit 12 when performing image capture, so that the images captured by the image acquisition unit 12 can be clearer.
[0056] In a specific embodiment provided in the present application, the sensor 13 is fixed to the light source 16 via a bracket 17. The light source 16 is fixed to the bottom plate 14, and the sensor 13 is fixed to the light source via the bracket, without directly fixing the sensor to the bottom plate 14 via the bracket, which can reduce manufacturing costs.
[0057] Figure 3 A flow chart of a method for adjusting a circuit board processing device according to an embodiment of the present application is shown. The method is a circuit board processing device, which includes an image acquisition unit, a workbench, and a sensor. A circuit board to be processed that needs to be subjected to a corresponding operation is placed on the workbench. The method specifically includes the following steps:
[0058] Step 302: Based on the distance information collected by the sensor, determine the relative distance information between the image acquisition unit and the circuit board to be processed.
[0059] See the schematic diagram of the circuit board processing equipment above. Figure 1 ,like Figure 1 As shown, the circuit board processing equipment includes an image acquisition unit 12, a workbench 20, and a sensor 13. During the operation of the circuit board processing equipment, a circuit board 21 to be processed is placed on the workbench 20 and can be processed by the spindle 11 of the circuit board processing equipment.
[0060] Before the circuit board processing equipment processes the circuit board to be processed, the image acquisition unit needs to collect the circuit board image of the circuit board to be processed, and determine the actual position information of the circuit board to be processed through the circuit board image to avoid misoperation of the circuit board to be processed due to placement errors and other reasons, thereby avoiding damage to the circuit board.
[0061] In actual operation, the height of the board surface changes due to the different thickness of the circuit board to be processed, or due to the addition of cover plates, pads, bakelite boards, etc. The image acquisition unit in the circuit board processing equipment is a fixed-focus device. The change in the board surface height will cause the image acquired by the image acquisition unit to be unclear, which is not conducive to subsequent processing.
[0062] In this case, the technician can trigger an instruction to adjust the focus, for example, by clicking a focus button in the application of the circuit board processing equipment to send a focus instruction to the circuit board processing equipment, so that the circuit board processing equipment calls the sensor to collect the distance information between the sensor and the circuit board to be processed based on the focus instruction, and further determines the relative distance information between the image acquisition unit and the circuit board to be processed based on the distance information.
[0063] In practical applications, the sensor can be specifically a distance sensor or a displacement sensor, a laser sensor or a photoelectric sensor. The sensor can transmit a signal to the circuit board to be processed, record the signal transmission time point, and receive the reflected signal returned from the circuit board to be processed, and record the signal reflection time point. The signal duration is determined according to the signal reflection time point and the signal transmission time point, and then according to the signal transmission speed, the distance information between the sensor and the circuit board to be processed can be determined, that is, the distance information between the sensor and the circuit board to be processed collected by the sensor.
[0064] Furthermore, the relative distance information between the image acquisition unit and the circuit board to be processed is determined based on the distance information. For example, relative to the board surface of the circuit board, in the third direction, the sensor is higher than the image acquisition unit by a distance h1, and the distance information of the sensor is h2, then the relative distance information between the image acquisition unit and the circuit board to be processed is h2-h1.
[0065] Step 304: Based on the information conversion relationship, convert the relative distance information into target height information of the image acquisition unit.
[0066] The target height information is the height information of the image acquisition unit based on the circuit board processing equipment, and the information conversion relationship is determined based on a plurality of reference relative distance information and a plurality of reference target height information.
[0067] The information conversion relationship specifically refers to a conversion formula that can convert relative distance information into height information in the circuit board processing equipment. In practical applications, the relative distance information is only the position information between the image acquisition unit and the circuit board to be processed. If the image acquisition unit of the circuit board processing equipment is controlled to move accordingly, the relative distance information needs to be converted into target height information that can be recognized and used by the circuit board processing equipment.
[0068] The target height information specifically refers to the parameter information used to control the height of the image acquisition unit in the control system of the circuit board processing equipment. In the application, taking the CNC system as an example, the parameter "CAMQ" in the CNC system is the parameter for controlling the height of the image acquisition unit in the Z-axis direction. The CNC system can control the movement of the image acquisition unit according to the CAMQ parameter, but the CNC system cannot control the movement of the image acquisition unit according to the relative distance information between the image acquisition unit and the circuit board to be processed. Therefore, it is necessary to convert the relative distance information that the CNC system cannot recognize into the target height information that the CNC system can recognize.
[0069] It should be noted that in the process of calculating the target height information based on the relative distance information, the current position information of the image acquisition unit can also be referred to. The current position information of the image acquisition unit specifically refers to the distance from the image acquisition unit to the workbench, and this distance information can be determined in the CNC system. Based on the current position information and the relative distance information, the height information of the upper surface of the circuit board to be processed from the workbench can be determined, and based on the height information, the target height information of the image acquisition unit can be further determined.
[0070] In practical applications, the information conversion relationship can be determined based on multiple reference relative distance information and multiple reference target height information, and the reference relative distance information and the reference target height information specifically refer to the information used to fit and generate the information conversion relationship in the process of determining the information conversion relationship. Furthermore, through multiple settings, reference information pairs of reference relative distance information and reference target height information corresponding to multiple height scenes can be obtained, and the information conversion relationship can be fitted based on multiple reference information pairs.
[0071] Specifically, in the first embodiment of the present invention, the information conversion relationship is determined by the image definition, and the following steps are performed:
[0072] S3040. Determine a reference plane based on the workbench.
[0073] Among them, the reference plane specifically refers to the horizontal plane for determining the reference relative distance information and the reference target height information for the current time. For example, a plane corresponding to a certain height above the workbench is determined as the reference plane. In practical applications, in order to make the final fitted information conversion relationship more accurate, multiple experiments can be used to obtain multiple reference relative distance information and corresponding reference target height information. In this embodiment, taking one of them as an example, the setting can be repeated multiple times until a reference data pair that meets the fitting requirements is obtained.
[0074] Specifically, determining a reference plane based on the workbench includes:
[0075] Get the adjusted height information;
[0076] A reference plane is determined based on the workbench and the adjusted height information.
[0077] Among them, the adjustment height information specifically refers to the height information that needs to be adjusted based on the workbench. For example, taking the plane of the workbench as a reference, if the vertical height of the workbench rises by 1 cm, then the 1 cm is the adjustment height information; if the vertical height of the workbench rises by 5 cm, then the 5 cm is the adjustment height information.
[0078] In practical applications, the reference plane can be determined on the basis of the workbench by placing circuit boards, cover boards, pads, and bakelite boards on the workbench. Taking the placement of circuit boards as an example, if the thickness of the circuit board is 1 cm, the height information is adjusted to 1 cm, and the upper surface of the circuit board is determined as the reference plane.
[0079] S3042. Determine reference target height information of the image acquisition unit according to the adjustment instruction sent by the user, and obtain a reference image for the reference plane acquired by the image acquisition unit at the reference target height information.
[0080] After the reference plane is determined, that is, the acquisition plane of the image acquisition unit is determined, at this time, it is necessary to ensure that the image acquisition unit can capture a clear picture. Therefore, the technician issues an adjustment instruction to adjust the reference target height information of the image acquisition unit, and the image acquisition unit acquires a reference image for the reference plane at the reference target height information.
[0081] For example, taking the CNC system as an example, the technician controls the CNC system, adjusts the Z axis of the CNC system (reference target height information), and uses the image acquisition unit to acquire a reference image of the reference plane captured at the reference target height information.
[0082] S3044: When the reference image meets a preset image acquisition condition, collect reference relative distance information between the image acquisition unit and the reference plane.
[0083] Since the height of the reference plane has changed, the technician needs to manually adjust the height of the image acquisition unit so that the image acquisition unit can refocus on the reference plane, so that the reference image corresponding to the reference plane captured can meet the preset image acquisition conditions. That is, after the technician manually adjusts, the reference image collected by the image acquisition unit meets the preset image acquisition conditions, which means that the height at this time is suitable for subsequent work, and the technician can perform corresponding processing based on the collected reference image. At this time, the reference relative distance information between the image acquisition unit and the reference plane can be obtained according to the sensor.
[0084] In a specific implementation provided in the present application, determining that a reference image meets preset image acquisition conditions can be determined by a technician observing that the clarity of the reference image meets subsequent working conditions, thereby determining that the reference image meets the preset image acquisition conditions.
[0085] Determining whether the reference image meets the preset image acquisition conditions through the observation of technicians is limited by the technical level of each technician and depends on the experience of the technician. Therefore, a neural network model can also be combined to determine whether the reference image meets the image acquisition conditions through a visual algorithm. Specifically, a reference target is set on the reference plane; the method also includes:
[0086] determining the image clarity of the reference image based on the reference target;
[0087] When the image clarity is greater than a preset threshold, it is determined that the reference image meets a preset image acquisition condition.
[0088] The reference target point specifically refers to a point set on the reference plane for locating the reference plane. The reference target point is generally a through hole or copper pad on a copper-clad laminate or PCB circuit board. The reference target point can be used to locate the circuit board.
[0089] Since a reference target is set on the reference plane, the captured reference image also includes the reference target. The image clarity of the reference image is determined based on the reference target. Further, the image clarity of the reference image is determined based on the reference target, including:
[0090] inputting the reference image into an image analysis model;
[0091] The image clarity output by the image analysis model based on the reference target in the reference image is obtained.
[0092] There will be errors when technicians observe the clarity of the image with their naked eyes. Analyzing the reference image based on the image analysis model can obtain more accurate and objective analysis results. After the reference image is input into the image analysis model, the image analysis model analyzes the reference image, specifically, the reference target in the reference image is analyzed to determine the image clarity of the reference image.
[0093] When the image clarity of the reference image output by the image analysis model is greater than a preset threshold, it can be determined that the reference image meets the preset image acquisition condition.
[0094] When it is determined that the reference image meets the preset image acquisition conditions, the reference relative distance information under the current situation can be acquired. Thus, the corresponding relationship between the reference relative distance information and the reference target height information is recorded. Specifically, when the reference image meets the preset image acquisition conditions, the reference relative distance information between the image acquisition unit and the reference plane is acquired, including:
[0095] When the reference image meets the preset image acquisition condition, triggering a distance acquisition instruction;
[0096] The sensor collects reference relative distance information between the image acquisition unit and the reference plane based on the distance acquisition instruction.
[0097] Among them, the distance acquisition instruction specifically refers to the instruction used to instruct the sensor to collect data. In actual applications, when the reference image meets the preset image acquisition conditions, the technician can click the acquisition button in the CNC system to trigger the distance acquisition instruction and send the distance acquisition instruction to the sensor. The sensor responds to the distance acquisition instruction to collect the reference relative distance information between the image acquisition unit and the reference plane.
[0098] In a specific embodiment provided in the present application, a technician places a circuit board A on a workbench, and manually adjusts the Z-axis of the CNC system to adjust the object distance of the image acquisition unit so that the image acquisition unit can capture a clear reference image. At the same time, the Z-axis information at this time is recorded as the CAMQ value, that is, the reference target height information. In addition, the reference relative distance information H from the graphics acquisition device to the circuit board A at this time is measured by a sensor.
[0099] S3046. Generate a reference sample pair according to the reference relative distance information and the reference target height information.
[0100] After a set of reference relative distance information and reference target height information is determined, the two can be recorded as a set of reference sample pairs.
[0101] In a specific implementation provided in the present application, following the above example, reference relative distance information H and reference target height information CAMQ are obtained, and the two generate a reference sample pair (H, CAMQ).
[0102] S3048. Determine an information conversion relationship based on multiple reference sample pairs.
[0103] After determining a reference sample pair, multiple reference sample pairs can be obtained by adding pads of different thicknesses and repeating the above steps, and information conversion relationships can be generated based on the multiple reference sample pairs.
[0104] In a specific implementation provided by the present application, following the above example, multiple reference sample pairs (H, CAMQ) are obtained by adding pads. Based on the multiple reference sample pairs (H, CAMQ), an information conversion relationship can be generated by fitting.
[0105] This information conversion relationship is used to calculate the corresponding target height information based on the relative distance information.
[0106] Specifically, determining the information conversion relationship based on multiple reference sample pairs includes:
[0107] Based on multiple reference sample pairs and preset fitting rules, a linear information conversion relationship is generated by fitting.
[0108] In practical applications, by adjusting the height of the reference sample pair, it is a discrete reference sample pair, and it is impossible to exhaust all the reference relative distance information. Therefore, multiple reference sample pairs can be fitted with a linear information conversion relationship through preset fitting rules.
[0109] In a specific implementation provided by the present application, following the above example, after obtaining multiple reference sample pairs (H, CAMQ), the H-CAMQ function is generated based on the least squares fitting method, and the information conversion relationship is generated as CAMQ=f(H), and the information conversion relationship is saved in the CNC system. After the sensor collects the relative distance information H, the CAMQ corresponding to H can be found based on the information conversion relationship CAMQ=f(H). That is, according to the information conversion relationship, the relative distance information that cannot be recognized in the CNC system can be converted into the target height information that can be recognized by the CNC system.
[0110] In a second embodiment of the present invention, the information conversion relationship is determined by the image focusing degree. This embodiment is the same as the above embodiment except that: this embodiment determines the target height information by the image focusing degree. Specifically, the following steps are included:
[0111] S30410. Determine a reference plane based on the workbench.
[0112] S30412. Determine reference target height information of the image acquisition unit according to the adjustment instruction sent by the user, and obtain a reference image for the reference plane acquired by the image acquisition unit at the reference target height information.
[0113] In a specific embodiment provided in the present application, specifically, a reference target is set on the reference plane; the image acquisition unit is controlled to move continuously, and picture information is acquired once at a predetermined interval, and the image focus of the reference image is determined based on the reference target; when the image focus is greater than a preset threshold, it is determined that the reference image meets the preset image acquisition condition.
[0114] The reference target point specifically refers to a point set on the reference plane for locating the reference plane. The reference target point is generally a through hole or copper pad on a copper-clad laminate or PCB circuit board. The reference target point can be used to locate the circuit board.
[0115] Since a reference target is provided on the reference plane, the captured reference image also includes a reference target. The image focus of the reference image is determined based on the reference target. Furthermore, the image focus of the reference image is determined based on the reference target, including: during the continuous movement of the image acquisition unit, each time a predetermined interval distance (for example, 0.2 mm) is reached, the lens of the image acquisition unit moves to focus on the target on the reference plane. When the focus is greater than or equal to a predetermined threshold, it is determined that the reference image meets the preset image acquisition conditions; when the focus is less than the predetermined threshold, the image acquisition unit is controlled to continue moving.
[0116] When it is determined that the reference image meets the preset image acquisition conditions, the reference relative distance information under the current situation can be acquired. Thus, the corresponding relationship between the reference relative distance information and the reference target height information is recorded. Specifically, when the reference image meets the preset image acquisition conditions, the reference relative distance information between the image acquisition unit and the reference plane is acquired, including:
[0117] When the reference image meets the preset image acquisition condition, triggering a distance acquisition instruction;
[0118] The sensor collects reference relative distance information between the image acquisition unit and the reference plane based on the distance acquisition instruction.
[0119] S30414. When the reference image meets a preset image acquisition condition, collect reference relative distance information between the image acquisition unit and the reference plane.
[0120] S30416. Generate a reference sample pair according to the reference relative distance information and the reference target height information.
[0121] S30418. Determine information conversion relationships based on multiple reference sample pairs.
[0122] The above two embodiments explain in detail how to determine the information conversion relationship between the relative distance information and the target height information.
[0123] Step 306: Adjust the height of the image acquisition unit based on the target height information.
[0124] After the target height information is determined, the target height information is input into the control module, and the control module controls the image acquisition unit to make adjustments based on the target height information, so that the image acquisition unit can be adjusted to the position determined based on the target height information, and then clear image information of the circuit board to be processed can be acquired through the image acquisition unit.
[0125] In a specific embodiment of the present application, an adjustment method for circuit board processing equipment is provided, the adjustment method comprising: determining the relative distance information between an image acquisition unit and a circuit board to be processed based on distance information acquired by a sensor; converting the relative distance information into target height information of the image acquisition unit based on an information conversion relationship; and adjusting the height of the image acquisition unit based on the target height information.
[0126] In a specific embodiment provided in the present application, the circuit board processing equipment further includes a spindle; the method further includes:
[0127] Acquire a target image acquired by the image acquisition unit based on the target height information;
[0128] Determine the offset information of the circuit board to be processed based on the target image;
[0129] The spindle is controlled to process the circuit board to be processed according to the offset information.
[0130] In this embodiment, the height of the image acquisition unit is adjusted so that the image acquisition unit can capture a clearer circuit board to be processed, so as to facilitate the spindle of the circuit board processing equipment to perform corresponding operations on the circuit board.
[0131] Furthermore, after the image acquisition unit is adjusted to a suitable height based on the target height information, a target image acquired based on the target height information can be acquired, and the target image specifically refers to an image including the circuit board to be processed.
[0132] Since the circuit board to be processed is placed on the workbench for processing, there may be errors in the placement position and direction rotation. In the control system of the circuit board processing equipment, the standard position information is recorded. If the operation is directly based on the standard position information, it will cause damage to the circuit board to be processed, or even damage the circuit board to be processed. Therefore, it is necessary to determine the offset information of the circuit board to be processed based on the target image. It should be noted that the offset information here specifically refers to the offset information between the actual position information of the circuit board to be processed and the standard position information recorded in the control system.
[0133] Wherein, determining the offset information of the circuit board to be processed based on the target image includes:
[0134] Determining a reference point in the circuit board to be processed;
[0135] Acquire preset position information of the reference point, and determine actual position information of the reference point based on the target image;
[0136] The offset information of the circuit board to be processed is determined based on the actual position information and the preset position information.
[0137] Reference points will be set in the circuit board to be processed, such as through holes or copper pads on the circuit board. By performing image recognition on the target image, the actual position information corresponding to the reference point is obtained from the target image, and the reference preset position information is obtained from the system. Based on the calculation between the actual position information and the preset position information, the offset information of the circuit board to be processed can be determined.
[0138] In a specific embodiment provided in the present application, the actual position information of the reference point is obtained by identifying the target image, which is (X1, Y1), and the preset position information in the control system is (X0, Y0). The offset information A is determined by the preset position information (X0, Y0) and the actual position information (X1, Y1).
[0139] After the offset information is determined, the control system can further determine the circuit board placement information of the circuit board based on the offset information and the standard position information recorded in the control system, thereby controlling the spindle to make corresponding adjustments according to the circuit board placement information, so that the operation can be performed at the specified position of the circuit board to be processed, thereby ensuring the accuracy and safety of operating the circuit board to be processed.
[0140] An adjustment method for circuit board processing equipment provided in an embodiment of the present application, the circuit board processing equipment includes an image acquisition unit, a workbench, and a sensor, the workbench is used to place a circuit board to be processed, and the method includes: determining the relative distance information between the image acquisition unit and the circuit board to be processed based on the distance information acquired by the sensor; converting the relative distance information into target height information of the image acquisition unit based on an information conversion relationship, wherein the target height information is the height information of the image acquisition unit based on the circuit board processing equipment, and the information conversion relationship is determined based on multiple reference relative distance information and multiple reference target height information; and adjusting the height of the image acquisition unit based on the target height information.
[0141] Through the method, an information conversion relationship is established in advance. After the relative distance information between the image acquisition unit and the circuit board to be processed is obtained, the target height information that can be recognized by the control system of the circuit board processing equipment is obtained based on the information conversion relationship, and then the height of the image acquisition unit is adjusted based on the target height information, thereby ensuring the clarity of the image captured by the image acquisition unit, achieving the effect of automatically adjusting the focusing parameters, and eliminating the need for manual adjustment by technical personnel, thereby improving the focusing efficiency.
[0142] The image collected after focusing is clearer, which makes it easier for the subsequent control system to control the spindle for operation more accurately, thereby improving the accuracy of the operation.
[0143] In addition, to establish the information conversion relationship in advance, it is only necessary to set up multiple reference sample pairs, and generate the final information conversion relationship by fitting multiple reference sample pairs. Through a limited number of discrete reference sample pairs, a linear information conversion relationship is fitted, which greatly improves the efficiency of adjusting the focal length, thereby speeding up the efficiency of circuit board processing equipment in processing the circuit boards to be processed.
[0144] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0145] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0146] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0147] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.
Claims
1. A method for adjusting circuit board processing equipment, It is characterized in that The circuit board processing equipment comprises an image acquisition unit, a workbench, and a sensor, the workbench is used to place the circuit board to be processed, and the method comprises: Based on the distance information collected by the sensor, determine the relative distance information between the image acquisition unit and the circuit board to be processed; Based on an information conversion relationship, the relative distance information is converted into target height information of the image acquisition unit, wherein the target height information is height information of the image acquisition unit based on the circuit board processing equipment, and the information conversion relationship is determined based on a plurality of reference relative distance information and a plurality of reference target height information; The height of the image acquisition unit is adjusted based on the target height information.
2. The method according to claim 1, It is characterized in that The information conversion relationship includes: the relative distance information corresponds to the target height information in a one-to-one manner, and the target height information is determined by the focusing degree of the image captured by the image acquisition unit.
3. The method according to claim 2, It is characterized in that Determining the target height information by collecting the focus of the image by the image collection unit includes: controlling the image collection unit to move continuously, collecting image information of the reference target at intervals of a predetermined distance, and determining the target height information when the focus of the image information meets a threshold condition.
4. The method according to claim 1, It is characterized in that The information conversion relationship is determined by the following steps: determining a reference plane based on the workbench; Determine the reference target height information of the image acquisition unit according to the adjustment instruction sent by the user, and obtain the reference image for the reference plane acquired by the image acquisition unit at the reference target height information; When the reference image meets a preset image acquisition condition, acquiring reference relative distance information between the image acquisition unit and the reference plane; Generate a reference sample pair according to the reference relative distance information and the reference target height information; An information conversion relationship is determined based on multiple reference sample pairs.
5. The method according to claim 4, It is characterized in that A reference target point is arranged on the reference plane; The method further comprises: determining the image clarity of the reference image based on the reference target; When the image clarity is greater than a preset threshold, it is determined that the reference image meets a preset image acquisition condition.
6. The method according to claim 5, It is characterized in that Determining the image clarity of the reference image based on the reference target point includes: inputting the reference image into an image analysis model; The image clarity output by the image analysis model based on the reference target in the reference image is obtained.
7. The method according to claim 5, It is characterized in that When the reference image meets a preset image acquisition condition, acquiring reference relative distance information between the image acquisition unit and the reference plane includes: When the reference image meets the preset image acquisition condition, triggering a distance acquisition instruction; The sensor collects reference relative distance information between the image acquisition unit and the reference plane based on the distance acquisition instruction.
8. The method according to claim 4, It is characterized in that Determine information conversion relationships based on multiple reference sample pairs, including: Based on multiple reference sample pairs and preset fitting rules, a linear information conversion relationship is generated by fitting.
9. A method for adjusting circuit board processing equipment, It is characterized in that The method comprises: Based on the distance information collected by the sensor, determine the relative distance information between the image acquisition unit and the circuit board to be processed; Based on the information conversion relationship, the relative distance information is converted into the target height information of the image acquisition unit; The height of the image acquisition unit is adjusted based on the target height information.
10. A circuit board processing device, It is characterized in that include: A workbench for carrying circuit boards; A spindle assembly is arranged above the workbench and is suitable for processing a circuit board. The spindle assembly comprises: an image acquisition unit for acquiring an image of the circuit board; a sensor for acquiring distance information from the sensor to the circuit board; A control module is used to determine the relative distance information between the image acquisition unit and the circuit board according to the distance information, convert the relative distance information into the target height information of the image acquisition unit based on the information conversion relationship, and adjust the height of the image acquisition unit based on the target height information.
11. The circuit board processing equipment according to claim 10, Features: The spindle assembly also includes a base plate and a slide, the image acquisition part is fixedly connected to the slide, and the slide can move up and down relative to the base plate to adjust the height of the image acquisition part.
12. The circuit board processing equipment according to claim 10, Features: The spindle assembly also includes a bracket, the image acquisition unit includes a light source, the sensor is mounted on the light source through the bracket, and the light source is fixedly mounted on the bottom plate.
13. The circuit board processing equipment according to claim 10, Features: The image acquisition unit includes a camera and a lens connected to the camera and configured to extend in a height direction; the height of the bottom of the lens is flush with the height of the sensor.
