A stability and life analysis system for the automatic loading and unloading mechanism of a PCB drilling machine
Through the system combining the IMU inertial measurement module and the camera module, the vibration and video data of the loading and unloading mechanism of the PCB drilling machine are analyzed, which solves the problems of equipment stability and life assessment, and improves the degree of automation and maintenance efficiency.
Patent Information
- Application Number
- CN202410932325.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-12
AI Technical Summary
The existing loading and unloading mechanism of PCB drilling machines lacks stability and lifespan analysis of the entire life cycle, which affects its degree of automation and accurate assessment of equipment lifespan.
The system uses a combination of IMU inertial measurement module, camera module, pre-processing module, video jitter data analysis module, positioning deviation analysis module and main body analysis module to achieve stability of the loading and unloading mechanism of the drilling machine through vibration data and motion video data analysis. Conduct full life cycle analysis on sex and longevity.
It achieves accurate analysis of the stability and longevity of the PCB drilling machine loading and unloading mechanism throughout its life cycle, and can identify factors affecting stability such as ground obstacles and fastener life, improving the automation and maintenance efficiency of the equipment.
Smart Images

Figure CN118485950B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment analysis, and in particular to a stability and life analysis system for an automatic loading and unloading mechanism of a PCB drilling machine. Background Art
[0002] PCB drilling machine is a professional equipment used for drilling printed circuit boards. Printed circuit boards are widely used in information, communication, electronics, automobiles, aviation, aerospace and other fields, and are one of the most important components. As the wiring of PCB boards becomes denser and the number of holes increases, the speed requirements of PCB drilling machines are also getting faster and faster, and the accuracy requirements are getting higher and higher. In order to improve the drilling accuracy and efficiency of PCB drilling machines, the equipment continues to be developed in the direction of high efficiency. Existing PCB drilling machines mainly adopt manual loading and unloading mode. Each device needs to be arranged for a dedicated person to operate, which is not efficient; although a small number of devices have begun to adopt the back-end semi-automatic loading and unloading mode, this type of equipment is still in the semi-automatic stage, and the printed circuit boards in the material warehouse still need to be manually replenished. After the finished products are stacked, they need to be manually transported away. Although the operating efficiency has been optimized and improved, it cannot achieve full automation of the loading and unloading operation process. Manual intervention is still required, the labor force is not completely released, and the structural design is not perfect.
[0003] In order to solve the above problems and realize the full automation of the loading and unloading process of the drilling machine, the loading and unloading mechanism of the drilling machine has been researched and developed, which can realize the automatic loading and unloading action at the front end of the drilling machine. The PCB circuit board of each axis can be accurately positioned during the loading process. After the processing program is completed, the mechanical arm and the clamp can perfectly cooperate and accurately grasp the circuit board, and ensure that the product surface is free of scratches to ensure quality. However, the loading and unloading mechanism of the drilling machine is a new product, and its stability throughout its life cycle has not been tracked in real time. There are many factors that affect the stability of the loading and unloading mechanism of the drilling machine, including ground obstacles when moving on the ground, its own fasteners, the life of the screw (motor), etc. The above factors need to be analyzed, and there is no relatively accurate calculation of the stable working life of the loading and unloading mechanism of the drilling machine.
[0004] In summary, it is very necessary to propose a system that can be used to analyze the stability and life of the loading and unloading mechanism of the drilling machine throughout its life cycle. Summary of the invention
[0005] The purpose of the present invention is to provide a stability and life analysis system for the automatic loading and unloading mechanism of a PCB drilling machine, so as to analyze the stability and life of the loading and unloading mechanism of the drilling machine throughout its life cycle.
[0006] To achieve the above-mentioned purpose, the present invention adopts a stability and life analysis system of an automatic loading and unloading mechanism of a PCB drilling machine, comprising an IMU inertial measurement module, a camera module, a preprocessing module, a video jitter data analysis module, a positioning deviation analysis module, a main body analysis module and a result output module, wherein the preprocessing module is connected to the camera module, the video jitter data analysis module is respectively connected to the preprocessing module and the IMU inertial measurement module, the positioning deviation analysis module is respectively connected to the preprocessing module and the main body analysis module, and the main body analysis module is respectively connected to the video jitter data analysis module, the positioning deviation analysis module and the result output module;
[0007] The IMU inertial measurement module is used to collect the vibration data of the loading and unloading mechanism of the drilling machine;
[0008] The camera module is used to obtain motion video data during the operation of the loading and unloading mechanism of the drilling machine;
[0009] The pre-processing module is used to downsample the motion video data and remove motion blur;
[0010] The video jitter data analysis module is used to analyze the pre-processed motion video data and vibration data to obtain a jitter analysis result;
[0011] The positioning deviation analysis module is used to spot check the pre-processed motion video data, perform positioning deviation analysis, and obtain deviation analysis results;
[0012] The main body analysis module is used to analyze the stability and life of the loading and unloading mechanism of the drilling machine according to the jitter analysis results and the deviation analysis results to obtain the stability and life analysis results;
[0013] The result output module is used to output stability and life analysis results.
[0014] Among them, the stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine also includes a sub-rule module, and the sub-rule module is connected to the main analysis module.
[0015] The sub-rule module is used to preset analysis rules for stability and lifespan.
[0016] Wherein, the stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine also includes a positioning module;
[0017] The positioning module is used to set the positioning information of the motion video data acquired by the camera module.
[0018] Among them, the preprocessing module includes a downsampling unit and a blur removal unit, the downsampling unit is connected to the camera module, and the blur removal unit is respectively connected to the downsampling unit, the video jitter data analysis module and the positioning deviation analysis module.
[0019] Wherein, the downsampling unit is used to downsample the motion video data;
[0020] The blur removal unit is used to extract global and local image features of motion video data to perform image deblurring.
[0021] Among them, the video jitter data analysis module includes a feature point matching unit, a target distinction unit and an average distance calculation unit, the feature point matching unit is respectively connected to the preprocessing module and the IMU inertial measurement module, the target distinction unit is connected to the feature point matching unit, and the average distance calculation unit is respectively connected to the target distinction unit and the subject analysis module.
[0022] The feature point matching unit is used to calculate feature points for each frame of the preprocessed motion video data and to match them in adjacent frames;
[0023] The target distinguishing unit is used to classify the matched feature points into static classification and dynamic classification;
[0024] The average distance calculation unit is used to convert the feature points between the image space and the real space to obtain the movement distance in the actual space as the jitter data.
[0025] A stability and life analysis system for an automatic loading and unloading mechanism of a PCB drilling machine of the present invention first collects statistics on vibration data of the loading and unloading mechanism of the drilling machine; then obtains motion video data during the operation of the loading and unloading mechanism of the drilling machine; then downsamples the motion video data and removes motion blur; then analyzes the pre-processed motion video data and vibration data to obtain a jitter analysis result; then spot checks the pre-processed motion video data, performs positioning deviation analysis, and obtains a deviation analysis result; analyzes the stability and life of the loading and unloading mechanism of the drilling machine according to the jitter analysis result and the deviation analysis result to obtain a stability and life analysis result; and finally outputs the stability and life analysis result. At the same time, the IMU inertial measurement module is used to count the vibration data of the loading and unloading mechanism of the drilling machine; the camera module is used to obtain the motion video data during the operation of the loading and unloading mechanism of the drilling machine; the preprocessing module is used to downsample the motion video data and remove motion blur; the video jitter data analysis module is used to analyze the preprocessed motion video data and vibration data to obtain the jitter analysis result; the positioning deviation analysis module is used to spot check the preprocessed motion video data, perform positioning deviation analysis, and obtain the deviation analysis result; the main analysis module is used to analyze the stability and life of the loading and unloading mechanism of the drilling machine according to the jitter analysis result and the deviation analysis result, and obtain the stability and life analysis result; the result output module is used to output the stability and life analysis result; it can analyze the stability and life of the loading and unloading mechanism of the drilling machine throughout its life cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 It is a principle schematic diagram of the stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine of the present invention.
[0028] Figure 2 It is a schematic diagram of the relationship between various parameters when distinguishing between static and dynamic targets of the present invention.
[0029] 100-IMU inertial measurement module, 200-camera module, 300-preprocessing module, 301-downsampling unit, 302-blur removal unit, 400-video jitter data analysis module, 401-feature point matching unit, 402-target distinction unit, 403-average distance calculation unit, 500-positioning deviation analysis module, 600-subject analysis module, 700-result output module, 800-sub-rule module, 900-positioning module. DETAILED DESCRIPTION
[0030] See also Figure 1 and Figure 2 ,in Figure 1 This is a schematic diagram of the stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine. Figure 2 It is a schematic diagram of the relationship between various parameters when distinguishing between static and dynamic targets.
[0031] The present invention provides a stability and life analysis system for an automatic loading and unloading mechanism of a PCB drilling machine, comprising an IMU inertial measurement module 100, a camera module 200, a preprocessing module 300, a video jitter data analysis module 400, a positioning deviation analysis module 500, a main body analysis module 600 and a result output module 700, wherein the preprocessing module 300 is connected to the camera module 200, the video jitter data analysis module 400 is respectively connected to the preprocessing module 300 and the IMU inertial measurement module 100, the positioning deviation analysis module 500 is respectively connected to the preprocessing module 300 and the main body analysis module 600, and the main body analysis module 600 is respectively connected to the video jitter data analysis module 400, the positioning deviation analysis module 500 and the result output module 700;
[0032] The IMU inertial measurement module 100 is used to collect the vibration data of the loading and unloading mechanism of the drilling machine;
[0033] The camera module 200 is used to obtain motion video data during the operation of the loading and unloading mechanism of the drilling machine;
[0034] The pre-processing module 300 is used to downsample the motion video data and remove motion blur;
[0035] The video jitter data analysis module 400 is used to analyze the pre-processed motion video data and vibration data to obtain a jitter analysis result;
[0036] The positioning deviation analysis module 500 is used to spot check the pre-processed motion video data, perform positioning deviation analysis, and obtain deviation analysis results;
[0037] The main body analysis module 600 is used to analyze the stability and life of the loading and unloading mechanism of the drilling machine according to the jitter analysis results and the deviation analysis results to obtain the stability and life analysis results;
[0038] The result output module 700 is used to output stability and life analysis results.
[0039] In this embodiment, the IMU inertial measurement module 100 counts the vibration data of the loading and unloading mechanism of the drilling machine; the camera module 200 obtains the motion video data during the operation of the loading and unloading mechanism of the drilling machine; the preprocessing module 300 downsamples the motion video data and removes motion blur; the video jitter data analysis module 400 analyzes the preprocessed motion video data and vibration data to obtain a jitter analysis result; the positioning deviation analysis module 500 spot checks the preprocessed motion video data, performs positioning deviation analysis, and obtains a deviation analysis result; the main body analysis module 600 analyzes the stability and life of the loading and unloading mechanism of the drilling machine according to the jitter analysis results and the deviation analysis results, and obtains a stability and life analysis result; the result output module 700 outputs the stability and life analysis results; and can analyze the stability and life of the loading and unloading mechanism of the drilling machine throughout its life cycle.
[0040] Furthermore, the stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine also includes a sub-rule module 800, and the sub-rule module 800 is connected to the main analysis module 600.
[0041] Furthermore, the sub-rule module 800 is used to preset analysis rules of stability and lifespan.
[0042] In this embodiment, the main analysis module 600 is used to analyze the stability and life of the loading and unloading mechanism of the drilling machine according to the jitter analysis results and the deviation analysis results and in accordance with preset stability and life analysis rules to obtain stability and life analysis results.
[0043] There are two methods for detecting anomalies. One is the method of using the mean plus variance in the standard error theory, and the other is the method where the operator sets the threshold. In the trial operation phase, the mean plus variance is the default method. If the operator manually sets the threshold, the manual threshold method shall prevail.
[0044] The typical mean plus variance is the 3S solution, that is, if a value is greater than the 3S upper limit (mean plus 3 variances), or less than the 3S lower limit (mean minus 3 variances), it is considered abnormal. For example, if a value greater than the mean plus 3 variances, or less than the mean minus 3 variances, appears in a certain direction of a certain sensor (visual jitter data or IMU jitter data) at a certain moment during the walking period, it is considered abnormal.
[0045] The parameter symbols are defined as follows:
[0046] Dd represents jitter data; VC represents data obtained from camera video; IMU represents data obtained from IMU; id represents data of ideal working status under supervision conditions; tr represents data of normal working status under normal operating conditions; pi represents the entire standard action of loading and unloading materials for the pith time; ti represents the tith moment in this action cycle; avg represents the average value; var represents the variance; twalk represents the time period when the loading and unloading mechanism of the drilling machine walks on the ground; tfocus represents the positioning completion time period, which is the 1-second time period maintained for 1 second after the positioning program is executed.
[0047] The analysis rules that are set are as follows:
[0048] Sub-rule 1:
[0049] Dd_VC_tr_twalk_avg>Dd_VC_id_twalk_avg+N1*Dd_VC_id_twalk_var;
[0050] Sub-rule 2:
[0051] Dd_VC_tr_twalk_var>N2*Dd_VC_id_twalk_var;
[0052] Sub-rule 3:
[0053] The value of Dd_VC_tr in any moment in the three directions of the walking time period twalk in the running time period is greater than Dd_VC_id_twalk_avg+N3*Dd_VC_id_twalk_var, and the number of occurrences in this walk is greater than or equal to N3 times.
[0054] Sub-rule 4:
[0055] Dd_VC_tr_tfocus_avg>Dd_VC_id_tfocus_avg+N1*Dd_VC_id_tfocus_var;
[0056] Sub-rule 5:
[0057] Dd_VC_tr_tfocus_var>N2*Dd_VC_id_tfocus_var;
[0058] Sub-rule 6:
[0059] The value of Dd_VC_tr in any of the three directions of the positioning completion time period tfocus in the running time period is greater than Dd_VC_id_tfocus_avg+N3*Dd_VC_id_tfocus_var at any time, and the number of occurrences is greater than or equal to N2 times in the 15 frames of 1 second after this loading and unloading.
[0060] Sub-rule 7:
[0061] Dd_VC_tr_twalk_avg>Dd_IMU_tr_twalk_avg+N1*Dd_IMU_tr_twalk_var;
[0062] Sub-rule 8:
[0063] Dd_VC_tr_twalk_var>N2*Dd_VC_tr_twalk_var;
[0064] Sub-rule 9:
[0065] The value of Dd_VC_tr in any of the three directions of the walking time period twalk in the running time period is greater than Dd_IMU_tr_twalk_avg+N3*Dd_IMU_tr_twalk_var at any time, and the number of occurrences in this walking time is greater than or equal to N3 times.
[0066] Sub-rule 10:
[0067] The value of Dd_VC_tr in any of the three directions of the positioning completion time period tfocus in the running time period is greater than Dd_VC_tr_tfocus_avg+N3*Dd_VC_tr_tfocus_var at any time, and the number of occurrences in the time period of this positioning completion is greater than or equal to N2 times.
[0068] Sub-rule 11:
[0069] The value of Dd_IMU_tr in any of the three directions in the positioning completion time period tfocus during the running time period is greater than Dd_IMU_tr_tfocus_avg+N3*Dd_IMU_tr_tfocus_var, and the number of occurrences in the time period when positioning is completed this time is greater than or equal to N2 times.
[0070] Sub-rule 12:
[0071] Count the values of any of the three directions of the deviation Bias in each direction of the Cz coordinate system of the drilling machine each time to see if it is greater than Bias_id_avg+N3*Bias_id_var.
[0072] Sub-rule 13:
[0073] Take statistics of every 10 consecutive Biasx_tr(pi), Biasy_tr(pi), and Biasz_tr(pi), calculate the variance of these 10 times, and get the variance values of the deviations in each direction, Bias_10x_tr_var(im), Bias_10y_tr_var(im), and Bias_10z_tr_var(im). If the deviation variance value in one direction (one of Bias_10x_tr_var(im), Bias_10y_tr_var(im), and Bias_10z_tr_var(im)) is greater than N1*Bias_tr_var,
[0074] Among them, N1, N2, and N3 are configurable parameters. The default values are N1=1, N2=2, and N3=3, which can be set based on feedback from operation and maintenance personnel.
[0075] Through the above rules, we can analyze the main sources that affect stability, including ground obstacles when moving on the ground, its own fasteners, the life of the screw (motor), etc., as well as make relatively accurate calculations of the life time of stable work.
[0076] Furthermore, the stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine further includes a positioning module 900;
[0077] The positioning module 900 is used to set the positioning information of the motion video data acquired by the camera module 200.
[0078] In this embodiment, the hardware includes a camera, an IMU, a single-chip microcomputer, a computer, and a loading and unloading mechanism of a drilling machine, wherein the IMU is installed on the loading and unloading mechanism of the drilling machine, and is used to count vibration information and send it to the single-chip microcomputer. The single-chip microcomputer communicates with the controller in the loading and unloading mechanism of the drilling machine, obtains position information and motion information, and sends it to the computer for analysis; wherein the single-chip microcomputer model is STM32F107. The computer receives information from the camera and the single-chip microcomputer, and provides computing resources to the algorithm; the loading and unloading mechanism of the drilling machine is an LLLR type actuator on a gantry-type four-wheel mobile platform, which is used to load and unload the drilling machine. The IMU inertial measurement module 100 is installed on the loading and unloading mechanism of the drilling machine, and is used to count the vibration data of the loading and unloading mechanism of the drilling machine. The camera module 200 obtains motion video data during the operation of the loading and unloading mechanism of the drilling machine; wherein the camera module 200 includes a long-range camera, whose image is defined as VC1; a close-range camera, whose image is defined as VC2; the two cameras intersect 90 degrees on the XY plane. The positioning module 900 is used to set the positioning information of the motion video data obtained by the camera module 200; the positioning module 900 is two two-dimensional codes QA and QB set on the loading and unloading mechanism of the drilling machine, the two-dimensional code QA can be clearly observed by the long-range camera, and the two-dimensional code QB can be clearly observed by the close-range camera; the X\Y\Z of the Cz coordinate system of the rotary drilling machine is defined as X_Cz, Y_Cz, and Z_Cz, and the coordinate relationships are respectively: QA is opposite to the X_Cz and Z_Cz coordinate axes, QB is opposite to the Y_Cz coordinate axis, and z, Z_Cz coordinate axes, the image coordinates of QA in the distant camera VC1 are opposite to the X_VC1, Y_VC1 coordinate axes of its camera VC1 coordinate system (that is, the directions of X_VC1 and X_Cz are the same, only translation; the directions of Y_VC1 and Z_Cz are the same, only translation); the image coordinates of QB in the close-up camera VC2 are opposite to the X_VC2, Y_VC2 coordinate axes of its camera VC2 coordinate system (that is, the directions of X_VC2 and Y_Cz are the same, only translation; the directions of Y_VC2 and Z_Cz are the same, only translation).
[0079] Furthermore, the preprocessing module 300 includes a downsampling unit 301 and a blur removal unit 302, the downsampling unit 301 is connected to the camera module 200, and the blur removal unit 302 is respectively connected to the downsampling unit 301, the video jitter data analysis module 400 and the positioning deviation analysis module 500.
[0080] Further, the downsampling unit 301 is used to downsample the motion video data;
[0081] The blur removal unit 302 is used to extract global and local image features of motion video data to perform image deblurring.
[0082] In this embodiment, the downsampling unit 301 downsamples the motion video data; the blur removal unit 302 extracts the global and local image features of the motion video data to deblur the image. The downsampling unit 301 is only used when analyzing jitter, and the downsampling scheme is to downsample in time and space. In terms of time, a sampling rate of 3 frames per second is adopted; in terms of space, 4 times downsampling is adopted. It can greatly reduce the time required for reading, calculation, and storage. Since there may be image blurring caused by the movement of itself and the object, it is necessary to first perform targeted motion removal on the image to reduce the blurring effect caused by the movement of the mechanism itself and the clamping action of the PCB drilling machine on the material. The present invention adopts a parallel network architecture of CNN and Transformer to extract global and local image features for image deblurring.
[0083] Furthermore, the video jitter data analysis module 400 includes a feature point matching unit 401, a target distinguishing unit 402 and an average distance calculation unit 403, the feature point matching unit 401 is respectively connected to the preprocessing module 300 and the IMU inertial measurement module 100, the target distinguishing unit 402 is connected to the feature point matching unit 401, and the average distance calculation unit 403 is respectively connected to the target distinguishing unit 402 and the subject analysis module 600.
[0084] Furthermore, the feature point matching unit 401 is used to calculate feature points for each frame of the preprocessed motion video data and perform matching in adjacent frames;
[0085] The target distinguishing unit 402 is used to classify the matched feature points into static classification and dynamic classification;
[0086] The average distance calculation unit 403 is used to convert the feature points between the image space and the real space to obtain the movement distance in the real space as the jitter data.
[0087] In this embodiment, the feature point matching unit 401 calculates feature points for each frame of the preprocessed motion video data and matches them in adjacent frames; the target differentiation unit 402 divides the matched feature points into static classification and dynamic classification; the average distance calculation unit 403 converts the feature points between the image space and the real space to obtain the motion distance in the actual space as the jitter data.
[0088] The calculation process is as follows:
[0089] Calculate the feature points of the image and match them:
[0090] The feature points are calculated for each frame in the video and matched in adjacent frames. Many ORB feature points are first extracted from an image. After matching between adjacent frames, there are many successfully matched ORB points, which are feature points in images containing static targets (drilling machines, etc.) and dynamic targets (operators, robots, etc.).
[0091] Distinguish between static and dynamic targets:
[0092] The matched feature points are divided into static classification and dynamic classification using the extremum constraint. Figure 2 The principle of external polarity constraint is explained. Figure 2 As shown, assume that a point P in a matched ORB point is projected onto the pixel point p1 of the previous frame I1 and the pixel point p2 of the current frame I2. O1 and O2 represent the optical centers of frames I1 and I2, respectively, and the line connecting O1 and O2 is called the baseline. The baseline and the map point P establish a plane called the epipolar plane π. The intersection of the baseline and the two image planes is called the epipolar e1 and e2, and the line connecting the epipolar to the projected pixel is called the epipolar line, denoted as L1 in I1 and L2 in I2. According to the principle of epipolar geometry, there is a relationship:
[0093] ;
[0094] ;
[0095] in, and Respectively represent the depth value (z-axis distance) of the mapping point P in the previous frame I1 and the current frame I2. K is the camera internal parameter matrix, R and T represent the 3D motion matrix of the camera's rotation and translation from the previous frame I1 to the current frame I2. The epipolar constraint formula is as follows:
[0096] ;
[0097] ;
[0098] ;
[0099] in, is an antisymmetric symbol, which is used to find the antisymmetric matrix of a vector. F is the basis matrix representing the camera motion between the previous frame I1 and the current frame I2, and L2 represents the epipolar line in the current frame I2.
[0100] Through the previous analysis, due to the presence of dynamic targets, motion blur and other factors, lines in real scenes, the input frame may contain noise, which may cause the static point to deviate slightly from the ideal epipolar line. In this case, it is necessary to calculate the distance between the point and the epipolar line, and those points within a given distance range are considered static points. If the epipolar distance of the point exceeds a given threshold, it is classified as a dynamic feature point, and its distance formula is as follows:
[0101] ;
[0102] ;
[0103] Among them, a, b, c are the coordinate parameters of the three-dimensional coordinate system X, Y, and Z of the distant camera VC1. is the distance between point p2 and the epipolar line L2. Since there are many ORB feature points in the video, after normal ORB matching, there will be many P points that exist in both I1 and I2. The average value is calculated. , Standard Deviation .
[0104] For these originally large number of ORB feature points, the rules for determining whether they are static points or dynamic points are as follows:
[0105] ;
[0106] Among them, 1 indicates a dynamic point, 0 indicates a static point, and the variable It is a parameter for artificially controlling the accuracy. According to the error theory, this value can generally be selected from five integers: 1, 2, 3, 4, and 5. In the embodiment of the present invention, 3 is selected, which is a typical 3S standard.
[0107] Calculation of average distance of feature points:
[0108] For all p2 The average moving distance of pixels in the x and y directions from image I1 to image I2 is calculated, and then the image space and real space are converted through simple distance measurement to obtain the moving distance avgd(xf, t2) and avgd(yf, t2) in the real space as the jitter data. In this way, the jitter data on the X\Y\Z definition of X_Cz, Y_Cz, and Z_Cz of the rotary hole machine Cz coordinate system corresponding to the drilling machine coordinate system can be analyzed through the two cameras VC1 and VC2.
[0109] At the same time, the positioning deviation analysis module 500 adopts a spot check method to spot check the pre-processed motion video data, perform positioning deviation analysis, and obtain deviation analysis results. Robot motion control is mainly divided into two types, one is open loop and the other is closed loop. The open loop is used under the condition that when all components are working stably, the input movement distance is used, and the movement distance is the same. It can quickly execute repeated steps under the premise of various known conditions to improve productivity. The closed loop completes the execution of steps under the premise of various unknown conditions, with a high degree of intelligence, but due to a large number of calculations, the speed is slow, and it is also more suitable for use in the later stage of quality control. In the present invention, the two actuators of the drilling machine loading and unloading mechanism and the drilling machine are connected to each other in order to improve the use efficiency. When working normally, an open-loop control scheme is used. At the same time, in order to analyze the stability and life of the drilling machine loading and unloading mechanism, the positioning deviation analysis module 500 adopts a spot check scheme, which is checked several times a day, and the relevant videos taken at the time of handover are analyzed afterwards. The scheme of its stability change is analyzed, and the trend chart of stability change is provided to the operation and maintenance personnel.
[0110] The pre-assumptions of the positioning deviation analysis module 500 are as follows:
[0111] Since the drilling machine weighs several tons and has a fixed base, and the loading and unloading mechanism of the drilling machine moves on the ground, it is assumed that the drilling machine will not move, that is, the coordinate system of the drilling machine will not be affected by the movement. If the positions of the recognized QR codes QA and QB in the image deviate, then there is a problem with the loading and unloading mechanism of the drilling machine. In this way, during the trial operation under the supervision of the operation and maintenance personnel, the video of normal operation is collected, and the center positions of QA and QB in normal operation are analyzed at the positions of camera VC1 (QAVC1xo, QAVC1yo) and camera VC2 (QBVC2xo, QBVC2yo). The operation and maintenance personnel select the optimal center position Focus_best={Focus_best(x), Focus_best(y), Focus_best(z)} of the X, Y, and Z coordinate systems of the rotary drilling machine Cz coordinate system from QAVC1xo, QAVC2xo, and QBVC2yo.
[0112] Then, under non-trial operation conditions, videos are continuously shot to analyze the center positions of QA and QB in the camera VC1 (QAVC1x(pi), QAVC1y(pi)) and camera VC2 (QBVC2x(pi), QBVC2y(pi)) in the last frame of each batch pi; pi represents the entire standard action of loading and unloading for the pith time.
[0113] Among them, QAVC1x(pi), QAVC2x(pi), and QBVC2y(pi) correspond to the positions of the X, Y, and Z coordinate systems of the Cz coordinate system of the rotary hole machine, respectively. Then, by subtracting them, the deviations in each direction of the Cz coordinate system of the rotary hole machine can be obtained.
[0114] At the same time, the main analysis module 600 analyzes the stability and life of the drilling machine loading and unloading mechanism according to the jitter analysis results and the deviation analysis results, and according to the preset stability and life analysis rules, and obtains the stability and life analysis results. The main steps are three stages: data collection in the trial operation stage, the collection process during operation, and fault analysis during operation.
[0115] Phase 1: Data collection during the trial operation phase:
[0116] Step 1: During the trial operation under the supervision of operation and maintenance personnel, collect video and IMU data during normal operation.
[0117] Step 2: Use the pre-processing module 300 to downsample the video and remove motion blur.
[0118] Step 3: Use the video jitter data analysis module 400 to analyze these videos under supervision to obtain jitter data relative to the drilling machine coordinate system. Since the time resolution of the jitter data and the IMU is different, it is necessary to align the jitter data with the IMU data by time interpolation on the timeline to obtain the jitter data of the ideal working state under supervision. In this embodiment, after downsampling, the time resolution of the image is 3 frames per second, which is much lower than that of the IMU, so it is uniformly aligned to 3 data per second.
[0119] The ideal jitter data obtained from the video relative to the drilling machine coordinate system is Dd_VC_id(pi,ti)={Ddx_VC_id(pi,ti),Ddy_VC_id(pi,ti),Ddz_VC_id(pi,ti)}. The ideal jitter data obtained from the IMU data relative to the drilling machine coordinate system is Dd_IMU_id(pi,ti)={Ddx_IMU_id(pi,ti),Ddy_IMU_id(pi,ti),Ddz_IMU_id(pi,ti)}.
[0120] Among them, Dd represents jitter data; VC represents data obtained from camera video; IMU represents data obtained from IMU; id represents jitter data of ideal working state under supervision; pi represents the entire standard action of the pi-th loading and unloading, from 1 to pimax, and the value of pimax is manually set during the trial operation under supervision. In this embodiment, it is set to 1000 times; ti represents the ti-th moment in this action cycle, from 1 to timax, and the value of timax varies according to different specific tasks of loading and unloading; because the values are aligned by time interpolation, the ti time of each pi-th time is the same.
[0121] Step 4: According to the program execution time in the loading and unloading mechanism of the drilling machine, the loading and unloading time is divided into a walking time period twalk and a positioning completion time period tfocus. The walking time period refers to the time when the loading and unloading mechanism of the drilling machine walks on the road surface; the positioning completion time period is the 1 second time maintained for 1 second after the positioning program is executed.
[0122] Step 5: Count the average value Dd_VC_id_twalk_avg and variance Dd_VC_id_twalk_var of Dd_VC_id in the three directions in the walking time period twalk under the ideal state, and the average value Dd_IMU_id_twalk_avg and variance Dd_IMU_twalk_id_twalk_var of Dd_IMU_id in the three directions. These data are used to analyze the jitter of the loading and unloading mechanism when walking.
[0123] Step 6: Count the average value Dd_VC_id_tfocus_avg and variance Dd_VC_id_tfocus_var in the three directions of Dd_VC_id in the positioning completion time period tfocus under ideal conditions, as well as the average value Dd_IMU_id_tfocus_avg and variance Dd_IMU_id_tfocus_var in the three directions of Dd_IMU_id. These data are used to analyze camera shake.
[0124] Step 7: Based on the ideal state line, the positioning deviation analysis module 500 calculates the QAVC1xo(pi), QAVC2xo(pi), and QBVC2yo(pi) of the center position of the X, Y, and Z coordinate systems of the Cz coordinate system of the rotary hole machine observed by the camera in the last frame of the picture in the positioning completion time period in this total pimax batch. Then the operation and maintenance personnel manually select the best set of values from this pimax data as the default value of the positioning center.
[0125] Focus_best={Focus_best(x),Focus_best(y),Focus_best(z)}
[0126] And calculate the deviations in all directions of the Cz coordinate system of the drilling machine during the trial operation phase.
[0127] In the Cz coordinate system, the deviation of the x-axis: Biasx_id(pi)=QAVC1x(pi)-Focus_best(x);
[0128] Deviation of y axis in Cz coordinate system: Biasy_id(pi)=QAVC2x(pi)-Focus_best(y);
[0129] In the Cz coordinate system, the deviation of the z-axis: Biasz_id(pi)=QBVC2y(pi)-Focus_best(z);
[0130] And calculate the average value Bias_id_avg and variance Bias_id_var.
[0131] Phase 2: Collection process during runtime:
[0132] Step 8: During the working phase, select the number of analysis times according to manual settings to collect video and IMU data during normal working. In this embodiment, the number of analysis intervals is set to complete the standard loading and unloading tasks 1000 times and perform one collection and analysis work.
[0133] Step 9: Use the function of the pre-processing module 300 to downsample the video in step 8 and remove motion blur.
[0134] Step 10: As in step 3, the video jitter data analysis module 400 is used to analyze the videos under real operating conditions to obtain jitter data relative to the drilling machine coordinate system. The real jitter data obtained from the video under real operating conditions relative to the drilling machine coordinate system is Dd_VC_tr(pi,ti)={Ddx_VC_tr(pi,ti),Ddy_VC_tr(pi,ti),Ddz_VC_tr(pi,ti)}. The real jitter data obtained from the IMU data under real operating conditions relative to the drilling machine coordinate system is Dd_IMU_tr(pi,ti)={Ddx_IMU_tr(pi,ti),Ddy_IMU_tr(pi,ti),Ddz_IMU_tr(pi,ti)}.
[0135] Among them, Dd represents the jitter data; VC represents that obtained from the camera video; IMU represents that obtained from the IMU; tr represents the jitter data of the normal working state during normal working; pi represents the entire standard action of the pi-th loading and unloading, from 1 to pimax, and the value of pimax is the maximum number of times tested so far under real conditions; ti represents the ti-th moment in this action cycle, from 1 to timax, and the value of timax varies according to different specific tasks of loading and unloading; because the values are aligned by time interpolation, the ti time of each pi-th time is the same.
[0136] Step 11: Count the average value Dd_VC_tr_twalk_avg and variance Dd_VC_tr_twalk_var in three directions of Dd_VC_tr in the walking time period twalk, and the average value Dd_IMU_tr_twalk_avg and variance Dd_IMU_twalk_tr_twalk_var in three directions of Dd_IMU_tr in three directions. These data are used to analyze the jitter of the loading and unloading mechanism when walking.
[0137] Step 12: Count the average value Dd_VC_tr_tfocus_avg and variance Dd_VC_tr_tfocus_var in the three directions of Dd_VC_tr in the positioning completion time period tfocus, as well as the average value Dd_IMU_tr_tfocus_avg and variance Dd_IMU_tr_tfocus_var in the three directions of Dd_IMU_tr. These data are used to analyze camera shake.
[0138] Step 13: According to the positioning deviation analysis module 500, calculate the image coordinate positions of the center points of the two QA and QB QR codes observed by the camera in the last frame of the positioning completion time period in this total pimax batch, and then convert them into QAVC1x(pi), QAVC2x(pi), QBVC2y(pi) of the center position of the X, Y, and Z coordinate systems of the Cz coordinate system of the rotary hole machine. Then compare with Focus_best={Focus_best(x), Focus_best(y), Focus_best(z)}.
[0139] The deviation in each direction of the Cz coordinate system of the drilling machine can be obtained.
[0140] In the Cz coordinate system, the deviation of the x-axis is: Biasx_tr(pi)=QAVC1x(pi)-Focus_best(x);
[0141] Deviation of y axis in Cz coordinate system: Biasy_tr(pi)=QAVC2x(pi)-Focus_best(y);
[0142] In the Cz coordinate system, the deviation of the z-axis: Biasz_tr(pi)=QBVC2y(pi)-Focus_best(z);
[0143] Phase 3: Failure analysis during runtime:
[0144] The sub-rule module 800 is called to complete the analysis of the main fault sources during operation.
[0145] Step 14: Perform ground obstacle analysis. The judgment principle is that if the jitter is abnormal only when the loading and unloading mechanism is moving, but not during the positioning completion period, it is judged that there is a ground obstacle according to the following rules:
[0146] (Rule 1==1 or Rule 2==1 or Rule 3==1) and
[0147] (Rule 4==0 and Rule 5==0 and Rule 6==0)
[0148] Then an alarm is sent to the operation and maintenance personnel, who can set the rule parameters N1, N2, and N3.
[0149] Step 15: Perform fastener loosening analysis. The judgment principle is that if the jitter data of the IMU is significantly different from the jitter data obtained from the video, then it is very likely that fasteners such as screws and nuts are loose. The following rules are used to determine that fasteners are loose:
[0150] (Rule 7==1 or Rule 8==1 or Rule 9==1) or
[0151] (Rule 10==1 and Rule 11==1)
[0152] Furthermore, if an abnormality occurs during the positioning completion period, since the fasteners related to the walking mechanism have stopped working, it is determined that there is a problem with the fasteners where the camera is installed. The following rules are used to determine that there is a problem with the fasteners where the camera is installed:
[0153] Rule 10==1 and Rule 11==0
[0154] Step 16: Perform deviation analysis. This is used to analyze the actuator observed by the camera, including the lead screw of the L-type actuator or the motor of the R-type actuator for wear and aging. The method is that if the following sub-rule appears once:
[0155] Rule 12==1
[0156] Then the operation will be stopped immediately, an alarm will be issued, and the operation and maintenance personnel will be informed. At this moment, the operation and maintenance personnel can set the correction parameters of the movement and set the number of analysis to perform a collection and analysis once the standard loading and unloading task is completed. Until it is normal (rule 12==0) for 1000 times in a row (this value can be reset by the operation and maintenance personnel), then it will be restored to 1000 times (this value can be reset by the operation and maintenance personnel) and a collection and analysis will be performed.
[0157] Step 17: Perform end-of-life analysis. This is used to analyze the variance of the actuator's deviation data. If the variance reaches a threshold, it is considered to be end-of-life. The rules are as follows:
[0158] Rule 13==1
[0159] This means that the solution of extending the service life by modifying the parameters in step 16 by the operation and maintenance personnel can no longer meet the work safety requirements, and the service life has come to an end. Then, the factors that often cause problems are counted and the quality traceability of a batch of products is carried out for designers to improve quality.
[0160] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A stability and life analysis system for the automatic loading and unloading mechanism of a PCB drilling machine, characterized in that: It includes an IMU inertial measurement module, a camera module, a preprocessing module, a video jitter data analysis module, a positioning deviation analysis module, a main body analysis module and a result output module, wherein the preprocessing module is connected to the camera module, the video jitter data analysis module is respectively connected to the preprocessing module and the IMU inertial measurement module, the positioning deviation analysis module is respectively connected to the preprocessing module and the main body analysis module, and the main body analysis module is respectively connected to the video jitter data analysis module, the positioning deviation analysis module and the result output module; The IMU inertial measurement module is used to collect the vibration data of the loading and unloading mechanism of the drilling machine; The camera module is used to obtain motion video data during the operation of the loading and unloading mechanism of the drilling machine; The pre-processing module is used to downsample the motion video data and remove motion blur; The video jitter data analysis module is used to analyze the pre-processed motion video data and vibration data to obtain a jitter analysis result; The positioning deviation analysis module is used to spot check the pre-processed motion video data, perform positioning deviation analysis, and obtain deviation analysis results; The main body analysis module is used to analyze the stability and life of the loading and unloading mechanism of the drilling machine according to the jitter analysis results and the deviation analysis results to obtain the stability and life analysis results; The result output module is used to output stability and life analysis results.
2. The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine according to claim 1 is characterized in that: The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine also includes a sub-rule module, and the sub-rule module is connected to the main analysis module.
3. The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine as claimed in claim 2 is characterized in that: The sub-rule module is used to preset analysis rules for stability and lifespan.
4. The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine according to claim 1, characterized in that: The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine also includes a positioning module; The positioning module is used to set the positioning information of the motion video data acquired by the camera module.
5. The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine as claimed in claim 1, characterized in that: The preprocessing module includes a downsampling unit and a blur removal unit. The downsampling unit is connected to the camera module. The blur removal unit is respectively connected to the downsampling unit, the video jitter data analysis module and the positioning deviation analysis module.
6. The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine as claimed in claim 5, characterized in that: The downsampling unit is used to downsample the motion video data; The blur removal unit is used to extract global and local image features of motion video data to perform image deblurring.
7. The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine according to claim 1, characterized in that: The video jitter data analysis module includes a feature point matching unit, a target distinguishing unit and an average distance calculation unit, the feature point matching unit is respectively connected to the preprocessing module and the IMU inertial measurement module, the target distinguishing unit is connected to the feature point matching unit, and the average distance calculation unit is respectively connected to the target distinguishing unit and the subject analysis module.
8. The stability and life analysis system of the automatic loading and unloading mechanism of the PCB drilling machine as claimed in claim 7, characterized in that: The feature point matching unit is used to calculate feature points for each frame of the preprocessed motion video data and to match them in adjacent frames; The target distinguishing unit is used to classify the matched feature points into static classification and dynamic classification; The average distance calculation unit is used to convert the feature points between the image space and the real space to obtain the movement distance in the actual space as the jitter data.
