A complex curve processing method and system for a numerical control grinding machine based on a curve table

By using a CNC grinding machine complex curve machining method based on curve tables, executable cyclic machining G-code is generated, enabling the integration of machining trajectories and monitoring of load current. This solves the problems of low efficiency and insufficient accuracy in complex curve machining in existing technologies, and improves the efficiency and accuracy of the grinding process.

CN119973732BActive Publication Date: 2026-07-10WUHAN HUAZHONG NUMERICAL CONTROL

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHAN HUAZHONG NUMERICAL CONTROL
Filing Date
2025-01-14
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

Existing CNC grinding machines have cumbersome processing procedures when dealing with complex curves and high precision requirements. They require human intervention, have uneven grinding speeds, and lack real-time monitoring, resulting in resource waste and decreased precision.

Method used

A complex curve machining method for CNC grinding machines based on curve tables is adopted. By acquiring the process G-code input by the user, executable cyclic machining G-code is generated, realizing the integration of machining trajectory, load current monitoring and online editing of G-code, thus optimizing the machining process.

Benefits of technology

It significantly simplifies the processing flow, improves processing efficiency, ensures the uniformity and precision of the grinding process, reduces resource consumption, and is suitable for scenarios involving repeated trajectory processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119973732B_ABST
    Figure CN119973732B_ABST
Patent Text Reader

Abstract

A kind of complex curve processing method of numerical control grinding machine based on curve table, comprising: obtaining user input process G code containing curve table;Load the process G code, the G code is handled according to preset rule, and executable cycle processing G code is generated;The cycle processing G code is executed, and during the execution of the G code, the functions of integrating processing trajectory, monitoring load current and G code online editing are realized.The present application defines processing cycle, sets processing parameters, generates complete processing cycle G code after superimposing the G code imported into the tool starting segment, tool retracting segment and transition path in the case of inputting complex curve process G code, under the action of monitoring module, when encountering empty cutting trajectory without processing, it can jump into the next segment of trajectory in advance, greatly improving the processing efficiency, significantly simplifying the processing flow, and can be well applied to grinding and other scenes requiring repeated multiple repeated trajectory processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of CNC machining technology, specifically to a method and system for machining complex curves on a CNC grinding machine based on a curve table. Background Technology

[0002] The CNC system of a grinding machine is its brain. Researching how to simplify the operation of CNC grinding machines to achieve grinding processes on complex curves is a crucial aspect of CNC system research. With the continuous development of modern industry, the requirements for the precision and surface quality of mechanical parts are becoming increasingly stringent. Especially in industries such as steel, papermaking, and non-ferrous metals, rolls, as key components, directly affect product quality and production efficiency due to their surface quality and geometry. Traditional roll grinding technology is quite mature when handling simple geometries, but existing CNC machine tool control schemes have many shortcomings when facing complex curves and high-precision requirements. These include: cumbersome machining procedures requiring human intervention during processing, inability to guarantee uniform grinding speed leading to decreased grinding accuracy; and a lack of real-time monitoring, making it impossible to detect process execution, potentially causing the system to idle and resulting in unnecessary resource consumption.

[0003] With the development of computer technology and the upgrading of CNC systems, related supporting software is relatively mature. In order to address the above-mentioned problems encountered in the CNC grinding process, the existing technology discloses a CNC roll grinding machine and its control system and method, which proposes a way to generate machining instructions based on the basic parameters and curve information of the grinding machine set by the user. This method can realize grinding processes of arbitrary curve types. However, the grinding process is essentially a repetitive grinding process. The existing technology has low efficiency in repeatedly grinding the workpiece. There is an urgent need for a CNC grinding machine complex curve machining method and system based on curve tables to solve this problem. Summary of the Invention

[0004] In view of the above problems, the present invention is proposed to provide a CNC grinding machine complex curve machining method and system based on curve tables to overcome or at least partially solve the above problems.

[0005] To address the aforementioned technical problems, the embodiments of this application disclose the following technical solutions:

[0006] In a first aspect, embodiments of the present invention disclose a method for machining complex curves on a CNC grinding machine based on a curve table, comprising:

[0007] S100. Obtain the process G-code containing the curve table from user input;

[0008] S200. Load the process G code, process the G code according to preset rules, and generate executable cyclic machining G code; the executable cyclic machining G code is used to internally generate G code trajectory segments. During machining, the current is monitored during interpolation. During idle machining, interpolation stops and the machine starts running from the next machining trajectory segment.

[0009] S300. Execute the cyclic machining G code. During the execution of the G code, the machining trajectory is integrated, the load current is monitored, and the G code is edited online.

[0010] Furthermore, in S100, the user input containing the process G code of the curve table includes at least the parameter curve type, trajectory start and end points, and curve coefficient.

[0011] Further, in S200, the G-code is processed according to preset rules to generate executable cyclic machining G-code. The specific method includes: loading the process G-code N, obtaining the input cycle number P, the feed amount Q per cycle, the interrupt jump signal L, and generating executable cyclic machining G-code; first, the process G-code N is loaded, and then the machining path is repeatedly executed according to the cycle number P. In each cycle, the tool performs cutting according to the feed amount specified by the feed amount Q per cycle, and ensures that the tool retracts in a predetermined manner at the end of each cycle; at the same time, the system determines whether an interruption or jump is needed based on the interrupt jump signal L.

[0012] Furthermore, in S300, the cyclic machining G code is executed. During the execution of the G code, the machining trajectory is integrated. The specific method includes: merging multiple similar machining paths into a continuous trajectory; for multiple identical linear interpolations G1, the optimal path is calculated through an intelligent algorithm, and the repeated parts are eliminated, only the necessary feed and return operations are performed; for circular arc trajectories G2 and G3, the optimal circular arc connection method is calculated according to the machining needs to avoid unnecessary tool start and retraction segments.

[0013] Furthermore, the cyclic machining G-code is executed. During the execution of the G-code, the machining trajectory is integrated. The specific method also includes: optimizing the transition path by automatically generating the shortest and smoothest transition path by calculating the tool feed direction, speed and turning requirements.

[0014] Furthermore, in S300, during the execution of the G code, the load current is monitored. The specific method includes: acquiring the current signal value of the CNC grinding machine in the no-load state, setting the current value as a reference value, and when the CNC grinding machine starts executing the G code machining program, monitoring the load at the end of the grinding wheel in real time, comparing the load at the end of the grinding wheel with the reference value, thereby realizing the monitoring of the load current.

[0015] Furthermore, when the load at the end of the grinding wheel is the same as the reference value, it is determined that there is no load at the end of the grinding wheel, and the interrupt response judgment process is initiated. If the interrupt response does not occur, the interrupt response function is enabled, and the current Z-axis coordinate is not between the beginning and end of the curve, then the interrupt response state is entered, the system coordinates are updated, the cache is cleared, and system output is blocked. The process continues to determine whether the response has ended. If it has not ended, the process remains in the interrupt response state. After the response ends, the interrupt response process is exited, the current processing segment is skipped, and the next processing trajectory is planned from the current position.

[0016] Furthermore, in S300, the cyclic machining G code is executed. During the execution of the G code, online editing of the G code is implemented. The specific method includes: during the execution of the G code, when the deviation between the actual grinding path and the preset path is greater than a preset threshold, the running machine tool is paused to the feed holding state, the process G code is modified, and after the G code is modified, the CNC grinding machine is started again for machining. The CNC grinding machine runs according to the modified G code.

[0017] Secondly, embodiments of the present invention disclose a complex curve machining system for a CNC grinding machine based on a curve table, comprising a process G-code input unit, a cycle machining G-code generation unit, a machining trajectory integration unit, a load monitoring unit, and a G-code editing unit; wherein:

[0018] The process G-code input unit is used to obtain the process G-code containing the curve table input by the user;

[0019] A cycle processing G-code generation unit is used to load the process G-code, process the G-code according to preset rules, and generate executable cycle processing G-code.

[0020] The machining trajectory integration unit is used to integrate the machining trajectory during the execution of the G code;

[0021] A load monitoring unit is used to monitor the processing load during the execution of the G code.

[0022] The G-code editing unit is used to perform editing functions on the G-code during the execution of the G-code.

[0023] Thirdly, embodiments of the present invention disclose an electronic device, comprising:

[0024] One or more processors;

[0025] Memory, used to store one or more programs;

[0026] When the one or more programs are executed by the one or more processors, the one or more processors implement the complex curve processing method.

[0027] The beneficial effects of the above-described technical solutions provided in the embodiments of the present invention include at least the following:

[0028] This invention discloses a CNC grinding machine complex curve machining method based on a curve table, comprising: acquiring user-input process G-code containing a curve table; loading the process G-code, processing the G-code according to preset rules to generate executable cyclic machining G-code; and executing the cyclic machining G-code. During the execution of the G-code, the method integrates the machining trajectory, monitors the load current, and performs online G-code editing. When a complex curve process G-code is input, the CNC system defines a machining cycle, sets machining parameters, and superimposes the imported G-code with the starting segment, retraction segment, and transition path to generate a complete machining cycle G-code. With the help of a monitoring module, when encountering an empty cutting trajectory without machining, the system can exit early and enter the next trajectory segment, greatly improving machining efficiency and significantly simplifying the machining process. This method can be well applied to grinding, a scenario requiring repeated trajectory machining.

[0029] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0030] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0031] Figure 1 This is a flowchart of a CNC grinding machine complex curve machining method based on a curve table, as described in Embodiment 1 of the present invention.

[0032] Figure 2 This is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention. Detailed Implementation

[0033] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0034] To address the problems existing in the prior art, embodiments of the present invention provide a method and system for machining complex curves on a CNC grinding machine based on a curve table.

[0035] Example 1

[0036] This invention discloses a method for machining complex curves on a CNC grinding machine based on a curve table, such as... Figure 1 ,include:

[0037] S100. Obtain the process G-code containing the curve table input by the user; In S100 of this embodiment, the process G-code containing the curve table input by the user includes at least the parameter curve type, trajectory start and end points, and curve coefficients. Specifically, the user inputs the line type, parameter curve type, start and end points, and curve coefficients on the interface to generate a curve, which is then discretized into process G-codes composed of small line segments. The user-input process G-code can be the curve segment machining code generated by various CAM software, or it can be integrated into the CNC system, where the interface defines several curve line types, and the user sets the start and end points, line type combination type, and then discretizes the curves into small line segments to generate the process G-code.

[0038] S200. Load the process G-code, process the G-code according to preset rules, and generate executable cyclic machining G-code. The executable cyclic machining G-code is used to internally generate G-code trajectory segments. During machining, the current is monitored during interpolation. During idle machining, interpolation stops, and the machining starts from the next machining trajectory segment. In S200 of this embodiment, the G-code is processed according to preset rules to generate executable cyclic machining G-code. The specific method includes: loading process G-code N, obtaining the input cycle number P, the feed amount Q per cycle, the interrupt jump signal L, and generating executable cyclic machining G-code. First, process G-code N is loaded, and then the machining path is repeatedly executed according to the cycle number P. In each cycle, the tool performs cutting according to the feed amount specified by the feed amount Q per cycle, and ensures that the tool retracts in a predetermined manner at the end of each cycle. At the same time, the system determines whether an interruption or jump is needed based on the interrupt jump signal L.

[0039] Specifically, the G73.2 instruction is used to generate executable cyclic machining G-code; the G73.2 instruction is an extension of the G73 instruction, enabling more complex and flexible machining processes in the CNC system. Its functions include:

[0040] Offset process G-code: Offset the position or path of the input process G-code (such as G1, G2, G3, etc.).

[0041] Overlay transition path: Add transition segments to the machining path to ensure smooth tool feed and retraction.

[0042] Generate executable cycle machining code: Based on the input process G code, automatically generate cycle machining G code including the starting segment, process G code segment, retraction segment, transition segment, etc.

[0043] The process G-code (N_) is the basic instruction for executing cutting operations. Common process G-codes include: G1: Linear interpolation, typically used for linear tool feed. G2: Clockwise circular interpolation, used for clockwise circular path cutting. G3: Counterclockwise circular interpolation, used for counterclockwise circular path cutting. G0: Rapid positioning, typically used when the tool moves to a specified position. In the G73.2 instruction, the N_ parameter specifies the basic process G-code to be executed. This process G-code is the core of the entire machining cycle; each cycle is based on this G-code for path generation and tool operation. The cycle count P_ specifies the number of times the machining process needs to be repeated. If a cutting path requires multiple repetitions, the P_ parameter controls this repetition count. For example, if P = 5, it means the current machining path needs to be repeated 5 times. In each machining cycle, the tool cuts along the specified path until the set depth of cut or machining conditions are reached. The feed rate Q_ defines the tool feed rate in each cycle. This feed rate typically refers to the distance the tool moves in each of the X, Y, and Z axes. It determines the step size of the tool's cutting. Properly setting the feed rate Q_ not only improves machining efficiency but also avoids machining accuracy problems caused by excessive feed. For complex contour machining, the feed rate Q_ needs to be adjusted based on tool size, material hardness, cutting conditions, etc. The interrupt jump signal L parameter is used to define the interrupt jump signal when specific conditions occur during machining. In CNC systems, interrupt jumps are usually related to safety checks, tool wear detection, and machining path adjustments. The L signal can change the tool's trajectory in real time during machining or pause machining under certain conditions for adjustment. Setting the L parameter helps the operator or control system react quickly under specific conditions. For example, setting L=1 can interrupt the current operation when a deviation or malfunction occurs, while L=2 may jump to another preset path for machining.

[0044] In summary, the G73.2 instruction provides greater flexibility and operability for machining processes in CNC systems. By dynamically setting the process G-code, cycle count, feed rate, and interrupt jump signal, the operator can precisely control the process of each cutting cycle according to machining requirements. G73.2 not only enhances the stability of machining paths but also improves machining efficiency, reduces tool wear, and provides a more optimized solution for modern CNC machining.

[0045] S300. Execute the cyclic machining G code. During the execution of the G code, the machining trajectory is integrated, the load current is monitored, and the G code is edited online.

[0046] In S300 of this embodiment, the cyclic machining G code is executed. During the execution of the G code, the machining trajectory is integrated. The specific method includes: merging multiple similar machining paths into a continuous trajectory; for multiple identical linear interpolations G1, the optimal path is calculated by an intelligent algorithm, and the repeated parts are eliminated, and only necessary feed and return operations are performed; for circular arc trajectories G2 and G3, the optimal circular arc connection method is calculated according to the machining needs to avoid unnecessary tool start and retraction segments.

[0047] In some preferred embodiments, the cyclic machining G-code is executed, and during the execution of the G-code, the machining trajectory is integrated. The specific method further includes: optimizing the transition path by automatically generating the shortest and smoothest transition path by calculating the tool feed direction, speed and turning requirements.

[0048] In S300 of this embodiment, during the execution of the G code, the load current is monitored. Specifically, this monitoring includes: acquiring the current signal value of the CNC grinding machine in a no-load state, setting the current value as a reference value, and monitoring the load at the end of the grinding wheel in real time after the CNC grinding machine starts executing the G code machining program. The load at the end of the grinding wheel is compared with the reference value to monitor the load current. When the load at the end of the grinding wheel is the same as the reference value, it is determined that there is no load at the end of the grinding wheel, and the interrupt response judgment process is initiated. If no interrupt response occurs, and the interrupt response function is enabled, and the current Z-axis coordinate is not between the beginning and end of the curve, the interrupt response state is entered, the system coordinates are updated, the cache is cleared, and system output is blocked. The system continues to determine whether the response has ended; if not, it remains in the interrupt response state. After the response ends, the interrupt response process is exited, the current machining segment is skipped, and the next machining trajectory is planned from the current position.

[0049] In S300 of this embodiment, the cyclic machining G code is executed. During the execution of the G code, online editing of the G code is realized. The specific method includes: during the execution of the G code, when the deviation between the actual grinding path and the preset path is greater than a preset threshold, the running machine tool is paused to the feed holding state, the process G code is modified, and after the G code is modified, the CNC grinding machine is started again for machining. The CNC grinding machine runs according to the modified G code.

[0050] This embodiment discloses a CNC grinding machine complex curve machining method based on a curve table, comprising: acquiring user-input process G-code containing a curve table; loading the process G-code; processing the G-code according to preset rules to generate executable cyclic machining G-code; and executing the cyclic machining G-code. During the execution of the G-code, the method integrates the machining trajectory, monitors the load current, and performs online G-code editing. When a complex curve process G-code is input, the CNC system defines a machining cycle, sets machining parameters, and overlays the imported G-code with a starting segment, a retraction segment, and a transition path to generate a complete machining cycle G-code. With the help of a monitoring module, when encountering an empty cutting trajectory without machining, the system can exit early and enter the next trajectory segment, greatly improving machining efficiency and significantly simplifying the machining process. This method can be well applied to grinding, a scenario requiring repeated trajectory machining.

[0051] Example 2

[0052] Based on the same inventive concept, this disclosure also provides a CNC grinding machine complex curve machining system based on a curve table, including a process G-code input unit, a cycle machining G-code generation unit, a machining trajectory integration unit, a load monitoring unit, and a G-code editing unit; wherein:

[0053] The process G-code input unit is used to obtain the process G-code containing the curve table input by the user;

[0054] The cyclic machining G-code generation unit is used to load the process G-code, process the G-code according to preset rules, and generate executable cyclic machining G-code. The executable cyclic machining G-code is used to internally generate G-code trajectory segments. During machining, the current is monitored during interpolation. During idle machining, interpolation stops and the machine starts running from the next machining trajectory segment.

[0055] The machining trajectory integration unit is used to integrate the machining trajectory during the execution of the G code;

[0056] A load monitoring unit is used to monitor the processing load during the execution of the G code.

[0057] The G-code editing unit is used to perform editing functions on the G-code during the execution of the G-code.

[0058] The specific working methods of the process G-code input unit, the cycle processing G-code generation unit, the processing trajectory integration unit, the load monitoring unit, and the G-code editing unit have been described in detail in Embodiment 1, and will not be repeated here.

[0059] Example 3

[0060] Based on the same inventive concept, this disclosure also provides an electronic device. Figure 2 This is a schematic diagram of the structure of an electronic device according to an embodiment of this disclosure. Figure 2 As shown, this disclosure provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement any of the optimization methods described in Embodiment 1 above; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.

[0061] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).

[0062] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.

[0063] In some embodiments, the one or more processors 101 include a field-programmable gate array.

[0064] According to embodiments of this disclosure, a computer-readable medium is also provided. This computer-readable medium stores a computer program, which, when executed by a processor, implements the steps of any of the optimized methods described in the above embodiments.

[0065] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process may be rearranged without departing from the scope of this disclosure. The appended method claims provide elements of various steps in an exemplary order and are not intended to limit the scope to the specific order or hierarchy described.

[0066] In the detailed description above, various features are combined together in a single embodiment to simplify this disclosure. This approach to disclosure should not be construed as reflecting an intention that embodiments of the claimed subject matter require more features than are explicitly stated in each claim. Rather, as reflected in the appended claims, the invention is presented with fewer features than all of the features in a single disclosed embodiment. Therefore, the appended claims are hereby explicitly incorporated into the detailed description, with each claim representing a separate preferred embodiment of the invention.

[0067] Those skilled in the art will also understand that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments herein can be implemented as electronic hardware, computer software, or a combination thereof. To clearly illustrate the interchangeability between hardware and software, the various illustrative components, blocks, modules, circuits, and steps described above are generally described in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. Those skilled in the art can implement the described functionality in alternative ways for each specific application; however, such implementation decisions should not be construed as departing from the scope of this disclosure.

[0068] The steps of the methods or algorithms described in conjunction with the embodiments herein can be directly embodied in hardware, software modules executed by a processor, or a combination thereof. The software modules can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is connected to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. The ASIC can reside in a user terminal. Alternatively, the processor and storage medium can exist as discrete components in the user terminal.

[0069] For software implementation, the techniques described in this application can be implemented using modules (e.g., procedures, functions, etc.) that perform the functions described in this application. This software code can be stored in memory units and executed by a processor. The memory units can be implemented within the processor or outside the processor; in the latter case, they are communicatively coupled to the processor via various means, as is well known in the art.

[0070] The foregoing description includes examples of one or more embodiments. It is certainly impossible to describe all possible combinations of components or methods in order to describe the above embodiments, but those skilled in the art will recognize that further combinations and arrangements of the various embodiments are possible. Therefore, the embodiments described herein are intended to cover all such changes, modifications, and variations that fall within the scope of the appended claims. Furthermore, the term "comprising" as used in the specification or claims is interpreted in a manner similar to the term "including," as interpreted when used as a conjunction in the claims. Additionally, the use of any term "or" in the specification of the claims is intended to mean "non-exclusive or."

Claims

1. A method for machining complex curves on a CNC grinding machine based on a curve table, characterized in that, include: S100. Obtain the process G-code containing the curve table from user input; S200. Load the process G code, process the G code according to preset rules, and generate executable cyclic processing G code; The executable cyclic machining G-code is used to internally generate G-code trajectory segments. During machining, the current is monitored during interpolation. During idle machining, interpolation stops and the machine starts running from the next machining trajectory segment. In S200, the G-code is processed according to preset rules to generate executable cyclic machining G-code. The specific method includes: loading the process G-code N, obtaining the input cycle number P, the feed rate Q, the interrupt jump signal L, and generating executable cyclic machining G-code; first, the process G-code N is loaded, and then the machining path is repeatedly executed according to the cycle number P. In each cycle, the tool performs cutting according to the feed rate Q specified for each cycle, and ensures that the tool retracts in a predetermined manner at the end of each cycle; at the same time, the system determines whether an interruption or jump is needed based on the interrupt jump signal L. S300. Execute the cyclic machining G code, and during the execution of the G code, realize the functions of integrating the machining trajectory, monitoring the load current, and online editing of the G code; The cyclic machining G-code is executed. During the execution of the G-code, the machining trajectory is integrated. The specific methods include: merging multiple similar machining paths into a continuous trajectory; for multiple identical linear interpolations G1, the optimal path is calculated through an intelligent algorithm, and the repeated parts are eliminated, only the necessary feed and return operations are performed; for circular arc trajectories G2 and G3, the optimal circular arc connection method is calculated according to the machining requirements to avoid unnecessary tool start and retraction segments. During the execution of the G-code, the load current is monitored. The specific method includes: acquiring the current signal value of the CNC grinding machine in the no-load state, setting the current signal value as a reference value, and monitoring the load at the end of the grinding wheel in real time after the CNC grinding machine starts executing the G-code machining program, comparing the load at the end of the grinding wheel with the reference value to monitor the load current. In S300, the cyclic machining G code is executed. During the execution of the G code, online editing of the G code is realized. The specific method includes: during the execution of the G code, when the deviation between the actual grinding path and the preset path is greater than a preset threshold, the running machine tool is paused to the feed holding state, the process G code is modified, and after the G code is modified, the CNC grinding machine is started again for machining. The CNC grinding machine runs according to the modified G code.

2. The method for machining complex curves on a CNC grinding machine based on a curve table as described in claim 1, characterized in that, In S100, the user input containing the process G code of the curve table includes at least the parameter curve type, trajectory start and end points, and curve coefficient.

3. The method for machining complex curves on a CNC grinding machine based on a curve table as described in claim 1, characterized in that, The cyclic machining G-code is executed, and during the execution of the G-code, the machining trajectory is integrated. The specific method also includes: optimizing the transition path by automatically generating the shortest and smoothest transition path by calculating the tool feed direction, speed and turning requirements.

4. The method for machining complex curves on a CNC grinding machine based on a curve table as described in claim 1, characterized in that, When the load at the end of the grinding wheel is the same as the reference value, it is determined that there is no load at the end of the grinding wheel, and the interrupt response judgment process is initiated. If no interrupt response occurs, the interrupt response function is enabled, and the current Z-axis coordinate is not between the beginning and end of the curve, the interrupt response state is entered, the system coordinates are updated, the cache is cleared, and system output is blocked. The process continues to determine whether the response has ended. If it has not ended, the process remains in the interrupt response state. After the response ends, the interrupt response process is exited, the current processing segment is skipped, and the next processing trajectory is planned from the current position.

5. A CNC grinding machine complex curve machining system based on a curve table, employing any one of the methods in claims 1-4, characterized in that, It includes a process G-code input unit, a cycle machining G-code generation unit, a machining trajectory integration unit, a load monitoring unit, and a G-code editing unit; wherein: The process G-code input unit is used to obtain the process G-code containing the curve table input by the user; A cycle processing G-code generation unit is used to load the process G-code, process the G-code according to preset rules, and generate executable cycle processing G-code. The machining trajectory integration unit is used to integrate the machining trajectory during the execution of the G code; A load monitoring unit is used to monitor the processing load during the execution of the G code. The G-code editing unit is used to perform editing functions on the G-code during the execution of the G-code.

6. An electronic device, comprising: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement any of the complex curve processing methods in claims 1-4.