Secondary development method of ug post-processing file, readable storage medium and electronic equipment

By configuring output functions and logical judgment functions in the CNC machining program, the problem of insufficient information in the CNC machining program is solved, which improves production efficiency and tapping accuracy and ensures machining quality.

CN116243656BActive Publication Date: 2025-11-28HONGFUJIN PRECISION ELECTRONICS ZHENGZHOU
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211528575.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2025-11-28
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

The existing CNC machining program sheets cannot meet the guidance requirements of CNC machining and lack part attribute information, resulting in low production efficiency and low tapping accuracy.

Method used

Configure the first output function in the preset machining program to display the machining part information, add a rigid tapping instruction before the tapping cycle instruction, detect the consistency of the machining sequence through a logic judgment function, and output alarm information when necessary. Configure the output function to display identity information and lock the working parameters.

Benefits of technology

It improves production efficiency and quality, reduces labor costs, ensures tapping quality and programming efficiency, and prevents tooth decay and processing errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116243656B_ABST
    Figure CN116243656B_ABST
Patent Text Reader

Abstract

The application provides a secondary development method of a UG post-processing file, a readable storage medium and an electronic device, and comprises the following steps: in a preset machining program, a first output function is configured, wherein the first output function is used for outputting machining component information of a machine tool after being executed, and the machine tool processes a product according to the preset machining program; a retrieval output function is configured, wherein the retrieval output function is used for retrieving instruction information of the preset machining program after being executed, the instruction information comprises a tapping cycle instruction used for setting tapping parameters of the machine tool; and the retrieval output function is further used for adding a rigid tapping instruction before the tapping cycle instruction after the tapping cycle instruction is retrieved. The application can improve product production efficiency and product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer software technology, and in particular to a method for secondary development of UG post-processing files, a readable storage medium, and an electronic device. Background Technology

[0002] Cutting tools are hailed as the "teeth of industry" and are a crucial link in the materials processing process. With the rapid development of advanced manufacturing technologies and high-efficiency CNC machine tools, as well as the continuous emergence of new materials, CNC cutting tools are required to possess characteristics of high efficiency, high precision, high reliability, and specialization.

[0003] A CNC machining program sheet is a document that expresses various information relevant to CNC machining and plays a crucial role in the production process. Generally, CNC machining program sheets are generated in programming software, such as UG (now called NX). However, CNC machining program sheets generated from UGNX programming software cannot meet the guidance requirements of CNC machining. For example, CNC machining program sheets generated from UGNX do not contain attribute information such as part number, name, and material, resulting in insufficient expression of CNC machining requirements and seriously affecting work efficiency. Furthermore, CNC machining program sheets cannot automatically add rigid tapping instructions, resulting in low tapping accuracy and consequently, lower product quality. Summary of the Invention

[0004] In view of this, this application provides a method for secondary development of UG post-processing files, a readable storage medium, and an electronic device, which can improve product production efficiency while improving product quality.

[0005] The first aspect of this application provides a secondary development method for UG post-processing files, comprising: configuring a first output function in a preset machining program, wherein the first output function, after being run, is used to output machining part information of a machine tool, the machine tool machining a product according to the preset machining program; configuring a retrieval output function, wherein the retrieval output function, after being run, is used to retrieve instruction information of the preset machining program, the instruction information including a tapping cycle instruction for setting tapping parameters of the machine tool; the retrieval output function is further used to add a rigid tapping instruction before the tapping cycle instruction after the tapping cycle instruction is retrieved.

[0006] Compared with related technologies, the embodiments of this application have at least the following advantages:

[0007] By adding a first code to the preset machining program, the information of the machined parts is displayed after the first code is run, so that the staff can directly check the information displayed by the program, avoiding the staff to spend a lot of time looking for the machined parts information, reducing labor costs and improving production efficiency. By configuring the retrieval output function to retrieve the instruction information of the pre-machining program, after the tapping cycle instruction is retrieved, a rigid tapping instruction is automatically added before the tapping cycle instruction, so that the rotation speed (S) and feed (F) are matched, ensuring that the tooth pitch = F / S, preventing tooth decay, thereby improving the tapping quality and programming efficiency, and thus improving production efficiency and product quality.

[0008] In one possible implementation, after configuring the first output function, the method further includes configuring a logical judgment function, wherein the logical judgment function, after being run, is used to detect whether the processing sequence of the product is consistent with a preset processing sequence, and outputs an alarm message when the processing sequence is detected to be inconsistent with the preset processing sequence, wherein the preset processing sequence includes a plurality of processing steps of the product executed sequentially.

[0009] In one feasible implementation, the configuration logic judgment function includes: configuring a logic judgment function with global variables, wherein the change order of the global variables matches the preset processing order; after the logic judgment function is run, it is used to detect whether the processing order of the product is consistent with the preset processing order, and to issue an alarm message when the processing order is detected to be inconsistent with the preset processing order, including: after the logic judgment function is run, it detects whether the current value of the global variables matches the preset processing order based on the current value of the global variables, and to output the alarm message when a mismatch is detected.

[0010] In one feasible implementation, after configuring the logical judgment function with global variables, the method further includes: configuring a group name reading function, which, after being executed, is used to read the program group name of the preset machining program according to the global variables; the group name reading function is also used to use the first five digits of the program group name as the file name of the preset machining program, wherein the file name of the preset machining program is a program name that the machine tool can recognize.

[0011] In one feasible implementation, after configuring the first output function, the method further includes configuring a second output function, wherein the second output function, after being executed, is used to output the machining coordinate system code of the machine tool.

[0012] In one feasible implementation, after configuring the second output function, the method further includes configuring an automatic output function, wherein the automatic output function, after being run, is used to automatically add a rotation variable after the machining coordinate system code, and the machine tool is used to control the rotation of the raw material of the product according to the rotation variable.

[0013] In one feasible implementation, after configuring the first output function, the method further includes configuring a third output function, wherein the third output function, after being run, is used to output the identity information of the preset processing program, and the identity information includes at least the program creation date, drawing file version, and mounting position of the preset processing program.

[0014] In one feasible implementation, after configuring the first output function, the method further includes configuring a parameter locking function, wherein the parameter locking function, after being executed, is used to lock the working parameters of the machine tool for processing the product.

[0015] A second aspect of the embodiments of this application provides a readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform a secondary development method for UG post-processing files as described in the first aspect.

[0016] A third aspect of the embodiments of this application provides an electronic device, which includes a processor and a memory. The memory is used to store instructions, and the processor is used to call the instructions in the memory, causing the electronic device to execute the secondary development method of UG post-processing files as described in the first aspect.

[0017] It is understood that the readable storage medium described in the second aspect and the electronic device described in the third aspect correspond to the method described in the first aspect. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Attached Figure Description

[0018] Figure 1 A flowchart illustrating a secondary development method for UG post-processing files provided in an embodiment of this application;

[0019] Figure 2 A graph showing the execution result of the first output function provided in an embodiment of this application;

[0020] Figure 3 A graph showing the execution result of the retrieval output function provided in an embodiment of this application;

[0021] Figure 4 A graph showing the execution result of the third output function provided in an embodiment of this application;

[0022] Figure 5A graph showing the execution result of a parameter locking function provided in an embodiment of this application;

[0023] Figure 6 A flowchart illustrating a secondary development method for UG post-processing files provided in an embodiment of this application;

[0024] Figure 7 A diagram showing the execution result of a logic judgment function provided in an embodiment of this application;

[0025] Figure 8 A flowchart illustrating a secondary development method for UG post-processing files provided in an embodiment of this application;

[0026] Figure 9 The output results of the second output function and the automatic output function provided in an embodiment of this application are shown in the figure.

[0027] Figure 10 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0028] To better understand the above-mentioned objectives, features, and advantages of this application, the application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0029] The following description sets forth many specific details to provide a full understanding of this application. The described embodiments are only some, not all, of the embodiments of this application.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the specification of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application.

[0031] It should be further noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0032] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.

[0033] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0034] For ease of understanding, some concepts related to the embodiments of this application are illustrated and explained by way of example for reference.

[0035] UG (Unigraphics NX) is an interactive CAD / CAM (Computer-Aided Design and Computer-Aided Manufacturing) system. All modules of UG software can directly generate machining programs on solid models and maintain full associativity with the solid models.

[0036] Post-processing is the process of converting tool location data files into CNC programs that can be executed by a specified CNC machine tool. The tool path calculations generated by automatic programming produce tool location data files, not CNC programs. Therefore, it is necessary to convert the tool location data files into CNC programs that can be executed by the specified CNC machine tool, and then input them into the CNC system of the CNC machine tool via communication or DNC methods before CNC machining of the part can be performed. The post-processing program, based on the designed part model, calculates the pre-arranged machining methods, tool selection, tool entry method, toolpath arrangement, and cutting parameters, and compiles them to generate G-code that the machine tool can recognize.

[0037] Please refer to Figure 1 The flowchart below shows a method for secondary development of UG post-processing files according to an embodiment of this application, including the following steps:

[0038] Step S101: Configure the first output function in the preset processing program.

[0039] In some embodiments, the machine tool processes products according to a preset processing program, and the first output function is run to output the processing part information of the machine tool.

[0040] In some embodiments, the machining component information includes one or any combination of the following: program operation name, tool number, tool name, and tool specification.

[0041] To facilitate understanding, the following will be combined with... Figure 2 This embodiment provides a detailed explanation of how to configure the first output function:

[0042] Please refer to Figure 2 This is a schematic diagram of the execution result of the first output function. After setting the first output function, when the background program runs the first output function, it reads the program operation name: O6001; tool number: T3; tool name: W-DJ7044A; tool specification: D4R0.3, and automatically outputs the program name, tool information, tool number, tool name and specification in the program header.

[0043] Step S102: Configure the retrieval output function.

[0044] In some embodiments, the retrieved output function is used to retrieve instruction information of a preset machining program after it is run. The instruction information includes a tapping cycle instruction for setting the tapping parameters of the machine tool.

[0045] In some embodiments, the retrieval output function is also used to add a rigid tapping instruction before the tapping cycle instruction after the tapping cycle instruction is retrieved.

[0046] To facilitate understanding, the following will be combined with... Figure 3 This embodiment provides a detailed explanation of how to retrieve instruction information for a preset processing program:

[0047] Please refer to Figure 3 This is a schematic diagram showing the output result of the retrieval function.

[0048] By retrieving the output function, after retrieving the G84 tapping cycle instruction of the preset machining program, add the rigid tapping M29S code before the G84 tapping cycle instruction, and add G80 to automatically cancel rigid tapping after the G84 tapping cycle instruction to ensure tapping accuracy and prevent tool breakage.

[0049] In some embodiments, after configuring the first output function, the method further includes configuring a third output function, wherein the third output function, after being run, is used to output the identity information of a preset processing program, the identity information including at least the program creation date, drawing file version, and clamping location of the preset processing program.

[0050] This method allows manufacturing and production personnel to easily check the procedures, compare the differences in date versions and related clamping information between the old and new procedures, and further improve product production efficiency and reduce labor costs.

[0051] Please refer to Figure 4This is a schematic diagram illustrating the execution result of the third output function. After the third output function is executed, the identity information is displayed in the second and third rows at the beginning of the preset processing program.

[0052] In some embodiments, after configuring the first output function, the method further includes configuring a parameter locking function, wherein the parameter locking function, after being executed, is used to lock the working parameters of the machine tool processing the product.

[0053] Please refer to Figure 5 This is a schematic diagram illustrating the execution result of the parameter locking function.

[0054] This method can prevent errors in the preset machining program, prevent on-site staff from modifying the machine tool's working parameters, prevent errors in the machine tool's four-axis coordinates, and further improve the machining accuracy of the product.

[0055] Compared with related technologies, the embodiments of this application have at least the following advantages: by adding a first code to the preset machining program, the machining part information is displayed after the first code is run, so that the staff can directly check the content displayed by the program, avoiding the staff spending a lot of time looking for the machining part information, reducing labor costs and improving production efficiency; by configuring the retrieval output function to retrieve the instruction information of the pre-machining program, after the tapping cycle instruction in the retrieved instruction information is found, a rigid tapping instruction is automatically added before the tapping cycle instruction, so that the rotation speed (S) and feed (F) are matched, ensuring that the tooth pitch = F / S, preventing tooth decay, thereby improving the tapping quality and programming efficiency, and thus improving production accuracy and production quality.

[0056] Please refer to Figure 6 This is a flowchart of a secondary development method for UG post-processing files provided in one embodiment of this application. This embodiment is a further improvement based on the aforementioned embodiments. The main improvement is that in this embodiment, the processing sequence of the product is also detected to match the preset processing sequence, and an alarm message is sent when a mismatch is detected. In this way, the production accuracy of the product can be further improved.

[0057] The specific process of this embodiment is as follows: Figure 6 As shown, it includes the following steps:

[0058] Step S201: Configure the first output function in the preset processing program.

[0059] Step S202: Configure the retrieval output function.

[0060] Steps S201 to S202 in this embodiment are similar to steps S101 to S102 in the previous embodiment. To avoid repetition, they will not be described again here.

[0061] Step S203: Configure the logical judgment function.

[0062] In some embodiments, after the logic judgment function is run, it is used to detect whether the processing sequence of the product is consistent with the preset processing sequence, and outputs an alarm message when the processing sequence is found to be inconsistent with the preset processing sequence. The preset processing sequence includes multiple processing steps of the product executed sequentially.

[0063] In some embodiments, configuring the logical judgment function specifically includes: configuring a logical judgment function with global variables, wherein the order of change of the global variables matches a preset processing order; after the logical judgment function is run, it is used to detect whether the processing order of the product is consistent with the preset processing order, and to issue an alarm message when the processing order is detected to be inconsistent with the preset processing order, including: after the logical judgment function is run, detecting whether the current value matches the preset processing order based on the current value of the global variables, and to output the alarm message when a mismatch is detected.

[0064] In some embodiments, after configuring the logical judgment function with global variables, the method further includes: configuring a group name reading function, which, when executed, reads the program group name of the preset machining program based on the global variables; the group name reading function is also used to use the first five digits of the program group name as the file name of the preset machining program, wherein the file name of the preset machining program is a program name recognizable by the machine tool. This method reduces the tediousness of manually entering program file names each time, improving program design efficiency.

[0065] To facilitate understanding, the following will be combined with... Figure 7 This embodiment provides a detailed explanation of how it detects whether the product processing sequence is consistent with the preset processing sequence:

[0066] Please refer to Figure 7 This is a schematic diagram showing the execution result of the logical judgment function.

[0067] By writing a configuration logic judgment function, an alarm is triggered when an error in the product processing sequence is detected. This prevents product scrapping caused by on-site technicians misadjusting the program or missing processing steps after a tool breakage, pause, or restart. By setting global variables and using global variable judgments, the program automatically outputs relevant code in the post-processing code. This provides protection and allows the CNC machine to issue alarms in case of anomalies, prompting technicians to handle the situation.

[0068] Compared with related technologies, the embodiments of this application have at least the following advantages: by adding a first code to the preset processing program, the processing part information is displayed after the first code is run, so that the staff can directly check the content displayed by the program, avoiding the staff spending a lot of time looking for the processing part information, reducing labor costs and improving production efficiency; by configuring the retrieval output function to retrieve the instruction information of the pre-processing program, after the tapping cycle instruction in the retrieved instruction information is found, a rigid tapping instruction is automatically added before the tapping cycle instruction, which improves the tapping accuracy and thus improves the production accuracy.

[0069] Please refer to Figure 8 This is a flowchart illustrating a secondary development method for UG post-processing files according to an embodiment of this application. This embodiment is a further improvement based on the aforementioned embodiments. The main improvement lies in that: in this embodiment, the machining coordinate system code of the machine tool is automatically obtained, and a rotation variable is automatically added after the machining coordinate system code of the machine tool, so that the machine tool controls the rotation of the raw material of the product according to the rotation variable. In this way, the correct machining angle of the raw material can be ensured, further improving the machining accuracy of the product.

[0070] The specific process of this embodiment is as follows: Figure 8 As shown, it includes the following steps:

[0071] Step S301: Configure the first output function in the preset processing program.

[0072] Step S302: Configure the retrieval output function.

[0073] Steps S301 to S302 in this embodiment are similar to steps S101 to S102 in the previous embodiment. To avoid repetition, they will not be described again here.

[0074] Step S303: Configure the second output function.

[0075] In some embodiments, the second output function, after being run, is used to output the machining coordinate system code of the machine tool.

[0076] Step S304: Configure the automatic output function.

[0077] In some embodiments, the automatic output function is run to automatically add rotation variables after the machining coordinate system code, and the machine tool uses the rotation variables to control the rotation of the raw materials of the product.

[0078] To facilitate understanding, the following will be combined with... Figure 9 This embodiment provides a detailed explanation of how to obtain the machining coordinate system code of the machine tool and how to add rotation variables:

[0079] Please refer to Figure 9The image shows the execution results of the code for the second output function and the code for the automatic output function.

[0080] Compared with related technologies, the embodiments of this application have at least the following advantages: by adding a first code to the preset processing program, the processing part information is displayed after the first code is run, so that the staff can directly check the content displayed by the program, avoiding the staff spending a lot of time looking for the processing part information, reducing labor costs and improving production efficiency; by configuring the retrieval output function to retrieve the instruction information of the pre-processing program, after the tapping cycle instruction in the retrieved instruction information is found, a rigid tapping instruction is automatically added before the tapping cycle instruction, which improves the tapping accuracy and thus improves the production accuracy.

[0081] Please refer to Figure 10 This is a schematic diagram of the hardware structure of the electronic device 1000 provided in an embodiment of this application. Figure 10 As shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions that can be used to implement the secondary development method of the UG post-processing file described above in the electronic device 1000.

[0082] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements.

[0083] Processor 1001 may include one or more processing units, such as application processors (APs), modems, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0084] The processor 1001 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. This memory can store instructions or data that the processor 1001 has just used or that are used repeatedly. If the processor 1001 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.

[0085] In some embodiments, the processor 1001 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.

[0086] In some embodiments, memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0087] This embodiment also provides a readable storage medium that stores computer instructions. When the instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the secondary development method for UG post-processing files in the above embodiment.

[0088] In this embodiment, the electronic device and computer storage medium are used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0089] In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0090] In the several embodiments provided in this application, the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are illustrative. For instance, the division of modules or units is a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0091] The unit described as a separate component may or may not be physically separate. The component shown as a unit can be one physical unit or multiple physical units, that is, it can be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of the solution in this embodiment according to actual needs.

[0092] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0093] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0094] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application.

Claims

1. A secondary development method of a UG post-processing file, characterized by, The method comprises the following steps: In a preset machining program, a first output function is configured, wherein the first output function is used to output machining component information of a machine tool after being executed, the machining component information comprises at least one of a program operation name, a tool name, a tool specification, and a tool number, and the machine tool processes a product according to the preset machining program; A logical judgment function is configured, wherein the logical judgment function is used to detect whether a machining sequence of the product is consistent with a preset machining sequence after being executed, and output an alarm information when it is detected that the machining sequence is not consistent with the preset machining sequence, and the preset machining sequence comprises a plurality of machining processes of the product executed in sequence; A retrieval output function is configured, wherein the retrieval output function is used to retrieve instruction information of the preset machining program after being executed, and the instruction information comprises a tapping cycle instruction used to set a tapping parameter of the machine tool; The retrieval output function is further used to add a rigid tapping instruction before the tapping cycle instruction after the tapping cycle instruction is retrieved.

2. The method of claim 1, wherein the UG post-process file is a file in a format of a UG post-process language. The logical judgment function comprises: A logical judgment function with a global variable is configured, and a change sequence of the global variable matches the preset machining sequence; The logical judgment function is used to detect whether the machining sequence of the product is consistent with the preset machining sequence after being executed, and output the alarm information when it is detected that the machining sequence is not consistent with the preset machining sequence, and the detection comprises: The logical judgment function is used to detect, according to a current value of the global variable, whether the current value matches the preset machining sequence after being executed, and output the alarm information when it is detected that the current value does not match the preset machining sequence.

3. The method of claim 2, wherein the UG post-process file is a UG post-process file of a UG NX series. After the logical judgment function with the global variable is configured, the method further comprises: A group name reading function is configured, wherein the group name reading function is used to read a program group name of the preset machining program according to the global variable after being executed; The group name reading function is further used to take the first five digits of the program group name as a file name of the preset machining program, wherein the file name of the preset machining program is a program name recognizable by the machine tool.

4. The method of claim 1, wherein the UG post-process file is a file in a format of a UG post-process language. After the first output function is configured, the method further comprises: A second output function is configured, wherein the second output function is used to output a machining coordinate system code of the machine tool after being executed.

5. The secondary development method of the UG post-process file according to claim 4, wherein, After the second output function is configured, the method further comprises: An automatic output function is configured, wherein the automatic output function is used to automatically add a rotation variable after the machining coordinate system code after being executed, and the machine tool is used to control rotation of a raw material of the product according to the rotation variable.

6. The method of claim 1, wherein the UG post-process file is a file in a format of a UG post-process language. After the first output function is configured, the method further comprises: A third output function is configured, wherein the third output function is used to output identity information of the preset machining program after being executed, and the identity information at least comprises a program production date, a drawing file version, and a clamping position of the preset machining program.

7. The method of claim 1, wherein the UG post-process file is a file in a format of a UG post-process language. After the first output function is configured, the method further comprises: A parameter locking function is configured, wherein the parameter locking function is used to lock a working parameter of the machine tool for processing the product after being executed.

8. A readable storage medium, characterized by, The computer program product comprises computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method for secondary development of a UG post-processing file according to any one of claims 1 to 7.

9. An electronic device, comprising: The electronic device comprises a processor and a memory, wherein the memory is configured to store instructions, and the processor is configured to invoke the instructions in the memory, so that the electronic device performs the method for secondary development of a UG post-processing file according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Program execution sequence diagnosis method and program execution sequence diagnosis system

    CN104572472A