Processing method, device and storage medium of process files in numerical control system
By receiving and executing target instructions in the CNC machine tool system, using socket communication and path information, remote backup and cleaning of process files are realized, the problem of low process file processing efficiency is solved, and the automation of production tasks and data replacement efficiency is improved. .
Patent Information
- Application Number
- CN202111487156.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2041-12-07
AI Technical Summary
The process file processing efficiency in existing CNC systems is low, and there is a lack of effective solutions to achieve the binding between remote backup and regular cleaning and production tasks.
In the CNC machine tool system, the target instructions are received through the target program, the backup and deletion of process files are performed, and the remote backup and cleaning of process files are realized using socket communication methods and pre-configured path information.
It improves the efficiency of process file processing, realizes timely backup and cleansing of process files, and improves the efficiency of production tasks and data replacement.
Smart Images

Figure CN114168388B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of numerical control system processing, and in particular to a method, device and storage medium for processing process files in a numerical control system. Background Art
[0002] In industrial CNC production, machining a complete part requires the machine tool to call multiple process files, and each process file often corresponds to a process for the part. In order to solve the problem of timely updating and calling the machine tool process files after the part process is switched at the planning level, it is particularly important to realize the remote backup and cleanup of the process files on the machine tool. However, the current DNC communication mode basically only realizes the functions of deleting, downloading, and uploading CNC machine tool files, and there is no good solution to solve the remote control of CNC machine tools to realize local backup and regular cleanup of files, and bind them with production tasks.
[0003] With regard to the problem of low efficiency in processing process files in related technologies, no effective solution has been proposed so far. Summary of the invention
[0004] The main purpose of the present application is to provide a method, device and storage medium for processing process files in a numerical control system, so as to solve the problem of low efficiency in processing process files in related technologies.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for processing a process file in a numerical control system is provided. The method comprises: in a numerical control machine tool system, receiving a target instruction through a target program, wherein the target instruction comprises at least one of the following: a target backup instruction and a target deletion instruction; performing a process file processing operation according to the target instruction to obtain a process file processing result, wherein the process file is backed up and the process file is deleted.
[0006] Furthermore, in the numerical control machine tool system, before receiving the target instruction through the target program, the method further includes: receiving the target instruction in the numerical control system through the interface of the target host computer; and sending the target instruction to the target program.
[0007] Furthermore, the processing operation of the process file is executed according to the target instruction, and the processing result of the process file is obtained, including: when the target instruction indicates that the process file needs to be backed up, the backup operation of the process file is executed to obtain the backed-up process file; when the target instruction indicates that the backed-up process file needs to be deleted, the deletion operation of the backed-up process file is executed.
[0008] Furthermore, when the target instruction indicates that the backed-up process file needs to be deleted, executing the deletion operation of the backed-up process file includes: obtaining path information of the backed-up process file; and deleting the backed-up process file according to the path information.
[0009] Furthermore, in the CNC machine tool system, before receiving the target instruction through the target program, the method also includes: pre-configuring the path information corresponding to each process file in the CNC machine tool system, wherein the path information at least includes the path information of the process file being stored for the first time and the path information of the process file being backed up for the first time.
[0010] Furthermore, in the CNC machine tool system, after receiving the target instruction through the target program, the method also includes: parsing the target instruction to obtain a parsing result, wherein the parsing result includes at least one of the following: an instruction name of the target instruction, and a target operation object of the target instruction.
[0011] Furthermore, in the numerical control machine tool system, receiving the target instruction through the target program includes: the target program receives the target instruction through a socket communication method.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a device for processing process files in a numerical control system is provided. The device comprises: a first receiving unit, used to receive a target instruction through a target program in a numerical control machine tool system, wherein the target instruction comprises at least one of the following: a target backup instruction and a target deletion instruction; a first executing unit, used to execute a process file processing operation according to the target instruction to obtain a process file processing result, wherein the process file is backed up and the process file is deleted.
[0013] Furthermore, the device also includes: a second receiving unit, which is used in the CNC machine tool system to receive the target instruction in the CNC system through the interface of the target host computer before receiving the target instruction through the target program; and a first sending unit, which is used to send the target instruction to the target program.
[0014] Furthermore, the first execution unit includes: a first execution module, which is used to perform a backup operation of the process file and obtain the backed-up process file when the target instruction indicates that the process file needs to be backed up; and a second execution module, which is used to perform a deletion operation of the backed-up process file when the target instruction indicates that the backed-up process file needs to be deleted.
[0015] Furthermore, the second execution module includes: a first acquisition submodule, used to acquire path information of the backed-up process file; and a first deletion submodule, used to delete the backed-up process file according to the path information.
[0016] Furthermore, the device also includes: a first configuration unit, which is used in the CNC machine tool system to pre-configure path information corresponding to each process file in the CNC machine tool system before receiving the target instruction through the target program, wherein the path information at least includes path information when the process file is initially stored and path information when the process file is initially backed up.
[0017] Furthermore, the device also includes: a first parsing unit, which is used to parse the target instruction after receiving the target instruction through the target program in the CNC machine tool system to obtain a parsing result, wherein the parsing result includes at least one of the following: the instruction name of the target instruction and the target operation object of the target instruction.
[0018] Furthermore, the first receiving unit includes: a first receiving module, which is used for the target program to receive the target instruction through the socket communication mode.
[0019] According to another aspect of an embodiment of the present application, a processor is further provided, and the processor is used to run a program, wherein any one of the above methods is executed when the program is run.
[0020] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, any one of the above methods is performed.
[0021] Through this application, the following steps are adopted: in a CNC machine tool system, a target instruction is received through a target program, wherein the target instruction includes at least one of the following: a target backup instruction and a target deletion instruction; a process file processing operation is executed according to the target instruction to obtain a process file processing result, wherein the process file is backed up and the process file is deleted, thereby solving the problem of low process file processing efficiency in the related art. By executing the process file processing operation according to the target instruction, the process file processing result is obtained, thereby achieving the effect of improving the process file processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 is a flowchart of a method for processing a process file in a numerical control system provided in an embodiment of the present application;
[0024] Figure 2 It is a schematic diagram of the operation of a host computer according to the method for processing a process file in a numerical control system provided in an embodiment of the present application;
[0025] Figure 3 It is a system execution flow of a method for processing a process file in a numerical control system provided by an embodiment of the present application;
[0026] Figure 4 It is a schematic diagram of a process file processing device in a numerical control system provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0031] MES system: It is a production information management system for the workshop execution layer of manufacturing enterprises.
[0032] DNC: is a manufacturing term commonly used for networked CNC machine tools.
[0033] According to an embodiment of the present application, a method for processing a process file in a numerical control system is provided.
[0034] Figure 1 1 is a flow chart of a method for processing a process file in a numerical control system according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0035] Step S101, in a numerical control machine tool system, receiving a target instruction through a target program, wherein the target instruction includes at least one of the following: a target backup instruction and a target deletion instruction.
[0036] Specifically, before receiving the target instruction through the target program, a custom FTP (File Transfer Protocol) command is added to the embedded service program (corresponding to the target program in this application) in the MES system of the CNC machine tool, wherein the embedded service program is used to monitor the target instruction, wherein the FTP service works by creating a socket to monitor the target command sent by the client.
[0037] Optionally, in the method for processing process files in the CNC system provided in an embodiment of the present application, in the CNC machine tool system, before receiving the target instruction through the target program, the method also includes: receiving the target instruction in the CNC system through the interface of the target host computer; and sending the target instruction to the target program.
[0038] Figure 2 is a schematic diagram of the operation of the host computer according to the method for processing process files in the numerical control system provided by the embodiment of the present application, such as Figure 2 As shown in the figure, when a process task is completed, the MES system will perform completion operation or archiving operation on the task. During the execution of the operation, the MES system will call the service API interface of the DNC communication host computer. The DNC communication host computer will send backup or cleanup instructions to the embedded service program according to the information sent by the MES. The backup and cleanup functions of remote control CNC machine tool files are realized through the embedded service program, further improving the efficiency of data replacement and backup.
[0039] Optionally, in the method for processing process files in the CNC system provided in the embodiment of the present application, in the CNC machine tool system, before receiving the target instruction through the target program, the method also includes: pre-configuring path information corresponding to each process file in the CNC machine tool system, wherein the path information includes at least the path information of the process file being stored for the first time and the path information of the process file being backed up for the first time.
[0040] Specifically, before receiving the target instruction through the target program, the save path information and the backup path information of the process file are pre-set to further improve the backup efficiency.
[0041] Specifically, in the method for processing process files in the CNC system provided in the embodiment of the present application, in the CNC machine tool system, receiving the target instruction through the target program includes: the target program receives the target instruction through socket communication, that is, the FTP service works by creating a socket to listen to the commands sent by the client.
[0042] Optionally, in the method for processing process files in the CNC system provided in an embodiment of the present application, in the CNC machine tool system, after receiving the target instruction through the target program, the method also includes: parsing the target instruction to obtain a parsing result, wherein the parsing result includes at least one of the following: the instruction name of the target instruction, and the target operation object of the target instruction.
[0043] Specifically, parsing the target instruction is to parse the above-mentioned customized FTP command. For example, when the FTP command is a target backup instruction, the operation object corresponding to the target backup instruction is parsed, wherein the operation object can be process file 1 to be prepared for backup and process file 2 to be prepared for backup; when the FTP command is a target deletion instruction, the operation object corresponding to the target deletion instruction is parsed, wherein the operation object can be process file 1 to be prepared for deletion and process file 2 to be prepared for deletion. By parsing the FTP command in the embedded service program, the efficiency of data replacement and backup is further improved.
[0044] Step S102, executing a processing operation on the process file according to the target instruction to obtain a processing result on the process file, wherein the processing result includes one of the following: the process file is backed up, and the process file is deleted.
[0045] Specifically, the present application processes the process file according to the target instruction, automates the realization of the production task of the CNC machine tool according to the processing result, and at the same time improves the accuracy and security of the execution of the process file.
[0046] Optionally, in the method for processing process files in the CNC system provided in the embodiment of the present application, the processing operation of the process file is executed according to the target instruction, and the processing result of the process file is obtained, including: when the target instruction indicates that the process file needs to be backed up, the backup operation of the process file is executed to obtain the backed-up process file; when the target instruction indicates that the backed-up process file needs to be deleted, the deletion operation of the backed-up process file is executed.
[0047] Figure 3 This is a system execution flow of the method for processing process files in a numerical control system provided by an embodiment of the present application, such as Figure 3As shown, before running the embedded service program, the user can configure the working path (process file storage path) and backup path corresponding to the CNC machine tool; detect remote instructions and parse commands; the embedded service program listens to the commands sent by the client through the socket, and parses the commands into "instructions" and "parameters"; if it is a target backup command, the embedded service program receives the backup instruction, for example, the work order number can be added to the file name to be backed up, such as 1.nc; 2.nc, where the number represents the work order number, nc is the suffix of the process file, and the instruction (backup) is parsed as "COPY", parameters (file name to be backed up): 1.nc and 2.nc, and then the process files 1.nc and 2.nc specified in the working path are backed up to the specified backup path; if it is a target deletion command, the embedded service program receives the cleanup instruction, executes the deletion operation of the backed-up process files, and realizes the backup and cleanup functions of remotely controlled CNC machine tool files through the embedded service program, further improving the data replacement and backup efficiency.
[0048] Optionally, in the method for processing process files in the CNC system provided in an embodiment of the present application, when the target instruction indicates that the backed-up process file needs to be deleted, executing the deletion operation of the backed-up process file includes: obtaining the path information of the backed-up process file; and deleting the backed-up process file according to the path information.
[0049] Specifically, Figure 3 As shown, the process file name to be cleared is parsed from the target deletion instruction, and then the process file specified in the backup path corresponding to the process file name is deleted. By searching the process file path, the file deletion efficiency in the CNC system is improved.
[0050] In summary, the method for processing process files in a numerical control system provided by the embodiment of the present application is to receive a target instruction through a target program in a numerical control machine tool system, wherein the target instruction includes at least one of the following: a target backup instruction and a target deletion instruction; and to execute a process file processing operation according to the target instruction to obtain a process file processing result, wherein the process result includes one of the following: the process file is backed up and the process file is deleted, thereby solving the problem of low process file processing efficiency in the related art. By executing a process file processing operation according to the target instruction, a process file processing result is obtained, thereby achieving the effect of improving process file processing efficiency.
[0051] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0052] The embodiment of the present application also provides a processing device for process files in a numerical control system. It should be noted that the processing device for process files in a numerical control system in the embodiment of the present application can be used to execute the processing method for process files in a numerical control system provided in the embodiment of the present application. The processing device for process files in a numerical control system provided in the embodiment of the present application is introduced below.
[0053] Figure 4 Schematic diagram of a process file processing device in a numerical control system according to an embodiment of the present application. Figure 2 As shown, the device includes: a first receiving unit 401 and a first executing unit 402.
[0054] Specifically, the first receiving unit 401 is used to receive a target instruction through a target program in a numerical control machine tool system, wherein the target instruction includes at least one of the following: a target backup instruction and a target deletion instruction;
[0055] The first execution unit 402 is used to execute the processing operation of the process file according to the target instruction to obtain the processing result of the process file, wherein the processing result includes one of the following: the process file is backed up, and the process file is deleted.
[0056] In summary, the processing device of the process file in the numerical control system provided by the embodiment of the present application receives the target instruction through the target program in the numerical control machine tool system through the first receiving unit 401, wherein the target instruction includes at least one of the following: target backup instruction, target deletion instruction; the first execution unit 402 executes the processing operation of the process file according to the target instruction to obtain the processing result of the process file, wherein the processing result includes one of the following: the process file is backed up, the process file is deleted, and the problem of low efficiency in processing the process file in the related art is solved. By executing the processing operation of the process file according to the target instruction, the processing result of the process file is obtained, thereby achieving the effect of improving the processing efficiency of the process file.
[0057] Optionally, in the process file processing device in the CNC system provided in the embodiment of the present application, the device also includes: a second receiving unit, used to receive the target instruction in the CNC system through the interface of the target host computer before receiving the target instruction through the target program in the CNC machine tool system; a first sending unit, used to send the target instruction to the target program.
[0058] Optionally, in the process file processing device in the CNC system provided in the embodiment of the present application, the first execution unit 402 includes: a first execution module, used to perform a backup operation of the process file and obtain the backed-up process file when the target instruction indicates that the process file needs to be backed up; and a second execution module, used to perform a deletion operation of the backed-up process file when the target instruction indicates that the backed-up process file needs to be deleted.
[0059] Optionally, in the process file processing device in the CNC system provided in the embodiment of the present application, the second execution module includes: a first acquisition submodule, used to obtain path information of the backed-up process file; and a first deletion submodule, used to delete the backed-up process file according to the path information.
[0060] Optionally, in the device for processing process files in the CNC system provided in the embodiment of the present application, the device also includes: a first configuration unit, which is used to pre-configure path information corresponding to each process file in the CNC machine tool system before receiving the target instruction through the target program in the CNC machine tool system, wherein the path information includes at least the path information of the process file being stored for the first time and the path information of the process file being backed up for the first time.
[0061] Optionally, in the processing device of the process file in the CNC system provided in the embodiment of the present application, the device also includes: a first parsing unit, which is used to parse the target instruction after receiving the target instruction through the target program in the CNC machine tool system, and obtain a parsing result, wherein the parsing result includes at least one of the following: the instruction name of the target instruction and the target operation object of the target instruction.
[0062] Optionally, in the device for processing a process file in a numerical control system provided in an embodiment of the present application, the first receiving unit 401 includes: a first receiving module, which is used for the target program to receive a target instruction through a socket communication method.
[0063] The process file processing device in the numerical control system includes a processor and a memory. The first receiving unit 401, the first execution unit 402, etc. are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
[0064] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the process files in the CNC system can be processed by adjusting the kernel parameters.
[0065] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0066] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, a method for processing a process file in a numerical control system is implemented.
[0067] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a method for processing a process file in a numerical control system when the program is running.
[0068] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: in a CNC machine tool system, a target instruction is received through a target program, wherein the target instruction includes at least one of the following: a target backup instruction and a target deletion instruction; a processing operation of a process file is executed according to the target instruction to obtain a processing result of the process file, wherein the processing result includes one of the following: the process file is backed up and the process file is deleted.
[0069] When executing the program, the processor also implements the following steps: in the CNC machine tool system, before receiving the target instruction through the target program, receiving the target instruction in the CNC system through the interface of the target host computer; sending the target instruction to the target program.
[0070] When the processor executes the program, the following steps are also implemented: when the target instruction indicates that the process file needs to be backed up, the process file backup operation is performed to obtain the backed-up process file; when the target instruction indicates that the backed-up process file needs to be deleted, the backed-up process file deletion operation is performed.
[0071] When the processor executes the program, the following steps are also implemented: obtaining the path information of the backed-up process file; and deleting the backed-up process file according to the path information.
[0072] When the processor executes the program, the following steps are also implemented: in the CNC machine tool system, before receiving the target instruction through the target program, the path information corresponding to each process file in the CNC machine tool system is pre-configured, wherein the path information at least includes the path information of the process file being stored for the first time and the path information of the process file being backed up for the first time.
[0073] When the processor executes the program, the following steps are also implemented: in the CNC machine tool system, after receiving the target instruction through the target program, the target instruction is parsed to obtain a parsing result, wherein the parsing result includes at least one of the following: the instruction name of the target instruction and the target operation object of the target instruction.
[0074] When the processor executes the program, the following steps are also implemented: the target program receives the target instruction through the socket communication mode.
[0075] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0076] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: in a CNC machine tool system, receiving a target instruction through a target program, wherein the target instruction includes at least one of the following: a target backup instruction, a target deletion instruction; executing a processing operation on a process file according to the target instruction to obtain a processing result of the process file, wherein the processing result includes one of the following: the process file is backed up, the process file is deleted.
[0077] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: in a CNC machine tool system, before receiving a target instruction through a target program, receiving a target instruction in the CNC system through an interface of a target host computer; and sending the target instruction to the target program.
[0078] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: when the target instruction indicates that the process file needs to be backed up, performing a backup operation of the process file to obtain the backed-up process file; when the target instruction indicates that the backed-up process file needs to be deleted, performing a deletion operation of the backed-up process file.
[0079] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: obtaining path information of the backed-up process file; and deleting the backed-up process file according to the path information.
[0080] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: in a CNC machine tool system, before receiving a target instruction through a target program, pre-configure the path information corresponding to each process file in the CNC machine tool system, wherein the path information at least includes the path information of the process file being stored for the first time and the path information of the process file being backed up for the first time.
[0081] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: in a CNC machine tool system, after receiving a target instruction through a target program, the target instruction is parsed to obtain a parsing result, wherein the parsing result includes at least one of the following: an instruction name of the target instruction, and a target operation object of the target instruction.
[0082] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: the target program receives the target instruction through the socket communication mode.
[0083] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0084] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0087] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0088] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0089] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0090] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0092] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for processing process files in a numerical control system, characterized in that: include: In a numerical control machine tool system, a target instruction is received through a target program, wherein the target instruction includes at least one of the following: a target backup instruction and a target deletion instruction; Executing a processing operation on the process file according to the target instruction to obtain a processing result on the process file, wherein the processing result includes one of the following: the process file is backed up, the process file is deleted; Wherein, a custom FTP command is added to the target program, and the FTP service works by creating a socket to listen to the target command sent by the client; In the numerical control machine tool system, before receiving the target instruction through the target program, the method further includes: Receiving the target instruction in the numerical control system through an interface of a target host computer; The target instruction is sent to the target program.
2. The method according to claim 1, characterized in that Executing the processing operation of the process file according to the target instruction to obtain the processing result of the process file includes: When the target instruction indicates that the process file needs to be backed up, performing a backup operation of the process file to obtain the backed-up process file; When the target instruction indicates that the backed-up process file needs to be deleted, a deletion operation of the backed-up process file is performed.
3. The method according to claim 2, characterized in that When the target instruction indicates that the backed-up process file needs to be deleted, executing the operation of deleting the backed-up process file includes: Obtaining the path information of the backed-up process file; The backed-up process file is deleted according to the path information.
4. The method according to claim 1, characterized in that In the numerical control machine tool system, before receiving the target instruction through the target program, the method further includes: The path information corresponding to each process file in the numerical control machine tool system is preconfigured, wherein the path information at least includes the path information of the process file being initially stored and the path information of the process file being initially backed up.
5. The method according to claim 1, characterized in that In the numerical control machine tool system, after receiving the target instruction through the target program, the method further includes: The target instruction is parsed to obtain a parsing result, wherein the parsing result includes at least one of the following: an instruction name of the target instruction and a target operation object of the target instruction.
6. The method according to claim 1, characterized in that In a CNC machine tool system, receiving target instructions through a target program includes: The target program receives the target instruction via a socket communication method.
7. A device for processing process files in a numerical control system, characterized in that: include: A first receiving unit is used to receive a target instruction through a target program in a numerical control machine tool system, wherein the target instruction includes at least one of the following: a target backup instruction and a target deletion instruction; A first execution unit is used to execute a processing operation of the process file according to the target instruction to obtain a processing result of the process file, wherein the processing result includes one of the following: the process file is backed up or the process file is deleted; Wherein, a custom FTP command is added to the target program, and the FTP service works by creating a socket to listen to the target command sent by the client; The device also includes: a second receiving unit, used in the CNC machine tool system, to receive the target instruction in the CNC system through the interface of the target host computer before receiving the target instruction through the target program; and a first sending unit, used to send the target instruction to the target program.
8. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 6 when running.
9. A computer-readable storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 6.
