Method for automatically grinding edge of workpiece
By analyzing workpiece drawings and calculating grinding trajectories, and using conical head grinding tools and machine vision, the grinding trajectories for workpiece edges and holes are automatically generated. This solves the problems of online, real-time, accurate, and fast workpiece edge grinding, achieving efficient, safe, and stable quality automatic grinding.
Patent Information
- Application Number
- CN202410997298.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-26
AI Technical Summary
Existing technologies struggle to generate online, real-time, accurate, and rapid automatic grinding trajectories for workpiece edges, resulting in excessive manual intervention, high production costs, poor safety, and unstable grinding quality.
By analyzing the workpiece drawings, the grinding trajectory of the workpiece's outer contour and holes is calculated. Using a conical grinding wheel, combined with machine vision and a robotic arm, the grinding trajectory of the workpiece's edge and holes is automatically generated, ensuring the accurate position of the grinding head at the workpiece's edge and the hole's inner or outer expansion or contraction.
It enables rapid and accurate automatic grinding of workpiece edges and holes, reducing manual intervention, lowering production costs, improving production efficiency and safety, and enhancing grinding quality.
Smart Images

Figure CN119017177A_ABST
Abstract
Description
Technical Field
[0001] The present invention is oriented to the field of intelligent manufacturing, relates to a digital processing technology for workpiece edge grinding, and provides a new method for automatically generating a workpiece edge grinding trajectory. Background Art
[0002] For modern factories in the heavy industry that need to perform a large amount of workpiece edge grinding, the introduction of intelligent manufacturing technology can effectively reduce manual intervention, ensure production safety, reduce production costs, improve grinding quality and increase production efficiency. Automatic workpiece edge grinding requires a method that can generate workpiece edge grinding trajectories online, in real time, accurately, quickly and intelligently, providing technical support for subsequent automatic grinding of workpiece edges through machine vision, manipulators and grinding tools. Summary of the invention
[0003] The purpose of the present invention is to provide a method for automatically grinding the edge of a workpiece in the field of intelligent manufacturing in the heavy industry. The technical solution of the present invention is as follows:
[0004] A method for automatically grinding the edge of a workpiece, which is used for grinding the edge of a plate-type workpiece, comprises the following steps:
[0005] (1) Configure the mold parameters;
[0006] (2) Establishing the workpiece coordinate system;
[0007] (3) Analyze a single workpiece drawing to obtain the workpiece edge, which includes the workpiece outer contour and the workpiece hole;
[0008] (4) The steps for calculating the grinding trajectory of the workpiece outer contour are as follows:
[0009] ① Obtain the coordinate set of the vertices of the outer contour of the workpiece;
[0010] ② Obtain the outer expansion distance of the workpiece outer contour;
[0011] ③ Obtain the coordinate set of the outer extension points of the workpiece outer contour vertices; traverse the coordinate set of the outer contour vertices of the workpiece, and calculate the corresponding outer extension point coordinates for each vertex as follows:
[0012] First, the current vertex is regarded as a convex point, and the expansion point is determined by the expansion point calculation formula of the convex point; then the ray method is used to determine whether the expansion point is outside the workpiece contour. If it is outside the workpiece contour, it means that the point is the correct expansion point; if it is inside the contour, it means that the point at the same distance in the opposite direction is the correct expansion point, and the expansion point calculation formula of the concave point is used to obtain the correct expansion point; if the current vertex is a flat point, the expansion point is directly determined according to the expansion distance;
[0013] ④Generate the grinding trajectory of the workpiece outer contour;
[0014] (5) The grinding trajectory of the workpiece hole is calculated according to the same principle, except that the inner contour of the workpiece hole is taken as the indentation point;
[0015] (6) Automatic grinding of workpieces.
[0016] Furthermore, step (1) includes: grinding the edge and hole of the workpiece with a conical head, and configuring the mold parameters according to the mold, the mold parameters including: mold length, mold width, tip diameter, rough knife diameter, fine knife diameter, working height, and grinding depth.
[0017] Furthermore, the method for obtaining the edge of the workpiece in step (3) is: generating a filling map of the workpiece according to the analysis result of the workpiece drawing, calculating the length, width, thickness and center of gravity information of the workpiece,
[0018] Furthermore, in step (4), the method for calculating the expansion point is as follows:
[0019] Let the current vertex be P i , the expansion distance is R, and the expansion point of the current vertex is Q i , the previous vertex of the current vertex is P i-1 , the next vertex after the current vertex is P i+1 , the internal angle of the current vertex is θ i , P i-1 Point to P i The unit vector is e i , P i Point to P i+1 The unit vector is e i+1 ;
[0020] If the current vertex is a convex point, the calculation formula for the expansion point is:
[0021]
[0022] If the current vertex is a concave point, the calculation formula for the expansion point is:
[0023]
[0024] Furthermore, the method of step (5) is as follows:
[0025] ① Obtain the coordinate set of the workpiece hole vertices;
[0026] ② Obtain the retraction distance of the workpiece hole;
[0027] ③ Obtain the indentation point coordinate set of the workpiece hole vertex; traverse the workpiece hole vertex coordinate set and calculate the corresponding indentation point coordinate for each vertex as follows:
[0028] First, the current vertex is regarded as a concave point, and the indentation point is determined by the indentation point calculation formula of the concave point; then the ray method is used to determine whether the indentation point is inside the workpiece hole. If it is inside the workpiece hole, it means that the point is the correct indentation point; if it is outside the workpiece hole, it means that the point at the same distance in the opposite direction is the correct indentation point, and the correct indentation point is obtained by the indentation point calculation formula of the convex point; if the current vertex is a flat point, the indentation point is directly determined according to the indentation distance;
[0029] ④Generate workpiece hole grinding trajectory;
[0030] Furthermore, in step (4), the method for calculating the indentation point is as follows:
[0031] Let the current vertex be P i , the inward distance is R, and the inward point of the current vertex is Q i , the previous vertex of the current vertex is P i-1 , the next vertex after the current vertex is P i+1 , the internal angle of the current vertex is θ i , P i-1 Point to P i The unit vector is e i , P i Point to P i+1 The unit vector is e i+1 ;
[0032] If the current vertex is a convex point, the calculation formula for the indentation point is:
[0033]
[0034] If the current vertex is a concave point, the calculation formula for the indentation point is:
[0035]
[0036] The edge grinding method for plate-type workpieces of the present invention can achieve rapid and accurate acquisition of the workpiece grinding trajectory and automatic grinding of the workpiece edge after extracting the inner and outer contours of the workpiece based on the drawing analysis and recognition results. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 Example of side view of the cone head of the grinding tool;
[0038] Figure 2 Example diagram of workpiece coordinate system;
[0039] Figure 3 Example of workpiece drawing in DXF format;
[0040] Figure 4 Example of workpiece filling diagram;
[0041] Figure 5 Bump example diagram
[0042] Figure 6 Concave point example
[0043] Figure 7 Flat spot example
[0044] Figure 8 Example of workpiece outer contour grinding trajectory
[0045] Fig. 9 Example of workpiece hole grinding trajectory DETAILED DESCRIPTION
[0046] The present invention is described below in conjunction with implementation cases.
[0047] 1.Configure mold parameters
[0048] The grinding tool generally uses a conical grinding head to grind the edges and holes of the workpiece. The grinding tool parameters are configured according to the grinding tool provided by the customer. The grinding tool parameters mainly include: grinding tool length, grinding tool width, tip diameter, rough blade diameter, fine blade diameter, working height, and grinding depth.
[0049] Example of side view of the cone head of the mold Figure 1 .
[0050] 2. Establish the workpiece coordinate system. The workpiece coordinate system takes the lower left corner of the minimum circumscribed rectangle of the workpiece as the origin, the horizontal right is the positive direction of the X axis, and the vertical upward is the positive direction of the Y axis.
[0051] An example of a workpiece coordinate system is Figure 2 .
[0052] 3. Analyze a single workpiece drawing
[0053] Parsing a single workpiece drawing is an important basis for calculating the edge grinding trajectory of the workpiece. The workpiece drawing parsing results can generate a fill map of the workpiece and calculate the length, width, thickness, center of gravity and other information of the workpiece.
[0054] The drawing parsing algorithm is relatively complex and is not described in this document. Please refer to patent CN202310276738.X, which provides a parsing method for nesting drawings of plate-type workpieces.
[0055] The workpiece filling image has a black background and the workpiece surface is filled with white.
[0056] DXF format workpiece diagram example Figure 3 .
[0057] After parsing, the workpiece fills the diagram, for example Figure 4 .
[0058] 4. Calculate the grinding trajectory of the workpiece edge
[0059] The workpiece edge includes the workpiece outer contour and the workpiece hole. The workpiece edge primitive type is only a line segment or an arc. The workpiece edge grinding trajectory is the movement trajectory of the actual grinding head position (coarse knife or fine knife) and the center point of the cross-cutting circle around the workpiece edge for grinding.
[0060] 1) The steps to calculate the grinding trajectory of the workpiece outer contour are as follows:
[0061] ① Obtain the coordinate set of the vertices of the workpiece outer contour. Starting from the lower left corner of the workpiece outer contour, obtain the endpoint coordinates of each primitive on the workpiece outer contour in a clockwise direction, and remove the duplicate coordinates of the intersection of two primitives.
[0062] ② Obtain the expansion distance of the workpiece outer contour. The grinding track of the workpiece outer contour is expanded at equal distances relative to the workpiece outer contour, and the expansion distance is the cross-cutting circle radius of the grinding head use position (coarse knife or fine knife).
[0063] ③ Obtain the coordinate set of the outer extension points of the workpiece outer contour vertices. Traverse the "workpiece outer contour vertex coordinate set" and calculate the corresponding outer extension point coordinates for each vertex:
[0064] Vertex types include convex points, concave points, and flat points. The internal angle of a convex point is less than 180°. Examples of convex points are Figure 5 .
[0065] The internal angle of the concave point is greater than 180°. Examples of concave points are Figure 6 .
[0066] The internal angle of a flat point is equal to 180°. Examples of flat points are Figure 7 .
[0067] Assume that the current vertex is P i , the expansion distance is R, and the expansion point of the current vertex is Q i , the previous vertex of the current vertex is P i-1 , the next vertex after the current vertex is P i+1 , the internal angle of the current vertex (i.e. P i-1 P i With P i+1 P i The angle between i , P i-1 Point to P i The unit vector is e i , P i Point to P i+1 The unit vector is e i+1 .
[0068] If the current vertex is a convex point, the calculation formula for the expansion point is:
[0069]
[0070] If the current vertex is a concave point, the calculation formula for the expansion point is:
[0071]
[0072] Since the vertex type cannot be determined directly, the current vertex is first treated as a convex point, and the expansion point is determined by the expansion point calculation formula of the convex point. Then the ray method is used to determine whether the "expansion point" is outside the contour of the workpiece. If it is outside the contour, it means that the point is the correct expansion point; if it is inside the contour, it means that the point at the same distance in the opposite direction is the correct expansion point, and the expansion point calculation formula of the concave point is used to obtain the correct expansion point; if it is on the contour, it means that the current vertex is a flat point, and there is no need to calculate the expansion point of the vertex.
[0073] ④ Connect the expansion points of the vertices of the outer contour of the workpiece in sequence. Connect the original line segments into line segments, and the original arcs into arcs (new radius = original radius + expansion distance). The new contour finally formed is the grinding trajectory of the outer contour of the workpiece.
[0074] Examples of workpiece outer contour grinding tracks are as follows: Figure 8 .
[0075] 2) Calculating the grinding trajectory of the workpiece hole is similar to calculating the grinding trajectory of the workpiece outer contour, except that the outer contour of the workpiece is taken as the outer expansion point, and the inner contour of the workpiece is taken as the inner contraction point. The specific steps are as follows:
[0076] ① Obtain the vertex coordinate set of the workpiece hole. Starting from the lower left corner of the workpiece hole, obtain the endpoint coordinates of each primitive of the workpiece hole in a clockwise direction, and remove the duplicate coordinates of the intersection of two primitives.
[0077] ② Obtain the indentation distance of the workpiece hole. The grinding track of the workpiece hole is indented at an equal distance relative to the workpiece hole, and the indentation distance is the cross-cutting circle radius of the grinding head use position (coarse knife or fine knife).
[0078] ③ Obtain the indentation point coordinate set of the workpiece hole vertex. Traverse the "workpiece hole vertex coordinate set" and calculate the corresponding indentation point coordinates for each vertex:
[0079] Assume that the current vertex is P i , the inward distance is R, and the inward point of the current vertex is Q i , the previous vertex of the current vertex is P i-1 , the next vertex after the current vertex is P i+1 , the internal angle of the current vertex (i.e. P i-1 P i With P i+1 P i The angle between i , P i-1 Point to P i The unit vector is ei , P i Point to P i+1 The unit vector is e i+1 .
[0080] If the current vertex is a convex point, the calculation formula for the indentation point is:
[0081]
[0082] If the current vertex is a concave point, the calculation formula for the indentation point is:
[0083]
[0084] Since the vertex type cannot be determined directly, the current vertex is first treated as a concave point, and the indentation point is determined by the indentation point calculation formula. Then the ray method is used to determine whether the "indentation point" is inside the workpiece hole. If it is inside the workpiece hole, it means that the point is the correct indentation point; if it is outside the workpiece hole, it means that the point at the same distance in the opposite direction is the correct indentation point, and the correct indentation point is obtained by the indentation point calculation formula of the convex point; if it is on the workpiece hole, it means that the current vertex is a flat point, and there is no need to calculate the indentation point of the vertex.
[0085] ④ Connect the indented points of the workpiece hole vertices in sequence. Connect the original line segments into line segments, and the original arcs into arcs (new radius = original radius - indented distance). The final new contour is the workpiece hole grinding trajectory.
[0086] An example of workpiece hole grinding trajectory is as follows Fig. 9 .
[0087] 5. Automatic grinding of workpiece
[0088] The drawing analysis result is used as the workpiece template, and the machine vision recognizes the workpiece according to the workpiece template. The manipulator equipped with a conical grinding head grinds the workpiece edge and hole according to the workpiece edge grinding track. When grinding, it is not allowed to collide with other edge positions of the workpiece. For narrow positions, when the coarse knife cannot grind, use a fine knife for grinding.
[0089] It should be noted that this implementation case takes the steel plate workpiece drawing as an example. In actual application, it is not limited to steel plates, but can be applied to various types of plates. The workpiece drawing format involved can be DXF or JSON format, or other formats.
Claims
1. A method for automatically grinding the edge of a workpiece, which is used for grinding the edge of a plate-type workpiece, comprising the following steps: (1) Configure the mold parameters; (2) Establishing the workpiece coordinate system; (3) Analyze a single workpiece drawing to obtain the workpiece edge, which includes the workpiece outer contour and the workpiece hole; (4) The steps for calculating the grinding trajectory of the workpiece outer contour are as follows: ① Obtain the coordinate set of the vertices of the outer contour of the workpiece; ② Obtain the outer expansion distance of the workpiece outer contour; ③ Obtain the coordinate set of the outer extension points of the workpiece outer contour vertices; traverse the coordinate set of the outer contour vertices of the workpiece, and calculate the corresponding outer extension point coordinates for each vertex as follows: First, the current vertex is regarded as a convex point, and the expansion point is determined by the expansion point calculation formula of the convex point; then the ray method is used to determine whether the expansion point is outside the workpiece contour. If it is outside the workpiece contour, it means that the point is the correct expansion point; if it is inside the contour, it means that the point at the same distance in the opposite direction is the correct expansion point, and the expansion point calculation formula of the concave point is used to obtain the correct expansion point; if the current vertex is a flat point, the expansion point is directly determined according to the expansion distance; ④Generate the grinding trajectory of the workpiece outer contour; (5) The grinding trajectory of the workpiece hole is calculated according to the same principle, except that the inner contour of the workpiece hole is taken as the indentation point; (6) Automatic grinding of workpieces.
2. The method for automatic grinding of workpiece edges according to claim 1, characterized in that: Step (1) includes: grinding the edge and hole of the workpiece with a conical head, and configuring the mold parameters according to the mold. The mold parameters include: mold length, mold width, tip diameter, rough knife diameter, fine knife diameter, working height, and grinding depth.
3. The method for automatic grinding of workpiece edges according to claim 1, characterized in that: The method for obtaining the edge of the workpiece in step (3) is: generating a filling map of the workpiece according to the analysis results of the workpiece drawing, and calculating the length, width, thickness and center of gravity information of the workpiece.
4. The method for automatic grinding of workpiece edges according to claim 1, characterized in that: In step (4), the method for calculating the expansion point is as follows: Let the current vertex be P i , the expansion distance is R, and the expansion point of the current vertex is Q i , the previous vertex of the current vertex is P i-1 , the next vertex after the current vertex is P i+1 , the internal angle of the current vertex is θ i , P i-1 Point to P i The unit vector is e i , P i Point to P i+1 The unit vector is e i+1 ; If the current vertex is a convex point, the calculation formula for the expansion point is: If the current vertex is a concave point, the calculation formula for the expansion point is:
5. The method for automatic grinding of workpiece edges according to claim 1, characterized in that: The method of step (5) is as follows: ① Obtain the coordinate set of the workpiece hole vertices; ② Obtain the retraction distance of the workpiece hole; ③ Obtain the indentation point coordinate set of the workpiece hole vertex; traverse the workpiece hole vertex coordinate set and calculate the corresponding indentation point coordinate for each vertex as follows: First, the current vertex is regarded as a concave point, and the indentation point is determined by the indentation point calculation formula of the concave point; then the ray method is used to determine whether the indentation point is inside the workpiece hole. If it is inside the workpiece hole, it means that the point is the correct indentation point; if it is outside the workpiece hole, it means that the point at the same distance in the opposite direction is the correct indentation point, and the correct indentation point is obtained by the indentation point calculation formula of the convex point; if the current vertex is a flat point, the indentation point is directly determined according to the indentation distance; ④Generate workpiece hole grinding trajectory.
6. The method for automatic grinding of workpiece edges according to claim 5, characterized in that: In step (4), the method for calculating the indentation point is as follows: Let the current vertex be P i , the inward distance is R, and the inward point of the current vertex is Q i , the previous vertex of the current vertex is P i-1 , the next vertex after the current vertex is P i+1 , the internal angle of the current vertex is θ i , P i-1 Point to P i The unit vector is e i , P i Point to P i+1 The unit vector is e i+1 ; If the current vertex is a convex point, the calculation formula for the indentation point is: If the current vertex is a concave point, the calculation formula for the indentation point is:
Citation Information
Cited By
Machining track generation method and system of side edge grinding equipment
CN120941260A
