Implementation method and equipment for process parameter delay expansion in numerical control system and medium

By introducing the process parameter delayed expansion system into the CNC system and delaying the analysis of the process point fields, the problem that the process parameters cannot take effect in time after modification is solved, and real-time feedback and application of the process parameters are realized.

CN118795852APending Publication Date: 2024-10-18JINAN BODOR LASER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411042198.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the CNC system, the problem that the modified process parameters cannot take effect in time is mainly due to the advanced execution of the decoding module, which causes the modified process parameters to be unable to be applied to the processing in time.

Method used

By introducing the process parameter delayed expansion system into the CNC system, the main decoding module and the process decoding module are used in conjunction with the instruction conversion module to delay the analysis of the process point field to ensure that the process parameters are parsed and applied only during execution.

Benefits of technology

It realizes real-time feedback and application of process parameters, solves the problem that modified parameters cannot take effect in time, and ensures that process parameters take effect in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795852A_ABST
    Figure CN118795852A_ABST
Patent Text Reader

Abstract

The invention discloses an implementation method and device for process parameter delay expansion in a numerical control system and a medium, and the method comprises the steps: carrying out the analysis of a target line instruction of a target processing file through a main decoding module, so as to obtain a first code segment instruction of the target line instruction, and the first code segment instruction comprises a process point field; if the process point field has the process point characteristics, analyzing the first code segment through a process decoding module to obtain a second code segment instruction; performing conversion processing on the second code segment instruction through an instruction conversion module to obtain a motion instruction which can be identified by a motion control layer; and traversing all line codes of the target processing file until the target processing file is analyzed. According to the technical scheme, the processing file content corresponding to the process points is expanded in a delayed mode, if the process parameters are modified at the moment, the process parameters can be fed back to the actual processing effect in real time, and then the problem that the modified process parameters cannot take effect in time is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of numerical control systems, and in particular to a method, device and medium for implementing delayed expansion of process parameters in a numerical control system. Background Art

[0002] In CNC systems, processing tasks usually exist in the form of processing files, and the parsing of the processing file content is usually performed by the decoding module. As the core of the processing file content parsing, the decoding module usually executes the decoding action in advance. Its external manifestation is that before the motion control layer drives the machine tool and other electrical equipment to produce specific actions, the decoding module may have completed the parsing of thousands of lines of processing file content.

[0003] This phenomenon of advanced execution of the decoding module will not cause problems in normal processing, but in some special needs and scenarios, there may be problems that cannot meet customer needs. For example, during the processing process, the execution of the current processing action is suddenly stopped, the process parameters are adjusted and modified, and then the breakpoint resume and other operations are executed to continue the processing. In this scenario, there may be a problem that the modified process parameters are not effective. The main reason for this problem is that the decoding module is executed in advance. Before modifying the process parameters, the decoding module has completed the parsing or partial parsing of the processing file content in advance. Although the process parameters are modified afterwards, the decoding module's parsing of the line is still before the process parameters are modified. In this way, the modified process parameters cannot be applied to the processing in time, resulting in the modified process parameters not having actual processing impact. Summary of the invention

[0004] In order to solve the above problems, the present application proposes a method, device and medium for implementing delayed expansion of process parameters in a numerical control system, which are applied to the delayed expansion system of process parameters, wherein the delayed expansion system of process parameters includes: a main decoding module, a process decoding module and an instruction conversion module; the implementation method includes: obtaining a target processing file, wherein the target processing file includes a G instruction and a custom instruction; parsing the target line instruction of the target processing file through the main decoding module to obtain a first code segment instruction of the target line instruction, wherein the first code segment instruction includes a process point field; if the process point field has a process point characteristic, parsing the first code segment through the process decoding module to obtain a second code segment instruction, and sending the second code segment instruction to the instruction conversion module; converting the second code segment instruction through the instruction conversion module to obtain a motion instruction that can be recognized by the motion control layer; traversing all line codes of the target processing file until the target processing file is parsed.

[0005] In one example, after parsing the target line instruction of the target processing file to obtain the first code segment instruction of the target line instruction, the method further includes: determining whether the target line instruction is a custom instruction, and if the target line instruction is a custom instruction, assigning process point characteristics to the process point field of the first code segment instruction corresponding to the target line instruction; if the target line instruction is not a custom instruction, assigning non-process point characteristics to the process point field of the first code segment instruction corresponding to the target line instruction.

[0006] In one example, after assigning the non-process point characteristic to the process point field of the first code segment instruction corresponding to the target row instruction, the method further includes: sending the first code segment instruction to the instruction conversion module; and converting the first code segment instruction through the instruction conversion module to obtain a motion instruction that can be recognized by the motion control layer.

[0007] In one example, the main decoding module and the process decoding module are different objects of the same type of decoding modules; the main decoding module is used to parse the content of the processing file of the main processing flow; the process decoding module is used to parse the content of the process point processing file corresponding to the process point field.

[0008] In one example, the first code segment instruction is parsed through the process decoding module to obtain the second code segment instruction, which specifically includes: blocking the main decoding module, and activating the process decoding module, sending the first code segment instruction to the process decoding module; determining the process point processing file corresponding to the process point field in the first code segment; parsing the content of the process point processing file through the process decoding module to obtain the second code segment instruction corresponding to the process point field.

[0009] In one example, the process point processing file is a processing file extended by the custom instruction, and is used to interpret the processing file of the process point.

[0010] In one example, before parsing the target line instruction of the target processing file through the main decoding module to obtain the first code segment instruction of the target line instruction, the method further includes: activating the main decoding module and blocking the process decoding module.

[0011] In one example, the target processing file is generated by CAM software, and the custom instructions include light switch instructions, gas switch instructions, and contour instructions.

[0012] The present application also provides a device for implementing delayed expansion of process parameters in a numerical control system, which is applied to the delayed expansion system of process parameters, wherein the delayed expansion system of process parameters includes: a main decoding module, a process decoding module and an instruction conversion module; the device for implementing delayed expansion of process parameters in the numerical control system includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method as described in any one of the above examples.

[0013] The present application also provides a non-volatile computer storage medium storing computer executable instructions, which is applied to a process parameter delay expansion system, wherein the process parameter delay expansion system includes: a main decoding module, a process decoding module and an instruction conversion module; the computer executable instructions are configured to execute a method as described in any one of the above examples.

[0014] The method proposed in this application can bring the following beneficial effects: this application delays the expansion of the processing file content corresponding to the process point, so that the execution of the process point action is no longer completed by decoding in advance, but is expanded and parsed when the process point is executed. At this time, if the process parameters are modified, it can be fed back to the actual processing effect in real time, thereby solving the problem that the modified process parameters cannot take effect in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0016] Figure 1 A schematic diagram of the steps of a method for implementing delayed expansion of process parameters in a numerical control system in an embodiment of the present application;

[0017] Figure 2 It is a flow chart of a method for implementing delayed expansion of process parameters in a numerical control system in an embodiment of the present application;

[0018] Figure 3 A schematic diagram of the organization of the processing file content in a numerical control system in an embodiment of the present application;

[0019] Figure 4 A schematic diagram of the organization of the content of a process point processing file in an embodiment of the present application;

[0020] Figure 5 It is a structural schematic diagram of a device for implementing delayed expansion of process parameters in a numerical control system in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. 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 making creative work are within the scope of protection of the present application.

[0022] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0023] Figure 1 A flowchart of a method for implementing delayed expansion of process parameters in a numerical control system provided in one or more embodiments of this specification. The process can be executed by a corresponding computing device in the numerical control system, and some input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.

[0024] The implementation of the analysis method involved in the embodiment of the present application can be a terminal device or a server, and the present application does not make any special restrictions on this. For the convenience of understanding and description, the following embodiments are described in detail using the server as an example. It should be noted that the server can be a single device or a system composed of multiple devices, that is, a distributed server, and the present application does not make any specific restrictions on this.

[0025] like Figure 1 and Figure 2 As shown, an embodiment of the present application provides a method for implementing delayed expansion of process parameters in a numerical control system, which is applied to a delayed expansion system of process parameters, wherein the delayed expansion system of process parameters includes: a main decoding module, a process decoding module and an instruction conversion module. Among them, the main decoding module and the process decoding module are different objects of the same type of decoding modules; the main decoding module is used for parsing the content of the processing file of the main processing flow; the process decoding module is used for parsing the content of the process point processing file corresponding to the process point field. The processing file content of the main processing flow here refers to the content of the target processing file, and the process point processing file content refers to the extended processing file corresponding to the process point instruction in the target processing file content. The instruction conversion module is used to convert the code segment instruction into a motion instruction that can be recognized by the motion control layer. First, Figure 2The names in the figure are explained, where File is the target processing file, Code Segment Command is the code segment command, the Code Segment Command derived from the autonomous decoding module is the first code segment command, the Code Segment Command derived from the process decoding module is the second code segment command, Motion Command is the motion command, and TECH_POINT is the process point field.

[0026] The method for implementing delayed expansion of process parameters in the numerical control system provided by the present application includes:

[0027] S101: Acquire a target processing file, wherein the target processing file includes G instructions and user-defined instructions.

[0028] First, obtain the target processing file that needs to be parsed. It should be noted that the target processing file is the input source of the main decoding module to parse the content. This file is usually generated by CAM or other related tools, and its content format is as follows: Figure 3 The target processing file consists of a general G instruction group and a custom instruction group, among which F / G00 / G01 / M30 is a general G instruction group format; the opening instruction (LASER_ON) is a custom instruction group format. From the custom instruction group format, it can be seen that the instruction group naming is easy to understand and read, which can greatly improve the technicians' understanding of the related instruction functions of the custom instruction group.

[0029] S102: parsing the target line instruction of the target processing file through the main decoding module to obtain a first code segment instruction of the target line instruction, wherein the first code segment instruction includes a process point field.

[0030] Before inputting the target processing file into the main decoding module, it is necessary to activate the main decoding module and block the process decoding module. After inputting the target processing file into the main decoding module, the main decoding module will parse the target line instruction of the target processing file line by line, thereby obtaining the first code segment instruction of the target line instruction. The target line instruction here refers to the line instruction being parsed, and the first code segment instruction is the code segment instruction output after the main process decoding module parses the processing file content. The instruction contains a process point field, which is used to distinguish whether the current code segment instruction is a G instruction or a custom instruction.

[0031] In one example, after obtaining the first code segment instruction, it is necessary to determine whether to assign the process point field with the process point characteristic based on whether the target row instruction is a custom instruction. Specifically, it is necessary to determine whether the target row instruction is a custom instruction. If the target row instruction is a custom instruction, the process point characteristic is assigned to the process point field of the first code segment instruction corresponding to the target row instruction; if the target row instruction is not a custom instruction, the non-process point characteristic is assigned to the process point field of the first code segment instruction corresponding to the target row instruction.

[0032] Furthermore, if the process point field is assigned a non-process point characteristic, the first code segment instruction can be directly sent to the instruction conversion module, and the instruction conversion module can convert the first code segment instruction to obtain a motion instruction that can be recognized by the motion control layer.

[0033] S103: If the process point field has a process point characteristic, the process decoding module is used to parse the first code segment to obtain a second code segment instruction, and the second code segment instruction is sent to the instruction conversion module.

[0034] If the process point field has process point characteristics, it is considered that the content corresponding to the process point field needs to be delayed, that is, the execution of the process point action is no longer completed by decoding in advance, but is completed by expanding the analysis when the process point is executed. At this time, if the process parameters are modified, it can be fed back to the actual effect of the processing in real time, thereby solving the problem that the modified process parameters cannot take effect in time. Therefore, if it has process point characteristics, the first code segment is parsed by the process decoding module to obtain the second code segment instruction, and the second code segment instruction is sent to the instruction conversion module.

[0035] In one embodiment, when parsing the first code segment instruction, it is necessary to block the main decoding module, activate the process decoding module, and send the first code segment instruction to the process decoding module. Then, it is necessary to determine the process point processing file corresponding to the process point field in the first code segment through the process decoding module, and parse the process point processing file content through the process decoding module to obtain the second code segment instruction corresponding to the process point field. At the same time, the characteristics of the non-process point are assigned to the process point field of the first code segment instruction.

[0036] It should be noted that the process point processing file is a processing file extended by a custom instruction and is used to interpret the process point processing file. Figure 4As shown in the figure, the content of the process point processing file contains an instruction for setting laser PWM (SET_LASER_PWM) and the power (CUT_POWER), frequency (CUT_FREQ) and duty cycle (CUT_DUTY) of the layer (CUT_LAYER_NO) corresponding to the current process point. Before executing the instruction for setting laser PWM, the power, frequency and duty cycle corresponding to the current layer need to be set to the parameters corresponding to the command, which are LASER_AVC, LASER_FREQ and LASER_DUTY respectively. Then execute the command for setting laser PWM to update the process parameters corresponding to the current process point to the motion control layer, thereby producing the actual processing effect.

[0037] S104: The instruction conversion module converts the second code segment instruction to obtain a motion instruction that can be recognized by the motion control layer.

[0038] S105: traversing all lines of code of the target processing file until the target processing file is parsed.

[0039] The above S102 - S104 are repeatedly executed until all the lines of code in the target processing file are parsed. At this point, the target processing file is parsed and the process point parameters therein are delayed.

[0040] like Figure 5 As shown, an embodiment of the present application also provides an implementation device for delayed expansion of process parameters in a numerical control system, which is also applied to a delayed expansion system of process parameters, and the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of the above embodiments.

[0041] An embodiment of the present application also provides a non-volatile computer storage medium, which is also used in a process parameter delayed expansion system. The non-volatile computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the method described in any one of the above embodiments.

[0042] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0043] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0044] 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 contain computer-usable program code.

[0045] 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.

[0046] 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.

[0047] 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.

[0048] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0049] The memory may include non-permanent storage 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.

[0050] 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 transitory media such as modulated data signals and carrier waves.

[0051] 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.

[0052] The above is only an embodiment of the present application and is 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 in the scope of the claims of the present application.

Claims

1. A method for implementing delayed expansion of process parameters in a numerical control system, characterized in that: Applied in a process parameter delay expansion system, the process parameter delay expansion system includes: a main decoding module, a process decoding module and an instruction conversion module; the implementation method includes: Obtaining a target processing file, wherein the target processing file includes a G instruction and a custom instruction; Parsing the target line instruction of the target processing file through the main decoding module to obtain a first code segment instruction of the target line instruction, wherein the first code segment instruction includes a process point field; If the process point field has a process point characteristic, the process decoding module parses the first code segment to obtain a second code segment instruction, and sends the second code segment instruction to the instruction conversion module; The instruction conversion module converts the second code segment instruction to obtain a motion instruction that can be recognized by the motion control layer; All lines of code of the target processing file are traversed until the target processing file is parsed.

2. The method for implementing delayed expansion of process parameters in a numerical control system according to claim 1, characterized in that: After parsing the target line instruction of the target processing file to obtain the first code segment instruction of the target line instruction, the method further includes: Determine whether the target row instruction is a user-defined instruction, and if the target row instruction is a user-defined instruction, assign the process point characteristic to the process point field of the first code segment instruction corresponding to the target row instruction; If the target row instruction is not a user-defined instruction, a non-process point characteristic is assigned to the process point field of the first code segment instruction corresponding to the target row instruction.

3. The method for implementing delayed expansion of process parameters in a numerical control system according to claim 2, characterized in that: After assigning the non-process point characteristic to the process point field of the first code segment instruction corresponding to the target row instruction, the method further includes: Sending the first code segment instruction to the instruction conversion module; The instruction conversion module converts the first code segment instructions to obtain motion instructions that can be recognized by the motion control layer.

4. The method for implementing delayed expansion of process parameters in a numerical control system according to claim 1, characterized in that: The main decoding module and the process decoding module are different objects of the same type of decoding modules; The main decoding module is used to parse the content of the processing file of the main process; The process decoding module is used for parsing the content of the process point processing file corresponding to the process point field.

5. The method for implementing delayed expansion of process parameters in a numerical control system according to claim 1, characterized in that: The step of parsing the first code segment instruction by the process decoding module to obtain the second code segment instruction specifically includes: Blocking the main decoding module, activating the process decoding module, and sending the first code segment instruction to the process decoding module; Determine a process point processing file corresponding to the process point field in the first code segment; The process decoding module is used to parse the process point processing file content to obtain the second code segment instruction corresponding to the process point field.

6. The method for implementing delayed expansion of process parameters in a numerical control system according to claim 5, characterized in that: The process point processing file is a processing file extended by the custom instruction, and is used to interpret the processing file of the process point.

7. The method for implementing delayed expansion of process parameters in a numerical control system according to claim 1, characterized in that: Before parsing the target line instruction of the target processing file through the main decoding module to obtain the first code segment instruction of the target line instruction, the method also includes: activating the main decoding module and blocking the process decoding module.

8. The method for implementing delayed expansion of process parameters in a numerical control system according to claim 1, characterized in that: The target processing file is generated by CAM software, and the custom instructions include light switch instructions, gas switch instructions and contour instructions.

9. A device for implementing delayed expansion of process parameters in a numerical control system, characterized in that: Applied to the process parameter delayed expansion system, the process parameter delayed expansion system includes: a main decoding module, a process decoding module and an instruction conversion module; the implementation device of the process parameter delayed expansion in the numerical control system includes: at least one processor; and a memory in communication with the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: Applied to a process parameter delay expansion system, the process parameter delay expansion system comprises: a main decoding module, a process decoding module and an instruction conversion module; the computer executable instructions are configured to execute the method according to any one of claims 1 to 8.