CN-121995860-A - Workpiece detection method, equipment and medium based on feature recognition
Abstract
The application relates to the field of workpiece detection, and particularly discloses a workpiece detection method, equipment and medium based on feature recognition, wherein the method comprises the steps of responding to a received detection request, determining all processing features contained in a workpiece to be detected, and acquiring processing feature information; the method comprises the steps of determining the feature type of a machining feature based on machining feature information, determining a detection template and detection information based on the feature type, generating detection points corresponding to all surfaces of a workpiece to be detected based on the detection information, giving the detection points to the detection template to generate a detection track, and detecting the workpiece to be detected according to the detection track. By acquiring the process information and comparing the process information with the process information of the pre-stored features, key detection features can be accurately screened, detection points and detection numerical control programs can be intelligently generated by combining the geometric characteristics and the processing requirements of the workpiece features, and the programming efficiency and the application effect of the in-machine detection are remarkably improved.
Inventors
- SUN YUCHENG
- ZHANG TONGLE
- GUO YE
- QI XIAOLING
- ZHUANG PENG
- WANG CHENGCHENG
Assignees
- 潍柴动力股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260311
Claims (10)
- 1.A workpiece detection method based on feature recognition, comprising: In response to receiving the detection request, determining processing characteristics contained in the workpiece to be detected, and acquiring all processing characteristic information; Determining a feature type of the processing feature based on the processing feature information, and determining a detection template and detection information based on the feature type, wherein the detection information comprises at least one of processing content, detection key size and tolerance information of the current process; based on the detection information, generating detection points corresponding to all surfaces of the workpiece to be detected; And giving the detection points to the detection template to generate a detection track, and detecting the workpiece to be detected according to the detection track.
- 2. The method of claim 1, wherein prior to determining a probe template and probe information based on the feature type, the method further comprises: Defining detection templates of various detection processes according to the feature types and the universal detection templates; The detection template comprises detection actions for detecting different types of features, wherein the detection actions comprise an operation process of moving to a position to be measured and detecting corresponding features; The detection template type comprises at least one of a point detection template, a Kong Tance template and a surface detection template.
- 3. The method of claim 2, wherein the detection template is further configured to perform at least one of an out-of-tolerance alarm, coordinate compensation, or machining coordinate system compensation based on the detection result.
- 4. The method according to claim 1, wherein the generating, based on the detection information, detection points corresponding to all surfaces of the workpiece to be detected specifically includes: determining detection information of the planar processing feature in response to the processing feature being the planar processing feature; the normal direction of the plane is taken as the direction of a first coordinate axis, the direction of the longest side of the contour in the plane is taken as the direction of a second coordinate axis, and a detection coordinate system is established; establishing a rectangular frame by taking a coordinate extreme point of the in-plane contour in the detection coordinate system as a vertex; Drawing a straight line in the rectangular frame according to tolerance requirements to form an intersection point, and if the intersection point is positioned on the current plane, the intersection point is a detection point; And if the intersection point is not positioned on the current plane, moving the intersection point on the current plane along the direction of the longest side of the in-plane contour to serve as a detection point.
- 5. The method according to claim 4, wherein if the intersection point is not located on the current plane, moving the intersection point on the current plane along a direction of a longest edge of an in-plane contour as a detection point, specifically includes: If the distance between the moved first detection point and the second detection point is lower than the preset distance; determining the midpoint of the first detection point and the second detection point; And eliminating the first detection point and the second detection point, and taking the midpoint as the detection point.
- 6. The method according to claim 1, wherein the generating the detection points corresponding to all surfaces of the workpiece to be detected specifically includes: Determining detection information of the cylindrical surface processing characteristic in response to the processing characteristic being the cylindrical surface processing characteristic; If the cylindrical surface is a complete cylindrical surface, taking a preset point on the axis of the cylindrical surface as a starting point, and taking a first number of detection points along a preset direction based on a preset distance; If the cylindrical surface is an incomplete cylindrical surface, acquiring the edge line position of the incomplete cylindrical surface, and selecting a second number of detection points based on different preset angles from the edge line.
- 7. The method according to claim 1, characterized in that said assigning the detection points into the detection template to generate detection trajectories, in particular comprises: Loading a corresponding detection programming template according to the detection points and the characteristic information; and sequentially generating detection programs of all detection points according to a preset moving sequence, and integrating the detection programs into a detection track.
- 8. The method of claim 7, wherein after the integrating into a probe trajectory, the method further comprises: Reading a tool bit source file corresponding to the detection CAM track through a post-processing program, calling a corresponding event generator according to the mark information of the detection template, and generating a numerical control program comprising detection action control and measurement result application; The method comprises the steps of responding to the fact that the measurement result exceeds the tolerance requirement, triggering an alarm and stopping machining, responding to the fact that the measurement result is located in a first interval of the tolerance requirement, keeping a machining state, responding to the fact that the measurement result is located in a second interval of the tolerance requirement, and outputting coordinate compensation or machining coordinate system compensation prompt.
- 9. A workpiece inspection apparatus based on feature recognition, comprising: And a memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of any one of claims 1-8.
- 10. A non-transitory computer storage medium storing computer-executable instructions configured to perform the steps of the method of any one of claims 1-8.
Description
Workpiece detection method, equipment and medium based on feature recognition Technical Field The application relates to the field of workpiece detection, in particular to a workpiece detection method, equipment and medium based on feature recognition. Background In the field of machining, computer aided manufacturing software (Computer Aided Manufacturing, CAM) has become a core tool for realizing digitization and high efficiency of a machining process, and the core function of the computer aided manufacturing software is focused on automatic programming of a tool machining track, so that the tool track meeting the machining requirement can be accurately generated based on a part design model and machining process parameters. However, with the continuous improvement of real-time and accuracy requirements of precision manufacturing on the detection of the processing quality of the parts, the in-machine detection (namely, the detection of the characteristics of the parts is completed in the processing process by a detection device carried by a machine tool) has become a key link for guaranteeing the processing quality, but the existing CAM software has obvious defects in the support of the function. As shown in FIG. 1, the built-in detection function of the conventional CAM software generally relies on manual intervention to complete the generation of a detection program, wherein an operator needs to manually screen and designate features to be detected (such as geometric features of holes, grooves, planes and the like) from a part model one by one, then manually plan the positions of detection points, the detection sequence and the detection motion parameters based on the selected features, and finally generate a detection track. The manual operation-dependent mode has two core problems that on one hand, operators are required to have rich professional experience for manual point selection and trajectory planning, the operation is complex, the time consumption is long, the distribution rationality of detection points and the optimization degree of trajectories are completely judged by personal experience, so that the generation efficiency of a detection program is low, on the other hand, errors are easily generated due to subjective judgment difference or operation negligence in manual operation, the generated detection trajectories have the problems of redundant paths, omission of detection points, insufficient detection precision and the like, the reliability and consistency of detection results are further influenced, the usability of the detection program is poor, and the high-efficiency and accurate in-machine detection requirements under a precise manufacturing scene are difficult to meet. Disclosure of Invention In order to solve the above problems, the present application provides a method, an apparatus and a medium for detecting a workpiece based on feature recognition, wherein the method comprises: The method comprises the steps of receiving a detection request, determining machining features contained in a workpiece to be detected, acquiring all machining feature information, determining feature types of the machining features based on the machining feature information, determining a detection template and detection information based on the feature types, wherein the detection information comprises at least one of machining content, detection key size and tolerance information of a current working procedure, generating detection points corresponding to all sides of the workpiece to be detected based on the detection information, and endowing the detection points into the detection template to generate detection tracks, and detecting the workpiece to be detected according to the detection tracks. In one example, before determining the detection template and the detection information based on the feature type, the method further comprises defining detection templates of various detection processes according to the feature type and the universal detection template, wherein the detection templates comprise detection actions for detecting different types of features, the detection actions comprise moving to a position to be measured and detecting corresponding features, and the detection template type comprises at least one of a point detection template, a Kong Tance template and a surface detection template. In one example, the detection template is further used to perform at least one of an out-of-tolerance alarm, coordinate compensation, or machining coordinate system compensation based on the detection result. In one example, the method includes the steps of generating detection points corresponding to all surfaces of a workpiece to be detected based on detection information, determining detection information of the plane processing characteristics in response to the processing characteristics being plane processing characteristics, creating a detection coordinate system by taking a normal directi