Numerical control grinding machine complex curve machining method and system based on curve table
Through a CNC grinding machine system based on curve tables, the curve table process G code input by the user is processed, and the cycle processing G code is generated and executed to achieve efficient processing of complex curves, solving the problems of cumbersome processing procedures and reduced accuracy in the existing technology, and significantly improving processing efficiency and accuracy.
Patent Information
- Application Number
- CN202510054499.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-01-14
AI Technical Summary
When handling complex curves and high-precision requirements, the processing procedures of existing CNC grinders are cumbersome and require human intervention. They cannot ensure uniformity of grinding speed, resulting in a decrease in accuracy, lack of real-time monitoring, and cannot detect process execution, resulting in unnecessary resource consumption.
Using a CNC grinder complex curve processing method and system based on curve tables, a curve table process G code is obtained by obtaining the curve table process G code input by the user, and an executable cyclic processing G code is generated. When executing this G code, the integration of the processing trajectory, the monitoring of load current and the online editing of the G code is realized.
It significantly simplifies the processing process, improves processing efficiency, can effectively handle complex curves, ensures grinding accuracy and speed uniformity, and reduces human intervention and resource consumption.
Smart Images

Figure CN119973732A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of numerical control machining, and in particular to a method and system for machining complex curves of a numerical control grinder based on a curve table. Background Art
[0002] The CNC system of the grinder is the brain of the grinder. The study of grinding technology for complex curves by simplifying the operation process of the CNC grinder is a crucial part of the research on the CNC system of the grinder. With the continuous development of modern industry, the industry has higher and higher requirements for the precision and surface quality of mechanical parts. Especially in the steel, papermaking, non-ferrous metals and other industries, the surface quality and geometry of the roller as a key component directly affect the quality and production efficiency of the product. Traditional roller grinding technology is quite mature in processing simple geometric shapes, but when faced with complex curves and high-precision requirements, the existing CNC machine tool control scheme has many shortcomings, such as: the processing procedure is cumbersome, human intervention is required during processing, the grinding speed uniformity cannot be guaranteed, resulting in a decrease in grinding accuracy; lack of real-time monitoring, unable to detect the execution of the process, resulting in the system may be idle, causing unnecessary resource consumption, etc.
[0003] With the development of computer technology, the replacement of CNC systems, and the maturity of related supporting software, in order to deal with the above-mentioned problems encountered in the processing of CNC grinders, the prior art discloses a CNC roll grinder and its control system and method, and proposes a method for generating processing instructions according to the basic parameters of the grinder and curve information set by user input. This method can realize the grinding process of any curve type, but the grinding process is essentially a process of repeated grinding. The prior art has low efficiency in repeated grinding of workpieces, and there is an urgent need for a complex curve processing method and system for CNC grinders 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 method and system for complex curve processing of a CNC grinder based on a curve table, which overcomes the above problems or at least partially solves the above problems.
[0005] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:
[0006] In a first aspect, an embodiment of the present invention discloses a method for processing complex curves of a CNC grinder based on a curve table, comprising:
[0007] S100. Obtaining the process G code including the curve table input by the user;
[0008] S200. Load the process G code, process the G code according to preset rules, and generate executable cycle processing G code; the executable cycle processing G code is used to internally generate G code trajectory segments, and during processing, the current is monitored during the interpolation process. During idle processing, the interpolation stops and starts running from the next processing trajectory;
[0009] S300. Execute the cyclic processing G code. During the execution of the G code, the processing trajectory is integrated, the load current is monitored, and the G code is edited online.
[0010] Further, in S100, the process G code including the curve table input by the user at least includes 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 processing G code, and the specific method includes: loading the process G code N, obtaining the input cycle number P, the feed amount Q each time, and the interrupt jump signal L, and generating an executable cyclic processing G code; first, the process G code N is loaded, and then the processing 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 each time, and ensures that the tool is retracted in a predetermined manner at the end of each cycle; at the same time, the system will determine whether an interrupt or jump is required based on the interrupt jump signal L.
[0012] Furthermore, in S300, the cyclic processing G code is executed, and during the execution of the G code, the processing trajectory is integrated. The specific method includes: merging multiple similar processing paths into a continuous trajectory, and for multiple identical linear interpolation G1, calculating the best path through an intelligent algorithm, eliminating repeated parts, and only performing necessary feed and return operations; for arc trajectories G2 and G3, calculating the optimal arc connection method according to processing needs to avoid unnecessary starting and retracting segments.
[0013] Furthermore, the cyclic processing G code is executed, and during the execution of the G code, the processing trajectory is integrated. The specific method also includes: optimizing the transition path, automatically generating the shortest and smoothest transition path by calculating the tool feed direction, speed and steering requirements.
[0014] Furthermore, in S300, during the execution of the G code, the load current is monitored. The specific method includes: obtaining the current signal value of the CNC grinder in a no-load state, setting the current value as a reference value, and when the CNC grinder starts to execute the G code processing program, monitoring the end load of the grinding wheel in real time, comparing the end load of the grinding wheel with the reference value, and monitoring the load current.
[0015] Furthermore, when the load at the end of the grinding wheel is the same as the reference value, it is judged that there is no load at the end of the grinding wheel, and the interrupt response judgment process is performed. If the interrupt response does not occur, and the interrupt response function is turned on, and the current Z-axis coordinate is not between the beginning and the end of the curve, the interrupt response state is entered, the system coordinates are updated, the cache is cleared and the system output is blocked; continue to judge whether the response is completed, if not completed, stay in the interrupt response state; after the response is completed, exit the interrupt response process, jump out of the current processing segment, start from the current position, and plan the next processing trajectory.
[0016] Furthermore, in S300, the cyclic processing G code is executed, and during the execution of the G code, the G code is edited online. 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 a feed hold state, and the process G code is modified. After the G code modification is completed, the CNC grinder is started again for processing, and the CNC grinder operates according to the modified G code.
[0017] In a second aspect, an embodiment of the present invention discloses a complex curve processing system for a CNC grinder based on a curve table, comprising a process G code input unit, a cycle processing G code generation unit, a processing trajectory integration unit, a load monitoring unit and a G code editing unit; wherein:
[0018] A process G code input unit, used for obtaining a process G code including a curve table input by a user;
[0019] A cycle processing G code generating 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] A processing trajectory integration unit, used to realize the integration function of the processing trajectory during the execution of the G code;
[0021] A load monitoring unit, used to implement a processing load monitoring function during the execution of the G code;
[0022] The G code editing unit is used to implement the function of editing the G code during the execution of the G code.
[0023] In a third aspect, an embodiment of the present invention discloses an electronic device, including:
[0024] one or more processors;
[0025] A memory for storing 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 technical solution provided by the embodiment of the present invention include at least:
[0028] The present invention discloses a complex curve processing method for a CNC grinder based on a curve table, comprising: obtaining a process G code input by a user containing a curve table; loading the process G code, processing the G code according to a preset rule, and generating an executable cycle processing G code; executing the cycle processing G code, and realizing the integration of the processing trajectory, monitoring of the load current, and online editing of the G code during the execution of the G code. In the present invention, when a complex curve process G code is input, the CNC system defines a processing cycle, sets processing parameters, and generates a complete processing cycle G code after superimposing the imported G code on the tool segment, the tool retraction segment, and the transition path. Under the action of the monitoring module, when encountering an empty cutting trajectory without processing, it can jump out in advance and enter the next trajectory, which greatly improves the processing efficiency and significantly simplifies the processing process. It can be well applied to grinding, which requires repeated trajectory processing.
[0029] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0031] Figure 1 This is a flow chart of a method for processing complex curves on a CNC grinder based on a curve table in Example 1 of the present invention;
[0032] Figure 2 This is a schematic diagram of the structure of an electronic device in Example 3 of the present invention. DETAILED DESCRIPTION
[0033] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0034] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a method and system for processing complex curves of a CNC grinder based on a curve table.
[0035] Example 1
[0036] The present invention discloses a method for processing complex curves on a CNC grinder based on a curve table. 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, the trajectory start and end points, and the curve coefficient. Specifically, the user inputs the line type, parameter curve type, start and end points, and curve coefficient on the interface to generate the curve, which is discretized into a process G code composed of small line segments. Among them, the user inputs the process G code, which can be a curve segment processing code generated by various CAM software, or it can be integrated in the CNC system, and several curve line types are defined by the interface, and the user sets the start and end points, and the discretization into small line segments after the line type combination type generates the process G code.
[0038] S200. Load the process G code, process the G code according to preset rules, and generate executable cyclic processing G code. The executable cyclic processing G code is used to internally generate G code trajectory segments. During processing, the current is monitored during the interpolation process. During idle processing, the interpolation stops and the operation starts from the next segment of the processing trajectory. In S200 of this embodiment, the G code is processed according to preset rules to generate executable cyclic processing G code. The specific method includes: loading the process G code N, obtaining the input cycle number P, the feed amount Q each time, and the interrupt jump signal L, and generating an executable cyclic processing G code; first, the process G code N is loaded, and then the processing 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 each time, and ensures that the tool retracts in a predetermined manner at the end of each cycle; at the same time, the system will determine whether an interrupt or jump is required based on the interrupt jump signal L.
[0039] Specifically, the G73.2 instruction is used to generate executable cycle processing G code; the G73.2 instruction is an extension of the G73 instruction, which realizes a more complex and flexible processing process 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] Superimpose transition path: Add transition segments to the machining path to ensure smooth feed and retract of the tool.
[0042] Generate executable cycle processing code: Based on the input process G code, automatically generate cycle processing G code including tool start segment, process G code segment, tool retract segment, transition segment, etc.
[0043] Among them, the process G code (N_) is the basic instruction for performing cutting operations. Common process G codes include: G1: linear interpolation, usually used for linear feed of the tool. G2: clockwise circular interpolation, used to perform clockwise circular trajectory cutting. G3: counterclockwise circular interpolation, used to perform counterclockwise circular trajectory cutting. G0: rapid positioning, usually used when the tool moves to the 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, and each cycle will perform path generation and tool operation based on this G code. The number of cycles P_ refers to the number of repetitions required in the specified machining process. Assuming that a certain cutting path needs to be repeated for multiple times, the P_ parameter is used to control this number of repetitions. For example, if P=5, it means that the current machining path needs to be repeated 5 times. In each cycle machining, the tool will cut according to the specified path until the set cutting depth or machining conditions are reached. The feed amount Q_ defines the feed amount of the tool in each cycle. This feed amount usually refers to the distance the tool moves each time in the X, Y, and Z axis directions. It determines the step amplitude of the tool cutting. Reasonable setting of the feed amount Q_ can not only improve the processing efficiency, but also avoid the processing accuracy problem caused by excessive feed. For complex contour processing, the feed amount Q_ needs to be adjusted according to the tool size, material hardness, cutting conditions, etc. The interrupt jump signal L parameter is used to define the interrupt jump signal when a specific situation occurs during the processing. In the CNC system, the interrupt jump is usually related to safety inspection, tool wear detection, processing path adjustment, etc. The L signal can change the tool motion trajectory in real time during the processing, or suspend the processing under certain conditions for adjustment. The setting of the L parameter can help the operator or the control system to respond quickly under specific conditions. For example, setting L=1 can interrupt the current operation when a deviation or fault occurs, and L=2 may jump to another preset path for processing.
[0044] In summary, the G73.2 instruction provides higher flexibility and operability for process processing in the CNC system. By dynamically setting the process G code, number of cycles, feed rate and interrupt jump signal, the operator can accurately control the process of each cutting cycle according to the processing requirements. G73.2 not only enhances the stability of the processing path, but also improves the processing efficiency and reduces tool wear, providing a more optimized solution for modern CNC processing.
[0045] S300. Execute the cyclic processing G code. During the execution of the G code, the processing trajectory is integrated, the load current is monitored, and the G code is edited online.
[0046] In S300 of the present embodiment, the cyclic processing G code is executed. During the execution of the G code, the processing trajectory is integrated. The specific method includes: merging multiple similar processing paths into a continuous trajectory, and for multiple identical linear interpolation G1, calculating the best path through an intelligent algorithm, eliminating repeated parts, and only performing necessary feed and return operations; for arc trajectories G2 and G3, calculating the optimal arc connection method according to processing needs to avoid unnecessary starting and retracting segments.
[0047] In some preferred embodiments, the cyclic processing G code is executed, and during the execution of the G code, the processing trajectory is integrated. The specific method also includes: optimizing the transition path, automatically generating the shortest and smoothest transition path by calculating the tool feed direction, speed and steering requirements.
[0048] In S300 of this embodiment, during the execution of the G code, the load current is monitored. The specific method includes: obtaining the current signal value of the CNC grinder in the no-load state, setting the current value as a reference value, and when the CNC grinder starts to execute the G code processing 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, and monitoring the load current. When the load at the end of the grinding wheel is the same as the reference value, it is judged that there is no load at the end of the grinding wheel, and the interrupt response judgment process is performed. If the interrupt response does not occur, and the interrupt response function is turned on, and the current Z-axis coordinate is not between the head and tail of the curve, then the interrupt response state is entered, the system coordinates are updated, the cache is cleared, and the system output is blocked; continue to judge whether the response is completed, and if it is not completed, stay in the interrupt response state; after the response is completed, exit the interrupt response process, jump out of the current processing section, and start from the current position to plan the next processing trajectory.
[0049] In S300 of this embodiment, the cyclic processing G code is executed, and during the execution of the G code, the G code is edited online. 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, and the process G code is modified. After the G code is modified, the CNC grinder is started again for processing, and the CNC grinder runs according to the modified G code.
[0050] The present embodiment discloses a complex curve processing method for a CNC grinder based on a curve table, comprising: obtaining a process G code input by a user containing a curve table; loading the process G code, processing the G code according to a preset rule, and generating an executable cycle processing G code; executing the cycle processing G code, and realizing the integration of the processing trajectory, monitoring of the load current, and online editing of the G code during the execution of the G code. In the present invention, when a complex curve process G code is input, the CNC system defines a processing cycle, sets processing parameters, and generates a complete processing cycle G code after superimposing the imported G code with a tool segment, a tool retraction segment, and a transition path. Under the action of the monitoring module, when encountering an empty cutting trajectory without processing, it can jump out in advance and enter the next trajectory, which greatly improves the processing efficiency and significantly simplifies the processing process. It can be well applied to grinding, which requires repeated trajectory processing.
[0051] Example 2
[0052] Based on the same inventive concept, the embodiment of the present disclosure also provides a complex curve processing system for a CNC grinder based on a curve table, including a process G code input unit, a cycle processing G code generation unit, a processing trajectory integration unit, a load monitoring unit and a G code editing unit; wherein:
[0053] A process G code input unit, used for obtaining a process G code including a curve table input by a user;
[0054] A cyclic processing G code generating unit is used to load the process G code, process the G code according to preset rules, and generate executable cyclic processing G code; the executable cyclic processing G code is used to internally generate G code trajectory segments, and during processing and interpolation, the current is monitored, and during idle processing, the interpolation is stopped and the operation starts from the next processing trajectory;
[0055] A processing trajectory integration unit, used to realize the integration function of the processing trajectory during the execution of the G code;
[0056] A load monitoring unit, used to implement a processing load monitoring function during the execution of the G code;
[0057] The G code editing unit is used to implement the function of editing the G code during the execution of the G code.
[0058] Among them, the specific working methods of the process G code input unit, cycle processing G code generation unit, processing trajectory integration unit, load monitoring unit and G code editing unit have been recorded in detail in Example 1, and will not be repeated here in this embodiment.
[0059] Example 3
[0060] Based on the same inventive concept, an embodiment of the present disclosure also provides an electronic device. Figure 2 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Figure 2 As shown, an embodiment of the present 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, and when the one or more programs are executed by the one or more processors, the one or more processors implement any optimization method in the above embodiment 1; the one or more I / O interfaces 103 are connected between the processor and the memory, and are configured to implement information interaction between the processor and the memory.
[0061] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; 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), 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), etc.
[0062] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further 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 an embodiment of the present disclosure, a computer-readable medium is further provided, wherein a computer program is stored on the computer-readable medium, wherein when the program is executed by a processor, the steps in any optimization method in the above-mentioned embodiment are implemented.
[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 can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0066] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0067] Those skilled in the art will also appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments herein can all be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the interchangeability between hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above around their functions. Whether such functions are implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. A skilled person can implement the described functions in an alternative manner for each specific application, but such implementation decisions should not be interpreted as departing from the scope of protection of the present disclosure.
[0068] The steps of the method or algorithm described in conjunction with the embodiments herein may be directly embodied as hardware, a software module executed by a processor, or a combination thereof. The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The ASIC may be located in a user terminal. Of course, the processor and the storage medium may also be present in a user terminal as discrete components.
[0069] For software implementation, the techniques described in this application can be implemented with modules (e.g., procedures, functions, etc.) that perform the functions described in this application. These software codes can be stored in a memory unit and executed by a processor. The memory unit can be implemented within the processor or outside the processor. In the latter case, it is coupled to the processor in a communication manner via various means, which are well known in the art.
[0070] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".
Claims
1. A method for processing complex curves on a CNC grinder based on a curve table, characterized in that: include: S100. Obtaining the process G code including the curve table input by the user; S200. Load the process G code, process the G code according to preset rules, and generate executable cycle processing G code; The executable cyclic processing G code is used to generate G code trajectory segments internally. During processing, the current is monitored during the interpolation process. During idle processing, the interpolation stops and the operation starts from the next processing trajectory. S300. Execute the cyclic processing G code. During the execution of the G code, the processing trajectory is integrated, the load current is monitored, and the G code is edited online.
2. A method for processing complex curves on a CNC grinder based on a curve table as claimed in claim 1, characterized in that: In S100, the process G code including the curve table input by the user at least includes parameter curve type, trajectory start and end points, and curve coefficient.
3. A method for processing complex curves on a CNC grinder based on a curve table as claimed in claim 1, characterized in that: In S200, the G code is processed according to preset rules to generate executable cyclic processing G code. The specific method includes: loading the process G code N, obtaining the input cycle number P, the feed amount Q each time, and the interrupt jump signal L, and generating an executable cyclic processing G code; first, the process G code N is loaded, and then the processing 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 each time, and ensures that the tool is retracted in a predetermined manner at the end of each cycle; at the same time, the system will determine whether an interrupt or jump is required based on the interrupt jump signal L.
4. A method for processing complex curves on a CNC grinder based on a curve table as claimed in claim 3, characterized in that: In S300, the cyclic processing G code is executed. During the execution of the G code, the processing trajectory is integrated. The specific method includes: merging multiple similar processing paths into a continuous trajectory, for multiple identical linear interpolation G1, calculating the best path through an intelligent algorithm, eliminating repeated parts, and only performing necessary feed and return operations; for arc trajectories G2 and G3, calculating the optimal arc connection method according to processing needs to avoid unnecessary starting and retracting segments.
5. A method for processing complex curves on a CNC grinder based on a curve table as claimed in claim 3, characterized in that: Execute the cyclic processing G code, and during the execution of the G code, integrate the processing trajectory. The specific method also includes: optimizing the transition path, automatically generating the shortest and smoothest transition path by calculating the tool feed direction, speed and steering requirements.
6. A method for processing complex curves on a CNC grinder based on a curve table as claimed in claim 1, characterized in that: In S300, during the execution of the G code, the load current is monitored. The specific method includes: obtaining the current signal value of the CNC grinder in a no-load state, setting the current value as a reference value, and when the CNC grinder starts to execute the G code processing program, monitoring the end load of the grinding wheel in real time, comparing the end load of the grinding wheel with the reference value, and monitoring the load current.
7. A method for processing complex curves on a CNC grinder based on a curve table as claimed in claim 6, characterized in that: When the load at the end of the grinding wheel is the same as the reference value, it is judged that there is no load at the end of the grinding wheel, and the interrupt response judgment process is performed. If the interrupt response does not occur, and the interrupt response function is turned on, and the current Z-axis coordinate is not between the beginning and the end of the curve, the interrupt response state is entered, the system coordinates are updated, the cache is cleared and the system output is blocked; continue to judge whether the response is completed, if not, stay in the interrupt response state; after the response is completed, exit the interrupt response process, jump out of the current processing segment, start from the current position, and plan the next processing trajectory.
8. The method for processing complex curves on a CNC grinder based on a curve table as claimed in claim 1, characterized in that: In S300, the cyclic processing G code is executed. During the execution of the G code, the G code is edited online. 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 a feed holding state, and the process G code is modified. After the G code is modified, the CNC grinder is started again for processing, and the CNC grinder runs according to the modified G code.
9. A complex curve processing system for a CNC grinder based on a curve table, using any method in claims 1-8, characterized in that: It includes a process G code input unit, a cycle processing G code generation unit, a processing trajectory integration unit, a load monitoring unit and a G code editing unit; wherein: A process G code input unit, used for obtaining a process G code including a curve table input by a user; A cycle processing G code generating unit is used to load the process G code, process the G code according to preset rules, and generate executable cycle processing G code; A processing trajectory integration unit, used to realize the integration function of the processing trajectory during the execution of the G code; A load monitoring unit, used to implement a processing load monitoring function during the execution of the G code; The G code editing unit is used to implement the G code editing function during the G code execution process.
10. An electronic device, comprising: one or more processors; A memory for storing 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 complex curve processing method in claims 1-8.
Citation Information
Patent Citations
CNC cutter monitoring method and system and scheduling management method and system
CN113835396A
Computerized numerical controller of CNC machine tool
GB9911395D0
JP1975043583A
Method for generating nc data
JP1996263112A
Machine tool, control method of machine tool, and control program of machine tool
JP2019042867A