Numerical control system path measurement method and use
By analyzing and comparing the baseline machining path with the planned path in the CNC system, the problems of workpiece damage and spindle collision caused by path deviation are solved, achieving more efficient and accurate machining.
Patent Information
- Application Number
- PCT/CN2024/100109
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-27
- Filing Date
- 2024-06-19
- Publication Date
- 2025-01-02
AI Technical Summary
In existing CNC systems, incorrect interpolation methods during path planning can lead to overcutting and damage to the workpiece or spindle collision, resulting in losses.
By parsing the pre-configured processing instructions, a baseline processing path is obtained and compared with the planned processing path. The allowable error is used to determine the path deviation, thereby realizing path detection and preventing erroneous interpolation.
It improves machining accuracy, avoids workpiece damage and spindle collision, reduces resource waste, and improves machining efficiency.
Smart Images

Figure CN2024100109_02012025_PF_FP_ABST
Abstract
Description
Method and application of path detection in CNC system
[0001] This application claims priority to Chinese patent application number 2023107656805, filed with the Patent Office of China on June 27, 2023, entitled “Method and Application of Path Detection for CNC System”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present invention relates to the field of numerical control, and in particular to a method and application of numerical control system path detection. Background Art
[0003] In the prior art, a numerical control system plans a machining path based on an NC (Numerical Control) program and controls a CNC machine tool to perform actual machining. NC programs are generally generated by CAM programming software.
[0004] Conventionally, CNC systems use various interpolation algorithms to plan machining paths. Interpolation algorithms determine intermediate points between known points on a given contour based on a given speed and contour shape. In practice, incorrect interpolation methods can cause the actual machining path to deviate from the original NC trajectory, potentially leading to overcutting of the workpiece or spindle collisions, resulting in losses.
[0005] The information disclosed in this background technology section is only intended to enhance understanding of the overall background of the invention and should not be regarded as an admission or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art.
[0006] Summary of the Invention
[0007] The object of the present invention is to provide a method for detecting a path of a numerical control system, which can effectively detect deviation errors of a planned machining path and prevent damage to a machine workpiece and a machine tool spindle caused by deviation of the machining path.
[0008] To achieve the above objectives, an embodiment of the present invention provides a method for path detection in a numerical control system.
[0009] In one or more embodiments of the present invention, the method includes: parsing preconfigured processing instructions to obtain a reference processing path; performing path planning based on the preconfigured processing instructions and preset processing parameters to obtain a planned processing path; and performing path detection on the CNC system based on the reference processing path and the planned processing path.
[0010] In one or more embodiments of the present invention, the reference processing path includes M reference processing path segments, and the planned processing path includes N planned processing path segments, and there is a correspondence between the N planned processing path segments and the M reference processing path segments; based on the reference processing path and the planned processing path, path detection is performed on the CNC system, specifically including: based on the correspondence, searching one by one for the reference processing path segments corresponding to the current planned processing path segments; calculating the reference distance between each planned processing path segment and the corresponding reference processing path segment; comparing the reference distance with the allowable error in the preset processing parameters to determine whether the planned processing path segment deviates.
[0011] In one or more embodiments of the present invention, the method further includes: judging whether the planned processing path segment deviates based on the calculated shortest distance between the planned processing path segment and the corresponding reference processing path segment; and / or judging whether the planned processing path deviates based on the calculated difference and / or ratio between the total length of the planned processing path and the total length of the corresponding reference processing path; and / or judging whether the planned processing path deviates based on the calculated distance between the midpoint of the planned processing path and the reference processing model constructed by the corresponding reference processing path.
[0012] In one or more embodiments of the present invention, determining whether the planned processing path segment deviates specifically includes: if the reference distance is not greater than the allowable error, the planned processing path segment does not deviate and passes the path detection; if the reference distance is greater than the allowable error, the planned processing path segment deviates and fails the path detection.
[0013] In one or more embodiments of the present invention, after the path detection of the current planned path segment passes, the method further includes: determining whether there is a planned processing path segment that has not undergone path detection; if so, based on the correspondence, continue to search for the reference processing path segment corresponding to the next planned processing path segment for path detection.
[0014] In one or more embodiments of the present invention, when the path detection of the currently planned path segment fails, the method further includes: terminating the path detection of the planned processing path segment and reporting an error.
[0015] In one or more embodiments of the present invention, the method further includes: determining whether all of the N planned machining path segments pass the path detection; if so, controlling the CNC system to process the workpiece to be machined based on the planned machining path.
[0016] In one or more embodiments of the present invention, the parsing of the preconfigured machining instructions specifically includes: parsing the preconfigured machining instructions according to a numerical control program programmed by CAM software.
[0017] In another aspect of the present invention, a device for path detection of a numerical control system is provided, which includes a parsing module, a planning module and a detection module.
[0018] The parsing module is used to parse the pre-configured processing instructions and obtain the reference processing path.
[0019] The planning module is used to perform path planning based on preconfigured processing instructions and preset processing parameters to obtain a planned processing path.
[0020] The detection module is used to perform path detection on the numerical control system based on the reference processing path and the planned processing path.
[0021] In one or more embodiments of the present invention, the detection module is also used to: based on the correspondence relationship, search for the reference processing path segments corresponding to the current planned processing path segment one by one to perform path detection; calculate the reference distance between each planned processing path segment and the corresponding reference processing path segment respectively; compare the reference distance with the allowable error in the preset processing parameters to determine whether the planned processing path segment deviates.
[0022] In one or more embodiments of the present invention, the detection module is also used to: determine whether the planned processing path segment deviates based on the calculated shortest distance between the planned processing path segment and the corresponding reference processing path segment; and / or determine whether the planned processing path deviates based on the calculated difference and / or ratio between the total length of the planned processing path and the total length of the corresponding reference processing path; and / or determine whether the planned processing path deviates based on the calculated distance between the midpoint of the planned processing path and the reference processing model constructed by the corresponding reference processing path.
[0023] In one or more embodiments of the present invention, the detection module is also used to: if the reference distance is not greater than the allowable error, the planned processing path segment has not deviated and has passed the path detection; if the reference distance is greater than the allowable error, the planned processing path segment has deviated and has failed the path detection.
[0024] In one or more embodiments of the present invention, the detection module is also used to: determine whether there is a planned processing path segment that has not undergone path detection; if so, based on the correspondence, continue to search for the reference processing path segment corresponding to the next planned processing path segment for path detection.
[0025] In one or more embodiments of the present invention, the detection module is further configured to terminate the path detection of the planned processing path segment and report an error.
[0026] In one or more embodiments of the present invention, the detection module is further used to: determine whether all the N planned processing path segments pass the path detection; if so, control the CNC system to process the workpiece to be processed based on the planned processing path.
[0027] In one or more embodiments of the present invention, the parsing module is further configured to parse the preconfigured machining instructions according to a numerical control program programmed by CAM software.
[0028] In another aspect of the present invention, a computing device is provided, comprising: at least one processor; and a memory, wherein the memory stores instructions, which, when executed by the at least one processor, enable the at least one processor to execute the method for CNC system path detection as described above.
[0029] In another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for path detection of a numerical control system as described above are implemented.
[0030] Compared with the prior art, the method and application of path detection of a CNC system according to the embodiment of the present invention can perform path detection based on a reference processing path and a planned processing path, and determine whether the planned processing path is accurate through path detection before processing, thereby avoiding the problem of overcutting damage to the processed workpiece or spindle collision caused by the erroneous interpolation method in the prior art, improving the processing accuracy and reducing the losses caused by erroneous path planning.
[0031] On the other hand, when it is found during detection that the planned processing path deviates from the preset reference processing path, an error message can be reported and the path detection can be terminated, thereby avoiding waste of time and resources and improving processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] FIG1 is a flow chart of a method for path detection of a numerical control system according to an embodiment of the present invention;
[0033] 2 is a specific flow chart of a method for path detection of a numerical control system according to an embodiment of the present invention;
[0034] 3 is a structural diagram of a system for path detection of a numerical control system according to an embodiment of the present invention;
[0035] 4 is a structural diagram of a device for path detection in a numerical control system according to an embodiment of the present invention;
[0036] FIG5 is a hardware structure diagram of a computing device for path detection of a numerical control system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific embodiments.
[0038] Unless expressly stated otherwise, throughout the specification and claims, the term "comprise" or variations such as "include" or "comprising", etc., will be understood to include the stated elements or components but not to exclude other elements or other components.
[0039] The technical solutions provided by various embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0040] As we know, CNC systems perform processing based on data programs. CNC, or numerical control (NC), refers to the use of discrete digital information to control the actions of mechanical devices.
[0041] A CNC machine tool, or computer numerical control (CNC), is an automated machine tool equipped with a program-controlled system. This control system logically processes programs defined by control codes or other symbolic instructions, input via an information carrier into the CNC device. After processing, the CNC device issues various control signals, controlling the machine's movements and automatically producing parts according to the shapes and dimensions specified in the drawings.
[0042] In specific machining scenarios, such as machining complex contoured parts and components, complex surface workpieces typically begin by breaking the surface curve into numerous tiny line segments using CAM or other software. This is then accomplished through linear or circular interpolation within a motion control system. One of the goals of this invention is to ensure that the actual machining path accurately and reliably tracks the designed reference machining path.
[0043] Example 1
[0044] As shown in FIG1 to FIG3 , a method for path detection of a numerical control system according to an embodiment of the present invention is introduced. The method includes the following steps.
[0045] In step S101 , the pre-configured machining instructions are parsed to obtain a reference machining path.
[0046] In one embodiment of the present invention, the preconfigured machining instructions may be parsed according to a numerical control program programmed by CAM software.
[0047] A CNC program is a command program generated by programming software such as CAM software, based on a drawing of the workpiece to be machined. It is primarily written during the preparatory phase of CNC machining. It consists of various words, characters, and data, and is formatted as G-code instructions with a suffix such as txt or nc. The CNC system's computing device interprets these G-code instructions to generate the CNC program. Within the CNC program, the instruction codes contain some corresponding parameters, enabling the interpretation of some machining parameter settings.
[0048] Specifically, machining instructions are obtained from the CNC program. Parsing these instructions yields information such as point information, partial instruction modal information, and velocity and acceleration information. Based on this parsed point information, a preset baseline machining path can be derived. The machining path is information about the movement positions during machining, including segment lengths and movement directions.
[0049] In step S102 , path planning is performed based on pre-configured processing instructions and preset processing parameters to obtain a planned processing path.
[0050] Processing parameters are generally set through the parameter interface, and can be used to confirm the planning of the moving position during the processing. In this embodiment, processing parameters are a general term, including parameters set through the parameter interface and some parameters specified in the processing program.
[0051] Specific processing parameters include machine tool parameters, tool parameters, trajectory parameters and other parameters, as well as the allowable processing errors.
[0052] Specifically, based on preset machining parameters, when planning a machining path, interpolation of specific intermediate points is required. The planned machining path may deviate from the baseline machining path based on the NC program under different interpolation algorithms.
[0053] In step S103, path detection is performed on the numerical control system based on the reference machining path and the planned machining path.
[0054] Specifically, each planned machining path can correspond to a reference machining path, and a reference machining path can correspond to zero, one, or multiple planned machining paths. Because a machining path is a collection of machining point locations, the number of points on two machining paths may differ, the distances between each point may vary, and the two machining paths may not completely overlap. Therefore, a correspondence exists between the points.
[0055] In actual application scenarios, the reference processing path includes M reference processing path segments, and the planned processing path includes N planned processing path segments. There is a corresponding relationship between the N planned processing path segments and the M reference processing path segments.
[0056] In this embodiment, based on the above correspondence, each planned machining path segment is detected by searching for the reference machining path segment corresponding to the current planned machining path segment of the planned machining path, and calculating the reference distance between the current planned machining path segment and the corresponding reference machining path segment, thereby performing the path detection operation.
[0057] Specifically, if the reference distance is not greater than the allowable error, the planned processing path segment has not deviated and can pass the path detection; if the reference distance is greater than the allowable error, the planned processing path segment has deviated and cannot pass the path detection.
[0058] The reference distance includes the shortest distance, the longest distance, the relative distance, etc. between each planned processing path segment and the corresponding reference processing path segment.
[0059] In this embodiment, the shortest distance between each planned processing path segment and the corresponding reference processing path segment can be used as a comparison basis for path detection. For the calculation of the shortest distance, one calculation method is to mathematically calculate the shortest distance between two line segments in the space and use the shortest distance as the shortest distance between the current planned processing path segment and its corresponding reference processing path segment.
[0060] Furthermore, the calculated shortest distance is compared with the allowable error in the preset processing parameters to determine whether the planned processing path segment deviates.
[0061] If the shortest distance is not greater than the allowable error, the planned machining path segment has not deviated and can pass the path detection.
[0062] If the shortest distance is greater than the allowable error, the planned machining path segment deviates and cannot pass the path detection.
[0063] In this embodiment, after the path detection of the current planned path segment passes, it is determined whether there is a planned processing path segment that has not undergone path detection. If so, based on the correspondence between the planned processing path segment and the reference processing path segment, the reference processing path segment corresponding to the next planned processing path segment is searched for and path detection is performed.
[0064] When the path detection of the current planned path segment fails, path deviation occurs, the current path planning and the path detection of the planned processing path segment are terminated, and the CNC system reports an error.
[0065] Subsequently, it is determined whether all N planned machining path segments pass the path detection. When the entire planned machining path passes the path detection, the CNC system controls the CNC machine tool to process the workpiece to be machined corresponding to the planned machining path based on the planned machining path passing the detection.
[0066] It should be noted that the determination method of path detection in the present invention is not limited to comparing the shortest distance between each planned processing path segment and the corresponding reference processing path segment. The present invention only provides a determination idea, and does not mean that the determination method of path detection in the present invention is limited to the above method.
[0067] In this embodiment, a determination method of the path detection method further includes comparing the lengths and proportional relationships of the reference processing path and the planned processing path.
[0068] Specifically, the cumulative total length of the planned machining path is calculated and compared with the cumulative total length of the corresponding reference machining path. Based on the preset allowable error and proportional relationship, if the numerical difference in the cumulative total length is large, the planned machining path deviates significantly from the corresponding reference machining path and is not within the allowable error range. The planned machining path is determined to have deviated and cannot pass the path detection. If the numerical difference in the cumulative total length is small and within the allowable error range, the planned machining path deviates slightly from the corresponding reference machining path and is determined to have not deviated and can pass the path detection.
[0069] In this embodiment, a determination method of the path detection method further includes determining a deviation of the planned processing position relative to a reference processing model constructed by the reference processing path.
[0070] Specifically, a reference processing model is constructed based on the corresponding reference processing path, and the distance from the planned processing position to the constructed reference processing model is calculated, that is, the distance from each point on the planned processing path to the corresponding surface of the reference processing model is calculated. Based on the preset allowable error and proportional relationship, if the numerical value of the distance from the planned processing position to the reference processing model is small, then the deviation degree of the planned processing path from the corresponding reference processing path is large and is not within the allowable error range, and it is determined that the planned processing path has deviated and cannot pass the path detection; if the numerical value of the distance from the planned processing position to the reference processing model is large and within the allowable error range, then the deviation degree of the planned processing path from the corresponding reference processing path is small, and it is determined that the planned processing path has not deviated and can pass the path detection. Through the above-mentioned determination method, the error value of the planned processing path can be determined to avoid overcutting or undercutting of the workpiece during the actual processing process.
[0071] As shown in FIG3 , in one embodiment of the present invention, a numerical control system is further provided, which includes a parsing unit, a parameter setting unit, a path detection unit, and a processing unit.
[0072] Specifically, the parsing unit is used to parse the machining program generated by the programming software, namely the NC program, to obtain machining instructions.
[0073] The parameter setting unit is used to set and analyze the processing parameters to obtain the planned processing path.
[0074] The path detection unit is used to detect whether the planned processing trajectory deviates from the reference processing path of the preset processing instructions and to report an error.
[0075] The machining unit is used by the CNC system to control the machine tool to start or stop machining.
[0076] In the actual processing, by reasonably arranging the interaction with each unit of the CNC system, it is possible to timely report errors when deviations from the processing path are found, and accurately complete the processing of the workpiece after the processing path detection passes.
[0077] According to an embodiment of the present invention, a method and application of CNC system path detection can solve the problem of overcutting damage or spindle collision of the processed workpiece caused by the erroneous interpolation method in the prior art. By detecting the planned processing path and reporting an error when the detection finds that it deviates from the preset NC trajectory, the actual processing can be made more accurate and the losses caused by overcutting damage or spindle collision of the processed workpiece can be effectively prevented.
[0078] As shown in FIG4 , a device for path detection of a numerical control system according to a specific embodiment of the present invention is introduced.
[0079] In an embodiment of the present invention, the apparatus for path detection of a numerical control system includes a parsing module 401 , a planning module 402 and a detection module 403 .
[0080] The parsing module 401 is used to parse the pre-configured processing instructions to obtain a reference processing path.
[0081] The planning module 402 is used to perform path planning based on pre-configured processing instructions and preset processing parameters to obtain a planned processing path.
[0082] The detection module 403 is used to perform path detection on the numerical control system based on the reference processing path and the planned processing path.
[0083] The detection module 403 is also used to: based on the correspondence, search one by one for the reference processing path segments corresponding to the current planned processing path segment to perform path detection, wherein there is a correspondence between the N planned processing path segments and the M reference processing path segments; calculate the shortest distance between each planned processing path segment and the corresponding reference processing path segment; compare the shortest distance with the allowable error in the preset processing parameters to determine whether the planned processing path deviates.
[0084] The detection module 403 is also used to: determine whether the planned processing path segment deviates based on the calculated shortest distance between the planned processing path segment and the corresponding reference processing path segment; and / or determine whether the planned processing path deviates based on the calculated difference and / or ratio between the total length of the planned processing path and the total length of the corresponding reference processing path; and / or determine whether the planned processing path deviates based on the calculated distance between the midpoint of the planned processing path and the reference processing model constructed by the corresponding reference processing path.
[0085] The detection module 403 is further configured to: if the reference distance is not greater than the allowable error, the planned processing path is not deviated and passes the path detection; if the reference distance is greater than the allowable error, the planned processing path is deviated and fails the path detection.
[0086] The detection module 403 is further configured to determine whether there is a planned processing path segment that has not been path detected; if so, based on the corresponding relationship, continue searching for a reference processing path segment corresponding to the next planned processing path segment for path detection.
[0087] The detection module 403 is further configured to terminate the path detection of the planned processing path segment and report an error.
[0088] The detection module 403 is further configured to determine whether all of the N planned machining path segments pass the path detection; if so, control the numerical control system to process the workpiece to be machined based on the planned machining path.
[0089] The parsing module 401 is further configured to parse the pre-configured machining instructions according to the numerical control program programmed by the CAM software.
[0090] FIG5 shows a hardware structure diagram of a computing device 50 for CNC system path detection according to an embodiment of the present specification. As shown in FIG5 , the computing device 50 may include at least one processor 501, a memory 502 (e.g., a non-volatile memory), a storage 503, and a communication interface 504. The at least one processor 501, the storage 502, the storage 503, and the communication interface 504 are connected together via a bus 505. The at least one processor 501 executes at least one computer-readable instruction stored or encoded in the storage 502.
[0091] It should be understood that, when executed, the computer executable instructions stored in the memory 502 enable the at least one processor 501 to perform the various operations and functions described above in conjunction with Figures 1-5 in various embodiments of this specification.
[0092] In the embodiments of the present specification, the computing device 50 may include, but is not limited to, a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile computing device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable computing device, a consumer electronic device, and the like.
[0093] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium may have instructions (i.e., the above-mentioned elements implemented in the form of software), which, when executed by a machine, cause the machine to perform the various operations and functions described above in conjunction with Figures 1-5 in the various embodiments of this specification. Specifically, a system or device equipped with a readable storage medium can be provided, on which a software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system or device is caused to read and execute the instructions stored in the readable storage medium.
[0094] According to an embodiment of the present invention, a method and application of CNC system path detection can solve the problem of overcutting damage or spindle collision of the processed workpiece caused by the erroneous interpolation method in the prior art. By detecting the planned processing path and reporting an error when the detection finds that it deviates from the preset NC trajectory, the actual processing can be made more accurate and the losses caused by overcutting damage or spindle collision of the processed workpiece can be effectively prevented.
[0095] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0096] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0097] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0099] The foregoing descriptions of specific exemplary embodiments of the present invention are for purposes of illustration and description. These descriptions are not intended to limit the invention to the precise forms disclosed, and it is apparent that many variations and modifications are possible in light of the foregoing teachings. The exemplary embodiments have been selected and described for the purpose of explaining the specific principles of the invention and their practical application, thereby enabling those skilled in the art to realize and utilize a variety of exemplary embodiments of the invention and various options and modifications. The scope of the invention is intended to be defined by the claims and their equivalents.
Claims
1. A method for path detection of a numerical control system, characterized in that: The method comprises: Parsing the pre-configured processing instructions to obtain a reference processing path, wherein the reference processing path includes M reference processing path segments; Performing path planning based on preconfigured processing instructions and preset processing parameters to obtain a planned processing path, wherein the planned processing path includes N planned processing path segments, and there is a corresponding relationship between the N planned processing path segments and the M reference processing path segments; and Based on the reference processing path and the planned processing path, performing path detection on the numerical control system; Determine whether there is a planned processing path segment that has not been detected; if so, Continue to search for the reference processing path segment corresponding to the next planned processing path segment for path detection; Determine whether all planned processing path segments pass the path detection; if so, Based on the planned processing path, controlling the numerical control system to process the workpiece to be processed; Among them, based on the reference processing path and the planned processing path, path detection is performed on the CNC system, specifically including: based on the corresponding relationship, searching one by one for the reference processing path segment corresponding to the current planned processing path segment; respectively calculating the reference distance between each planned processing path segment and the corresponding reference processing path segment; comparing the reference distance with the allowable error in the preset processing parameters to determine whether the planned processing path segment deviates, if the reference distance is not greater than the allowable error, then the planned processing path segment has not deviated and passes the path detection; if the reference distance is greater than the allowable error, then the planned processing path segment has deviated and fails the path detection.
2. The method for path detection of a numerical control system according to claim 1, characterized in that: The method further comprises: Based on the calculated shortest distance between the planned machining path segment and the corresponding reference machining path segment, it is determined whether the planned machining path segment deviates.
3. The method for path detection of a numerical control system according to claim 1, characterized in that: The method further comprises: Based on the calculated difference and ratio between the total length of the planned processing path and the total length of the corresponding reference processing path, it is determined whether the planned processing path deviates.
4. The method for path detection of a numerical control system according to claim 1, characterized in that: The method further comprises: Based on the calculated distance between the midpoint of the planned machining path and the reference machining model constructed by the corresponding reference machining path, it is determined whether the planned machining path deviates.
5. The method for path detection of a numerical control system as claimed in claim 1, characterized in that: When the path detection of the currently planned path segment fails, the method further includes: The path detection of the planned processing path segment is terminated and an error is reported.
6. The method for path detection of a numerical control system according to claim 1, characterized in that: The parsing of the pre-configured processing instructions specifically includes: The pre-configured machining instructions are parsed according to the numerical control program programmed by the CAM software.
7. A device for path detection of a numerical control system, characterized in that: The device comprises: A parsing module, used for parsing the pre-configured processing instructions to obtain a reference processing path, wherein the reference processing path includes M reference processing path segments; A planning module, configured to perform path planning based on preconfigured processing instructions and preset processing parameters to obtain a planned processing path, wherein the planned processing path includes N planned processing path segments, and there is a corresponding relationship between the N planned processing path segments and the M reference processing path segments; and A detection module, used for performing path detection on the numerical control system based on the reference processing path and the planned processing path; Determine whether there is a planned processing path segment that has not been detected; if so, Continue to search for the reference processing path segment corresponding to the next planned processing path segment for path detection; Determine whether all planned processing path segments pass the path detection; if so, Based on the planned processing path, controlling the numerical control system to process the workpiece to be processed; Among them, based on the reference processing path and the planned processing path, path detection is performed on the CNC system, specifically including: based on the corresponding relationship, searching one by one for the reference processing path segment corresponding to the current planned processing path segment; respectively calculating the reference distance between each planned processing path segment and the corresponding reference processing path segment; comparing the reference distance with the allowable error in the preset processing parameters to determine whether the planned processing path segment deviates, if the reference distance is not greater than the allowable error, then the planned processing path segment has not deviated and passes the path detection; if the reference distance is greater than the allowable error, then the planned processing path segment has deviated and fails the path detection.
8. A computing device, characterized in that include: at least one processor; as well as A memory storing instructions, wherein when the instructions are executed by the at least one processor, the at least one processor executes the method for path detection of a numerical control system according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for path detection of a numerical control system according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Numerical control interpolation system for real-time generation of curvature-continuous path
CN102147600A
Speed forecasting method, as well as numerical control device and numerical control system thereof
CN102945020A
3C product shell transition area machining path self-adaptive planning method
CN109782692A
Control method for nonlinear error between five-axis machining tool nose point and tool axis direction
CN111913438A
Mechanical arm splicing path planning method and device
CN113650011A
Cited By
Multi-axis linkage numerical control machining path intelligent planning system and method
CN120909217A
