Method for processing one or more CNC program files
Patent Information
- Application Number
- DE102023110256
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2025-02-27
- Estimated Expiration
- 2043-04-21
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] The invention relates to a method for processing one or more CNC program files.
[0002] It is common practice for CNC raw data to be exported from CAD programs or other drawing programs with predefined default settings. These default settings are based on the options and specifications provided by both the CAD program providers and the CNC machine manufacturers. However, these options are generally limited. Therefore, the CNC raw data exported from CAD applications is often incomplete, requiring further processing. The exported raw data is typically saved in one or more files in an export directory on a computer-readable storage medium or data carrier.
[0003] Fine-tuning with regard to the specified material, the geometry of the component to be machined or created, and the tool selection must be performed in a case-by-case analysis. Each exported program must be revised individually. This is usually done manually and often requires a significant amount of time per program. This results in additional, significant time and expense.
[0004] The manual approach to post-processing and fine-tuning various work steps is also highly error-prone. Human error can result in increased, additional material consumption and damage to tools and machinery.
[0005] DE 40 14 595 A1 relates to a CAD / CAM device for generating a geometric shape of an object to be machined on a display screen in an interactive manner with the latter, whereby NC data for machining this shape are generated.
[0006] DE 101 57 577 A1 describes a device and a method for creating and / or modifying NC programs, in which, in programming mode, input fields for machining data and selection lists with permissible machining data associated with the input fields are displayed on a display unit. In configuration mode, the content of the selection list for an input field is configured via an assigned configuration data item, wherein the configuration data item contains at least one executable selection instruction. In programming mode, the selection instruction is executed in such a way that the selection list is filled with the selected data and the configured selection list is displayed on the display unit, in that the selection instruction enables selective access to at least one database with available machining data.
[0007] DE 38 89 039 T2 relates to an automatic programming method, in particular to an automatic programming method for outputting form elements and a partial profile in an automatic programming language in response to a partial profile output request.
[0008] JP 2015- 170 147 A concerns a device for creating and editing NC programs.
[0009] The object of the present invention is accordingly to provide a method of the type mentioned at the outset which avoids the disadvantages of the prior art, in particular simplifies and rationalises the programming and working with a CNC machine in a computer-aided manner and thus saves workload and costs.
[0010] This object is achieved according to the invention by a method having the features mentioned in claim 1.
[0011] A computer-aided method for processing one or more CNC program files, which comprise program code means for material-removing machining of at least one workpiece for producing components or component groups on a CNC processing machine, is proposed, wherein the program code means comprise one or more program components, each of which comprises at least one CNC work step for machining the at least one workpiece, characterized by one or more of the following method steps: a) automatic detection and testing of program components present in the program code means based on a comparison with predetermined comparison data or with at least one reference program component, whereby deviating existing parameters of the program components are replaced by standard parameters; b) correcting program components present in the program code means which represent constructive elements to be created on a workpiece with reference to a user input; c) combining several components into a new component following a user input, whereby the relevant program components are newly generated and replaced in the program code means; d) manufacturing several identical individual components from a larger component according to a user input, whereby the relevant program components are adapted; e) adding one or more program components to the program code means following a user input; f) adding program code means of at least one further CNC program file based on an identification code at an explicitly assigned coordinate or at a zero point of the program code means; and / or g) Replacing machine-specific designations for CNC work steps and / or program components in the program code with freely selectable or predefined designations.
[0012] The method according to the invention can check CNC raw data, which is present in program files, for accuracy and modify or correct it if necessary. Incorrectly placed work steps can be automatically detected and corrected. The CNC programs can be supplemented with additional work steps. In order to cut several workpieces of the same type from a single tool piece, the method according to the invention can independently determine the necessary division, whereby user specifications are also possible. The material can also be placed according to the user's specifications. This generates an efficient CNC file for the user. Due to the automatic material cutting, capacity is freed up in the subsequent production stages up to the CNC machining. Throughput times and setup times are shortened. Employees can be deployed much more versatilely in production.Repeated case-by-case analyses are eliminated, eliminating the previously necessary, error-prone workflows. CNC program files corrupted due to CAD system export errors can be cleaned up. A variable table can be revised. Furthermore, nonexistent components can be removed or milling commands can be deleted (while retaining the contour).
[0013] When modifying CNC program files, machine-specific names for work steps can be replaced with company-internal terms, making program sequences easier for the machine operator to understand.
[0014] The computer-aided method according to the invention advantageously independently corrects CNC raw data and can enable fine-tuning.
[0015] The CNC program files are processed in batches. Files exported from a CAD application, for example, can first be stored in an export directory. From there, they can be copied to another directory for processing, which serves as a temporary storage location. They remain in the export directory for security reasons and / or for further use. The CNC program files can be edited or processed in the temporary storage location using the method according to the invention. The edited CNC program files can then be stored in a folder for files released, particularly for production.
[0016] The comparison data, the predefined designations, file paths or file names of separately stored CNC program files with program code means which represent predefined CNC work steps and / or the standard parameters can be stored in at least one table and / or at least one database and read out from there.
[0017] A data record assigned to the respective reference program component can be stored in a table and / or a database and read from there.
[0018] The data set can include at least the following standard parameters: - a target position in X-direction, - a target position in the Y direction, - a reference edge, - a work direction, - a designation, and / or - a material thickness.
[0019] First, you can determine which reference edges and working direction the component is assigned to. Depending on the reference edge, the component is placed either on a fixed X coordinate or on a fixed Y coordinate. If you are working with several, for example, two different material thicknesses, the positioning of components should take place under special conditions. For this purpose, X and Y coordinates can be defined for different material thicknesses. For example, a side wall with a thickness of 19 mm and a base with a thickness of 25 mm can be machined. It should be noted that not all components are machined at once, but separately according to material thickness.
[0020] Furthermore, a macro name can be assigned, which will appear in the CNC program file instead of a standard name. Furthermore, there is the option to enter a comment.
[0021] The data set may further include at least one file path or file name of a separately stored CNC program file with program code means representing the associated reference program component. A full file name with an extension may be specified.
[0022] Instead of, for example, eight reference program components in the extreme case (each reference edge of the workpiece could theoretically be assigned a component for the vertical and horizontal working direction), machining operations on opposite edges can advantageously be combined into a single component. This allows the left and right reference edges, as well as the front and back reference edges, to be stored in a single file. This significantly reduces the number of component files, and in the best case, even halves them.
[0023] The at least one program component to be added in method step e) after a user input can comprise at least one milling command and / or at least one sawing command as a CNC work step.
[0024] This allows formatting with a milling cutter or saw blade. The program component to be added can also be implemented as a separately saved CNC program file with program code resources. A complete file name with an extension can be saved. This added file can be identified, for example, by a tool number.
[0025] The at least one milling command may include a feed rate, a tool number, and a Z dimension.
[0026] The at least one sawing command may include a feed rate, a tool number, a scoring depth, and a cutting depth.
[0027] In process step b), horizontal holes, vertical holes, pockets or free-form pockets can be used as structural elements.
[0028] The horizontal or vertical holes can be corrected and / or centered in terms of their position.
[0029] For pockets or free-form pockets, parameters such as infeed, infeed depth, depth, tool number and / or feed rate can be reworked or added.
[0030] During post-processing in process step b), reference edges can be selected.
[0031] Post-processing can then take into account selected reference edges and a permissible range. The permissible range defines the maximum distance a component or hole may have from the reference edge in order to be assigned to it. The component is only processed if it is within the permissible range. However, if the component is outside the permissible range, the component or hole is considered to belong to the surface and is not post-processed. In addition to the permissible range, it is possible to specify a Z dimension for horizontal holes or an X dimension for vertical holes. In this case, the holes are placed there. Alternatively, holes can be centered.
[0032] The goal of generating multiple lengths in method step d) according to the invention is to place many individual (semi-)finished components on a blank. This can reduce production times. To generate a multiple length, you can first select whether a milled parting line or a sawn parting line is to be used to manufacture the individual components. Furthermore, you should select whether a multiple length in the X direction (i.e., the components are placed next to each other) or a multiple length in the Y direction (i.e., the components are placed one behind the other) is to be generated. A reference program component can be specified for the milled parting line.
[0033] In process step c) according to the invention, it is possible to combine many different components into one large component (a so-called component sequencing). To obtain a correctly sequencing component, the components to be produced in series can first be selected. In doing so, it should be checked at which reference edges the horizontal machining operations will be performed in order to avoid collision between the workpiece and the spindle or drilling gear during machining. The method of creating the parting line can then be selected.
[0034] The workpiece may be made of wood, a wood-based material, a plastic, a mineral material, an aluminum material or a composite material thereof.
[0035] According to the invention, it can further be provided that finished parts can be aligned on a blank (a so-called zero point offset). Components can be indented or centered differently from reference edges as required. Furthermore, it can be possible to carry out the selected alignment based on measured blanks. For example, all components in the buffer or their program components can be aligned according to specifications. Furthermore, it is possible to specify a blank offset of, for example, 20 mm in the X and Y directions. An allowance and a finished part offset can be defined before the program starts.
[0036] Claims 14 and 15 specify a computer program and a computer program product.
[0037] The method according to the invention for processing one or more CNC program files is preferably implemented as a computer program. For this purpose, the computer program is stored in a memory element of a computer. The method is executed by processing on a microprocessor of the computer. The computer program can be stored as a computer program product on a computer-readable data carrier (floppy disk, CD, DVD, hard disk, USB memory stick, or the like) or an internet server and transferred from there to the memory element of the computer.
[0038] Claim 16 relates to a CNC machining machine.
[0039] Advantageous embodiments and further developments emerge from the dependent claims. An exemplary embodiment of the invention is described below with reference to the drawing.
[0040] They show: Fig. 1 a simplified diagram to illustrate the method according to the invention; Fig. 2 a simplified flowchart of an automatic detection and testing of program components present in the program code means; Fig. 3 a further simplified flowchart of an automatic detection and testing of program components present in the program code means, taking into account different material thicknesses; Fig. 4 a simplified flowchart of correcting program components present in the program code means, which represent constructive elements to be created on a workpiece; Fig. 5 a simplified flow diagram of combining several components into a new component after a user input; Fig. 6 a simplified flow diagram of manufacturing several identical individual components from a larger component according to a user input; Fig. 7 a simplified flowchart of adding program code means of at least one further CNC program file based on an identification code at a zero point of the program code means; Fig. 8 is a simplified flow diagram of adding program code means of at least one further CNC program file based on an identification code at an explicitly assigned coordinate; Fig. 9 is a further simplified flowchart illustrating the addition of program code means from at least one further CNC program file; Fig. 10 a schematic representation of a graphical user interface in which a workpiece or component is displayed in an unprocessed state; Fig. 11 a schematic representation of a graphical user interface in which the workpiece or component from Fig. 10 is displayed in edited state; Fig. 12 a highly simplified representation for the treatment of different material thicknesses; Fig. 13 a highly simplified representation to illustrate a permissible machining area; and Fig. 14 a schematic representation of a CNC machining center.
[0041] According to the invention, a method for processing one or more CNC program files, which contain program code means for material-removing machining of at least one workpiece 1, 1' (see Fig. 10, Fig. 11, Fig. 12 and Fig. 13) for the production of components or groups of components on a CNC machining center 12 (see Fig. 14), wherein the program code means comprise one or more program components, each comprising at least one CNC work step for machining the at least one workpiece 1, 1'. The CNC program files can be processed in batches. The workpiece can comprise wood, a wood-based material, a plastic, a mineral material, an aluminum material, or a composite material thereof.
[0042] Fig. Figure 1 shows a simplified diagram illustrating the method according to the invention. The diagram is divided into two sections 2a and 2b.
[0043] The left-hand section 2a of the diagram shows the origin of the data that is made available for processing. This is where the requirements for a new component and how it will be used in the future are defined. Either only a reference program component is created, or an addition file or completion file is generated, or both a reference program component and a completion file are created. Depending on whether a reference program component or a completion file has been created, different data can be entered. This includes, for example, position-related data (sometimes specified by the manufacturer), internal data (file names, identification numbers, designations for work steps, etc.) or file-related comments that are intended as a reminder. This data is preferably stored electronically in tabular form.
[0044] In a step S100, the programming of a reference program component or a standard program for a component is started. In a decision step S101, a check is then carried out to determine in which method and with how frequently the component is used, and how complicated its handling is. This can be continued in a step S102 or in a step S103. In step S102, it is determined that this is a component or program component that is only used to react to individual situations, whereby the program component is not used within the framework of reusable principles. Accordingly, a reference program component is programmed for use in the method according to the invention, and a data record assigned to the respective reference program component is stored in a table 3 and / or a database, from where it can be read out.
[0045] This data set can include at least the following standard parameters: - a target position in X-direction (especially on the left / right reference edge), - a target position in the Y direction (especially at the front / rear reference edge), - a reference edge, - a work direction, - a designation, and / or - a material thickness.
[0046] The data set further includes at least a file path or a file name of a separately stored CNC program file with program code means representing the associated reference program component. Furthermore, the data set may include a designation of the program component for the left / right or front / back reference edge or an internal comment.
[0047] In step S103, it is determined that the component is a component or program component that is frequently used, especially in standardized processes. In step S104, it is then checked in which situations the program component must be used and which exceptions should be considered. Thus, individual reusable manufacturing principles are created.
[0048] Accordingly, a standard program for use in the method according to the invention is programmed so that it can be added to exported CNC program files. A data set associated with the respective standard program or the corresponding addition or completion file is then stored in a table 4 and / or a database, from where it can be read.
[0049] The data set can include at least the following standard parameters: - an identification number, - a file name of a CNC program file saved separately as a standard program with program code resources, and / or - a file path or storage location of the CNC program file.
[0050] In addition, the data record may contain an internal comment.
[0051] In a table 5 and / or a database, standard variables, directories, etc. can also be stored from where they can be read.
[0052] Tables 3, 4 and 5 are part of a database 6 for the method according to the invention.
[0053] In the right part 2b of the diagram from Fig. Figure 1 illustrates the operation of the method according to the invention. After the creation and export of CNC program files from a CAD system, which is illustrated in simplified form by steps S200 - S204, the method according to the invention is started. The files are prepared by calling various functions. Data preparation is enabled and carried out through internal user input within the framework of the method according to the invention, as well as through access to the data records stored in electronic tables 3, 4, and 5.
[0054] Predefined comparison data, predefined designations, file paths or file names of separately stored CNC program files with program code means which represent predefined CNC work steps and / or standard parameters can thus be stored in at least one table 3, 4 and 5 and / or at least one database of the database 6 and read out from there.
[0055] The method according to the invention is characterized by one or more of the following method steps a1, a2, b, c, d, e, f1, f2 and g, which are shown in the right-hand part 2b of the diagram from Fig. 1 are shown simplified as functional blocks.
[0056] In a method step a1, program components present in the program code can be automatically identified and checked based on a comparison with the specified comparison data or at least one reference program component, whereby deviating existing parameters of the program components are replaced by standard parameters. A method step a2 corresponds to method step a1, whereby it can also be taken into account whether a second or different material thickness has been defined.
[0057] In a method step b, program components present in the program code means can be corrected, which represent constructive elements to be created on the workpiece 1, 1' with reference to a user input.
[0058] In process step b, horizontal holes, vertical holes, pockets, or free-form pockets can be used as structural elements. The horizontal or vertical holes can be corrected and / or centered with regard to their position.
[0059] During post-processing in process step b, reference edges can be selected.
[0060] In a method step c, several components can be combined to form a new component after a user input, whereby the relevant program components are newly generated and replaced in the program code means.
[0061] In a process step d, several identical individual components can be manufactured from a larger component according to a user input, whereby the relevant program components are adapted.
[0062] In a method step e, one or more program components, in particular as a CNC work step at least one milling command and / or at least one sawing command, can be added to the program code means after a user input.
[0063] The at least one milling command may include a feed rate, a tool number, and a Z dimension. The at least one sawing command may include a feed rate, a tool number, a scoring depth, and a cutting depth.
[0064] In a method step f1, program code means of at least one further CNC program file can be added based on an identification code at a zero point of the program code means.
[0065] In a method step f2, program code means of at least one further CNC program file can be added using an identification code at an explicitly assigned coordinate of the program code means.
[0066] In a process step g, machine-specific designations for CNC work steps and / or program components in the program code means can be replaced by freely selectable or predefined designations.
[0067] The functional scope of the method according to the invention can essentially be divided into three higher-level groups, namely functions for adding program files (process steps e, f1, f2), functions for placing and duplicating components or workpieces 1, 1' (process steps c, d) and functions for correcting CNC program files (process steps a1, a2, b).
[0068] Connecting lines 7 indicate that the method steps a1, a2, b, c, d, e, f1, f2 and g of the method according to the invention can access the database 6 in order to be able to carry out the modifications to the CNC program files.
[0069] The following is a simplified description of how to generate CNC program files from a CAD system. In step S200, the CAD drawing is released for production. In step S201, further processes within a CAD application are summarized. Machining steps are positioned using geometric elements. They are defined as work steps using CAD system-internal functions to which CNC execution commands are assigned. Another option is to define machining commands using so-called layers. The name of the layer represents the machining command and its parameters. If DXF files are to be exported and subsequently converted, the work steps are defined using the CAD application's layer management. Decision step S202 concerns the type of export. This can be continued in step S203 or in step S204.In step S203, the CAD application generates, for example, DXF data, which can be converted into CNC program files by a postprocessor provided by the CNC machine manufacturer. In step S204, the CAD application outputs the CNC program files directly without any intermediate steps (in particular, in the MPR file format). The generated CNC program files are then revised using the method according to the invention.
[0070] Fig. 2 shows a simplified flow diagram of an automatic detection and testing of program components present in the program code means according to method step a1.
[0071] In a sub-step a10, a CNC program file is opened and the automatic recognition and testing of program components present in the program code resources of the CNC program file is started. In a decision sub-step a11, a check is then carried out to determine whether program components are present in the program code resources of the CNC program file. If no program components are present, the process is terminated in a sub-step a12. Otherwise, the process continues in a decision sub-step a13, in which a check is carried out to determine whether the existing program components need to be revised or are already correct. For this purpose, the recognized program components are compared with specified comparison data or at least one reference program component, with particular reference to database 6 or Table 3 (in Fig. 2 by a connecting line 7). If no program components to be revised exist, the process is terminated in a sub-step a14. Otherwise, the process continues in a sub-step a15, in which the program components to be revised are corrected by replacing deviating existing parameters with predefined standard parameters that have been entered into a table, in particular Table 3 or a database of Database 6.
[0072] Fig. 3 shows a schematic flow diagram of an automatic detection and testing of program components present in the program code means, taking into account different material thicknesses according to method step a2.
[0073] Process step a2 basically comprises the same sub-steps as process step a1, whereby Fig. 3 For simplification purposes only the essential steps are shown.
[0074] In a sub-step a20, a CNC program file is opened and the automatic recognition and testing of program components present in the program code resources of the CNC program file is started, as well as a check whether any program components are present in the program code resources of the opened CNC program file. In a sub-step a21, a check is made as to whether a second material thickness or different material thicknesses have been defined. The process then continues with a decision sub-step a22, in which a check is carried out as to whether the existing program components need to be revised or are already correct. For this purpose, the recognized program components are compared with specified comparison data or at least one reference program component, with particular reference to database 6 or Table 3 (in Fig. 3 (not shown). If no program components to be revised exist, the process is terminated. Otherwise, the process continues with sub-step a23, in which the program components to be revised are corrected by replacing deviating existing parameters with predefined standard parameters that have been entered into a table, in particular Table 3 or a database in Database 6.
[0075] Fig. 4 shows, in simplified form, a correction of program components present in the program code means, which represent structural elements to be created on the workpiece 1, 1', with reference to a user input according to method step b. In a sub-step b10, the process is started and checked whether horizontal holes are present. If no horizontal holes are present, the process is terminated; otherwise, it continues to a sub-step b11, in which the existing horizontal holes are corrected with reference to a user input. In a sub-step b20, the process is started and checked whether vertical holes are present. If no vertical holes are present, the process is terminated; otherwise, it continues to a sub-step b21, in which the existing vertical holes are corrected with reference to a user input.In sub-step b30, the process is started and checked for pockets or free-form pockets. If no pockets or free-form pockets are present, the process is terminated; otherwise, it continues to sub-step b31, in which the existing pockets or free-form pockets are corrected based on user input. In process step b, one or more of sub-steps b10, b20, and b30 can be performed.
[0076] Fig. Figure 5 shows the combining of several components into a new component following user input according to method step c, whereby the relevant program components are newly generated and replaced in the program code. In a sub-step c10, the process is started and queried as to which components are to be combined into a new component. A user then defines the new component in a sub-step c11 and specifies the placement of components along the X-axis in a sub-step c12. Subsequently, in a sub-step c13, the new program is generated with the specified information, and the process is terminated.
[0077] Fig. Figure 6 illustrates the production of several identical individual components from a larger component following user input according to process step d, with the relevant program components being adapted. In a sub-step d10, the process is started and queried as to how many individual, identical components are to be generated from a large component. A user then defines the number of components to be generated from the large component in a sub-step d11 and specifies the new component in a sub-step d12. Subsequently, in a sub-step d13, the existing program is adapted with the information, and the process is terminated.
[0078] Fig. Figure 7 shows a simplified example of adding program code resources from at least one additional CNC program file based on an identification code at a zero point of the program code resources according to method step f1. In a sub-step f10, the process is started and checked to see whether a file exists that needs to be added to the existing program. For this purpose, an identification number is searched for in a sub-step f11. In a sub-step f12, a program associated with the found identification number is opened, and in a sub-step f13, this program is added to the existing program at the zero point.
[0079] Fig. 8 shows, in simplified form, the addition of program code means from at least one further CNC program file based on an identification code at an explicitly assigned coordinate of the program code means according to method step f2. In a sub-step f20, the process is started and checked to see whether a file exists that must be added to the existing program at an explicitly assigned coordinate. For this purpose, an identification number is searched for in a sub-step f21, and a coordinate associated with the identification number is searched for in a sub-step f22. In a sub-step f23, a program associated with the found identification number is opened, and the information stored there, with the exception of the component-related data, is added to the existing program at the specified coordinate in a sub-step f24.
[0080] Fig. 9 shows a further flowchart illustrating the addition of program code means from at least one further CNC program file of an embodiment of method steps f1 and f2. In a sub-step f30, the process is started and a CNC program file is opened. Subsequently, in a sub-step f31, a check is made to determine whether a macro is defined as an add-on file. If no identifier is recognized, the next available macro is checked in a sub-step f32. Otherwise, in a decision step f33, a check is made to determine whether the macro is a "vertical milling" type command. If the macro is not a "vertical milling" type command, the process is terminated in a sub-step f34. However, if the macro is of this type, the process continues in a further decision sub-step f35, in which a check is made to determine whether the macro has a tool number that is stored as an identification number for an add-on file.If this is not the case, the next available macro is checked in sub-step f32. Otherwise, the corresponding file to be added is opened at the defined storage location in sub-step f36 and then added to the existing program in sub-step f37. In a decision sub-step f38, it is checked whether the edits need to be placed or can simply be filed. If no placement is necessary, the edits are simply filed and the process ends in sub-step f39. Otherwise, the edits are placed at the specified coordinates of the file in sub-step f40 and the process ends in sub-step f41.
[0081] Fig. 10 shows a schematic representation of a graphical user interface of the method according to the invention, in which a component or workpiece 1 with provided holes 8 and corresponding parameters is displayed in an unmachined state. After exporting from a CAD application, the workpiece 1 could be based, at least in part, on the following CNC program file as the source file. The program lines are numbered for ease of reference. The component was incorrectly placed because the Y coordinate in line 4 is incorrect. The parameters for the explicit assignment to the reference edge are also missing. The macros are therefore inactive. Furthermore, a name designation is missing. 1 <139 \Component\ 2 IN=“Top hinge_V_VH.mpr” 3 XA=“64.0000” 4 YA=“38.0000” 5 ZA=“0.0000” 6 EM=“0” 7 PR=“0” 8 VA="length 5.0000" 9 VA="width 5.0000" 10 VA="rotation 90.0000" 11 KO="00" 12 13 <139 \Components\ 14 IN="Topfscharnier_V_VH.mpr" 15 XA="936.0000" 16 YA="38.0000" 17 ZA="0.0000" 18 EM="0" 19 PR="0" 20 VA="length 5.0000" 21 VA="width 5.0000" 22 VA="rotation 90.0000" 23 KO="00"
[0082] Fig. Figure 11 shows a further schematic representation of the graphical user interface of the method according to the invention, in which the component or workpiece 1 is displayed with corresponding parameters in the machined state. As can be seen from the figure, the provided holes 8 were replaced by cup hinges 9. After correction by the method according to the invention, the workpiece 1 could be based, at least in part, on the following CNC program file as the source file. The program lines are again numbered for easier reference. As can be seen from Fig. 11 and line 4 of the revised program, the component has been corrected and the Y-coordinate now matches the user specification. Fig. 11 and in lines 13 and 14 of the revised program, parameters were assigned for explicit assignment to the reference edge. Furthermore, a name designation was assigned in line 15 of the revised program. 1 <139 \Components\ 2 IN=„Top hinge_V_VH.mpr“ 3 XA=„64.0000“ 4 YES=„23“ 5 ZA=„0.0000“ 6 EM=„0“ 7 PR=„0“ 8 VA=„length 5.0000“ 9 VA=„width 5.0000“ 10 VA=„rotation 90.0000“ 11 KO=„00“ 12 13 VA=“worn 1“ 14 VA=„behind 0“ 15 MNM=„TOP HINGE“ 16 17 <139 \Components\ 18 IN=„Top hinge_V_VH.mpr“ 19 XA=„936.0000“ 20 YA=„23“ 21 ZA=„0.0000“ 22 EM=„0“ 23 PR=„0“ 24 VA=„length 5.0000“ 25 VA=„width 5.0000“ 26 VA=„rotation 90.0000“ 27 KO=„00“ 28 VA="worn 1" 29 VA=“behind 0“ 30 MNM=„TOP HINGE“
[0083] Fig. Figure 12 shows a simplified representation to illustrate different material thicknesses. For example, workpiece 1 can have a material thickness of 25 mm as a side part, while a workpiece 1' connected to workpiece 1 via a connecting part 10 can have a material thickness of 19 mm as a base part. Thus, not all components can be reworked at once, but separately according to material thickness to ensure correct processing.
[0084] Fig. Figure 13 shows a highly simplified representation illustrating a permissible machining area 11a of the workpiece 1. Remachining can then be performed taking into account selected reference edges and a permissible area 11a. The permissible area 11a defines the maximum distance a component or hole may have from the reference edge in order to be assigned to it. Only if the component is located within the permissible area 11a will it be processed. However, if the component is located outside the permissible area 11a in a hatched, impermissible area 11b, the component or hole is considered to belong to the surface and is not remachined.
[0085] The method according to the invention for processing one or more CNC program files is preferably implemented as a computer program. For this purpose, the computer program is stored in a memory element of a computer. The method is executed by processing on a microprocessor of the computer. The computer program can be stored as a computer program product on a computer-readable data carrier (floppy disk, CD, DVD, hard disk, USB memory stick, or the like) or an internet server and transferred from there to the memory element of the computer (not shown).
[0086] Fig. 14 a highly simplified representation of a CNC processing machine 12 with a machine control unit 13, which can be configured to process a CNC program file processed by means of the method according to the invention. List of reference symbols: 1, 1' workpiece 2a left part of the diagram 2b right part of the diagram 3 - 5 tables 6 Database 7 connecting lines 8 holes 9 Concealed hinges 10 Connecting element 11a permissible range 11b inadmissible area 12 CNC machining centers 13 Machine control unit a1, a2 Process steps of the process according to the invention b - e Process steps of the process according to the invention f1, f2, g Process steps of the process according to the invention a10 - a15 Substeps of process step a1 a20 - a23 Substeps of process step a2 b10, b11 Substeps of process step b b20, b21 Substeps of process step b b30, b31 Substeps of process step b c10 - c13 Substeps of process step c d10 - d13 Substeps of process step d f10 - f13 Substeps of process step f1 f20 - f24 Substeps of process step f2 f30 - f41 Substeps according to process steps f1, f2 S100 - S104 Process steps for creating components or standard programs S200 - S204 Process steps in a CAD application
Claims
[1] Computer-aided method for processing one or more CNC program files, which comprise program code means for material-removing machining of at least one workpiece (1, 1') for producing components or component groups on a CNC processing machine (12), wherein CNC raw data are automatically corrected, wherein the processing of the CNC program files is carried out in batches, and wherein the program code means comprise one or more program components, each of which comprises at least one CNC work step for machining the at least one workpiece (1, 1'), characterized by one or more of the following method steps which are carried out by a computer program with program code means when the computer program is executed on a computer: a) automatic detection and testing of program components present in the program code means based on a comparison with predetermined comparison data or with at least one reference program component, whereby deviating existing parameters of the program components are replaced by standard parameters; b) correcting program components present in the program code means, which represent constructive elements to be created on a workpiece (1,1') with reference to a user input; c) combining several components into a new component following a user input, whereby the relevant program components are newly generated and replaced in the program code means; d) manufacturing several identical individual components from a larger component according to a user input, whereby the relevant program components are adapted; e) adding one or more program components to the program code means following a user input; f) adding program code means of at least one further CNC program file based on an identification code at an explicitly assigned coordinate or at a zero point of the program code means; and / or g) Replacing machine-specific designations for CNC work steps and / or program components in the program code with freely selectable or predefined designations. [2] Method according to claim 1, wherein the comparison data, the predetermined designations, file paths or file names of separately stored CNC program files with program code means which represent predetermined CNC work steps and / or the standard parameters are stored in at least one table (3, 4, 5) and / or at least one database and can be read out from there. [3] Method according to claim 1 or 2, wherein a data record assigned to the respective reference program component is stored in a table (3, 4, 5) and / or a database and can be read out from there. [4] Method according to claim 3, wherein the data set comprises as standard parameters at least: - a target position in X-direction, - a target position in the Y direction, - a reference edge, - a work direction, - a designation, and / or - a material thickness. [5] The method of claim 3 or 4, wherein the data set further comprises at least one file path or file name of a separately stored CNC program file with program code means representing the associated reference program component. [6] Method according to one of claims 1 to 5, wherein the at least one program component to be added in method step e) after a user input comprises at least one milling command and / or at least one sawing command as a CNC work step. [7] The method of claim 6, wherein the at least one milling command includes a feed rate, a tool number, and a Z dimension. [8] The method of claim 6 or 7, wherein the at least one sawing command comprises a feed rate, a tool number, a scoring depth and a cutting depth. [9] Method according to one of claims 1 to 8, wherein horizontal bores, vertical bores (8), pockets or free-form pockets are used as structural elements in method step b). [10] Method according to claim 9, wherein the horizontal or vertical bores (8) can be corrected and / or centered with regard to their position. [11] Method according to one of claims 1 to 10, wherein reference edges can be selected during the post-processing in method step b). [12] Method according to one of claims 1 to 11, wherein the workpiece (1, 1') comprises wood, a wood material, a plastic, a mineral material, an aluminum material or a composite material thereof. [13] A computer program comprising program code means for performing all the method steps of any one of claims 1 to 12 when the computer program is executed on a computer. [14] A computer program product comprising program code means stored on a computer-readable data carrier for carrying out the method according to any one of claims 1 to 12 when the program product is executed on a computer. [15] CNC machining center (12) having a machine control unit (13) configured to process a CNC program file processed by a method according to one of claims 1 to 12.
Citation Information
Patent Citations
device and method for creating and / or changing NC programs or NC tables
DE10157577A1
automatic PROGRAMMING PROCEDURE.
DE3889039T2
cad / cam setup
DE4014595A1
NC program creation and editing device
JP2015170147A
automatic PROGRAMMING PROCEDURE.
DE3889039D1