Machining numerical control system and method based on CAD drawing recognition

Through the machining CNC system based on CAD drawing identification, the problems of low degree of automation, low efficiency, insufficient integration, complex operation and error-prone in the existing technology are solved, efficient and automated machining programming are achieved, and production efficiency and manufacturing competitiveness are improved.

CN119806045APending Publication Date: 2025-04-11TIANJIN CEMENT IND DESIGN & RES INST CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411736830.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing mechanical processing technology lacks efficient, automated and integrated solutions, resulting in low automation, low efficiency, insufficient integration, and complex operation and error-prone problems.

Method used

It provides a machining CNC system based on CAD drawing recognition, including a database module, a user operation page module, a system management module, a data processing module and a communication module, which can automatically identify CAD drawings, generate processing programs, and directly connect with the CNC system.

Benefits of technology

It realizes automation, high efficiency and integrated generation of G codes from CAD drawings to CNC machine tools, improves machining programming efficiency, reduces human errors, and shortens the time from design to manufacturing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806045A_ABST
    Figure CN119806045A_ABST
Patent Text Reader

Abstract

The invention discloses a machining numerical control system and method based on CAD drawing recognition, and belongs to the technical field of numerical control machining. The user operation page module is used for providing an interface for a user to upload a CAD drawing, set basic data, start a drawing recognition process and view and change a recognition result; the system management module is used for managing the machining data system based on the database module; the data processing module is used for identifying a CAD drawing, identifying structure information and size information of parts in the CAD drawing, and processing to obtain a machining G code for controlling movement and machining operation of a machine tool; the communication module is used for realizing data interaction and bidirectional data interaction between the system and the numerical control machine tool, including program issuing, state monitoring and parameter adjustment; the technical problems that the automation degree is low, the efficiency is not high, the integration degree is insufficient, operation is complex, errors are prone to occurring and the like in the process from CAD drawings to numerical control machine tool machining G code generation are effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of mechanical processing, and in particular relates to a machining numerical control system and method based on CAD drawing recognition. Background Art

[0002] As we all know, machining technology is an important process in the field of metal processing and is widely used in various fields of manufacturing. It involves the use of various machine tools and tools to perform cutting, forming and other processing operations on metal materials to produce parts or products that meet design requirements. This technology is essential for modern industrial production, especially in precision manufacturing, aerospace, automobile manufacturing and other industries.

[0003] At present, machining technology mainly solves the problem of generating machining programs in two ways: one is the traditional manual control method, where technicians manually write machining programs according to drawings and process requirements; the other is to use CAM (computer-aided manufacturing) software to assist in generating CNC machining programs. Both methods have improved machining efficiency and accuracy to a certain extent, but there are still some limitations.

[0004] The existing machining program generation methods lack efficient, automated and integrated solutions. Specifically:

[0005] 1. Low degree of automation: Whether it is traditional manual control or the use of CAM software, a lot of manual intervention is required, and it is impossible to achieve automatic conversion from CAD drawings to CNC machining programs;

[0006] 2. Low efficiency: Since manual programming or complex software operations are required, the whole process takes a long time, affecting production efficiency;

[0007] 3. Insufficient integration: There is a lack of seamless connection between CAD design and CAM processing program generation, and it is impossible to provide one-stop service;

[0008] 4. The operation is complex and prone to errors: It is necessary to manually configure equipment information and tool parameters, and manually transfer the program to the CNC system, which increases the complexity of the operation and the risk of errors.

[0009] To this end, the present invention provides an intelligent solution that can automatically identify CAD drawings, generate processing programs and directly interface with a numerical control system. Summary of the invention

[0010] The purpose of the present invention is to provide a machining CNC system and method based on CAD drawing recognition to solve the technical problem raised in the above background technology of how to realize the automated, efficient and integrated generation of G codes from CAD drawings to CNC machine tools to improve the machining programming efficiency.

[0011] In order to achieve the above object, the present invention provides the following technical solutions:

[0012] A machining numerical control system based on CAD drawing recognition, comprising a numerical control machine tool, and further comprising:

[0013] Database module, used to store and manage data required for system operation;

[0014] The user operation page module is used to provide an interface for users to upload CAD drawings, set basic data, start the image recognition process, and view and change the recognition results;

[0015] System management module, used to manage machining data system based on database module, including setting and managing data and user authority in database module;

[0016] The data processing module is used to identify the structural information and size information of the parts in the CAD drawings uploaded by the user operation page, and process them to obtain the processing G code used to control the movement and processing operation of the machine tool;

[0017] The communication module is used to realize data interaction among the database module, user operation page module, system management module and data processing module, as well as two-way data interaction between the system and the CNC machine tool, including functions such as program distribution, status monitoring and parameter adjustment.

[0018] Preferably, the database module includes a CAD drawing recognition database for storing CAD drawing information and identification data, a CNC machining program database for storing machining G codes obtained by a data processing module, a tool database for storing machining tool information, and a user management database for storing user accounts and authority data.

[0019] A machining numerical control method based on CAD drawing recognition, comprising:

[0020] S1, upload CAD drawings and set basic data through the user operation page module, use the data processing module to read the drawing data, the read data content includes axis, outer contour, hole, slot, verify the compliance of the drawing, identify the axis, outer contour, hole, slot of the part, and decompose the part into different structural types;

[0021] S2, identifying dimension and tolerance information from the CAD drawing through the data processing module and saving it in the database module;

[0022] S3, converting the drawing size information obtained in S2 according to the standard workpiece coordinate system and sorting the information;

[0023] S4, based on the array sequence generated by S3, generates logic according to the predefined machining program, converts the array sequence into G code and sends it to the CNC machine tool through the communication module.

[0024] Preferably, S1 is specifically:

[0025] S11, upload the CAD drawing and set basic data, wherein the basic data includes drawing requirements, size range, tolerance rationality and accuracy for verifying whether the drawing data meets the conversion requirements;

[0026] S12, judging whether the CAD drawing meets the preset drawing requirements, specifically:

[0027] Through all the feature types of parts in the CAD drawings, including end faces, external circular grooves, internal holes, and internal circular grooves, we can compare whether the equipment has the corresponding processing tools and whether the size meets the processing requirements.

[0028] Determine whether the machine tool processing size range can complete the processing task through the part size information in the CAD drawing;

[0029] Determine whether the machine tool parameters can complete the precision machining task through the part tolerance information in the CAD drawing;

[0030] S13, identifying and extracting axis data of the part;

[0031] S14, identifying the outer contour lines of the parts in the drawing, and determining the features of the parts based on the logic between the line data, the features include holes, grooves, and steps; for irregular holes, grooves, and steps, obtain relevant data through auxiliary profile information, the relevant data includes the depth of the holes and grooves, and chamfers.

[0032] S15, classifying the parts based on the relevant information of the parts.

[0033] Preferably, in S11, it also includes setting the coordinates of the origin of the standard coordinate system, the processing category sequence of different categories of parts, and the processing process sequence of each category of parts in combination with the processing characteristics.

[0034] Preferably, in S14, the results of the part classification include end faces, outer circles, inner holes, holes, grooves, arcs, and steps.

[0035] Preferably, S2 is specifically:

[0036] S21, identifying all dimension annotations in the CAD drawing, wherein the dimension annotations include length, width, and radius;

[0037] S22, converting the identified dimension annotation into coordinate point data and storing it in an array sequence format;

[0038] S23. Verification layers, data consistency and recognition results are displayed on the platform in order and by features, so that technical personnel can review the accuracy of the recognition results and provide security guarantees for subsequent work.

[0039] Preferably, S23 is specifically:

[0040] S231, verifying whether the layer is complete and whether the layer feature data is missing according to the data extracted from different layer information according to the CAD layer preset rules;

[0041] S232, the operator manually reviews and corrects the suspected erroneous or mismatched information according to the system prompt;

[0042] S233, feeds back the manual review results to the system for optimizing future data extraction and verification processes;

[0043] S234, after all array sequences have been verified and confirmed to be correct, the system marks these data as the final confirmed status for subsequent NC program generation.

[0044] Preferably, S3 is specifically:

[0045] S31, converting the array sequence into standard workpiece coordinate system coordinates;

[0046] S311, calling the origin coordinates set in the user operation interface as the origin. If the user does not manually set the origin coordinates, the intersection of the workpiece end face and the axis is used as the coordinate origin (0,0); the direction parallel to the workpiece axis is defined as the X axis; the direction perpendicular to the X axis and passing through the origin is defined as the Y axis;

[0047] S312, converting the drawing size information obtained in S2 into a standard workpiece coordinate system used by the CNC machine tool;

[0048] S32, sorting the processing information of the standard workpiece coordinates obtained in S31;

[0049] S321, calculating the relative coordinates between the part contour points based on the standard workpiece coordinates obtained in S31;

[0050] S322, calling the processing category sequence set in the user operation interface to preliminarily sort the relative coordinates. If the user does not manually set the processing category sequence, the relative coordinates are preliminarily sorted using the default processing category sequence;

[0051] S323, in each processing category, secondary sorting is performed according to a preset processing process sequence, and the default sequence of the processing processes is: from inside to outside and / or from turret to flange;

[0052] S324, organizing the sorted coordinate information into an array sequence that meets the processing requirements. Specifically, the array sequence is sorted according to the processing order of end surface processing first, from near origin to far origin, and from outside to inside;

[0053] S325, storing the obtained array sequence in a database for use in subsequent processing program generation.

[0054] Preferably, in S322, the default order of the processing categories is end face processing, external circle processing, groove processing, internal hole processing, internal hole groove processing, and center hole processing.

[0055] Preferably, S4 is specifically:

[0056] S41, traverse the array sequence generated by S3;

[0057] S42, for each element in the array, the system selects a corresponding G code generation logic according to the type of processing feature represented by the element; wherein the array includes information such as identification of line segment features (straight line, curve), starting point and end point of the line segment;

[0058] S43, inputting the coordinates and other parameters in the array, including precision information, material information, and scale information, into a predefined G code template to generate a G code segment for each processing feature;

[0059] S44, combining all generated G code fragments into a complete G code instruction, saving the G code instruction to the database module through the communication module and sending it to the CNC machine tool.

[0060] 15. Preferably, the G code feature implementation path is specifically as follows:

[0061] Linear machining: Starting point (x i ,z i ) and the end point (x m ,z n ), the path is in

[0062] Chamfering: Starting point (x i ,z i ),length angle The path is in

[0063] Arc: Starting point (x i ,z i ),radius The path is in

[0064] End face: Starting point (x i ,z i ), cutting amount End point (x m ,z n ). The path is in

[0065]

[0066] Slot: Starting point (x i ,z i ), cutting amount Groove depth Slot width The path is in

[0067]

[0068] Hole: Starting point (x i ,z i ), end point (x m ,z n ), drilling depth / times Dwell time The path is

[0069]

[0070] The final processing G code is formed:

[0071] Preferably, in S42, the processing feature types include straight lines, arcs, grooves, holes, and chamfers.

[0072] A computer-readable storage medium includes instructions, which, when executed on a computer, enable the computer to execute the above-mentioned machining numerical control method based on CAD drawing recognition.

[0073] Compared with the prior art, the present invention has the following beneficial effects:

[0074] The present invention provides a machining numerical control system and method based on CAD drawing recognition, which effectively solves the technical problems of low automation, low efficiency, insufficient integration, and complex and error-prone operation in the process of generating G code from CAD drawings to numerical control machine tools, and realizes efficient and automated connection from CAD to CAM. The present invention realizes automatic extraction and analysis of CAD drawing information by establishing a CAD drawing outer contour feature point recognition method and a dimension tolerance recognition method, without manual intervention, and greatly improves the degree of automation; the intelligent image recognition technology and automatic program generation algorithm are used to automate the process that originally required manual writing or complex software operation, greatly shortening the generation time from CAD drawings to processing programs and improving overall production efficiency; CAD drawing recognition, processing information extraction, coordinate system conversion, program generation and other steps are integrated into one system, realizing seamless connection from CAD to CAM, and providing users with one-stop service; greatly improving production efficiency, reducing human errors, and shortening the time from design to manufacturing, which is of great significance to improving the production efficiency and competitiveness of the manufacturing industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 A schematic diagram of a process of a method in a preferred embodiment of the present invention;

[0076] Figure 2 This is a schematic diagram of the key coordinate identification process of the outer contour of a CAD drawing in a preferred embodiment of the present invention;

[0077] Figure 3 It is a schematic diagram of a CAD drawing in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0078] 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. All other embodiments obtained by ordinary technicians in the field without making creative work based on the embodiments of the present invention shall fall within the scope of protection of the present invention.

[0079] like Figure 1-Figure 3 Show:

[0080] First preferred embodiment:

[0081] A machining CNC system based on CAD drawing recognition.

[0082] Database module, used to store and manage data required for system operation;

[0083] The database module includes: a CAD drawing recognition database for storing CAD drawing information and recognition data; a NC machining program database for storing machining G codes obtained by a data processing module; and a user management database for storing user accounts and authority data.

[0084] The user operation page module is used to provide an interface for users to upload CAD drawings, set basic data, start the image recognition process, and view and change recognition results.

[0085] The system management module is used to manage the machining data system based on the database module, including setting and managing the data and user permissions in the database module; the operator configures and manages the factory, processing equipment, processing parts, blank information, etc. in the system management module, and sets and manages user permissions to ensure the security and controllability of the system.

[0086] The data processing module is used to identify the structural information and size information of the parts in the CAD drawings based on the CAD drawings uploaded by the user operation page, and process them to obtain the processing G code used to control the movement and processing operations of the machine tool.

[0087] The communication module is used to realize data interaction among the database module, user operation page module, system management module and data processing module, as well as two-way data interaction between the system and the CNC machine tool, including functions such as program distribution, status monitoring and parameter adjustment.

[0088] Second preferred embodiment:

[0089] A machining numerical control method based on CAD drawing recognition, comprising:

[0090] S1, S1, upload CAD drawings and set basic data through the user operation page module, use the data processing module to read the drawing data, the read data content includes axis, outer contour, hole, slot, verify the compliance of the drawing, identify the axis, outer contour, hole, slot of the part, and decompose the part into different structural types; lay the foundation for the subsequent processing program generation;

[0091] S11, upload the CAD drawing and set basic data, wherein the basic data includes drawing requirements, size range, tolerance rationality and accuracy for verifying whether the drawing data meets the conversion requirements;

[0092] In the user operation page module, users can also set the origin coordinates of the standard coordinate system, the processing category order of different categories of parts, and the processing process order of each category of parts in combination with the processing characteristics. If the user chooses to skip the above settings, the system will use the default settings in the subsequent steps;

[0093] S12, judging whether the CAD drawing meets the preset drawing requirements, specifically:

[0094] Through all the feature types of parts in the CAD drawings, including end faces, external circular grooves, internal holes, and internal circular grooves, we can compare whether the equipment has the corresponding processing tools and whether the size meets the processing requirements.

[0095] Determine whether the machine tool processing size range can complete the processing task through the part size information in the CAD drawing;

[0096] Determine whether the machine tool parameters can complete the precision machining task through the part tolerance information in the CAD drawing;

[0097] S13, identifying and extracting the axis information of the part, and the axis is used as a reference for dividing the processing area.

[0098] S14, identifying the outer contour lines of the parts in the drawing, and determining the features of the parts based on the logic between the line data, the features include holes, grooves, and steps; for irregular holes, grooves, and steps, obtain relevant data through auxiliary profile information, the relevant data includes the depth of the holes and grooves, and chamfers.

[0099] S15, based on the axis information and outer contour line information of the parts, the parts are divided into structures such as end faces, outer circles, inner holes, holes, grooves, arcs, steps, etc.

[0100] The system identifies the type and features of parts based on preset rules and analyzes the symmetry of parts. Symmetrical parts can use the same processing paths and parameters, and only need to be rotated or mirrored to complete the processing of the other half, thus simplifying the instruction content and processing process.

[0101] S2, identifying dimension and tolerance information from CAD drawings through a data processing module and saving it in a database module; including:

[0102] S21, identifying all dimension annotations in the CAD drawing, wherein the dimension annotations include length, width, and radius;

[0103] S22, storing the identified dimension information in the form of coordinate points in an array sequence format; for example, the dimension information of the end face diameter AB is stored in an array [{"X":0.0,"Y":18.0},{"X":-2.0,"Y":20.0}];

[0104] S23. Verification layers, data consistency and recognition results are displayed on the platform in order and by features, so that technical personnel can review the accuracy of the recognition results and provide security guarantees for subsequent work.

[0105] S231, verifying whether the layer is complete and whether the layer feature data is missing according to the data extracted from different layer information according to the CAD layer preset rules;

[0106] S232, the operator manually reviews and corrects the suspected erroneous or mismatched information according to the system prompt;

[0107] S233, feeds back the manual review results to the system for optimizing future data extraction and verification processes;

[0108] S234, after all array sequences have been verified and confirmed to be correct, the system marks these data as the final confirmed status for subsequent NC program generation.

[0109] S23 is the key to ensure data accuracy during the conversion process from CAD drawings to NC programs. It not only improves machining efficiency, but also improves machining quality and reduces production costs by reducing errors and rework. Through this multi-level, automated and manual verification mechanism, the accuracy and reliability of the machining program can be ensured to the greatest extent, thereby improving the quality and efficiency of the entire manufacturing process.

[0110] S3, transforming the dimension information obtained in S2 according to the standard workpiece coordinate system, and sorting the array sequence of the transformed coordinates.

[0111] S31 converts the dimensional information on the drawing into the standard workpiece coordinate system used by the CNC machine tool to ensure that the machine tool knows how to process according to these dimensions.

[0112] S311, calling the origin coordinates set in the user operation interface as the origin. If the user does not manually set the origin coordinates, the intersection of the workpiece end face and the axis is used as the coordinate origin (0,0); the direction parallel to the workpiece axis is defined as the X axis; the direction perpendicular to the X axis and passing through the origin is defined as the Y axis;

[0113] S312, converting the drawing size information obtained in S2 into a standard workpiece coordinate system used by the CNC machine tool;

[0114] S32, sorting the processing information of the standard workpiece coordinates obtained in S31;

[0115] S321, calculating the relative coordinates between the part contour points based on the standard workpiece coordinates obtained in S31;

[0116] S322, calling the processing category sequence set in the user operation interface to preliminarily sort the relative coordinates. If the user does not manually set the processing category sequence, the relative coordinates are preliminarily sorted using the default processing category sequence;

[0117] S323, in each processing category, secondary sorting is performed according to a preset processing process sequence, and the default sequence of the processing processes is: from inside to outside and / or from turret to flange;

[0118] S324, organizing the sorted coordinate information into an array sequence that meets the processing requirements. Specifically, the array sequence is sorted according to the processing order of end surface processing first, from near origin to far origin, and from outside to inside;

[0119] S325, storing the obtained array sequence in a database for use in subsequent processing program generation.

[0120] S4, based on the array sequence generated by S3, converts the array sequence into G code according to the predefined machining program generation logic. It includes:

[0121] S41, traverse the array sequence generated by S3;

[0122] S42, for each element in the array, the system selects the corresponding G code generation logic according to the characteristics represented by the element; wherein the array contains information such as identification of line segment characteristics (straight line, curve), the starting point and end point of the line segment.

[0123] S43, using the coordinates and other parameters in the array, such as precision information, material information, scale information, etc., input into a predefined G code template to generate a G code segment for each processing feature;

[0124] S44, combining all generated G code fragments into a complete G code instruction, saving the G code instruction to the database module through the communication module and sending it to the CNC machine tool.

[0125] Specifically, the G-code feature implementation path is as follows:

[0126] Linear machining: Starting point (x i ,z i ) and the end point (x m ,z n ), the path is in

[0127] Chamfering: Starting point (x i ,z i ),length angle The path is in

[0128] Arc: Starting point (x i ,z i ),radius The path is in

[0129] End face: Starting point (x i ,z i ), cutting amount End point (x m ,z n ). The path is in

[0130]

[0131] Slot: Starting point (x i ,z i ), cutting amount Groove depth Slot width The path is in

[0132]

[0133] Hole: Starting point (x i ,z i ), end point (x m ,z n ), drilling depth / times Dwell time The path is

[0134]

[0135] The final processing G code is formed:

[0136] Third preferred embodiment:

[0137] In this example, a small shaft processing CAD drawing is used as an example to illustrate the machining CNC system and method based on CAD drawing recognition. Figure 1 , including the following steps:

[0138] 1) Establishment of basic data on the platform

[0139] The platform configures the processing equipment according to the factory, and the equipment attributes are configured in the system, including the creation time, management personnel, maintenance time, and tool library information. The tool library contains the current equipment tool number, tool holder, and blade information. It has independent information libraries for tool holders and blades, and relevant personnel can quickly search and enter them during configuration. When tool information is missing, various types of information can be added by themselves. The platform has a blank information library, and each blank information can be bound to each device according to the actual factory settings.

[0140] 2) Establish the recognition of each feature point of the outer contour of the CAD drawing of CNC machined parts.

[0141] See also Figure 2 , use AutoCAD software to open the drawing file, load the supporting secondary development program into CAD, automatically obtain the processing technology analysis of the parts, and formulate the process analysis method of the machine tool category; automatically split the drawing information into process.

[0142] The small shaft process is divided into: end face - chamfer - straight line - groove - hole; among them, the lathe processing technology is end face - chamfer - straight line, and the milling machine processing technology is groove and hole.

[0143] 3) Establish the recognition, extraction, and storage of dimensions and tolerances marked on CAD drawings, as well as the conversion of lathe machining coordinate systems and information sorting according to defined standards.

[0144] See also Figure 3 , by identifying the drawing process, the CAD drawing information features, including straight lines, arcs, grooves, center holes and other point information, are automatically identified by selecting the drawing process parameter information. The starting point, end point and radius information of each type of line are obtained according to the line attributes, and the CAD coordinate system is converted to the CNC lathe processing coordinate system, and the data information is automatically stored after reading.

[0145] The image recognition results are shown as follows:

[0146] [{"X":0.0,"Y":18.0},{"X":-2.0,"Y":20.0},{"X":-17.0,"Y":20.0},{"X":-17.0,"Y":19.5},{"X" :-59.0,"Y":19.5},{"X":-59.0,"Y":20.0},{"X":-74.0,"Y":20.0},{"X":-74.0,"Y":20.5},{"X":-1 49.0,"Y":20.5},{"X":-149.0,"Y":17.5},{"X":-203.0,"Y":17.5},{"X":-203.0,"Y":16.5},{"X": -204.775,"Y":16.5},{"X":-204.775,"Y":17.5},{"X":-208.5,"Y":17.5},{"X":-209.0,"Y":17.0}]

[0147] Fourth preferred embodiment:

[0148] A computer-readable storage medium includes instructions, which, when executed on a computer, enable the computer to execute the above-mentioned lathe machining CNC program method based on intelligent recognition of CAD drawings.

[0149] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When the use is implemented in whole or in part in the form of a computer program product, the computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk (SSD)), etc.

[0150] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A machining CNC system based on CAD drawing recognition, comprising a CNC machine tool, characterized in that: Also includes: Database module, used to store and manage data required for system operation; The user operation page module is used to provide an interface for users to upload CAD drawings, set basic data, start the image recognition process, and view and change the recognition results; System management module, used to manage machining data system based on database module, including setting and managing data and user authority in database module; The data processing module is used to identify the structural information and size information of the parts in the CAD drawings uploaded by the user operation page, and process them to obtain the processing G code used to control the movement and processing operation of the machine tool; The communication module is used to realize data interaction among the database module, user operation page module, system management module and data processing module, as well as two-way data interaction between the system and the CNC machine tool, including program distribution, status monitoring and parameter adjustment.

2. The machining numerical control system based on CAD drawing recognition according to claim 1 is characterized in that: The database module includes a CAD drawing recognition database for storing CAD drawing information and recognition data, a CNC machining program database for storing machining G codes obtained by the data processing module, a tool database for storing machining tool information, and a user management database for storing user accounts and authority data.

3. A machining numerical control method based on CAD drawing recognition, characterized in that: include: S1, upload CAD drawings and set basic data through the user operation page module, use the data processing module to read the drawing data, the read data content includes axis, outer contour, hole, slot, verify the compliance of the drawing, identify the axis, outer contour, hole, slot of the part, and decompose the part into different structural types; S2, identifying dimension and tolerance information from the CAD drawing through the data processing module and saving it in the database module; S3, converting the drawing size information obtained in S2 according to the standard workpiece coordinate system and sorting the information; S4, based on the array sequence generated by S3, generates logic according to the predefined machining program, converts the array sequence into G code and sends it to the CNC machine tool through the communication module.

4. The machining numerical control method based on CAD drawing recognition according to claim 3 is characterized in that: S1 is specifically: S11, upload the CAD drawing and set basic data, wherein the basic data includes drawing requirements, size range, tolerance rationality and accuracy for verifying whether the drawing data meets the conversion requirements; S12, judging whether the CAD drawing meets the preset drawing requirements, specifically: Through all the feature types of parts in the CAD drawings, including end faces, external circular grooves, internal holes, and internal circular grooves, we can compare whether the equipment has the corresponding processing tools and whether the size meets the processing requirements. Determine whether the machine tool processing size range can complete the processing task through the part size information in the CAD drawing; Determine whether the machine tool parameters can complete the precision machining task through the part tolerance information in the CAD drawing; S13, identifying and extracting axis data of the part; S14, identifying the outer contour line of the part in the drawing, and determining the features of the part based on the logic between the line data, the features including holes, grooves, and steps; for irregular holes, grooves, and steps, obtaining relevant data through auxiliary profile information, the relevant data including the depth of the hole and groove, and chamfer; S15, classifying the parts based on the relevant information of the parts.

5. The machining numerical control method based on CAD drawing recognition according to claim 4 is characterized in that: In S11, it also includes setting the coordinates of the origin of the standard coordinate system, the processing category sequence of different categories of parts, and the processing process sequence of each category of parts in combination with the processing characteristics.

6. The machining numerical control method based on CAD drawing recognition according to claim 4, characterized in that: In S14, the results of part classification include end face, outer circle, inner hole, hole, groove, arc, and step.

7. The machining numerical control method based on CAD drawing recognition according to claim 3 is characterized in that: S2 is specifically: S21, identifying all dimension annotations in the CAD drawing, wherein the dimension annotations include length, width, and radius; S22, converting the identified dimension annotation into coordinate point data and storing it in an array sequence format; S23. Verification layers, data consistency and recognition results are displayed on the platform in order and by features, so that technical personnel can review the accuracy of the recognition results and provide security guarantees for subsequent work.

8. The machining numerical control method based on CAD drawing recognition according to claim 7, characterized in that: S23 is specifically: S231, verifying whether the layer is complete and whether the layer feature data is missing according to the data extracted from different layer information according to the CAD layer preset rules; S232, the operator manually reviews and corrects the suspected erroneous or mismatched information according to the system prompt; S233, feeds back the manual review results to the system for optimizing future data extraction and verification processes; S234, after all array sequences have been verified and confirmed to be correct, the system marks these data as the final confirmed status for subsequent NC program generation.

9. The machining numerical control method based on CAD drawing recognition according to claim 3, characterized in that: S3 is specifically: S31, converting the array sequence into standard workpiece coordinate system coordinates; S311, calling the origin coordinates set in the user operation interface as the origin. If the user does not manually set the origin coordinates, the intersection of the workpiece end face and the axis is used as the coordinate origin (0,0); the direction parallel to the workpiece axis is defined as the X axis; the direction perpendicular to the X axis and passing through the origin is defined as the Y axis; S312, converting the drawing size information obtained in S2 into a standard workpiece coordinate system used by the CNC machine tool; S32, sorting the processing information of the standard workpiece coordinates obtained in S31; S321, calculating the relative coordinates between the part contour points based on the standard workpiece coordinates obtained in S31; S322, calling the processing category sequence set in the user operation interface to preliminarily sort the relative coordinates. If the user does not manually set the processing category sequence, the relative coordinates are preliminarily sorted using the default processing category sequence; S323, in each processing category, secondary sorting is performed according to a preset processing process sequence, and the default sequence of the processing processes is: from inside to outside and / or from turret to flange; S324, organizing the sorted coordinate information into an array sequence that meets the processing requirements. Specifically, the array sequence is sorted according to the processing order of end surface processing first, from near origin to far origin, and from outside to inside; S325, saving the obtained array sequence to a database for use in subsequent processing program generation.

10. The machining numerical control method based on CAD drawing recognition according to claim 9, characterized in that: In S322, the default order of processing categories is end face processing, external circle processing, groove processing, internal hole processing, internal hole groove processing, and center hole processing.

11. The machining numerical control method based on CAD drawing recognition according to claim 3, characterized in that: S4 is specifically: S41, traverse the array sequence generated by S3; S42, for each element in the array, the system selects a corresponding G code generation logic according to the feature represented by the element; wherein the array includes the identification line segment feature (straight line, curve), the start point and end point information of the line segment; S43, inputting the coordinates and other parameters in the array, including precision information, material information, and scale information, into a predefined G code template to generate a G code segment for each processing feature; S44, combining all generated G code fragments into a complete G code instruction, saving the G code instruction to the database module through the communication module and sending it to the CNC machine tool.

12. The machining numerical control method based on CAD drawing recognition according to claim 11, characterized in that: The specific implementation path of G-code features is: Linear machining: Starting point (x i ,z i ) and the end point (x m ,z n ), the path is in Chamfering: Starting point (x i ,z i ),length angle The path is in Arc: Starting point (x i ,z i ),radius The path is in End face: Starting point (x i ,z i ), cutting amount End point (x m ,z n ), the path is in Slot: Starting point (x i ,z i ), cutting amount Groove depth Slot width The path is in Hole: Starting point (x i ,z i ), end point (x m ,z n ), drilling depth / times Dwell time The path is The final processing G code is formed:

13. The machining numerical control method based on CAD drawing recognition according to claim 11, characterized in that: In S42, the processing feature types include straight lines, arcs, slots, holes, and chamfers.

14. A computer-readable storage medium, characterized in that: The invention comprises instructions, which, when executed on a computer, enable the computer to execute the machining numerical control method based on CAD drawing recognition as described in claims 3 to 13.

Citation Information

Cited By

  • Multi-station data processing method for door and window customization production line and related equipment

    CN120563309A

  • Method and system for automatically generating machining program of numerical control machine tool

    CN121165620A