Method for determining offset of positioning piece and processing equipment
By obtaining multiple position coordinates in the PCB processing equipment and determining their validity, the offset of the positioning piece is calculated, which solves the problem of low accuracy in detecting the offset of the positioning piece and improves the accuracy and efficiency of subsequent adjustments.
Patent Information
- Application Number
- CN202310227340.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-10
AI Technical Summary
In PCB processing equipment, measurement delays or interference caused by micro-displacements of the air clamp mechanism and human factors lead to a reduction in the accuracy of positioning piece offset detection and subsequent adjustment.
By obtaining multiple position coordinates when the detection part and the positioning part are in contact, the validity of the coordinates is determined and the offset of the positioning part is calculated. The effective position coordinates are used to calculate the offset to ensure the accuracy of the calculation results.
It improves the calculation accuracy of the offset of the positioning piece, improves the accuracy of subsequent adjustments, and reduces manual adjustment errors and the time and cost of automatic adjustment.
Smart Images

Figure CN118623744A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of PCB processing, and in particular to a method for determining an offset of a positioning member of a processing device and a processing device. Background Art
[0002] In the related art, due to the long-term high-frequency and high-acceleration reciprocating motion of the machine, as well as human factors, the air clamp mechanism has micro-displacement, which requires regular inspection. During the inspection, the drill needle hits the pin to generate a capacitive signal, and the drill needle touches the plate detection circuit to output a signal. Occasionally, there will be a certain delay or interference, which will cause one or several measured coordinate data to be abnormal, making the reliability of detecting the air clamp position low. If the collected data is simply processed directly as an offset, the accuracy of subsequent manual or automatic adjustments will be reduced. Summary of the invention
[0003] The embodiments of the present invention provide a method for determining the offset of a positioning member of a processing device and a processing device.
[0004] In a method for determining the offset of a positioning member of a processing device in an embodiment of the present invention, the processing device includes a spindle, a detection member and a processing platform, the positioning member is installed on the processing platform, the spindle is located above the processing platform and is used to clamp the detection member, and the determination method includes:
[0005] Obtaining the position coordinates when the detection member touches the positioning member;
[0006] Determining the validity of the position coordinates and collecting valid position coordinates;
[0007] The offset of the positioning member is calculated according to the effective position coordinates.
[0008] The method for determining the offset of the positioning member of the above-mentioned processing equipment can collect valid position coordinates and calculate the offset of the positioning member based on the valid position coordinates. Therefore, the calculated offset has a high accuracy, which is conducive to improving the accuracy of subsequent adjustments.
[0009] In some embodiments, obtaining the position coordinates of the detection element when the detection element touches the positioning element includes:
[0010] The detection member is moved along a plurality of different directions close to the positioning member until the detection member touches the positioning member, and the position coordinates of the detection member are determined according to the electrical signal generated when the touch occurs.
[0011] In some embodiments, the multiple different directions include a first direction, a second direction, a third direction and a fourth direction, the first direction and the second direction are collinear and opposite, the third direction and the fourth direction are collinear and opposite, and the first direction and the third direction are perpendicular.
[0012] In some embodiments, determining the validity of the location coordinates and collecting valid location coordinates includes:
[0013] Obtaining a calculated radius according to the position coordinates, the calculated radius being the radius of a circle determined according to the plurality of position coordinates;
[0014] Comparing the calculated radius with the actual radius to obtain a radius difference, wherein the actual radius is the sum of the radius of the detection member and the radius of the positioning member;
[0015] When the radius difference is within a preset difference range, it is determined that the position coordinates are valid.
[0016] In some embodiments, the preset difference range is [-6, 6].
[0017] In some embodiments, the number of the position coordinates is at least four, at least four of the position coordinates obtain at least four calculated radii, at least four of the calculated radii obtain at least four radius differences, and when at least four of the radius differences are all within the preset difference range, the position coordinates are determined to be valid.
[0018] In some embodiments, the at least four position coordinates include a first position coordinate, a second position coordinate, a third position coordinate and a fourth position coordinate, the first position coordinate and the second position coordinate have the same longitudinal coordinate, and the third position coordinate and the fourth position coordinate have the same horizontal coordinate.
[0019] In some embodiments, calculating the offset of the positioning member according to the valid position coordinates includes:
[0020] Calculate the actual position coordinates of the positioning element according to the effective position coordinates;
[0021] Calculating the offset of the positioning member on the horizontal axis according to the first position coordinates, the second position coordinates, the actual position coordinates and the original position coordinates of the positioning member;
[0022] The offset of the positioning member on the longitudinal axis is calculated according to the third position coordinate, the fourth position coordinate, the actual position coordinate and the original position coordinate of the positioning member.
[0023] In some embodiments, the offset of the positioning member on the horizontal axis is calculated using the following equation:
[0024] The following equation is used to calculate the offset of the positioning member on the longitudinal axis: where x 1 , x 2 are the horizontal coordinates of the first position coordinate and the second position coordinate respectively; 3 ,y 4 are the ordinates of the third position coordinate and the fourth position coordinate respectively; c ,y c is the actual position coordinate of the positioning member.
[0025] A processing equipment according to an embodiment of the present invention includes a spindle, a detection part, a positioning part, a processing platform and a control device, wherein the positioning part is installed on the processing platform, the spindle is located above the processing platform and is used to clamp the detection part, the control device connects the spindle and the positioning part, and the control device is used to execute the method for determining the positioning part offset in any of the above embodiments.
[0026] In the above processing equipment, effective position coordinates can be collected and the offset of the positioning member can be calculated based on the effective position coordinates. Therefore, the calculated offset has a high accuracy, which is conducive to improving the accuracy of subsequent adjustments.
[0027] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0029] Figures 1 to 3 A schematic flow chart of a method for determining an offset of a positioning member of a processing device according to an embodiment of the present invention;
[0030] Figures 4 to 5 It is a schematic diagram of the positions of the positioning member and the detection member when they touch each other according to an embodiment of the present invention;
[0031] Figure 6 It is a structural schematic diagram of a processing device according to an embodiment of the present invention;
[0032] Figure 7 for Figure 6 A magnified schematic diagram of the middle A area;
[0033] Figure 8 Schematic diagram of a module of a control device according to an embodiment of the present invention.
[0034] Figure numbers: processing equipment-100, positioning part-10, detection part-12, large circle-14, main axis-16, processing platform-17, processor-18, memory-20, control device-200. DETAILED DESCRIPTION
[0035] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0036] The disclosure herein provides many different embodiments or examples for realizing different structures of the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described herein. Of course, they are merely examples, and the purpose is not to limit the present invention. In addition, the present invention may repeat reference numerals and / or reference letters in different examples, and such repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, the present invention provides various specific examples of processes and materials, but those of ordinary skill in the art may appreciate the application of other processes and / or the use of other materials.
[0037] See also Figure 1-Figure 3 , Figure 7 and Figure 8 In an embodiment of the present invention, a method for determining the offset of a positioning member 10 of a processing device 100 is provided. The processing device 100 includes a spindle 16, a detection member 12, and a processing platform 17. The positioning member 10 is mounted on the processing platform 17. The spindle 16 is located above the processing platform 17 and is used to clamp the detection member 12. The determination method includes:
[0038] Step S101: obtaining the position coordinates of the detection member 12 and the positioning member 10 when they touch each other.
[0039] Step S103: Determine the validity of the position coordinates and collect valid position coordinates.
[0040] Step S105: Calculate the offset of the positioning member 10 according to the effective position coordinates.
[0041] The method for determining the offset of the positioning member 10 of the above-mentioned processing equipment 100 can collect valid position coordinates and calculate the offset of the positioning member 10 based on the valid position coordinates. Therefore, the calculated offset has high accuracy, which is conducive to improving the accuracy of subsequent adjustments.
[0042] Specifically, during the long-term use of the processing equipment 100, the positioning member 10 will have micro-displacement, which requires regular inspection and adjustment. The inspection process requires the detection member 12 to touch the positioning member 10 to obtain the position coordinates, and the offset of the positioning member 10 is calculated by the position coordinates when the detection member 12 touches the positioning member 10. In the process of obtaining the position coordinates, interference or other problems may occasionally occur, resulting in incorrect position coordinate data of the acquired detection member 12. The embodiment of the present invention determines the validity of the position coordinates and collects valid position coordinates, and uses the valid position coordinates to calculate the offset of the positioning member 10, so that the calculated offset has high accuracy, which is conducive to improving the accuracy of subsequent adjustments. A valid position coordinate indicates that the position coordinates of the detection member 12 obtained when the detection member 12 touches the positioning member 10 are not much different from the actual position, and an invalid position coordinate indicates that the position coordinates of the detection member 12 obtained when the detection member 12 touches the positioning member 10 are greatly deviated from the actual position. In some embodiments, the acquired position coordinates when the detection member 12 touches the positioning member 10 may specifically be the position coordinates of the detection member 12, such as the coordinates of the center of the detection member 12 after the detection member 12 touches the positioning member 10. In other embodiments, it may also be the position coordinates of the positioning member 10, such as the coordinates of the contact point where the detection member 12 touches the positioning member 10 after the detection member 12 touches the positioning member 10.
[0043] In some embodiments, the positional offset occurs in a pin clamp for clamping a pin, the pin clamp clamps the positioning member 10 , and the positional offset of the pin clamp is determined by detecting the offset of the positioning member 10 .
[0044] In some embodiments, the processing equipment 100 may be a PCB drilling machine device, the positioning member 10 may be a pin or other positioning member 10 with a top surface that is a perfect circle and can be clamped by a clamping member of the processing equipment 100, and the detection member 12 may be a drill needle or a detection pin clamped by the spindle 16, or other detection member 12 that can be used for detection.
[0045] In some embodiments, step S101 includes: moving the detection member 12 along a plurality of different directions close to the positioning member 10 until the detection member 12 touches the positioning member 10 , and determining the position coordinates of the detection member 12 according to an electrical signal generated when touching.
[0046] In this way, a plurality of different position coordinates can be obtained, the validity of the plurality of position coordinates can be determined, and the offset can be accurately calculated based on the plurality of valid position coordinates.
[0047] Specifically, Figure 4 and Figure 5Schematic diagram of the positions of the positioning member 10 and the detection member 12 when they touch each other. The detection member 12 may be moved in multiple different directions close to the original position of the positioning member 10, where the original position of the positioning member 10 may be the original center position coordinate of the positioning member 10. Figure 4 and Figure 5 , the center of the original position of the positioning member 10 is point C. The spindle 16 clamps the detection member 12 and moves in turn along the positive direction of the X-axis, the negative direction of the X-axis, the negative direction of the Y-axis and the positive direction of the Y-axis toward the positioning member 10 until it touches the positioning member 10. After the detection member 12 touches the positioning member 10, the position coordinates of the detection member 12 are E, F, B, and D respectively. The position coordinates E, F, B, and D can be regarded as the center coordinates of the detection member 12. Among them, C is the center of the original position of the positioning member 10, and C' is the center of the actual position of the positioning member 10. It is known that the radius of the positioning member 10 is Rx, and the radius of the detection member 12 is Rz. In this way, it can be seen that the four points of the position coordinates E, F, B, and D are on the large circle 14 with C' as the center and (Rx+Rz) as the radius. According to the geometric relationship in the figure, the calculated radius of the large circle 14 can be calculated according to the position coordinates of the multiple detection parts 12 obtained, and the radius difference between the calculated radius of the large circle 14 and the actual radius (Rx+Rz) can be calculated. When the radius difference is within the preset difference range, it means that the position coordinates are valid; when the radius difference is not within the preset difference range, it means that the position coordinates are invalid, and the offset can be calculated according to the valid position coordinates. It can be understood that the smaller the radius difference is, the more accurate the position coordinates obtained are, and the accurate offset can be calculated through the accurate position coordinates.
[0048] In some embodiments, the multiple different directions include a first direction, a second direction, a third direction and a fourth direction, the first direction and the second direction are collinear and opposite, the third direction and the fourth direction are collinear and opposite, and the first direction and the third direction are perpendicular.
[0049] Thus, a line formed by the first direction and the second direction is perpendicular to a line formed by the third direction and the fourth direction.
[0050] Specifically, the first direction and the second direction are collinear and opposite, the third direction and the fourth direction are collinear and opposite, and the first direction is perpendicular to the third direction, then the line formed by the first direction and the second direction is perpendicular to the line formed by the third direction and the fourth direction. In some embodiments, the first direction can be along the positive direction of the X-axis or other directions parallel to the direction; the second direction can be along the negative direction of the X-axis or other directions parallel to the direction; the third direction can be along the negative direction of the Y-axis or other directions parallel to the direction; the fourth direction can be along the positive direction of the Y-axis or other directions parallel to the direction. In this way, the detection member 12 is moved along the first direction, the second direction, the third direction and the fourth direction close to the positioning member 10 until the detection member 12 touches the positioning member 10, and the touch points of the detection member 12 touching the positioning member 10 are E, F, B, and D respectively.
[0051] In certain embodiments, see Figure 2 , step S103 includes:
[0052] Step S107: Obtain a calculated radius according to the position coordinates, where the calculated radius is the radius of a circle determined according to the plurality of position coordinates.
[0053] Step S109 : Compare the calculated radius and the actual radius to obtain a radius difference, where the actual radius is the sum of the radius of the detection member 12 and the radius of the positioning member 10 .
[0054] Step S111: when the radius difference is within a preset difference range, determining that the position coordinates are valid.
[0055] In this way, the validity of the position coordinates can be determined.
[0056] Specifically, see Figure 4 and Figure 5 , Figure 4 and Figure 5 It is a schematic diagram of the positions when the positioning member 10 and the detection member 12 touch each other. The positioning member 10 shown in the dotted circle is the positioning member 10 located at the original position, and the positioning member 10 located at the original position takes C as the center of the circle; the positioning member 10 shown in the solid circle is the positioning member 10 located at the actual position, and the positioning member 10 located at the actual position takes C' as the center of the circle. The position coordinates can be the position coordinates of the four detection members 12 when the detection member 12 approaches the positioning member 10 from the four directions of the original position and touches the positioning member 10. In some embodiments, the spindle 16 clamps the detection member 12 and moves toward the positioning member 10 in sequence from the positive direction of the X-axis, the negative direction of the X-axis, the negative direction of the Y-axis, and the positive direction of the Y-axis until it touches the positioning member 10. After the detection member 12 touches the positioning member 10, the position coordinates of the detection member 12 are E, F, B, and D respectively, and the position coordinates E, F, B, and D can be regarded as the center coordinates of the detection member 12.
[0057] In some embodiments, the at least four position coordinates include a first position coordinate, a second position coordinate, a third position coordinate, and a fourth position coordinate, the first position coordinate and the second position coordinate have the same longitudinal coordinate, and the third position coordinate and the fourth position coordinate have the same horizontal coordinate.
[0058] In this way, the offset can be calculated based on at least four position coordinates.
[0059] Specifically, if the ordinates of the first position coordinate and the second position coordinate are the same, then the line connecting the first position coordinate and the second position coordinate is the X-axis or is parallel to the X-axis; if the abscissas of the third position coordinate and the fourth position coordinate are the same, then the line connecting the third position coordinate and the fourth position coordinate is the Y-axis or is parallel to the Y-axis, and the line connecting the first position coordinate and the second position coordinate is perpendicular to the line connecting the third position coordinate and the fourth position coordinate. In some embodiments, the first position coordinate, the second position coordinate, the third position coordinate, and the fourth position coordinate may be the position coordinates of the detection member 12 determined by the electrical signal generated when the detection member 12 touches the positioning member 10 after moving along the first direction, the second direction, the third direction, and the fourth direction, respectively.
[0060] In some embodiments, see Figure 4 and Figure 5 , where C is the coordinate of the center of the original position of the positioning member 10, and C' is the coordinate of the center of the actual position of the positioning member 10. It is known that the radius of the positioning member 10 is Rx, and the radius of the detection member 12 is Rz. The first position coordinate, the second position coordinate, the third position coordinate, and the fourth position coordinate are E, F, B, and D, respectively. The four points E, F, B, and D are on a large circle 14 with C' as the center and (Rx+Rz) as the radius, that is, the circle determined by multiple position coordinates is the large circle 14. Suppose the coordinates of the four points are E(x1, y1), F(x2, y2), B(x3, y3), and D(x4, y4). According to the coordinate formula of the circle, it can be seen that if the coordinates of the three points on the circle are known, the center and radius can be calculated. The calculated radius of the great circle 14 can be obtained by combining any three of the four detected points E, F, B, and D: there are four combinations of three points in a group: FBD, EBD, EFD, and EFB; thus, four calculated radii R1, R2, R3, and R4 can be calculated according to a mathematical algorithm; the four calculated radii are compared with the actual radius (Rx+Rz), and the radius difference is obtained by subtracting them:
[0061] ΔR1=R1-(Rx+Rz)
[0062] ΔR2=R2-(Rx+Rz)
[0063] ΔR3=R3-(Rx+Rz)
[0064] ΔR4=R4-(Rx+Rz)
[0065] In some embodiments, the number of location coordinates is at least four, at least four location coordinates obtain at least four calculated radii, at least four calculated radii obtain at least four radius differences, and when all of the at least four radius differences are within a preset difference range, the location coordinates are determined to be valid.
[0066] In this way, the location coordinates can be ensured to be valid.
[0067] Specifically, in some embodiments, the spindle 16 clamps the detection member 12 and moves it toward the positioning member 10 in sequence from the positive direction of the X-axis, the negative direction of the X-axis, the negative direction of the Y-axis, and the positive direction of the Y-axis until it touches the positioning member 10. After the detection member 12 touches the positioning member 10, the position coordinates of the four detection members 12 are obtained, and the position coordinates are E, F, B, and D, respectively. The position coordinates E, F, B, and D can be regarded as the center coordinates of the detection member 12. According to the coordinate formula of the circle, it can be known that: the coordinates of the three points on the known circle can be obtained to find the center and radius. The calculated radius of the large circle 14 can be obtained by combining any three of the four detected points E, F, B, and D: there are four combinations of three points in a group: FBD, EBD, EFD, and EFB; in this way, four calculated radii R1, R2, R3, and R4 can be calculated according to a mathematical algorithm; the four calculated radii are compared with the actual radius (Rx+Rz), and the four radius differences ΔR1, ΔR2, ΔR3, and ΔR4 are obtained by subtracting them. When the four radius differences ΔR1 , ΔR2 , ΔR3 , and ΔR4 are all within the preset difference range, it is determined that the position coordinates are valid.
[0068] When the acquired position coordinates are accurate, the calculated radius (R1, R2, R3, R4) and the actual radius (Rx+Rz) should be equal, so the closer ΔR1, ΔR2, ΔR3, and ΔR4 are to 0, the more accurate the collected data is. On the contrary, if the absolute value of ΔR1, ΔR2, ΔR3, and ΔR4 is larger, the collected data is less accurate. Limit the ΔR1, ΔR2, ΔR3, and ΔR4 calculated from the valid position coordinates to a preset difference range to achieve the purpose of data processing and screening. If one or more ΔRs are not within the range, the position coordinates of the four points in this group are determined to be invalid, and they need to be re-measured and judged until the position coordinates of the four points that meet the requirements are detected. When the four points meet the requirements, the actual offset of the pin can be obtained based on a simple algorithm.
[0069] Specifically, the original position coordinates of the positioning member 10 are C(x c ,y c ), add the X coordinates of point E and point F and divide by 2 to get the X coordinate of C', which is: Add the Y coordinates of point B and point D and divide by 2 to get the Y coordinate of C': In this way, the offset distance of point C' relative to C is obtained: X-direction offset: Y-direction offset: The specific algorithm is as follows:
[0070] First select E(x1 ,y 1 )、F(x 2 ,y 2 )、B(x 3 ,y 3 )、D(x 4 ,y 4 ) three of the four position coordinates, with E(x 1 ,y 1 )、F(x 2 ,y 2 )、B(x 3 ,y 3 ) as an example, find the radius R1 and center coordinates (X, Y) of the circle 14 where the three points E, F, and B are located. X, Y, R1 are unknown numbers, x 1 ,y 1 , x 2 ,y 2 , x 3 ,y 3 is a constant; , which can be substituted into the standard equation of a circle to obtain:
[0071] (x 1 -X) 2 +(y 1 -Y) 2 =R1 2 Formula (1)
[0072] (x 2 -X) 2 +(y 2 -Y) 2 =R1 2 Formula (2)
[0073] (x 3 -X) 2 +(y 3 -Y) 2 =R1 2 Formula (3)
[0074] From equation (1) and equation (2), we can get:
[0075] x 1 2-2Xx 1 +X2+(y 1 2-2Yy 1 +Y2)-(x 2 2-2Xx 2 +X2)-(y 2 2-2Yy 2 +Y2)=R12-R12
[0076] Arranged:
[0077] x1 2-x 2 2-2x 1 X+2x 2 X+y 1 2 -y 2 2 -2y 1 Y+2y 2 Y=0
[0078] Formula (2)-(3) can be rearranged to obtain:
[0079] x 2 2-x 3 2-2x 2 X+2x 3 X+y 2 2 -y 3 2 -2y 2 Y+2y 3 Y=0
[0080] Arrange the above two equations to get:
[0081] (2x 2 -2x 1 )X+(2y 2 -2y 1 )Y=x 2 2-x 1 2+y 2 2-y 1 2
[0082] (2x 3 -2x 2 )X+(2y 3 -2y 2 )Y=x 3 2-x 2 2+y 3 2-y 2 2
[0083] make:
[0084] e = 2x 2 -2x 1 ; f = 2y 2 -2y 1 ; g = x 2 2-x 1 2+y 2 2-y 1 2;
[0085] a=2x 3 -2x 2 ; b = 2y 3 -2y2 ; c = x 3 2-x 2 2+y 3 2-y 2 2;
[0086] So we have:
[0087] eX+fY=g
[0088] aX+bY=c
[0089] The solution is:
[0090] Substitute e, f, g, a, b, c to calculate the specific value of R1. In this way, the value of R1 can be calculated based on the coordinates of the three points E, F, and B. Similarly, R2 can be calculated based on E, F, D; R3 can be calculated based on F, B, D; and R4 can be calculated based on E, B, D. Compare the four calculated radii with the actual radius (Rx+Rz), and subtract them to get:
[0091] ΔR1=R1-(Rx+Rz)
[0092] ΔR2=R2-(Rx+Rz)
[0093] ΔR3=R3-(Rx+Rz)
[0094] ΔR4=R4-(Rx+Rz)
[0095] If ΔR1, ΔR2, ΔR3, and ΔR4 are all within the preset difference range, it can be determined that the four position coordinates meet the conditions and can be used in the subsequent adjustment device 300; if one or more of them are not satisfied, it can be determined that the four position coordinates do not meet the conditions.
[0096] In some implementations, the preset difference range is [-6, 6].
[0097] In this way, the preset difference range is limited to [-6,6]. On the one hand, a certain error can be retained to ensure that valid position coordinates can be collected. On the other hand, a certain error is limited so that the calculated offset is not much different from the actual offset.
[0098] Specifically, if the preset difference range is too small, it is difficult to obtain valid position coordinates and the offset cannot be calculated; if the preset difference range is too large, the validity of the position coordinates cannot be guaranteed so that the calculated offset differs too much from the actual offset. In some embodiments, the preset difference range may be [-5, 5], and [-5, 5] may be the best preset difference range in this embodiment. In addition, the preset difference range may be expanded or reduced according to actual conditions, and is not limited thereto.
[0099] In certain embodiments, see Figure 3 , step S105 includes:
[0100] Step S113: Calculate the actual position coordinates of the positioning member 10 according to the effective position coordinates.
[0101] Step S115: Calculate the offset of the positioning member 10 on the horizontal axis according to the first position coordinates, the second position coordinates, the actual position coordinates of the positioning member 10, and the original position coordinates.
[0102] Step S117: Calculate the offset of the positioning member 10 on the longitudinal axis according to the third position coordinate, the fourth position coordinate, the actual position coordinate and the original position coordinate of the positioning member 10 .
[0103] In this way, the offset of the positioning member 10 can be calculated.
[0104] Specifically, referring to the above, the first position coordinate, the second position coordinate, the third position coordinate and the fourth position coordinate EFBD position coordinates are: E(x 1 ,y 1 )、F(x 2 ,y 2 )、B(x 3 ,y 3 )、D(x 4 ,y 4 ), the original position coordinate of the positioning member 10 is C(x c ,y c ). The original position coordinates C' (x, y) of the positioning member 10: The X coordinates of point E and point F are added and divided by 2 to obtain the X coordinates of C', that is:
[0105] Add the Y coordinates of point B and point D and divide by 2 to get the Y coordinate of C':
[0106] That is to say This gives the offset of point C' relative to C:
[0107] The offset of the positioning member 10 on the horizontal axis, the offset in the X direction:
[0108] The offset of the positioning member 10 on the longitudinal axis, the offset in the Y direction:
[0109] In some embodiments, the offset of the positioning member 10 on the horizontal axis is calculated using the following equation: The following equation is used to calculate the offset of the positioning member 10 on the longitudinal axis: where x 1 , x2 are the horizontal coordinates of the first position coordinate and the second position coordinate respectively; 3 ,y 4 are the ordinates of the third position coordinate and the fourth position coordinate respectively; c ,y c is the actual position coordinate of the positioning member 10. Please refer to the above for details.
[0110] In some embodiments, after each detection, a set of position coordinate information of four detection members 12 will be obtained, and a series of calculations and comparisons will be used to determine whether this set of data can be used as an offset for subsequent adjustments. If the calculation determines that this set of data does not meet the requirements, it is necessary to re-detect, collect coordinate information again, and repeat the calculation and judgment cycle until valid position coordinates are collected. With valid position coordinates, the calculated offset is a relatively accurate offset, so that subsequent position adjustments can greatly improve the accuracy of the adjustment. The accuracy of the output offset can be improved by processing and screening data; by improving the accuracy of the offset, the time and material waste costs of subsequent adjustment links will also be greatly reduced.
[0111] See also Figure 6 and Figure 7 A processing device 100 according to an embodiment of the present invention includes a spindle 16, a detection member 12, a positioning member 10, a processing platform 17 and a control device 200. The positioning member 10 is installed on the processing platform 17. The spindle 16 is located above the processing platform 17 and is used to clamp the detection member 12. The control device 200 connects the spindle 16 and the positioning member 10. The control device 200 is used to execute the method for determining the offset of the positioning member 10 in any of the above embodiments.
[0112] The processing equipment 100 of the positioning member 10 described above can collect valid position coordinates and calculate the offset of the positioning member 10 according to the valid position coordinates. Therefore, the calculated offset has a high accuracy, which is beneficial to improving the accuracy of subsequent adjustments.
[0113] Specifically, see Figure 6 and Figure 7 The processing equipment 100 includes a processing platform 17, a positioning member 10 is arranged on the processing platform 17, a spindle 16 is arranged above the processing platform 17, the spindle 16 clamps the detection member 12, and the control device 200 is used to execute the method for determining the offset of the positioning member 10 in any of the above embodiments. The spindle 16 can clamp the detection member 12 and move in a direction close to the positioning member 10 to touch the positioning member 10.
[0114] In some embodiments, the processing equipment 100 may also include a support frame and a driving assembly, the spindle 16 is installed on the support frame, the support frame has a first moving assembly and a second moving assembly, the first moving assembly is used to control the spindle 16 to move in the X-axis direction, the second moving assembly is used to control the spindle to move in the Z-axis direction, the driving assembly is installed below the positioning member 10, and can drive the positioning member 10 to move or rotate in the X-axis direction or the Y-axis direction, the driving assembly is installed on the processing platform 17, the processing platform 17 can drive the driving assembly and the workpiece to move in the Y-axis direction, the spindle 16 is located above the processing platform 17, through the first moving assembly and the second moving assembly, the spindle 16 can move in the X-axis and Z-axis directions above the positioning member 10 to process the workpiece fixed on the processing platform 17 by the positioning member 10.
[0115] See also Figure 8 The control device 200 for the offset of the positioning member 10 of the processing equipment 100 according to the embodiment of the present invention comprises a processor 18 and a memory 20, wherein the memory 20 stores a computer program, and the computer program implements the steps of the determination method of any of the above embodiments when executed by the processor 18. Specifically, the control device includes but is not limited to a personal computer, a mobile phone, a tablet computer, etc.
[0116] It is understood that a computer program includes computer program code. The computer program code may be in source code form, object code form, executable file or some intermediate form, etc. Computer readable storage media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), and software distribution medium, etc. The processor may be a central processing unit, or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0117] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0118] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for determining the offset of a positioning member of a processing equipment, characterized in that: The processing equipment includes a spindle, a detection member and a processing platform, the positioning member is installed on the processing platform, the spindle is located above the processing platform and is used to clamp the detection member, and the determination method includes: Obtaining the position coordinates when the detection member touches the positioning member; Determining the validity of the position coordinates and collecting valid position coordinates; The offset of the positioning member is calculated according to the effective position coordinates.
2. The method for determining the offset of a positioning member according to claim 1, characterized in that: Acquiring the position coordinates when the detection member touches the positioning member includes: The detection member is moved along a plurality of different directions close to the positioning member until the detection member touches the positioning member, and the position coordinates of the detection member are determined according to the electrical signal generated when the touch occurs.
3. The method for determining the offset of a positioning member according to claim 2, characterized in that: The multiple different directions include a first direction, a second direction, a third direction and a fourth direction. The first direction and the second direction are collinear and opposite to each other, the third direction and the fourth direction are collinear and opposite to each other, and the first direction and the third direction are perpendicular to each other.
4. The method for determining the offset of a positioning member according to claim 2 or 3, characterized in that: Determining the validity of the position coordinates and collecting valid position coordinates includes: Obtaining a calculated radius according to the position coordinates, the calculated radius being the radius of a circle determined according to the plurality of position coordinates; Comparing the calculated radius with the actual radius to obtain a radius difference, wherein the actual radius is the sum of the radius of the detection member and the radius of the positioning member; When the radius difference is within a preset difference range, it is determined that the position coordinates are valid.
5. The method for determining the offset of a positioning member according to claim 4, characterized in that: The preset difference range is [-6, 6].
6. The method for determining the offset of a positioning member according to claim 4, characterized in that: The number of the position coordinates is at least four, at least four of the position coordinates obtain at least four of the calculated radii, at least four of the calculated radii obtain at least four of the radius differences, and when at least four of the radius differences are all within the preset difference range, the position coordinates are determined to be valid.
7. The method for determining the offset of a positioning member according to claim 6, characterized in that: The at least four position coordinates include a first position coordinate, a second position coordinate, a third position coordinate and a fourth position coordinate, the first position coordinate and the second position coordinate have the same longitudinal coordinate, and the third position coordinate and the fourth position coordinate have the same horizontal coordinate.
8. The method for determining the offset of a positioning member according to claim 7, characterized in that: Calculating the offset of the positioning member according to the effective position coordinates includes: Calculate the actual position coordinates of the positioning element according to the effective position coordinates; Calculating the offset of the positioning member on the horizontal axis according to the first position coordinates, the second position coordinates, the actual position coordinates and the original position coordinates of the positioning member; The offset of the positioning member on the longitudinal axis is calculated according to the third position coordinate, the fourth position coordinate, the actual position coordinate and the original position coordinate of the positioning member.
9. The method for determining the offset of a positioning member according to claim 8, characterized in that: The following equation is used to calculate the offset of the positioning member on the horizontal axis: The following equation is used to calculate the offset of the positioning member on the longitudinal axis: Wherein x1 and x2 are the horizontal coordinates of the first position coordinate and the second position coordinate respectively; y3 and y4 are the vertical coordinates of the third position coordinate and the fourth position coordinate respectively; c ,y c is the actual position coordinate of the positioning member.
10. A processing equipment, characterized in that: It includes a main shaft, a detection part, a positioning part, a processing platform and a control device, the positioning part is installed on the processing platform, the main shaft is located above the processing platform and is used to clamp the detection part, the control device connects the main shaft and the positioning part, and the control device is used to execute the method for determining the positioning part offset described in any one of claims 1-9.
