A method and system for tracking quality of CNC machine tool parts
By scanning the spectral pattern of the hexagonal double-head threaded connector using a flexible vibration plate and a laser detection head at the output end of the finished product of the CNC machine tool, identifying its quantity and attitude, determining its processing quality, and correcting the operating parameters of the CNC machine tool according to the quality evaluation index, the problem of low real-time quality detection in the existing technology is solved, and real-time quality tracking and quality improvement of CNC machine tool processing parts is achieved.
Patent Information
- Application Number
- CN202411782397.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-12-05
AI Technical Summary
The existing CNC machine tool quality inspection methods rely on manual regular random inspections, with low real-time performance and inability to detect abnormalities in time, resulting in the production of a large number of low-quality hexagonal double-head threaded joints.
By setting a flexible vibration plate and a laser detection head at the output end of the finished product of the CNC machine tool, scanning the spectral pattern of the hexagonal double-head threaded connector, identifying the number and attitude of the connector, determining its processing quality, and correcting the operating parameters of the CNC machine tool according to the quality evaluation index.
Real-time quality tracking of CNC machine tool processing parts is realized, abnormalities are discovered in a timely manner, the production of low-quality products is reduced, and the overall quality of exported products is improved.
Smart Images

Figure CN119238215B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of quality detection of CNC machine tool parts, and in particular to a quality tracking method and system for CNC machine tool parts. Background Art
[0002] Hexagonal double-ended threaded connector is a common pipe connector used in various industries. Its production method is usually to use CNC machine tools for assembly line automated production. In the long-term production process, with the high-frequency reciprocating motion of the tool, there is a deviation in the tool installation center axis or tool wear, which affects the consistency of the CNC machine tool processed parts, and then causes the flatness of the hexagonal column surface in the middle of the hexagonal double-ended threaded connector to be abnormal, such as obvious tool scratches on the column surface or the flat column surface is processed into an inclined surface. The existing quality inspection method is to manually regularly inspect local samples from multiple production lines, which is time-consuming and labor-intensive and has low real-time performance. It is impossible to detect abnormalities in time, and once an abnormality occurs, if it is not discovered in time, a large number of low-quality hexagonal double-ended threaded connectors will be produced, thereby reducing the overall quality of export products. Summary of the invention
[0003] The object of the present invention is to provide a method and system for tracking the quality of CNC machine tool workpieces to improve the above technical problems.
[0004] In order to achieve the above objectives, the present application provides the following technical solutions:
[0005] On the one hand, the present application provides a method for tracking the quality of CNC machine tool workpieces, including: after receiving a flexible vibration plate posture correction completion instruction, driving a laser detection head through a moving mechanism to scan spectral patterns corresponding to multiple hexagonal double-headed threaded connectors on the flexible vibration plate from left to right in sequence; identifying the total number of hexagonal double-headed threaded connectors on the current flexible vibration plate and the number of hexagonal double-headed threaded connectors in a standard posture based on the spectral patterns; when the ratio between the number of hexagonal double-headed threaded connectors in a standard posture and the total number is greater than a first threshold, sequentially detecting the spectral sub-pattern corresponding to each hexagonal double-headed threaded connector in a standard posture, and determining the processing quality of the hexagonal double-headed threaded connector based on the spectral sub-pattern, thereby obtaining a quality evaluation index corresponding to the corresponding hexagonal double-headed threaded connector; counting the quality evaluation indexes corresponding to multiple batches of hexagonal double-headed threaded connectors within a first time period, and when an abnormality occurs in the quality evaluation index, correcting the operating parameters of the CNC machine tool based on the abnormality type;
[0006] Among them, the total number of hexagonal double-headed threaded connectors on the current flexible vibration plate and the number of hexagonal double-headed threaded connectors in a standard posture are identified based on the spectral pattern, including: selecting multiple first identification areas in the spectral pattern based on a preset color threshold, and counting the number of first identification areas to calculate the total number of hexagonal double-headed threaded connectors on the current flexible vibration plate, wherein the color threshold is used to characterize an area exceeding a preset height on the flexible vibration plate; dividing each first identification area into a first-category feature area and two second-category feature areas based on a preset color distribution feature, and calculating the two second-category feature areas respectively. If the difference between the RGB means corresponding to the two central areas is less than the second threshold value, the posture of the hexagonal double-head threaded connector in the current first identification area is determined to be the standard posture, and the number of hexagonal double-head threaded connectors with the standard posture is counted. The first type of feature area is used to characterize the hexagonal area in the middle of the hexagonal double-head threaded connector, and the second type of feature area is used to characterize the threaded connection parts at both ends of the hexagonal double-head threaded connector. The color distribution of the first type of feature area is uniform distribution on the plane or gradient distribution on the inclined surface, and the color distribution of the second type of feature area is alternating distribution in a wavy shape.
[0007] Optionally, determining the processing quality of the hexagonal double-start threaded connector based on the spectral sub-pattern, and then obtaining a quality evaluation index corresponding to the hexagonal double-start threaded connector, includes:
[0008] In the spectrum pattern, a first type of characteristic area in a first identification area corresponding to a hexagonal double-start threaded connector in a standard posture is intercepted, and the spectrum information in the first type of characteristic area is marked as a spectrum sub-graph;
[0009] Determine a first RGB value corresponding to the highest point based on the RGB value corresponding to the spectral information in the spectral sub-image, and intercept an area within a first error threshold range in the spectral sub-image based on the first RGB value, thereby obtaining a flatness detection area corresponding to the upper surface of the hexagonal area for characterizing the middle part of the hexagonal double-start threaded connector;
[0010] Determine the center position of the flatness detection zone based on the geometric shape of the flatness detection zone, and delete the area of the flatness detection zone to 80%-85% of the original area based on the center position, and then obtain the deleted flatness detection zone as the second flatness detection zone;
[0011] The mean square error corresponding to the RGB value set of all pixels in the second flatness detection area is calculated and recorded as the quality evaluation index of the current hexagonal double-head threaded connector.
[0012] Optionally, the counting of quality assessment indexes corresponding to the multiple batches of hexagonal double-start threaded connectors within the first time period, and correcting the operating parameters of the CNC machine tool based on the abnormality type when the quality assessment index is abnormal, includes:
[0013] Obtaining quality assessment indexes corresponding to a plurality of hexagonal double-threaded connectors in a standard posture on the flexible vibration plate, and calculating the mean values corresponding to the plurality of quality assessment indexes, thereby obtaining the quality assessment average index corresponding to the current batch;
[0014] Detect the trend of the quality assessment average index corresponding to multiple batches in the first time period, and send a first early warning instruction when the trend exceeds a preset rising threshold, so that the debugging personnel can detect the installation condition of the machine tool milling cutter or the integrity or wear condition of the milling cutter cutting surface;
[0015] If the quality evaluation average index corresponding to any batch exceeds the quality threshold within the first time period, a first early warning instruction is sent to enable the debugging personnel to check the installation condition of the machine tool milling cutter or the integrity or wear condition of the milling cutter cutting surface.
[0016] On the other hand, the present application provides a CNC machine tool workpiece quality tracking system, comprising:
[0017] An acquisition module is used to drive the laser detection head to scan the spectrum patterns corresponding to the multiple hexagonal double-headed threaded connectors on the flexible vibration plate from left to right in sequence through a moving mechanism after receiving the instruction to complete the posture correction of the flexible vibration plate;
[0018] A first calculation module is used to identify the total number of hexagonal double-threaded connectors on the current flexible vibration plate and the number of hexagonal double-threaded connectors in a standard posture based on the spectrum pattern;
[0019] a second calculation module, for sequentially detecting the spectral sub-pattern corresponding to each hexagonal double-start threaded connector in the standard posture when the ratio between the number of hexagonal double-start threaded connectors in the standard posture and the total number is greater than a first threshold value, and determining the processing quality of the hexagonal double-start threaded connector based on the spectral sub-pattern, and thereby obtaining a quality evaluation index corresponding to the corresponding hexagonal double-start threaded connector;
[0020] The first statistical module is used to count the quality evaluation indexes corresponding to multiple batches of hexagonal double-start threaded connectors within a first time period, and when the quality evaluation index is abnormal, correct the operating parameters of the CNC machine tool based on the abnormal type.
[0021] The beneficial effects of the present invention are:
[0022] The present invention arranges a flexible vibration plate at the output end of the finished product. When a batch of products is conveyed to the flexible vibration plate, the multiple hexagonal double-headed threaded connectors stacked thereon are spread out through the flexible vibration plate, and the hexagonal double-headed threaded connectors are adjusted to a standard posture as much as possible. At this time, the hexagonal double-headed threads are flat on the flexible vibration plate, and the thread ends at both ends are suspended in the air without axial tilt. Then, the multiple hexagonal double-headed threaded connectors on the flexible vibration plate are scanned from left to right in sequence by a laser detection head to obtain the information reflecting the height of the upper surface of the flexible vibration plate. Spectral pattern, by analyzing the information in the spectral pattern, determine the flatness of the upper surface of the hexagonal cylinder in the middle of the hexagonal double-start threaded connector in the standard posture, and then determine whether there is an abnormality in the milling cutter of the current CNC machine tool (the middle hexagonal cylinder is processed by the milling cutter of the CNC machine tool, that is, after milling one side, it rotates a certain angle and then mills the other side. Therefore, usually detecting one side of the hexagonal cylinder can reflect the situation of the other sides), and immediately warn in the event of an abnormality, so that the debugging personnel can debug as soon as possible, thereby reducing the output of low-quality hexagonal double-start threaded connectors.
[0023] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 It is a schematic flow chart of a method for tracking quality of CNC machine tool workpieces described in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0027] It should be noted that similar reference numerals or letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0028] Embodiment 1: as Figure 1 As shown, this embodiment provides a method for tracking the quality of a CNC machine tool workpiece, and the method includes step S100, step S200, step S300 and step S400.
[0029] Step S100, after receiving the instruction to complete the posture correction of the flexible vibration plate, the laser detection head is driven by the moving mechanism to sequentially scan the spectrum patterns corresponding to the multiple hexagonal double-headed threaded connectors on the flexible vibration plate from left to right;
[0030] Step S200, identifying the total number of hexagonal double-threaded connectors on the current flexible vibration plate and the number of hexagonal double-threaded connectors in a standard posture based on the spectrum pattern;
[0031] Step S300: when the ratio between the number of hexagonal double-start threaded connectors in a standard posture and the total number is greater than a first threshold, sequentially detecting the spectral sub-pattern corresponding to each hexagonal double-start threaded connector in a standard posture, and determining the processing quality of the hexagonal double-start threaded connector based on the spectral sub-pattern, thereby obtaining a quality evaluation index corresponding to the corresponding hexagonal double-start threaded connector;
[0032] Step S400, counting the quality evaluation indexes corresponding to the multiple batches of hexagonal double-start threaded connectors within the first time period, and in the case where the quality evaluation index is abnormal, correcting the operating parameters of the CNC machine tool based on the abnormal type;
[0033] The specific implementation method of identifying the total number of hexagonal double-threaded connectors on the current flexible vibration plate and the number of hexagonal double-threaded connectors in a standard posture based on the spectral pattern in step S200 is:
[0034] Step S210, selecting a plurality of first identification areas in the spectrum pattern based on a preset color threshold, and counting the number of the first identification areas to calculate the total number of hexagonal double-head threaded connectors on the current flexible vibration plate, wherein the color threshold is used to characterize an area exceeding a preset height on the flexible vibration plate;
[0035] Step S220, based on the preset color distribution characteristics, each first identification area is divided into a first-type feature area and two second-type feature areas, and the RGB means corresponding to the central areas in the two second-type feature areas are calculated respectively. If the difference between the RGB means corresponding to the two central areas is less than the second threshold value, it is determined that the posture of the hexagonal double-headed threaded connector in the current first identification area is the standard posture, and the number of hexagonal double-headed threaded connectors with the standard posture is counted. The first-type feature area is used to characterize the hexagonal area in the middle of the hexagonal double-headed threaded connector, and the second-type feature area is used to characterize the threaded connection parts at both ends of the hexagonal double-headed threaded connector. The color distribution of the first-type feature area is uniformly distributed on a plane or gradually distributed on an inclined surface, and the color distribution of the second-type feature area is alternatingly distributed in a wavy shape.
[0036] Next, combined with the relevant contents in step S220, the specific implementation method of determining the processing quality of the hexagonal double-start threaded connector based on the spectral sub-pattern in step S300 and then obtaining the quality evaluation index corresponding to the hexagonal double-start threaded connector is described in detail as follows:
[0037] Step S310, intercepting a first type of characteristic area in a first identification area corresponding to a hexagonal double-start threaded connector in a standard posture in the spectrum pattern, and marking the spectrum information in the first type of characteristic area as a spectrum sub-graph;
[0038] Step S320, determining a first RGB value corresponding to the highest point based on the RGB value corresponding to the spectral information in the spectral sub-graph, and intercepting an area within a first error threshold range in the spectral sub-graph based on the first RGB value, thereby obtaining a flatness detection area corresponding to the upper surface of the hexagonal area for characterizing the middle part of the hexagonal double-start threaded connector;
[0039] Step S330, determining the center position of the flatness detection zone based on the geometric shape of the flatness detection zone, and deleting the area of the flatness detection zone to 80%-85% of the original area based on the center position, and then obtaining the deleted flatness detection zone as the second flatness detection zone;
[0040] Step S340: Calculate the mean square error corresponding to the RGB value set of all pixels in the second flatness detection area, and record it as the quality evaluation index of the current hexagonal double-start threaded connector.
[0041] Secondly, the specific implementation method of counting the quality evaluation indexes corresponding to the multiple batches of hexagonal double-start threaded connectors in the first time period in step S400, and correcting the operating parameters of the CNC machine tool based on the abnormal type when the quality evaluation index is abnormal is:
[0042] Step S410, obtaining quality assessment indexes corresponding to a plurality of hexagonal double-threaded connectors in a standard posture on the flexible vibration plate, and calculating the mean values corresponding to the plurality of quality assessment indexes, thereby obtaining the quality assessment average index corresponding to the current batch;
[0043] Step S420, detecting the trend of the quality assessment average index corresponding to the plurality of batches within the first time period, and sending a first warning instruction when the trend exceeds a preset rising threshold, so that the debugging personnel can detect the installation condition of the machine tool milling cutter or the integrity or wear condition of the milling cutter cutting surface;
[0044] Step S430: If the quality assessment average index corresponding to any batch within the first time period exceeds the quality threshold, a first warning instruction is sent to enable the debugging personnel to check the installation condition of the machine tool milling cutter or the integrity or wear condition of the milling cutter cutting surface.
[0045] Embodiment 2: This embodiment provides a CNC machine tool workpiece quality tracking system, the system comprising:
[0046] An acquisition module is used to drive the laser detection head to scan the spectrum patterns corresponding to the multiple hexagonal double-headed threaded connectors on the flexible vibration plate from left to right in sequence through a moving mechanism after receiving the instruction to complete the posture correction of the flexible vibration plate;
[0047] A first calculation module is used to identify the total number of hexagonal double-threaded connectors on the current flexible vibration plate and the number of hexagonal double-threaded connectors in a standard posture based on the spectrum pattern;
[0048] a second calculation module, for sequentially detecting the spectral sub-pattern corresponding to each hexagonal double-start threaded connector in the standard posture when the ratio between the number of hexagonal double-start threaded connectors in the standard posture and the total number is greater than a first threshold value, and determining the processing quality of the hexagonal double-start threaded connector based on the spectral sub-pattern, and thereby obtaining a quality evaluation index corresponding to the corresponding hexagonal double-start threaded connector;
[0049] The first statistical module is used to count the quality evaluation indexes corresponding to multiple batches of hexagonal double-start threaded connectors within a first time period, and when the quality evaluation index is abnormal, correct the operating parameters of the CNC machine tool based on the abnormal type.
[0050] It should be noted that, regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0051] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for tracking the quality of a CNC machine tool workpiece, characterized in that: The method comprises: After receiving the instruction to complete the posture correction of the flexible vibration plate, the laser detection head is driven by the moving mechanism to scan the spectrum patterns corresponding to the multiple hexagonal double-headed threaded connectors on the flexible vibration plate from left to right in sequence; Identify the total number of hexagonal double-threaded connectors on the current flexible vibration plate and the number of hexagonal double-threaded connectors in a standard posture based on the spectral pattern; When the ratio between the number of hexagonal double-start threaded connectors in the standard posture and the total number is greater than the first threshold, sequentially detecting the spectral sub-pattern corresponding to each hexagonal double-start threaded connector in the standard posture, and determining the processing quality of the hexagonal double-start threaded connector based on the spectral sub-pattern, thereby obtaining a quality evaluation index corresponding to the corresponding hexagonal double-start threaded connector; Counting the quality evaluation indexes corresponding to the multiple batches of hexagonal double-start threaded connectors within the first time period, and in the case where the quality evaluation index is abnormal, correcting the operating parameters of the CNC machine tool based on the abnormal type; The total number of hexagonal double-threaded connectors on the current flexible vibration plate and the number of hexagonal double-threaded connectors in a standard posture are identified based on the spectral pattern, including: Based on a preset color threshold, multiple first identification areas are selected in the spectrum pattern, and the number of the first identification areas is counted to calculate the total number of hexagonal double-head threaded connectors on the current flexible vibration plate, wherein the color threshold is used to characterize an area exceeding a preset height on the flexible vibration plate; Based on the preset color distribution characteristics, each first identification area is divided into a first-type feature area and two second-type feature areas, and the RGB means corresponding to the central areas in the two second-type feature areas are calculated respectively. If the difference between the RGB means corresponding to the two central areas is less than the second threshold, it is determined that the posture of the hexagonal double-headed threaded connector in the current first identification area is the standard posture, and the number of hexagonal double-headed threaded connectors with the standard posture is counted. The first-type feature area is used to characterize the hexagonal area in the middle of the hexagonal double-headed threaded connector, and the second-type feature area is used to characterize the threaded connection parts at both ends of the hexagonal double-headed threaded connector. The color distribution of the first-type feature area is uniformly distributed on a plane or gradually distributed on an inclined surface, and the color distribution of the second-type feature area is alternatingly distributed in a wavy shape.
2. The method for tracking the quality of CNC machine tool workpieces according to claim 1, characterized in that: The method of determining the processing quality of the hexagonal double-start threaded connector based on the spectral sub-pattern and then obtaining the quality evaluation index corresponding to the hexagonal double-start threaded connector includes: In the spectrum pattern, a first type of characteristic area in a first identification area corresponding to a hexagonal double-start threaded connector in a standard posture is intercepted, and the spectrum information in the first type of characteristic area is marked as a spectrum sub-graph; Determine a first RGB value corresponding to the highest point based on the RGB value corresponding to the spectral information in the spectral sub-image, and intercept an area within a first error threshold range in the spectral sub-image based on the first RGB value, thereby obtaining a flatness detection area corresponding to the upper surface of the hexagonal area for characterizing the middle part of the hexagonal double-start threaded connector; Determine the center position of the flatness detection zone based on the geometric shape of the flatness detection zone, and delete the area of the flatness detection zone to 80%-85% of the original area based on the center position, and then obtain the deleted flatness detection zone as the second flatness detection zone; The mean square error corresponding to the RGB value set of all pixels in the second flatness detection area is calculated and recorded as the quality evaluation index of the current hexagonal double-head threaded connector.
3. The method for tracking the quality of CNC machine tool workpieces according to claim 1, characterized in that: The method of counting the quality evaluation indexes corresponding to the multiple batches of hexagonal double-start threaded connectors within the first time period, and correcting the operating parameters of the CNC machine tool based on the abnormality type when the quality evaluation index is abnormal, includes: Obtaining quality assessment indexes corresponding to a plurality of hexagonal double-threaded connectors in a standard posture on the flexible vibration plate, and calculating the mean values corresponding to the plurality of quality assessment indexes, thereby obtaining the quality assessment average index corresponding to the current batch; Detect the trend of the quality assessment average index corresponding to multiple batches in the first time period, and send a first early warning instruction when the trend exceeds a preset rising threshold, so that the debugging personnel can detect the installation condition of the machine tool milling cutter or the integrity or wear condition of the milling cutter cutting surface; If the quality evaluation average index corresponding to any batch exceeds the quality threshold within the first time period, a first early warning instruction is sent to enable the debugging personnel to check the installation condition of the machine tool milling cutter or the integrity or wear condition of the milling cutter cutting surface.
4. A CNC machine tool workpiece quality tracking system applicable to the CNC machine tool workpiece quality tracking method according to any one of claims 1 to 3, characterized in that: The system comprises: An acquisition module is used to drive the laser detection head to scan the spectrum patterns corresponding to the multiple hexagonal double-headed threaded connectors on the flexible vibration plate from left to right in sequence through a moving mechanism after receiving the instruction to complete the posture correction of the flexible vibration plate; A first calculation module is used to identify the total number of hexagonal double-threaded connectors on the current flexible vibration plate and the number of hexagonal double-threaded connectors in a standard posture based on the spectrum pattern; a second calculation module, for sequentially detecting the spectral sub-pattern corresponding to each hexagonal double-start threaded connector in the standard posture when the ratio between the number of hexagonal double-start threaded connectors in the standard posture and the total number is greater than a first threshold value, and determining the processing quality of the hexagonal double-start threaded connector based on the spectral sub-pattern, thereby obtaining a quality evaluation index corresponding to the corresponding hexagonal double-start threaded connector; The first statistical module is used to count the quality evaluation indexes corresponding to multiple batches of hexagonal double-start threaded connectors within a first time period, and when the quality evaluation index is abnormal, correct the operating parameters of the CNC machine tool based on the abnormal type.
Citation Information
Patent Citations
Product quality control equipment based on sample data training and quality control method
CN108227664A
Numerical control lathe machining auxiliary system based on machine vision
CN114723692A