Processing program batch processing method and system and storage medium

By receiving and processing CAM programming files on the server side and automatically uploading CNC NC processing programs, the problem of long wait time for post-processing of CAM programming software is solved, and the automation and efficiency improvement of batch processing is achieved.

CN118915623APending Publication Date: 2024-11-08ZHUHAI GREE PRECISION MOLD CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411412279.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-10-10
Filing Date
2024-10-11
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

When using CAM programming software, the post-processing wait time is long, especially when there are many types of CNC machine tools or many tool path files, the post-processing time is increased and the work efficiency is affected.

Method used

By receiving programming files at the specified path location of the server, automatically obtaining file name information and program format information, processing in queue and automatically uploading CNC NC machining programs to the processing server, avoiding manual upload and improving efficiency.

Benefits of technology

It realizes automatic upload of batch processing of CAM programming files, reduces manual operation time, improves the work efficiency of CAM engineers, and avoids waiting and error problems in traditional operation methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118915623A_ABST
    Figure CN118915623A_ABST
Patent Text Reader

Abstract

The invention discloses a batch processing method and system for processing programs and a storage medium, and the method comprises the following steps: receiving programming files at a specified path position of a server, the programming files coming from different servers and / or clients; when the programming file exists at the specified path position of the server, acquiring name information of the programming file and corresponding program format information; processing the programming file by using the programming software of the current server to obtain a processing program formed according to the program format; and uploading the processing program to a processing server. According to the method, the programming files are processed in batches in a queue mode, the operation of generating the machining program is completed, and the problem that in a traditional operation mode, after a CAM engineer uses programming software, the processing waiting time is long is solved; according to the method, the generated processing program can be automatically uploaded to the specified position of the processing server, the problems of mistakes and omissions of manual uploading are avoided, and the working efficiency of CAM engineers is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of processing production, in particular to a batch processing method, system and storage medium of a processing program. Background Art

[0002] When using CAM programming software, the tool path files generated by the CAM software need to be read through the post-processor to generate NC programs that can be directly recognized by CNC machine tools. This process needs to be generated after judging and matching according to the characteristics of the specified CNC machine tools and the NC program format requirements. When there are many types of CNC machine tools, multiple NC programs need to be generated, which increases the time for post-processing. In addition, when there are many tool path files or the capacity is large, the time for post-processing is also increased. During this post-processing process, CAM engineers cannot operate the programming software. They need to wait until the software post-processing is completed before they can proceed to the next step and upload the generated NC program to the processing server, which affects work efficiency. Summary of the invention

[0003] In view of the long waiting time for post-processing of programming software by CAM engineers, the present invention provides a batch processing method, system and storage medium for machining programs. After completing the part tool path programming, the programming file is sent to a path location specified by the server, and the programming files at the path location are queued for batch processing, and the NC machining programs generated by each programming file are automatically uploaded to the machining server, thereby solving the long waiting time for post-processing of programming software by CAM engineers.

[0004] To achieve the above object, the present invention adopts the following technical solution: a batch processing method of a processing program, comprising the following steps: Receiving programming files at a path location specified by the server, wherein the programming files come from different servers and / or clients; When there is at least one programming file in the path location specified by the server, name information of the programming files is obtained in sequence, and corresponding program format information is automatically obtained from the server database according to the name information, or the corresponding program format information is determined according to a suffix name that has been added to the name information and can match the program format; The programming file is processed by the programming software of the current server in a queue manner to obtain a processing program formed according to the program format, and the processing program is uploaded to the processing server.

[0005] As a further improvement of the present invention, the method further comprises: After completing programming, different servers and / or clients save programming files and output processing orders, wherein the processing orders include program format information set according to the characteristics of the processing machine tool; When outputting the processing order, the programming file is synchronously copied to the path location specified by the server.

[0006] As a further improvement of the present invention, when outputting the processing order, the method further includes: The name information, local computer storage path information, program format information, and copy time information of the programming file are imported into the server database. Different programming files form different data rows, and multiple data columns are formed in the data rows according to different information of the programming files.

[0007] As a further improvement of the present invention, when at least one programming file exists in the path location specified by the server, the method includes: The current server periodically scans the specified path location at a set period length to see if there is a programming file; And / or, after the programming software of the current server completes processing of the previous programming file, scanning is performed to determine whether a programming file exists at the specified path location.

[0008] As a further improvement of the present invention, the obtaining of the name information of the programming file and the corresponding program format information includes: When there is a programming file at the path location specified by the server, the name information of the existing programming files is obtained in sequence, and the name information is added as a query condition to determine whether there is a data row of the name information in the database; If it does not exist, delete the name information; If present, obtain the program format information from the data row of the name information.

[0009] As a further improvement of the present invention, the processing of the programming file by the programming software of the current server according to the queue method includes: Use the programming software of the current server to open the programming file of the name information in the specified path location, where the programming file of the name information is a programming file that has been determined to be able to obtain the corresponding program format information through the name information; and obtaining the program format information from the program format data column in the data of the name information; The programming software processes the programming file according to the program format information to obtain the processing program.

[0010] As a further improvement of the present invention, uploading the processing program to the processing server includes: After the programming software has completed the processing, the local computer storage path information is obtained according to the local computer storage path data column of the data row of the programming file; The local computer storage path information is divided into character strings according to a specified separator and then combined to determine the path for uploading the processing program.

[0011] As a further improvement of the present invention, the method further comprises: After the processing program is uploaded to the processing server, the local processing program of the current server is deleted, and the post-processing status and upload path information are imported into the data rows and / or data columns of the current programming file in the server database, the current programming file is closed, and the programming file is deleted.

[0012] On the other hand, the present invention adopts the following technical solution: a batch processing system for processing programs, comprising: Programming module, used for user programming and forming programming files and outputting processing orders; A server having a designated path location and a database, wherein the designated path location is used to receive the programming file of the programming module, and the database is used to store information of the programming file; A post-processing module is used to obtain the name information of the programming file and the corresponding program format information in sequence when there is at least one programming file in the path location specified by the server; the programming file is processed according to the queue mode by the programming software of the current server to obtain a processing program formed according to the program format; The processing server is used to receive the uploaded processing program.

[0013] On the other hand, the present invention selects the following technical solution: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes a batch processing method of a processing program as described above.

[0014] Compared with the prior art, the present invention has the following beneficial effects: The present invention completes the operation of generating numerical control NC machining programs by batch processing CAM programming files in a queue manner, thereby solving the problem of long waiting time for CAM engineers to use programming software for post-processing in the traditional operation mode; it can automatically upload the generated NC machining programs to the specified location of the machining server, avoiding the occurrence of manual uploading errors and omissions, and improving the work efficiency of CAM engineers. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solution, the drawings required for use in the implementation will be briefly introduced below. Obviously, the drawings described below are only some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0016] Figure 1 It is a structural schematic diagram of the present invention. DETAILED DESCRIPTION

[0017] In order to enable a clear and complete understanding of the technical solution, the present invention is further described in conjunction with the embodiments and drawings. Obviously, the described embodiments are only some embodiments of the present invention, and all other embodiments obtained by technicians in the relevant field without making creative work are within the scope of protection of the present invention.

[0018] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0019] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0020] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0021] An embodiment of the present invention provides a batch processing method for machining programs. After completing the part tool path programming, the CAM engineer does not use the CAM programming software on his or her work computer to post-process the CNC machining program, but instead copies or sends the CAM programming file to a specified path location on the server. The server computer corresponding to the path location controls the CAM programming software under the path location by a computer programming language to perform queue batch processing on the CAM programming files, and automatically uploads the CNC machining programs generated by each CAM programming file to the specified location on the machining server.

[0022] Specifically, Figure 1 As shown, a batch processing method of a processing program includes the following steps: Receiving programming files at a path location specified by the server, wherein the programming files come from different servers and / or clients; When there is at least one programming file in the path location specified by the server, name information of the programming files is obtained in sequence, and corresponding program format information is automatically obtained from the server database according to the name information, or the corresponding program format information is determined according to a suffix name that has been added to the name information and can match the program format; The programming file is processed by the programming software of the current server in a queue manner to obtain a processing program formed according to the program format, and the processing program is uploaded to the processing server.

[0023] In this embodiment, one or more programming files from different servers and / or clients are received, and the programming files are batch processed in a queue manner at a specified path location on the server to complete the operation of generating a numerical control NC machining program, thereby solving the problem of long waiting time for CAM engineers to use programming software for post-processing in the traditional operation mode; the generated NC machining program can be automatically uploaded to the specified location of the machining server, thus avoiding the occurrence of errors and omissions in manual uploading and improving the work efficiency of CAM engineers.

[0024] It should be noted that this embodiment does not impose any restrictions on the principles, parameters and implementation methods of the programming software for processing programming files into machining programs. The technicians can set them according to actual usage requirements. They can use computer programming languages ​​to control the CAM programming software, and can batch process all CAM programming files corresponding to the CAM software in the path in a queue manner to complete the operation of generating CNC machining programs.

[0025] For better understanding, in an optional embodiment, the method further includes: After completing programming, different servers and / or clients save programming files and output processing orders, wherein the processing orders include program format information set according to the characteristics of the processing machine tool; When outputting the processing order, the programming file is synchronously copied to the path location specified by the server.

[0026] In this embodiment, taking the case where a programming engineer uses PowerMill software as an example, after the CAM engineer completes the part tool path programming, he will perform a save operation to ensure the integrity of the CAM programming file and output a processing order. In the traditional technical solution, post-processing and processing orders are generated synchronously, and the characteristics of the CNC machine tool and the NC program format that match the NC processing program are set by outputting the processing order. This traditional method makes it impossible to use the programming software for other operations during the post-processing process, resulting in a long waiting time for CAM engineers to use the programming software for post-processing. However, this embodiment currently only outputs the processing order without post-processing, and copies or sends the programming file to the specified path location of the server, and then post-processes the programming file in batches in a queue manner, thereby improving the work efficiency of CAM engineers.

[0027] In an optional embodiment, when at least one programming file exists in the path location specified by the server, the method includes: The current server periodically scans the specified path location at a set period length to see if there is a programming file; And / or, after the programming software of the current server completes processing of the previous programming file, scanning is performed to determine whether a programming file exists at the specified path location.

[0028] In this embodiment, the server can be set to scan the specified path location every 30 seconds to determine whether there is a programming file to obtain the programming file information. It can also be set to scan the specified path location after the programming software of the current server completes processing the programming file.

[0029] In an optional embodiment, when outputting the processing order, the process further includes: The name information, local computer storage path information, program format information, and copy time information of the programming file are imported into the server database. Different programming files form different data rows, and multiple data columns are formed in the data rows according to different information of the programming files.

[0030] When there is at least one programming file in the path location specified by the server, the name information of the existing programming files is obtained in sequence, and the name information is added as a query condition to determine whether there is a data row of the name information in the database; If it does not exist, delete the name information; If it exists, get the program format information from the data row of the name information; Use the programming software of the current server to open the programming file of the name information in the specified path location, where the programming file of the name information is a programming file that has been determined to be able to obtain the corresponding program format information through the name information; and obtaining the program format information from the program format data column in the data of the name information; The programming software processes the programming file according to the program format information to obtain the processing program. In this embodiment, the server scans the designated path location (such as a designated folder) at set periodic intervals (such as 30 seconds) (or scans after post-processing a CAM programming file) to obtain the name information (such as the file name) of the existing programming file, and uses the obtained file name as a query condition to determine whether the data row exists in the database. If not, it means that the programming file is not copied completely, and the file name is simultaneously removed from the query condition and added in the next round of scanning; when the data row exists, the CAM programming software is used to open the CAM programming file of the file name in the scan specified path location, and the NC program format data column of the obtained data row is matched to the corresponding post-processing to perform the post-processing operation.

[0031] In an optional embodiment, uploading the processing program to a processing server includes: After the programming software has completed the processing, the local computer storage path information is obtained according to the local computer storage path data column of the data row of the programming file; The local computer storage path information is divided into character strings according to a specified separator and then combined to determine the path for uploading the processing program.

[0032] That is to say, the post-processed NC machining program is automatically uploaded to the machining server. When the CAM programming software completes the post-processing operation, the local computer storage path data column of the acquired data row is used to split the string according to the specified delimiter through the Split() function and then combine it to determine the path for uploading the machining program.

[0033] For example: the local computer storage path is: "E:\WORK\2024\NEW\6435B-LC109\CNC1\PMILL\", use the Split() function with "\" as the delimiter to determine the location where the processing program is uploaded: "Processing server address\2024\NEW\6435B-LC109\CNC1\part name\"; the part name is obtained by splitting the programming file name using the Split() function with "-" as the delimiter. For example: the CAM programming file name is: ZHL1-6435B-LC109-PZ3, then the obtained part name is "ZHL1".

[0034] Based on the above, an optional embodiment is further provided, wherein the method further comprises: After the processing program is uploaded to the processing server, the local processing program of the current server is deleted, and the post-processing status and upload path information are imported into the data row and / or data column of the current programming file in the server database, and the current programming file is closed and deleted. After the programming file is deleted, the above-mentioned step of scanning the server for programming files at the specified path location is re-executed to realize batch processing cyclically or through a queue.

[0035] This embodiment completes the operation of generating numerical control NC machining programs by batch processing CAM programming files in a queue manner, thereby solving the problem of long waiting time for CAM engineers to use programming software for post-processing in the traditional operation mode; it can automatically upload the generated NC machining programs to the specified location of the machining server, avoiding the occurrence of errors and omissions in manual uploading, and improving the work efficiency of CAM engineers.

[0036] Obviously, the above embodiments are only used to illustrate the batch processing method of the present invention, and are not intended to limit the scope of protection of the present invention. Without departing from the concept of the present invention, those skilled in the art can adjust the above methods so that the present invention can be applied to more specific application scenarios.

[0037] Specifically, the present invention also provides another alternative embodiment, based on the above-mentioned embodiments, some contents not mentioned are set with reference to the above-mentioned embodiments, and will not be repeated here, a batch processing method of a processing program includes the following steps: When the CAM engineer completes the part tool path programming, he will execute the save operation to ensure the integrity of the CAM programming file and output the processing order (the traditional practice is that the post-processing and the processing order are generated synchronously, and the NC processing program is set by outputting the processing order to match the characteristics of the CNC machine tool and the NC program format. This embodiment only outputs the processing order without post-processing).

[0038] Furthermore, after the processing order is output, a suffix that can match the NC program format is added to the model name in the CAM programming file. After the CAM programming file is saved, the engineer manually copies the CAM programming file to the specified path location on the server (or the specified shared folder path location on the server computer), or after the engineer completes multiple CAM programming files, they are uniformly copied to the specified shared folder path location on the server computer. At this time, it is necessary to set trigger conditions for the batch post-processing software. Generally, post-processing is triggered when there is more than one file in the specified path location to ensure that the CAM programming files in the specified path location are copied.

[0039] Furthermore, when the post-processing is triggered, the specified path location is scanned every 30 seconds (or scanned after a CAM programming file is post-processed) to obtain the file name of the existing programming file, so as to use the CAM programming software to open the CAM programming file with the file name under the scan path, and match the corresponding post-processing according to the suffix of the model name of the opened CAM programming file, and perform the post-processing operation. After completing the post-processing, the NC machining program is temporarily stored in the server location according to the CAM programming file name, and then manually uploaded to the machining server by the CAM engineer. For example, if the CAM programming file name is: ZHL1-6435B-LC109-PZ3, the temporary storage server location is: "Server address name\work\NC\LC109\6435B\ZHL1\".

[0040] In this embodiment, after the CAM engineer completes the part tool path programming, he does not use the CAM programming software on his work computer to post-process the CNC machining program. Instead, he copies the CAM programming file to a designated server computer path. The server computer corresponding to the path controls the CAM programming software using a computer programming language to perform queue batch processing on the CAM programming files under the path, thereby solving the problem of long waiting time for CAM engineers to use programming software for post-processing in traditional operation methods.

[0041] On the other hand, a batch processing system for a processing program is also provided in an embodiment of the present invention, and the system is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable. A batch processing system for a processing program provided in this embodiment includes: Programming module, used for user programming and forming programming files and outputting processing orders; A server having a designated path location and a database, wherein the designated path location is used to receive the programming file of the programming module, and the database is used to store information of the programming file; A post-processing module is used to obtain the name information of the programming file and the corresponding program format information when the programming file exists in the path location specified by the server; the programming file is processed by the programming software of the current server to obtain a processing program formed according to the program format; The processing server is used to receive the uploaded processing program.

[0042] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0043] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor executes a batch processing method of a machining program such as one or more of the above embodiments.

[0044] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps: Receiving programming files at a path location specified by the server, wherein the programming files come from different servers and / or clients; When the programming file exists in the path location specified by the server, obtain the name information of the programming file and the corresponding program format information; Processing the programming file with the programming software of the current server to obtain a processing program formed according to the program format; The processing program is uploaded to a processing server.

[0045] Optionally, in this embodiment, the storage medium may include but is not limited to: a USB flash drive, a read-only memory ROM, a random access memory RAM, a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0046] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative, a storage medium may be integrated into a processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.

[0047] The above disclosure is only one or more preferred embodiments of the present invention, which are used to help understand the inventive concept of the technical solution, and is not intended to limit the present invention in other forms. Technical personnel in the relevant field may make other equivalent or customary replacement schemes based on the features defined by the present invention, which still fall within the scope of the present invention.

Claims

1. A batch processing method for a processing program, characterized in that: The steps include: Receiving programming files at a path location specified by the server, wherein the programming files come from different servers and / or clients; When there is at least one programming file in the path location specified by the server, name information of the programming files is obtained in sequence, and corresponding program format information is automatically obtained from the server database according to the name information, or the corresponding program format information is determined according to a suffix name that has been added to the name information and can match the program format; The programming file is processed by the programming software of the current server in a queue manner to obtain a processing program formed according to the program format, and the processing program is uploaded to the processing server.

2. A batch processing method for a machining program according to claim 1, characterized in that: The method further comprises: After completing programming, different servers and / or clients save programming files and output processing orders, wherein the processing orders include program format information set according to the characteristics of the processing machine tool; When outputting the processing order, the programming file is synchronously copied to the path location specified by the server.

3. A batch processing method for a machining program according to claim 2, characterized in that: When outputting the processing order, it also includes: The name information, local computer storage path information, program format information, and copy time information of the programming file are imported into the server database. Different programming files form different data rows, and multiple data columns are formed in the data rows according to different information of the programming files.

4. The batch processing method of a machining program according to claim 1, characterized in that: When at least one programming file exists in the path location specified by the server, the method includes: The current server periodically scans the specified path location at a set period length to see if there is a programming file; And / or, after the programming software of the current server completes processing of the previous programming file, scanning is performed to determine whether a programming file exists at the specified path location.

5. The batch processing method of a machining program according to claim 3, characterized in that: The obtaining of the name information of the programming file and the corresponding program format information includes: When there is a programming file at the path location specified by the server, the name information of the existing programming files is obtained in sequence, and the name information is added as a query condition to determine whether there is a data row of the name information in the database; If it does not exist, delete the name information; If present, obtain the program format information from the data row of the name information.

6. A batch processing method for a machining program according to claim 1, characterized in that: The programming software of the current server processes the programming file in a queue manner, including: Use the programming software of the current server to open the programming file of the name information in the specified path location, where the programming file of the name information is a programming file that has been determined to be able to obtain the corresponding program format information through the name information; and obtaining the program format information from the program format data column in the data of the name information; The programming software processes the programming file according to the program format information to obtain the processing program.

7. The batch processing method of a machining program according to claim 1, characterized in that: Uploading the processing program to a processing server includes: After the programming software has completed the processing, the local computer storage path information is obtained according to the local computer storage path data column of the data row of the programming file; The local computer storage path information is divided into character strings according to a specified separator and then combined to determine the path for uploading the processing program.

8. The batch processing method of a machining program according to claim 1, characterized in that: The method further comprises: After the processing program is uploaded to the processing server, the local processing program of the current server is deleted, and the post-processing status and upload path information are imported into the data rows and / or data columns of the current programming file in the server database, the current programming file is closed, and the programming file is deleted.

9. A batch processing system for a processing program, characterized in that: include: Programming module, used for user programming and forming programming files and outputting processing orders; A server having a designated path location and a database, wherein the designated path location is used to receive the programming file of the programming module, and the database is used to store information of the programming file; A post-processing module, used for sequentially acquiring name information of the programming file and corresponding program format information when at least one programming file exists in the path location specified by the server; Processing the programming file in a queue manner using the programming software of the current server to obtain a processing program formed according to the program format; The processing server is used to receive the uploaded processing program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes a batch processing method for a machining program as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Video frequency file automatic conversion system and its method

    CN101059797A

  • Code conversion method and device used for numerical control system

    CN101794140A

  • Method for converting document file format by using node server

    CN105354254A

  • 3D model format conversion method and system, compute device and storage medium

    CN109448100A

  • Batch file processing method and device, electronic equipment and storage medium

    CN116260809A