CN117817152A - Circle center positioning method, device, storage medium and computer program product - Google Patents
Circle center positioning method, device, storage medium and computer program product Download PDFInfo
- Publication number
- CN117817152A CN117817152A CN202410252914.0A CN202410252914A CN117817152A CN 117817152 A CN117817152 A CN 117817152A CN 202410252914 A CN202410252914 A CN 202410252914A CN 117817152 A CN117817152 A CN 117817152A
- Authority
- CN
- China
- Prior art keywords
- coordinates
- edge
- target point
- starting point
- hollow circle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/36—Removing material
- B23K26/38—Removing material by boring or cutting
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/70—Auxiliary operations or equipment
- B23K26/702—Auxiliary equipment
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B7/00—Measuring arrangements characterised by the use of electric or magnetic techniques
- G01B7/004—Measuring arrangements characterised by the use of electric or magnetic techniques for measuring coordinates of points
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Plasma & Fusion (AREA)
- Mechanical Engineering (AREA)
- General Physics & Mathematics (AREA)
- Image Analysis (AREA)
- Laser Beam Processing (AREA)
Abstract
The application is applicable to the technical field of laser processing, and provides a circle center positioning method, a circle center positioning device, a storage medium and a computer program product, wherein the circle center positioning method comprises the steps of obtaining coordinates of a first edge finding starting point; controlling the edge finder to move towards the hollow circle along the Y axis by taking the first edge finding starting point as a starting point so as to determine the coordinates of the first target point and the coordinates of the second target point at the boundary line of the hollow circle; determining the coordinates of the third edge finding starting point according to the coordinates of the first target point and the coordinates of the second target point; controlling the edge finder to move towards the hollow circle along the X axis by taking the third edge finding starting point as a starting point so as to determine the coordinate of a third target point at the boundary line of the hollow circle; and determining the center coordinates of the hollow circle according to the coordinates of the first target point, the coordinates of the second target point and the coordinates of the third target point. The embodiment of the application can realize the positioning of the round workpiece, can be applied to the positioning of the center of a circle of the hub, and improves the machining precision of the hub.
Description
Technical Field
The present disclosure relates to the field of laser processing technologies, and in particular, to a method and apparatus for positioning a center of a circle, a storage medium, and a computer program product.
Background
The laser cutting technology has the advantages of high cutting precision, narrow kerf, high cutting speed, small damage to workpieces and the like, so that the laser cutting technology is widely applied to the fields of automobiles, electronics, aerospace and the like.
When the hub is machined by adopting a laser cutting technology, the hub is fixed by a positioning tool. However, during the long-time processing of the hub, errors generated each time the hub is processed may accumulate, resulting in an increasingly large positional deviation of the hub. Therefore, before the hub is machined, the center position of the hub needs to be positioned so as to determine the position of the hub, and the precision of laser machining of the hub is improved.
Disclosure of Invention
The embodiment of the application provides a circle center positioning method, which can improve the machining precision of a hub.
In a first aspect, an embodiment of the present application provides a circle center positioning method, where the circle center positioning method is used for positioning a circle center of a circular workpiece; the circular workpiece is provided with a high-rise circular surface, a hollow circle is arranged in the high-rise circular surface, and the center of the hollow circle is coincident with the center of the circular workpiece; the circle center positioning method comprises the following steps:
acquiring a coordinate P of a first edge finding starting point 1 (x 1 ,y 1 );
Controlling the edge finder to find the edge at the first edge starting point P 1 Is moved along the Y-axis towards the hollow circle as a starting point to determine the coordinate P of the first target point at the boundary line of the hollow circle 11 (x 11 ,y 11 ) And the coordinates P of the second target point 12 (x 12 ,y 12 );
According to the first target point P 11 And the second target point P 12 Determining the coordinates P of the starting point of the third edge finding 3 (x 3 ,y 3 );
Controlling the edge finder to find the edge at the third edge starting point P 3 As a starting point, moves along the X-axis towards the hollow circle to determine the coordinate P of the third target point at the boundary line of the hollow circle 13 (x 13 ,y 13 );
According to the coordinates P of the first target point 11 (x 11 ,y 11 ) The coordinates P of the second target point 12 (x 12 ,y 12 ) And the coordinates P of the third target point 13 (x 13 ,y 13 ) Determining the center coordinates P of the hollow circle 0 (x 0 ,y 0 );
Wherein the third edge finding starting point P 3 Located at straight line P 11 P 12 On the middle vertical line of the first edge finding starting point P 1 Is positioned on the high-rise round surface.
In some possible embodiments of the first aspect, the hollow circle has a diameter d 1 The outer diameter of the high-rise round surface is d 2 The method comprises the steps of carrying out a first treatment on the surface of the Said first target point P 11 And the second target point P 12 Determining the coordinates P of the starting point of the third edge finding 3 (x 3 ,y 3 ) The method comprises the following steps:
obtaining the diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 ;
According to said x 11 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining the x 3 ;
According to said y 11 And said y 12 Determining said y 3 。
In some possible implementations of the first aspect, the first target point P 11 Is the coordinates of the second target point P 12 Is the coordinates of the third edge finding start point P 3 Is the coordinate of the hollow circle, the diameter d 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 3 =x 11 +d 1 /2+(d 2 -d 1 )/4;
y 3 =(y 11 +y 12 )/2。
in some possible implementations of the first aspect, the boundary line at the hollow circle determines the coordinate P of the third target point 13 After the step of (a), further comprising:
according to the third edge finding starting point P 3 Coordinates P of the third target point 13 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining the coordinate P of the starting point of the fourth edge finding 4 (x 4 ,y 4 );
Controlling the edge finder to find the fourth edge starting point P 4 As a starting point, move along the X axis toward the hollow circle to approach the fourth edge-finding starting point P at the hollow circle 4 Determining the coordinates P of the fourth target point 14 (x 14 ,y 14 );
According to the coordinates P of the first target point 11 (x 11 ,y 11 ) The coordinates P of the second target point 12 (x 12 ,y 12 ) The coordinates P of the third target point 13 (x 13 ,y 13 ) And the coordinates P of the fourth target point 14 (x 14 ,y 14 ) Determining the center coordinates P of the hollow circle 0 (x 0 ,y 0 )。
In some possible implementations of the first aspect, the third target point P 13 Is the coordinates of the third edge finding start point P 3 The coordinates of said fourth edge finding start point P 4 Is the coordinate of the hollow circle, the diameter d 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 4 =x 13 -d 1 -(d 2 -d 1 )/4;
y 4 =y 3 。
in some possible implementations of the first aspect, the control edge finder uses the first edge finding start point P 1 Is moved along the Y-axis towards the hollow circle as a starting point to determine the coordinate P of the first target point at the boundary line of the hollow circle 11 (x 11 ,y 11 ) And the coordinates P of the second target point 12 (x 12 ,y 12 ) The method comprises the following steps:
controlling the edge finder to find the first edge starting point P 1 As a starting point, move along the Y axis toward the hollow circle to approach the first edge-finding starting point P at the hollow circle 1 Determines the coordinates P of the first target point 11 (x 11 ,y 11 );
According to the coordinates P of the first target point 11 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining a second edge finding start point P 2 (x 2 ,y 2 ) Coordinates of (c);
controlling the edge finder to find the edge at the second edge starting point P 2 Is used as a starting point and moves towards the hollow circle along the Y axis so as to approach the second edge-finding starting point P at the hollow circle 2 Determines the coordinates P of the second target point 12 (x 12 ,y 12 )。
In some possible implementations of the first aspect, the coordinates P of the first target point 11 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 2 =x 11 ;
y 2 =y 11 +d 1 +(d 2 -d 1 )/4。
in some possible implementations of the first aspect, the coordinates P of the first edge finding start point 1 Center coordinates P of the hollow circle 0 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
|x 1 -x 0 |<(d 2 -d 1 )/4。
in some possible embodiments of the first aspect, the center coordinates P of the hollow circle 0 Coordinates P with the first edge finding starting point 1 The method meets the following conditions:
y 1 <y 0 。
in a second aspect, embodiments of the present application provide a center positioning device, where the center positioning device includes: the device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the computer program realizes the steps of the circle center positioning method according to any one of the technical schemes when being executed by the processor.
In a third aspect, embodiments of the present application provide a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps of the circle center positioning method according to any one of the foregoing technical solutions.
In a fourth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the steps of the circle center positioning method according to any of the above claims.
The circle center positioning method provided by the embodiment of the application comprises the steps of firstly obtaining a first edge finding starting point P 1 Coordinates of (c); then controlling the edge finder to find the first edge to start point P 1 As a starting point, move along the Y-axis toward the open circle to determine a first target point P at the boundary line of the open circle 11 And the coordinates of the second target point P 12 Coordinates of (c); then according to the first target point P 11 And the coordinates of the second target point P 12 Determining the coordinates P of the starting point of the third edge finding 3 The method comprises the steps of carrying out a first treatment on the surface of the Then controlling the edge finder to find the edge at the third edge starting point P 3 As a starting point, move along the X-axis towards the open circle to determine the coordinates P of the third target point at the boundary line of the open circle 13 The method comprises the steps of carrying out a first treatment on the surface of the Finally, according to the first target point P 11 Coordinates of the second target point P 12 And the coordinates of the third target point P 13 The coordinates of the center of the hollow circle P are determined 0 The method comprises the steps of carrying out a first treatment on the surface of the The positioning device can be used for positioning the round workpiece and can be applied to positioning the center of a wheel hub, so that the machining precision of the wheel hub is improved; and byDetermining a third edge finding starting point P of the intermediate point 3 The success rate of edge finding can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from the structures shown in these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of a circle center positioning method of the present application;
FIG. 2 is a cross-sectional view of a hub provided in an embodiment of the present application;
FIG. 3 is a schematic view of a rim based on the hub of FIG. 2;
FIG. 4 is a flowchart of an embodiment of a circle center positioning method of the present application;
FIG. 5 is a detailed flowchart of step S20 in FIG. 4;
FIG. 6 is a detailed flowchart of step S30 in FIG. 4;
fig. 7 is a flowchart of another embodiment of a circle center positioning method of the present application.
Reference numerals illustrate:
1. a hollow circle; 2. high-rise round surface.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It will be understood that when an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It is to be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate or are based on the orientation or positional relationship shown in the drawings, merely to facilitate description of the present application and simplify description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be configured and operated in a particular orientation, and therefore should not be construed as limiting the present application.
It should be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present application. The terminal of the embodiment of the application can be a laser cutting device.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
In this embodiment of the present application, as shown in fig. 4, the circle center positioning method includes:
step S10, obtaining the coordinates P of the first edge finding starting point 1 (x 1 ,y 1 )。
As shown in fig. 2, the circle center positioning method provided by the embodiment of the application can be used for positioning the circle center of a circular workpiece. The round workpiece is provided with a high-rise round surface 2, and a hollow circle 1 is arranged in the high-rise round surface 2; the center of the hollow circle 1 coincides with the center of the circular workpiece; it will be appreciated that the upper level circular surface 2 is an annular surface. Alternatively, the circular workpiece may be a hub, such that after the coordinates of the center of the hub are determined, the hub is drilled, cut, etc. with a laser beam.
At the time of acquiring the first edge finding starting point P 1 Before the coordinates of the edge finder, a space rectangular coordinate system can be established so that the coordinate position of the edge finder can be determined, and then the position coordinates of each point can be determined according to the coordinate position of the edge finder.
After the positioning tool positions the round workpiece, a user can manually drag the edge finder to the position right above the high-rise round surface, and then orthographic projection of the edge finder on the high-rise round surface is used as a first edge finding starting point P 1 . Because the edge finder is associated with the pre-established space rectangular coordinate system, the coordinates of the position of the edge finder are known, so that the coordinates P of the first edge finding starting point can be determined according to the position of the edge finder in the space rectangular coordinate system 1 (x 1 ,y 1 )。
Edge finderThe interval between the circular workpieces can be set according to actual processing requirements. The coordinate P of the first edge-finding starting point can be determined according to the position coordinate of the edge finder and the distance between the edge finder and the round workpiece 1 (x 1 ,y 1 )。
Step S20, controlling the edge finder to find the first edge starting point P 1 As a starting point, move along the Y-axis toward the open circle to determine the coordinate P of the first target point at the boundary line of the open circle 11 (x 11 ,y 11 ) And the coordinates P of the second target point 12 (x 12 ,y 12 )。
As shown in FIG. 3, at the time of determining the first edge-finding start point P 1 Then, the first edge finding starting point P 1 The hollow circle is opposite to the Y-axis direction. Thereby controlling the edge finder to find the edge at the first edge starting point P 1 As a starting point, moves along the Y-axis toward the open circle. When the edge finder moves to the boundary line position of the hollow circle, the edge finder can detect the boundary line of the hollow circle, thereby determining the coordinate P of the first target point on the boundary line of the hollow circle 11 (x 11 ,y 11 ) And the coordinates P of the second target point 12 (x 12 ,y 12 )。
Since the edge finder uses the first edge finding start point P 1 As a starting point, moves along the Y-axis toward the open circle, so that the edge finder detects a first target point P 11 And a second target point P 12 With respect to straight line y 0 Symmetrical. In particular, the boundary line of the hollow circle can be aligned with the straight line x 1 Is determined as the coordinates P of the first target point 11 (x 11 ,y 11 ) And the coordinates P of the second target point 12 (x 12 ,y 12 ). Wherein, is close to the first edge finding starting point P 1 Is the first target point P 11 Far from the first edge finding starting point P 1 Is the second target point P 12 。
The edge finder may be a capacitive sensor. After the capacitive sensor is moved to a position at a certain height from the surface of the circular workpiece (namely, the high-rise circular surface), the detection function of the capacitive sensor is started. When the voltage variation detected by the capacitance sensor is greater than or equal to a preset value, the detected voltage of the capacitance sensor is suddenly changed, which means that the capacitance sensor is positioned on the boundary line of the hollow circle so as to search the boundary line of the hollow circle.
In one embodiment, the edge finder may use a first edge finder starting point P 1 As a starting point, the boundary line position of the hollow circle detected by the edge finder for the first time is determined as a first target point P 11 Determining the boundary line position of the hollow circle detected by the edge finder for the second time as a second target point P 12 。
In another embodiment, as shown in fig. 3 and 5, step S20 includes:
step S21, controlling the edge finder to find the first edge starting point P 1 Is used as a starting point and moves towards the hollow circle along the Y axis to approach the first edge-finding starting point P at the hollow circle 1 Determines the coordinates P of the first target point 11 (x 11 ,y 11 );
Step S22, according to the coordinates P of the first target point 11 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining a second edge finding start point P 2 (x 2 ,y 2 ) Coordinates of (c);
step S23, controlling the edge finder to find the second edge starting point P 2 Is used as a starting point and moves towards the hollow circle along the Y axis to approach the second edge-finding starting point P at the hollow circle 2 Determines the coordinates P of the second target point 12 (x 12 ,y 12 )。
In the embodiment of the present application, as shown in fig. 2, the hollow circle 1 has a diameter d 1 The diameter of the high-rise round surface 2 is d 2 . The round workpiece can be a standard component or a non-standard component. When the round workpiece is a standard part, the diameter d of the hollow circle can be directly obtained according to the specification of the round workpiece 1 And diameter d of high-rise round surface 2 . When the round workpiece is a non-standard part, the diameter d of the hollow circle can be obtained by measurement 1 And diameter d of high-rise round surface 2 。
In obtaining straight hollow circlesDiameter d 1 And diameter d of high-rise round surface 2 Diameter d of hollow circle 1 And diameter d of high-rise round surface 2 Is stored in memory for recall during use.
Controlling the edge finder to find the first edge to start point P 1 As a starting point, moves along the Y-axis toward the open circle. After the edge finder detects the boundary line of the hollow circle for the first time, determining the position of the boundary line of the hollow circle detected by the edge finder for the first time as a first target point P 11 Thereby determining the coordinate P of the first target point 11 (x 11 ,y 11 )。
Then according to the coordinates P of the first target point 11 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining the coordinates P of the starting point of the second edge finding 2 (x 2 ,y 2 ) So that the second edge finding starting point P 2 As high-rise round as possible. Wherein the coordinate P of the first target point 11 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 2 =x 11 ;
y 2 =y 11 +d 1 +(d 2 -d 1 )/4。
by the coordinates P of the first target point 11 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 To calculate the coordinates P of the second edge finding start point 2 (x 2 ,y 2 ) The second edge finding starting point P can be improved 2 Probability on the high-level circle surface, thereby improving the second target point P 12 Is a success rate of edge finding. Wherein x is 2 =x 11 =x 12 =x 1 。
At the moment of determining the second edge finding starting point P 2 After the coordinates of (2), controlling the edge finder to find the edge at the second edge starting point P 2 As a starting point, moves along the Y-axis toward the open circle. After the edge finder detects the boundary line of the hollow circle for the first time, determining the position of the boundary line of the hollow circle detected by the edge finder for the first time as a second target point P 12 Thereby determining the coordinates P of the second target point 12 (x 12 ,y 12 )。
In determining the coordinates P of the first target point 11 (x 11 ,y 11 ) After that, the blank stroke of the edge finder can be moved to the second edge finding starting point P 2 So as to avoid collision between the edge finder and the round workpiece. Specifically, because the surface of the round workpiece has a height error, the distance between the edge finder and the high-rise round surface is relatively close, and if the edge finder passes through the hollow circle, the edge finder and the round workpiece have the possibility of collision.
The present embodiment therefore begins by first determining the second edge-finding start point P 2 After the coordinates of (2), the second edge finding starting point P 2 As a starting point, find the coordinates P of the second target point 12 (x 12 ,y 12 ) The collision probability of the edge finder and the round workpiece can be reduced, and the edge finding success rate is improved.
Step S30, according to the first target point P 11 And the coordinates of the second target point P 12 Determining the coordinates P of the starting point of the third edge finding 3 (x 3 ,y 3 )。
Specifically, as shown in fig. 3 and 6, step S30 includes:
step S31, obtaining the diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 ;
Step S32, according to x 11 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining x 3 ;
Step S33, according to y 11 And y 12 Determining y 3 。
In obtaining diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 Then according to the coordinate x 11 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 To determine the coordinate x 3 . And then according to the coordinate y 11 And the coordinates y 12 To determine the coordinate y 3 To determine the coordinates P of the starting point of the third edge finding 3 (x 3 ,y 3 ). Thereby improving the third edge finding starting point P 3 Probability on the high-level round surface can be improved, and therefore the edge searching success rate can be improved.
In the present embodiment, the first target point P 11 Coordinates of the second target point P 12 Coordinates of (c) and a third edge finding start point P 3 Coordinates of (d) diameter of hollow circle d 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 3 =x 11 +d 1 /2+(d 2 -d 1 )/4;
y 3 =(y 11 +y 12 )/2。
due to the first target point P 11 And a second target point P 12 With respect to straight line y 0 Symmetrical and thus can pass through the first target point P 11 Is the coordinate y of (2) 11 And a second target point P 12 Is the coordinate y of (2) 12 Coordinate y 11 And the coordinates y 12 Is taken as the third edge finding starting point P 3 Is the coordinate y of (2) 3 . Then pass through the first target point P 11 Coordinate x of (2) 11 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining a third edge finding starting point P 3 Coordinate x of (2) 3 . Increase the third edge finding start point P 3 Probability of being located on the upper round surface is improved, and therefore the edge finding success rate is improved.
The third edge finding starting point P 3 Positioned in a straight line y 0 And the subsequent calculation can be simplified, and the center coordinates of the hollow circle can be conveniently obtained.
In one embodiment, the coordinates P of the first edge-finding start point 1 Center coordinates P of hollow circle 0 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
|x 1 -x 0 |<(d 2 -d 1 )/4。
defining a third edge finding starting point P 3 Coordinate x of (2) 3 =x 1 +(d 1 -d 2 ) 4 due to the third edge-finding start point P 3 Is the coordinate y of (2) 3 =y 0 Thus x 3 Is x 3min =x 0 +d 1 /2,x 3 Has a maximum value of x 3max =x 0 +d 2 2, if a third edge finding starting point P 3 Located on the high-rise round surface, then:
x 0 +d 1 /2<x 1 +(d 1 -d 2 )/4<x 0 +d 2 and/2, i.e.,
x 1 -x 0 >(d 1 -d 2 )/4;
x 1 -x 0 <(d 2 -d 1 )/4;
thereby obtaining |x 1 -x 0 |<(d 2 -d 1 ) 4, so that the third edge finding starting point P 3 Is positioned on the round surface of the high layer, thereby improving the success rate of edge searching.
Step S40, controlling the edge finder to find the edge at the third edge starting point P 3 As a starting point, move along the X-axis towards the open circle to determine the coordinates P of the third target point at the boundary line of the open circle 13 (x 13 ,y 13 )。
At the third edge finding starting point P 3 After the coordinates of (2), controlling the edge finder to find the edge at the third edge starting point P 3 As a starting point, moves along the X-axis toward the open circle. After the edge finder detects the boundary line of the hollow circle for the first time, determining the position of the boundary line of the hollow circle detected by the edge finder for the first time as a third target point P 13 Thereby determining the coordinate P of the third target point 13 (x 13 ,y 13 )。
Step S50, according to the coordinates P of the first target point 11 (x 11 ,y 11 ) Coordinates P of the second target point 12 (x 12 ,y 12 ) And the coordinates P of the third target point 13 (x 13 ,y 13 ) Determining the center coordinates P of a hollow circle 0 (x 0 ,y 0 )。
First target point P 11 Second target point P 12 And a third target point P 13 Are all positioned on the boundary line of the hollow circle, and the third target point P 13 Located at straight line P 11 P 12 On the median vertical line of (2), diameter d of hollow circle 1 It is known that the center coordinates P of the hollow circles can thus be calculated 0 (x 0 ,y 0 ),Thereby determining the position of the circular workpiece.
In the embodiment of the application, the first edge finding starting point P is obtained first 1 Coordinates of (c); then controlling the edge finder to find the first edge to start point P 1 As a starting point, move along the Y-axis toward the open circle to determine a first target point P at the boundary line of the open circle 11 And the coordinates of the second target point P 12 Coordinates of (c); then according to the first target point P 11 And the coordinates of the second target point P 12 Determining coordinates of the starting point of the third edge finding P3 The method comprises the steps of carrying out a first treatment on the surface of the Then controlling the edge finder to find the edge at the third edge starting point P 3 As a starting point, move along the X-axis towards the open circle to determine the coordinates P of the third target point at the boundary line of the open circle 13 The method comprises the steps of carrying out a first treatment on the surface of the Finally, according to the first target point P 11 Coordinates of the second target point P 12 And the coordinates of the third target point P 13 The coordinates of the center of the hollow circle P are determined 0 The method comprises the steps of carrying out a first treatment on the surface of the The positioning device can be used for positioning the round workpiece and can be applied to positioning the center of a wheel hub, so that the machining precision of the wheel hub is improved; and by determining the intermediate point third edge finding start point P 3 The success rate of edge finding can be improved.
In one embodiment, as shown in fig. 3 and 7, after step S40, the method further includes:
step S60, according to the third edge finding start point P 3 Coordinates P of the third target point 13 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining the coordinate P of the starting point of the fourth edge finding 4 (x 4 ,y 4 );
Step S70, controlling the edge finder to find the fourth edge starting point P 4 Is used as a starting point and moves towards the hollow circle along the X axis to approach the fourth edge-finding starting point P at the hollow circle 4 Determining the coordinates P of the fourth target point 14 (x 14 ,y 14 );
Step S80, according to the coordinates P of the first target point 11 (x 11 ,y 11 ) Coordinates P of the second target point 12 (x 12 ,y 12 ) Coordinates P of the third target point 13 (x 13 ,y 13 ) And (d)Coordinates P of four target points 14 (x 14 ,y 14 ) Determining the center coordinates P of a hollow circle 0 (x 0 ,y 0 )。
In determining the coordinates P of the third target point 13 Then according to the third edge finding starting point P 3 Coordinates P of the third target point 13 Diameter d of hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining the coordinate P of the starting point of the fourth edge finding 4 (x 4 ,y 4 ). To improve the fourth edge finding starting point P 4 Probability on the upper round surface, thereby improving the edge finding success rate.
Wherein the third target point P 13 Coordinates of (c) and a third edge finding start point P 3 Coordinates of (c) and fourth edge finding start point P 4 Coordinates of (d) diameter of hollow circle d 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 4 =x 13 -d 1 -(d 2 -d 1 )/4;
y 4 =y 3 。
to improve the fourth edge finding starting point P 4 Probability on the upper round surface, thereby improving the edge finding success rate.
And |x 1 -x 0 |<(d 2 -d 1 ) /4, can enable the fourth edge finding starting point P 4 Is positioned on the round surface of the high layer, thereby improving the success rate of edge searching.
At the point of determining the coordinates P of the fourth edge finding start point 4 (x 4 ,y 4 ) Then, the edge finder is controlled to find the edge at the fourth edge starting point P 4 As a starting point, moves along the X-axis toward the open circle. After the edge finder detects the boundary line of the hollow circle for the first time, determining the position of the boundary line of the hollow circle detected by the edge finder for the first time as a fourth target point P 14 Thereby determining the coordinate P of the fourth target point 14 (x 14 ,y 14 )。
At the determination of the fourth target point P 14 After the coordinates of the first target point are based on the coordinates P of the first target point 11 (x 11 ,y 11 ) Coordinates P of the second target point 12 (x 12 ,y 12 ) Coordinates P of the third target point 13 (x 13 ,y 13 ) And the coordinates P of the fourth target point 14 (x 14 ,y 14 ) Determining the center coordinates P of a hollow circle 0 (x 0 ,y 0 ). Wherein x is 0 =(x 13 +x 14 )/2,y 0 =(y 11 +y 12 )/2。
Understandably, y 0 =(y 11 +y 12 )/2=y 3 =y 4 ,x 1 =x 11 =x 2 =x 12 。
In one embodiment, as shown in FIG. 1, the center coordinates P of the hollow circle 0 Coordinates P with the first edge finding start point 1 The method meets the following conditions:
y 1 <y 0 。
thereby the center P of the hollow circle can be determined 0 And the first edge searching starting point P 1 So as to control the edge finder to automatically find edges and improve the edge finding efficiency.
In the present embodiment, as shown in FIG. 3, a first edge-finding start point P is determined 1 Then, the edge finder is controlled to find the edge at the first edge starting point P 1 As a starting point, moves in the positive direction of the Y-axis, thereby determining the first target point P on the boundary line of the open circle 11 Is defined by the coordinates of (a).
At the moment of determining the second edge finding starting point P 2 Then, the edge finder is controlled to find the edge at the second edge starting point P 2 As a starting point, moves in the negative Y-axis direction to determine a second target point P on the boundary line of the open circle 12 Is defined by the coordinates of (a).
At the third edge finding starting point P 3 Then, the edge finder is controlled to find the edge at the third edge starting point P 3 As a starting point, moves in the negative X-axis direction to determine a third target point P on the boundary line of the open circle 13 Is defined by the coordinates of (a).
At the moment of determining the fourth edge finding starting point P 4 Then, the edge finder is controlled to find the edge at the fourth edge starting point P 4 As a starting point, move in the positive direction of the X-axis to determine a fourth on the boundary line of the open circleTarget point P 14 Is defined by the coordinates of (a).
At the moment of determining the second edge finding starting point P 2 A third edge finding starting point P 3 And a fourth edge finding start point P 4 Then, the blank stroke of the edge finder can be controlled to move to a second edge finding starting point P 2 A third edge finding starting point P 3 And a fourth edge finding start point P 4 So as to reduce the collision probability of the edge finder and the round workpiece.
In addition, the embodiment of the application also provides a circle center positioning device, the circle center positioning device includes: the device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the computer program is executed by the processor to realize the steps of the circle center positioning method according to any embodiment.
In addition, the embodiment of the application also provides a laser cutting device, which comprises: the device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the computer program is executed by the processor to realize the steps of the circle center positioning method according to any embodiment.
In addition, the embodiment of the application further provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the circle center positioning method according to any embodiment are implemented.
Furthermore, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the steps of the circle center positioning method according to any of the embodiments described above.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the claims, and all equivalent structural changes made in the present application and the accompanying drawings or direct/indirect application in other related technical fields are included in the scope of the present application.
Claims (12)
1. The circle center positioning method is characterized by being used for positioning the circle center of a circular workpiece; the circular workpiece is provided with a high-rise circular surface, a hollow circle is arranged in the high-rise circular surface, and the center of the hollow circle is coincident with the center of the circular workpiece; the circle center positioning method comprises the following steps:
acquiring a coordinate P of a first edge finding starting point 1 (x 1 ,y 1 );
Controlling the edge finder to find the edge at the first edge starting point P 1 Is moved along the Y-axis towards the hollow circle as a starting point to determine the coordinate P of the first target point at the boundary line of the hollow circle 11 (x 11 ,y 11 ) And the coordinates P of the second target point 12 (x 12 ,y 12 );
According to the first target point P 11 And the second target point P 12 Determining the coordinates P of the starting point of the third edge finding 3 (x 3 ,y 3 );
Controlling the edge finder to find the edge at the third edge starting point P 3 As a starting point, moves along the X-axis towards the hollow circle to determine the coordinate P of the third target point at the boundary line of the hollow circle 13 (x 13 ,y 13 );
According to the coordinates P of the first target point 11 (x 11 ,y 11 ) The coordinates P of the second target point 12 (x 12 ,y 12 ) And the coordinates P of the third target point 13 (x 13 ,y 13 ) Determining the center coordinates P of the hollow circle 0 (x 0 ,y 0 );
Wherein the third edge finding starting point P 3 Located at straight line P 11 P 12 On the middle vertical line of the first edge finding starting point P 1 Is positioned on the high-rise round surface.
2. The method for locating a circle center as claimed in claim 1, wherein the diameter of the hollow circle is d 1 The high-rise round surfaceHas an outer diameter d 2 The method comprises the steps of carrying out a first treatment on the surface of the Said first target point P 11 And the second target point P 12 Determining the coordinates P of the starting point of the third edge finding 3 (x 3 ,y 3 ) The method comprises the following steps:
obtaining the diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 ;
According to said x 11 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining the x 3 ;
According to said y 11 And said y 12 Determining said y 3 。
3. The center positioning method according to claim 2, wherein the first target point P 11 Is the coordinates of the second target point P 12 Is the coordinates of the third edge finding start point P 3 Is the coordinate of the hollow circle, the diameter d 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 3 =x 11 +d 1 /2+(d 2 -d 1 )/4;
y 3 =(y 11 +y 12 )/2。
4. a circle center positioning method as claimed in claim 3, wherein the coordinates P of the third target point are determined at the boundary line of the hollow circle 13 After the step of (a), further comprising:
according to the third edge finding starting point P 3 Coordinates P of the third target point 13 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining the coordinate P of the starting point of the fourth edge finding 4 (x 4 ,y 4 );
Controlling the edge finder to find the fourth edge starting point P 4 As a starting point, move along the X axis toward the hollow circle to approach the fourth edge-finding starting point P at the hollow circle 4 Boundary line of (2) determines fourth objectCoordinates P of points 14 (x 14 ,y 14 );
According to the coordinates P of the first target point 11 (x 11 ,y 11 ) The coordinates P of the second target point 12 (x 12 ,y 12 ) The coordinates P of the third target point 13 (x 13 ,y 13 ) And the coordinates P of the fourth target point 14 (x 14 ,y 14 ) Determining the center coordinates P of the hollow circle 0 (x 0 ,y 0 )。
5. The center positioning method according to claim 4, wherein the third target point P 13 Is the coordinates of the third edge finding start point P 3 The coordinates of said fourth edge finding start point P 4 Is the coordinate of the hollow circle, the diameter d 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 4 =x 13 -d 1 -(d 2 -d 1 )/4;
y 4 =y 3 。
6. the method of claim 2, wherein said controlling edge finder uses said first edge finding start point P 1 Is moved along the Y-axis towards the hollow circle as a starting point to determine the coordinate P of the first target point at the boundary line of the hollow circle 11 (x 11 ,y 11 ) And the coordinates P of the second target point 12 (x 12 ,y 12 ) The method comprises the following steps:
controlling the edge finder to find the first edge starting point P 1 As a starting point, move along the Y axis toward the hollow circle to approach the first edge-finding starting point P at the hollow circle 1 Determines the coordinates P of the first target point 11 (x 11 ,y 11 );
According to the coordinates P of the first target point 11 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 Determining a second edge finding start point P 2 (x 2 ,y 2 ) Coordinates of (c);
controlling the edge finder to find the edge at the second edge starting point P 2 Is used as a starting point and moves towards the hollow circle along the Y axis so as to approach the second edge-finding starting point P at the hollow circle 2 Determines the coordinates P of the second target point 12 (x 12 ,y 12 )。
7. The method of claim 6, wherein the coordinates P of the first target point 11 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
x 2 =x 11 ;
y 2 =y 11 +d 1 +(d 2 -d 1 )/4。
8. the method of claim 2, wherein the coordinates P of the first edge finding start point 1 Center coordinates P of the hollow circle 0 Diameter d of the hollow circle 1 And the outer diameter d of the high-rise round surface 2 The method meets the following conditions:
|x 1 -x 0 |<(d 2 -d 1 )/4。
9. the method for locating a center of a circle according to claim 1, wherein the center coordinates P of the hollow circle 0 Coordinates P with the first edge finding starting point 1 The method meets the following conditions:
y 1 <y 0 。
10. a center positioning device, characterized in that the center positioning device comprises: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the circle center positioning method according to any one of claims 1 to 9.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the circle center positioning method according to any of claims 1 to 9.
12. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the steps of the circle center positioning method according to any one of claims 1 to 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410252914.0A CN117817152B (en) | 2024-03-06 | 2024-03-06 | Circle center positioning method, device, storage medium and computer program product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410252914.0A CN117817152B (en) | 2024-03-06 | 2024-03-06 | Circle center positioning method, device, storage medium and computer program product |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117817152A true CN117817152A (en) | 2024-04-05 |
| CN117817152B CN117817152B (en) | 2025-01-07 |
Family
ID=90506201
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410252914.0A Active CN117817152B (en) | 2024-03-06 | 2024-03-06 | Circle center positioning method, device, storage medium and computer program product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117817152B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62204378A (en) * | 1986-03-05 | 1987-09-09 | Yaskawa Electric Mfg Co Ltd | Method for detecting center of circle |
| US5655030A (en) * | 1993-12-27 | 1997-08-05 | Uht Corporation | Method for detecting the center of target marks by image processing |
| CN104647143A (en) * | 2014-12-24 | 2015-05-27 | 湘潭电机股份有限公司 | Method for automatically calculating coordinates of workpiece symcenter of numerically-controlled machine tool |
| CN107457437A (en) * | 2017-08-24 | 2017-12-12 | 中航卓越锻造(无锡)有限公司 | The method that large-sized numerical control drilling machine processing annular forging piece looks for the center of circle |
| CN115430925A (en) * | 2021-06-03 | 2022-12-06 | 大族激光科技产业集团股份有限公司 | A workpiece positioning method and system |
| CN115482267A (en) * | 2022-08-26 | 2022-12-16 | 昆山丘钛光电科技有限公司 | Circle center positioning method, device, equipment and medium based on circular object |
-
2024
- 2024-03-06 CN CN202410252914.0A patent/CN117817152B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62204378A (en) * | 1986-03-05 | 1987-09-09 | Yaskawa Electric Mfg Co Ltd | Method for detecting center of circle |
| US5655030A (en) * | 1993-12-27 | 1997-08-05 | Uht Corporation | Method for detecting the center of target marks by image processing |
| CN104647143A (en) * | 2014-12-24 | 2015-05-27 | 湘潭电机股份有限公司 | Method for automatically calculating coordinates of workpiece symcenter of numerically-controlled machine tool |
| CN107457437A (en) * | 2017-08-24 | 2017-12-12 | 中航卓越锻造(无锡)有限公司 | The method that large-sized numerical control drilling machine processing annular forging piece looks for the center of circle |
| CN115430925A (en) * | 2021-06-03 | 2022-12-06 | 大族激光科技产业集团股份有限公司 | A workpiece positioning method and system |
| CN115482267A (en) * | 2022-08-26 | 2022-12-16 | 昆山丘钛光电科技有限公司 | Circle center positioning method, device, equipment and medium based on circular object |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117817152B (en) | 2025-01-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6937995B2 (en) | Object recognition processing device and method, and object picking device and method | |
| CN103329055B (en) | Processing error calculation device, processing error calculation method, processing control device, and processing control method | |
| JP5171444B2 (en) | Cutting method and cutting apparatus | |
| US10108174B2 (en) | Numerical controller controlling a laser processing machine | |
| US20170050380A1 (en) | Printing correction method and three-dimensional printing device | |
| JP2019155535A (en) | Workpiece picking device and method | |
| JP2012247911A (en) | Information processing apparatus, information processing method, and program | |
| JP2024096369A (en) | Measurement device, measurement method, and program | |
| JP2017146893A (en) | Self-position estimation method | |
| CN115187672A (en) | Geometric error calibration method and device, multi-axis motion system and storage medium | |
| CN117817152B (en) | Circle center positioning method, device, storage medium and computer program product | |
| CN116787010A (en) | Metal material high-precision edge detection method, device, equipment and storage medium | |
| JP2016201031A (en) | Numerical control device capable of checking interference between tool and workpiece | |
| JP5200980B2 (en) | Tracking control device and tracking control method | |
| JP6796899B1 (en) | Information processing method, information processing system, program | |
| CN115647614B (en) | Optical path adjusting method, device, equipment and storage medium | |
| WO2025130739A1 (en) | Device moving method and apparatus, device, and storage medium | |
| CN115430925B (en) | Workpiece positioning method and system | |
| CN107990893B (en) | Detection method for sudden change of detection environment in two-dimensional laser radar S L AM | |
| CN115847424A (en) | Robot recharging method and system based on image recognition and electronic equipment | |
| CN117226250B (en) | Processing positioning method, processing positioning device and computer readable storage medium | |
| JP2010235063A (en) | Vehicle control apparatus, vehicle, and vehicle control program | |
| JP2010235062A (en) | Vehicle control apparatus, vehicle, and vehicle control program | |
| JP2019162681A (en) | Processing device and processing method | |
| JP2016090478A (en) | Measurement value correction method, measurement value correction program, and measurement apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |