[go: up one dir, main page]

CN112255970A - Method and device for generating numerical control machine tool program - Google Patents

Method and device for generating numerical control machine tool program Download PDF

Info

Publication number
CN112255970A
CN112255970A CN202011142732.6A CN202011142732A CN112255970A CN 112255970 A CN112255970 A CN 112255970A CN 202011142732 A CN202011142732 A CN 202011142732A CN 112255970 A CN112255970 A CN 112255970A
Authority
CN
China
Prior art keywords
product
machine tool
numerical control
processed
code template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011142732.6A
Other languages
Chinese (zh)
Inventor
张立军
赵宁宁
梁宏波
刘高岩
齐昆
荆莹
王海爽
张兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tieke Beijing Track Equipment Technology Co ltd
Original Assignee
Tieke Beijing Track Equipment Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tieke Beijing Track Equipment Technology Co ltd filed Critical Tieke Beijing Track Equipment Technology Co ltd
Priority to CN202011142732.6A priority Critical patent/CN112255970A/en
Publication of CN112255970A publication Critical patent/CN112255970A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40937Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of machining or material parameters, pocket machining
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40937Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of machining or material parameters, pocket machining
    • G05B19/40938Tool management
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4155Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by programme execution, i.e. part programme or machine function execution, e.g. selection of a programme
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/45Nc applications
    • G05B2219/45136Turning, lathe
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Manufacturing & Machinery (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Geometry (AREA)
  • Numerical Control (AREA)

Abstract

The embodiment of the application provides a method and a device for generating a numerical control machine tool program, wherein the method comprises the following steps: acquiring drawing parameters, wherein the drawing parameters are parameters in a design drawing of a product to be processed; substituting the drawing parameters into a mathematical model corresponding to a product to be processed for calculation to obtain machine tool coordinates; and filling the machine tool coordinates into an object code template corresponding to a product to be processed so as to generate a numerical control machine tool program. By means of the technical scheme, the programming efficiency can be improved.

Description

Method and device for generating numerical control machine tool program
Technical Field
The application relates to the field of numerical control machining, in particular to a method and a device for generating a numerical control machine program.
Background
The existing method for writing program of numerical control machine tool is to draw design drawing of machined product through Computer Aided Drawing (CAD), and measure relevant machine tool coordinate according to the drawn drawing. And manually judging the machining track and manually writing a numerical control machine tool program by combining the measured relevant machine tool coordinates.
However, due to the long time consumption, the existing method for writing programs of the numerical control machine tool at least has the problem of low programming efficiency.
Disclosure of Invention
An embodiment of the present application aims to provide a method and an apparatus for generating a program of a numerical control machine tool, so as to solve the problem of relatively low programming efficiency in the prior art.
In a first aspect, an embodiment of the present application provides a method for generating a program of a numerically controlled machine tool, where the method includes: acquiring drawing parameters, wherein the drawing parameters are parameters in a design drawing of a product to be processed; substituting the drawing parameters into a mathematical model corresponding to a product to be processed for calculation to obtain machine tool coordinates; and filling the machine tool coordinates into an object code template corresponding to a product to be processed so as to generate a numerical control machine tool program.
Therefore, the embodiment of the application obtains the drawing parameters, substitutes the drawing parameters into the mathematical model corresponding to the product to be processed for calculation, obtains the machine tool coordinates, and fills the machine tool coordinates into the target code template corresponding to the product to be processed to generate the program of the numerical control machine tool, so that automatic programming can be realized.
And because CAD drawing, manual program writing and the like are not needed in the programming process, the programming efficiency can be greatly improved.
In one possible embodiment, before filling the machine coordinates into the object code template corresponding to the product to be machined to generate the numerical control machine program, the method further includes: classifying the various processed products to obtain at least two types of processed products; and generating a code template corresponding to each type of processing product in at least two types of processing products.
Therefore, the embodiment of the present application can reduce the workload compared to a method of generating a corresponding code template for each processed product by classifying the processed products.
In addition, the programming efficiency can be improved by pre-establishing the code template in the embodiment of the application.
In one possible embodiment, the machine coordinates are filled into an object code template corresponding to a product to be processed to generate a numerical control machine program, including: acquiring a programming instruction of a product to be processed; searching a target code template from all code templates according to a programming instruction; and filling the machine tool coordinates into the target code template to generate the numerical control machine tool program.
Therefore, the programming instruction is matched with the code template, so that the target code template can be accurately obtained, and the accuracy of the final numerical control machine program is further ensured.
In one possible embodiment, the object code templates are corresponding to a plurality of numerically controlled machine tools, and machine coordinates are filled into the object code templates corresponding to the product to be processed to generate the numerically controlled machine tool program, including: and respectively filling the machine tool coordinates into the target code template corresponding to each numerical control machine tool in the plurality of numerical control machine tools so as to generate a numerical control machine tool program corresponding to each numerical control machine tool.
Therefore, different numerical control machines have slight difference in precision, so that the code template corresponding to each machine tool can be adjusted, the difference of each numerical control machine can be distinguished, and the adjustment amount in the machining process can be reduced.
In one possible embodiment, after filling the machine coordinates into the object code template corresponding to the product to be machined to generate the numerical control machine program, the method further includes: acquiring the product name of a product to be processed; and taking the product name as the file name of the file of the numerical control machine program.
Therefore, the file naming method and device can achieve automatic naming of the file, and compared with an existing method that a user manually inputs naming, workload of the user can be reduced.
In one possible embodiment, the drawing parameters comprise parameters of the product to be machined and/or parameters of a profiling tool for machining the product to be machined.
In a second aspect, an embodiment of the present application provides an apparatus for generating a program of a numerically controlled machine tool, where the apparatus includes: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring drawing parameters, and the drawing parameters are parameters in a design drawing of a product to be processed; the calculation module is used for substituting the drawing parameters into the mathematical model corresponding to the product to be processed for calculation to obtain machine tool coordinates; and the filling module is used for filling the machine tool coordinates into the target code template corresponding to the product to be processed so as to generate the numerical control machine tool program.
In one possible embodiment, the apparatus further comprises: the classification module is used for classifying various processed products to obtain at least two types of processed products; and the generating module is used for generating a code template corresponding to each type of processing product in at least two types of processing products.
In one possible embodiment, the filling module is configured to: acquiring a programming instruction of a product to be processed; searching a target code template from all code templates according to a programming instruction; and filling the machine tool coordinates into the target code template to generate the numerical control machine tool program.
In one possible embodiment, the object code template is an object code template corresponding to a plurality of numerically controlled machine tools, and the filling module is configured to: and respectively filling the machine tool coordinates into the target code template corresponding to each numerical control machine tool in the plurality of numerical control machine tools so as to generate a numerical control machine tool program corresponding to each numerical control machine tool.
In a third aspect, an embodiment of the present application provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program performs the method according to the first aspect or any optional implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the method of the first aspect or any of the alternative implementations of the first aspect.
In a fifth aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform the method of the first aspect or any possible implementation manner of the first aspect.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a method for generating a program of a numerically controlled machine tool according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a parameter input page provided by an embodiment of the present application;
FIG. 3 is a schematic cross-sectional view of a rail to be machined according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a classification of a processed product according to an embodiment of the present application;
fig. 5 is a block diagram illustrating a structure of an apparatus for generating a program of a numerically controlled machine tool according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
At present, the numerical control machining method can generate numerical control machine programs through conversion of existing programming software. However, for special machine tools, products with relatively complex structures, special clamping modes, customized requirements and the like, the conventional programming modes cannot be met, and therefore various industries can customize and develop some profiling tools (or profiling tools) according to the characteristics of the products and the processing modes.
However, these custom-developed profiling tools cannot be compiled in existing programming software, so programming is performed in combination with the process field for a long time according to the field experience of workers, the process is complex to operate and takes a long time, and human factors greatly affect the accuracy of numerical control machine tool programs.
In addition, for the existing method for compiling numerical control machine tool programs, at least, a large number of auxiliary lines need to be added in a CAD drawn graph, relevant coordinate points need to be measured manually, a professional needs to judge the machining track of a machine tool, and numerical control machine tool programs need to be compiled manually.
Based on this, the embodiment of the application skillfully provides a scheme for generating the program of the numerical control machine tool, by obtaining the drawing parameters, wherein the drawing parameters are parameters in the design drawing of the product to be processed, then substituting the drawing parameters into the mathematical model corresponding to the product to be processed for calculation, obtaining the coordinates of the machine tool, and finally filling the coordinates of the machine tool into the target code template corresponding to the product to be processed, so as to generate the program of the numerical control machine tool.
Therefore, the embodiment of the application obtains the drawing parameters, substitutes the drawing parameters into the mathematical model corresponding to the product to be processed for calculation, obtains the machine tool coordinates, and fills the machine tool coordinates into the target code template corresponding to the product to be processed to generate the program of the numerical control machine tool, so that automatic programming can be realized.
And because CAD drawing, manual program writing and the like are not needed in the programming process, the programming efficiency can be greatly improved.
Referring to fig. 1, fig. 1 shows a flowchart of a method for generating a program for a numerically controlled machine tool according to an embodiment of the present application, and it should be understood that the method shown in fig. 1 may be performed by an apparatus for generating a program for a numerically controlled machine tool, which may correspond to the apparatus shown in fig. 5, which may be various devices capable of performing the method, such as a personal computer, a server, or a network device, for example, and the present application is not limited thereto. The method as shown in fig. 1 comprises the following steps:
and step S110, acquiring drawing information. The drawing information comprises drawing parameters, and the drawing parameters are parameters in a design drawing of a product to be processed.
It should be understood that information included in the drawing information may be set according to actual requirements, as long as the drawing information is guaranteed to be information in the design drawing, and the embodiment of the application is not limited thereto.
For example, the drawing information may include a product name, parameters of a product to be processed, parameters of a tool for processing the product to be processed, and the like.
It should also be understood that the specific product of the product to be processed may also be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, the product to be processed may be a railway product (e.g., a conventional rail member, etc.) or may be a product other than a railroad product.
It should also be understood that the specific parameters included in the drawing parameters may also be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, the drawing parameters may include parameters of the product to be machined and/or parameters of a tool used to machine the product to be machined.
It should also be understood that the specific type of the tool may be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, in the case where the tool is a copying tool, the tool may be a three plane tool, a five plane tool, or the like.
For another example, where the tool is a standard tool, the tool may be a standard corn mill, a standard face mill, or the like.
It should also be understood that specific parameters included in the parameters of the product to be processed may also be set according to actual needs, and the embodiments of the present application are not limited thereto.
For example, in the case where the product to be processed is a rail, the parameters of the product to be processed may include a rail length, a rail head width, a rail height, and the like.
It should also be understood that the specific parameters included in the parameters of the tool may also be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For another example, where the tool is a copying tool, the parameters of the tool may include the radius of the circular arc portion of the tool and the slope of the straight line portion of the tool, among others.
In order to facilitate understanding of the embodiments of the present application, the following description will be given by way of specific examples.
Specifically, after the user opens the programming software, the user may select the type of the manufactured product, then proceed to a parameter entry page, and the user may enter drawing information according to the type of the parameter in the parameter entry page.
It should be understood that the input items of the parameter input page may include a product name, parameters of the product to be produced, parameters of the tool, and the like, and the input items of the parameter input page may be directly obtained from the design drawing of the product to be produced.
For example, as shown in fig. 2, fig. 2 is a schematic diagram illustrating a parameter input page provided in an embodiment of the present application. The parameter input page shown in fig. 2 includes product name information such as a drawing number, parameters of a section, a section distance, a rail piece total length, a point rail reduction value, a rail bottom deviation median value and waiting for rail piece production, and parameters of cutters such as a second planing table height, a third planing table height and a third planing circular arc. And, the user can press the export key to export the nc tool program or press the return to the page where the user selects the type of machining product.
It should be noted that the parameter input page in fig. 2 is only illustrative and is not a limitation of the parameter input page in the embodiment of the present application, that is, the parameter input page may be set according to actual requirements.
It should be further noted that, in order to facilitate understanding of the meanings of the input items in the parameter input page, each input item may be provided with the explanation of each input item correspondingly, so that a user can conveniently understand the meanings of the input items, and then the user can accurately input drawing information, thereby ensuring the accuracy of the numerical control machine program.
It should also be noted here that at least two input data in the parameter input page in fig. 2 may have an association. Therefore, after the user inputs the target input data in the at least two input data, the background can perform benchmarking on the target input data input by the user and the data calculated by the other data except the target input data in the at least two input data, and if the data are inconsistent, the background can output a prompt box to prompt that the target input data are input wrongly.
For example, as shown in fig. 2, the related data of the 5-section, the 20-section, the 35-section, and the 50-section are related, so that before the related data of the 5-section is not input by the user, the background can estimate the estimated data of the 5-section according to the related data of the 20-section, the 35-section, and the 50-section input by the user. Subsequently, after the user inputs the related data of the 5 sections, the input data of the 5 sections and the calculation data of the 5 sections calculated in the background can be compared, and if the data are inconsistent or the difference is too large, a prompt box can be output. Therefore, a user can select whether to modify the input data of the 5 sections according to the prompt box, and automatic detection can be further realized in the programming process. Wherein, the 5 section means a section having a length of 5mm from the first side of the rail member, the 20 section means a section having a length of 20mm from the first side of the rail member, the 35 section means a section having a length of 35mm from the first side of the rail member, and the 50 section means a section having a length of 50mm from the first side of the rail member.
And step S120, substituting the drawing parameters into a mathematical model corresponding to the product to be processed for calculation to obtain machine tool coordinates. The mathematical model is a formula for calculating machine tool coordinates, and the machine tool coordinates are coordinate values of machining path points of the tool.
It should be understood that the specific formula corresponding to the mathematical model may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, in the case where the machine coordinates include three-dimensional coordinates (i.e., X, Y, and Z values) and the tool is a five-plane tool, the mathematical model for the Y value is:
Y=A+B+(Z-16)*C-D
wherein Y is the Y value in the three-dimensional coordinate, A is the rail head width, B is the radius of five planing tools, Z is the Z value in the three-dimensional coordinate, C is the slope of three planing tools, and D is the deviation of two planing tools.
In order to facilitate understanding of the embodiments of the present application, the following description will be given by way of specific examples.
Specifically, before step S120, the mathematical model may be obtained in advance by processing the characteristics of the product and the product drawing.
Alternatively, for a copying tool without a circular arc, the machine coordinates can be converted by a mathematical function relationship, so that a mathematical model can be obtained.
Alternatively, for a copying tool with a circular arc, whether the copying tool with the inclination of the first inclination or the copying tool with the second inclination is consistent with a data model formula established by the design drawing.
For example, as shown in fig. 3, fig. 3 shows a schematic cross-sectional view of a rail to be machined according to an embodiment of the present application, so that a mathematical model can be established according to the second planing mean, the second planing slope, the third planing slope, the rail head width, the second planing height, the third planing height, and the like in fig. 3, and by combining tool parameters.
And, the step S120 includes that after the user confirms the entries in the parameter input page, the corresponding mathematical model can be queried according to each entry, thereby calculating the machine coordinates.
For example, in the case where the input items of the parameter input page include first to eighth input items, the X value of the machine coordinate may be calculated by the first, third and eighth input items and their corresponding mathematical models, the Y value of the machine coordinate may also be calculated by the second and fifth input items and their corresponding mathematical models, and the Z value of the machine coordinate may also be calculated by the fourth, sixth and seventh input items and their corresponding mathematical models.
And step S130, filling the machine tool coordinates into an object code template corresponding to the product to be processed so as to generate a numerical control machine tool program.
It should be understood that the object code template can be understood as an invariant in the nc machine tool program and the machine coordinates can be understood as an variant in the nc machine tool program.
In order to facilitate understanding of the embodiments of the present application, the following description will be given by way of specific examples.
Specifically, before performing step S130, a plurality of processed products may be classified, and at least two types of processed products may be obtained. And generating a code template corresponding to each type of processing product in the at least two types of processing products.
For example, in the case that the processed product is a conventional rail piece, the structural characteristics of the conventional product rail piece can be studied, a large number of data programs are analyzed, the internal relations are found out, a plurality of processed products are classified in a classified and summarized mode, and a corresponding code template is manufactured.
It should be understood that the classification standard for classifying various products may be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, referring to fig. 4, fig. 4 is a schematic diagram illustrating classification of a processed product according to an embodiment of the present application. As shown in fig. 4, in the case where the classification criterion is the machining locus, the machined product may be classified into a first machined product machined by a copying tool without a circular arc and a second machined product machined by a copying tool with a circular arc. And the second processed product processed by the copying tool with the circular arc further includes a first processed sub-product processed by the copying tool whose inclination of the oblique side is the first inclination a, and a second processed sub-product processed by the copying tool whose inclination of the oblique side is the second inclination b, and the like.
It should be noted that, in the case of dividing a plurality of processed products into a type of processed product, the type of processed product corresponds to one processing template, so that when drawing information is input, only the drawing information related to the product to be processed needs to be input. That is, the user does not need to fill in the entry items in the parameter entry page that are unrelated to the product to be processed.
For example, in a case where the third processed product and the fourth processed product are classified into one type of processed product, the third processed product and the fourth processed product correspond to one processing template. And under the condition that the product to be processed is a third processed product, only drawing information related to the third processed product can be input, and meanwhile, an input item exclusive to a fourth processed product possibly exists in the parameter input page, and the exclusive input items do not need to be input at the moment.
In addition, the step S130 includes obtaining a programming instruction of the product to be processed, searching the target code template from all the code templates according to the programming instruction, and filling the machine coordinates into the target code template to generate the program of the numerical control machine tool, so that the machine coordinates can be used to adaptively configure the variable quantities in the code templates, thereby generating the program of the numerical control machine tool.
It should be understood that the programming instruction may be input after the user has input the drawing information, so that the background may sequentially perform the steps S120 and S130 according to the programming instruction.
It should also be understood that, according to the programming instruction, the specific process of finding the target code template from all the code templates may also be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, in the case that the programming command can carry an identifier of a product to be processed, the target code template may be matched from a code template library storing all code templates according to the identifier of the product to be processed.
It should be noted here that, because different numerically-controlled machine tools have slight differences in precision, the code template corresponding to each machine tool may be adjusted, so that differences of the numerically-controlled machine tools can be distinguished, and adjustment amount during machining can be reduced.
That is, the object code template may be an object code template corresponding to a plurality of numerically controlled machine tools, and the object code template corresponding to each numerically controlled machine tool may be obtained by adjusting according to characteristics of each numerically controlled machine tool, and the step S130 includes filling machine coordinates into the object code template corresponding to each numerically controlled machine tool in the plurality of numerically controlled machine tools, respectively, to generate a numerical control machine tool program corresponding to each numerically controlled machine tool, that is, filling machine coordinates into each object code template, respectively, so as to generate a plurality of numerical control machine tool programs corresponding to the plurality of machine tools.
And step S140, taking the product name in the drawing information as the file name of the file of the numerical control machine program.
Specifically, the product name of the product to be processed can be acquired according to drawing information input by a user. And before the file of the numerical control machine program is imported to the desktop of the computer, setting the file name of the file of the numerical control machine program as a product name.
Here, when there are a plurality of nc programs, a combination of a product name corresponding to a current nc program and an id of an nc machine corresponding to the product name can be used as a file name of a file of the nc program, and thus the nc programs can be distinguished.
Therefore, by means of the technical scheme, the embodiment of the application can avoid the input of repetitive data or relevance data, greatly shortens the programming time and greatly improves the programming efficiency.
In addition, the user can simply and quickly complete programming only according to the prompt, so that the post requirement of numerical control programmers is reduced, and the personnel without programming capability can generate numerical control machine tool programs according to actual requirements.
In addition, drawing information is input by adopting a parameter input page similar to a window, and data can be processed in cooperation with a background, so that the working quality and the working efficiency can be improved.
It should be understood that the above method for generating a program for a numerical control machine is only exemplary, and those skilled in the art can make various changes, modifications or variations according to the above method within the protection scope of the present application.
Referring to fig. 5, fig. 5 shows a block diagram of a device 500 for generating a program of a numerically controlled machine tool according to an embodiment of the present application, it should be understood that the device 500 corresponds to the above method embodiment and is capable of performing various steps related to the above method embodiment, and specific functions of the device 500 may be referred to in the foregoing description, and detailed descriptions are omitted here as appropriate to avoid repetition. The device 500 includes at least one software function module that can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the device 500. Specifically, the apparatus 500 includes:
an obtaining module 510, configured to obtain a drawing parameter, where the drawing parameter is a parameter in a design drawing of a product to be processed; the calculation module 520 is used for substituting the drawing parameters into the mathematical model corresponding to the product to be processed for calculation to obtain machine tool coordinates; and the filling module 530 is used for filling the machine tool coordinates into the object code template corresponding to the product to be processed so as to generate the numerical control machine program.
In one possible embodiment, the apparatus 500 further comprises: a classification model (not shown) for classifying a plurality of processed products to obtain at least two types of processed products; and a generating module (not shown) for generating a code template corresponding to each of at least two types of processing products.
In one possible embodiment, the padding module 530 is configured to: acquiring a programming instruction of a product to be processed; searching a target code template from all code templates according to a programming instruction; and filling the machine tool coordinates into the target code template to generate the numerical control machine tool program.
In a possible embodiment, the object code template is an object code template corresponding to a plurality of numerically controlled machine tools, and the filling module 530 is configured to: and respectively filling the machine tool coordinates into the target code template corresponding to each numerical control machine tool in the plurality of numerical control machine tools so as to generate a numerical control machine tool program corresponding to each numerical control machine tool.
In one possible embodiment, the obtaining module 510 is configured to obtain a product name of a product to be processed; and the naming module is used for taking the product name as the file name of the file of the numerical control machine program.
In one possible embodiment, the drawing parameters comprise parameters of the product to be machined and/or parameters of a profiling tool for machining the product to be machined.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
Fig. 6 shows a block diagram of an electronic device 600 according to an embodiment of the present application. Electronic device 600 may include a processor 610, a communication interface 620, a memory 630, and at least one communication bus 640. Wherein communication bus 640 is used to enable direct, coupled communication of these components. The communication interface 620 in the embodiment of the present application is used for performing signaling or data communication with other devices. The processor 610 may be an integrated circuit chip having signal processing capabilities. The Processor 610 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 610 may be any conventional processor or the like.
The Memory 630 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 630 stores computer readable instructions that, when executed by the processor 610, the electronic device 600 may perform the steps of the above-described method embodiments.
The electronic device 600 may further include a memory controller, an input-output unit, an audio unit, and a display unit.
The memory 630, the memory controller, the processor 610, the peripheral interface, the input/output unit, the audio unit, and the display unit are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components may be electrically coupled to each other via one or more communication buses 640. The processor 610 is configured to execute executable modules stored in the memory 630. Also, the electronic device 600 is configured to perform the following method: acquiring drawing parameters, wherein the drawing parameters are parameters in a design drawing of a product to be processed; substituting the drawing parameters into a mathematical model corresponding to the product to be processed for calculation to obtain machine tool coordinates; and filling the machine tool coordinates into an object code template corresponding to the product to be processed to generate the numerical control machine tool program.
The input and output unit is used for providing input data for a user to realize the interaction of the user and the server (or the local terminal). The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
The audio unit provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry.
The display unit provides an interactive interface (e.g. a user interface) between the electronic device and a user or for displaying image data to a user reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. The support of single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor for calculation and processing.
It will be appreciated that the configuration shown in FIG. 6 is merely illustrative and that the electronic device 600 may include more or fewer components than shown in FIG. 6 or have a different configuration than shown in FIG. 6. The components shown in fig. 6 may be implemented in hardware, software, or a combination thereof.
The present application also provides a storage medium having a computer program stored thereon, which, when executed by a processor, performs the method of the method embodiments.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the method of the method embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of generating a program for a numerically controlled machine tool, comprising:
acquiring drawing parameters, wherein the drawing parameters are parameters in a design drawing of a product to be processed;
substituting the drawing parameters into a mathematical model corresponding to the product to be processed for calculation to obtain machine tool coordinates;
and filling the machine tool coordinates into an object code template corresponding to the product to be processed to generate the numerical control machine tool program.
2. The method according to claim 1, wherein before the filling the machine coordinates into the object code template corresponding to the product to be machined to generate the numerical control machine program, the method further comprises:
classifying the various processed products to obtain at least two types of processed products;
and generating a code template corresponding to each type of processing product in the at least two types of processing products.
3. The method according to claim 2, wherein the filling of the machine coordinates into the object code template corresponding to the product to be machined to generate the numerical control machine program comprises:
acquiring a programming instruction of the product to be processed;
searching the target code template from all code templates according to the programming instruction;
and filling the machine tool coordinates into the object code template to generate the numerical control machine tool program.
4. The method according to claim 1, wherein the object code template is an object code template corresponding to a plurality of numerically controlled machine tools, and the filling of the machine coordinates into the object code template corresponding to the product to be processed to generate the numerically controlled machine tool program comprises:
and filling the machine tool coordinates into the target code template corresponding to each numerical control machine tool in a plurality of numerical control machine tools respectively so as to generate a numerical control machine tool program corresponding to each numerical control machine tool.
5. The method according to claim 1, wherein after the machine coordinates are filled into the object code template corresponding to the product to be machined to generate the numerical control machine program, the method further comprises:
obtaining the product name of the product to be processed;
and taking the product name as the file name of the file of the numerical control machine program.
6. The method according to claim 1, characterized in that the drawing parameters comprise parameters of the product to be machined and/or parameters of a profiling tool for machining the product to be machined.
7. An apparatus for generating a program for a numerically controlled machine tool, comprising:
the processing device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring drawing parameters, and the drawing parameters are parameters in a design drawing of a product to be processed;
the calculation module is used for substituting the drawing parameters into the mathematical model corresponding to the product to be processed for calculation to obtain machine tool coordinates;
and the filling module is used for filling the machine tool coordinates into the target code template corresponding to the product to be processed so as to generate the numerical control machine tool program.
8. The apparatus of claim 7, further comprising:
the classification module is used for classifying various processed products to obtain at least two types of processed products;
and the generating module is used for generating a code template corresponding to each type of processing product in the at least two types of processing products.
9. The apparatus of claim 8, wherein the fill module is to: acquiring a programming instruction of the product to be processed; searching the target code template from all code templates according to the programming instruction; and filling the machine tool coordinates into the object code template to generate the numerical control machine tool program.
10. The apparatus of claim 7, wherein the object code template is an object code template corresponding to a plurality of numerically controlled machine tools, and the filling module is configured to: and filling the machine tool coordinates into the target code template corresponding to each numerical control machine tool in a plurality of numerical control machine tools respectively so as to generate a numerical control machine tool program corresponding to each numerical control machine tool.
CN202011142732.6A 2020-10-22 2020-10-22 Method and device for generating numerical control machine tool program Pending CN112255970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011142732.6A CN112255970A (en) 2020-10-22 2020-10-22 Method and device for generating numerical control machine tool program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011142732.6A CN112255970A (en) 2020-10-22 2020-10-22 Method and device for generating numerical control machine tool program

Publications (1)

Publication Number Publication Date
CN112255970A true CN112255970A (en) 2021-01-22

Family

ID=74263501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011142732.6A Pending CN112255970A (en) 2020-10-22 2020-10-22 Method and device for generating numerical control machine tool program

Country Status (1)

Country Link
CN (1) CN112255970A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885437A (en) * 2021-10-25 2022-01-04 珠海格力电器股份有限公司 Self-adaptive programming method, device, equipment and numerical control system of numerical control system
CN114237158A (en) * 2021-11-16 2022-03-25 广州明珞自动化有限公司 Automatic programming method, system and computer storage medium
CN116149258A (en) * 2023-03-24 2023-05-23 中科航迈数控软件(深圳)有限公司 Numerical control machine tool code generation method based on multi-mode information and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103197605A (en) * 2013-03-15 2013-07-10 重庆大学 Method of CNC automatic programming for gear hobbing based on standard template and expression driving
JP2014186657A (en) * 2013-03-25 2014-10-02 Hitachi Power Solutions Co Ltd Generation program for nc program for mold material pattern processing, and generation device for nc program for mold material pattern processing
CN106292539A (en) * 2015-05-29 2017-01-04 西门子公司 Numerical control programming device, digital-control processing system and method
CN106292538A (en) * 2015-05-19 2017-01-04 大陆汽车投资(上海)有限公司 The method, apparatus and system that numerically controlled processing equipment is programmed
CN108829027A (en) * 2018-06-15 2018-11-16 沈机(上海)智能系统研发设计有限公司 Execute program creating method and its device, medium, terminal
CN108829028A (en) * 2018-06-15 2018-11-16 沈机(上海)智能系统研发设计有限公司 Execute program creating method, processing method and device, medium, terminal
CN111103848A (en) * 2018-10-29 2020-05-05 上海电气电站设备有限公司 Method and system for compiling numerical control program for machining insertion groove of final blade of steam turbine rotor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103197605A (en) * 2013-03-15 2013-07-10 重庆大学 Method of CNC automatic programming for gear hobbing based on standard template and expression driving
JP2014186657A (en) * 2013-03-25 2014-10-02 Hitachi Power Solutions Co Ltd Generation program for nc program for mold material pattern processing, and generation device for nc program for mold material pattern processing
CN106292538A (en) * 2015-05-19 2017-01-04 大陆汽车投资(上海)有限公司 The method, apparatus and system that numerically controlled processing equipment is programmed
CN106292539A (en) * 2015-05-29 2017-01-04 西门子公司 Numerical control programming device, digital-control processing system and method
CN108829027A (en) * 2018-06-15 2018-11-16 沈机(上海)智能系统研发设计有限公司 Execute program creating method and its device, medium, terminal
CN108829028A (en) * 2018-06-15 2018-11-16 沈机(上海)智能系统研发设计有限公司 Execute program creating method, processing method and device, medium, terminal
CN111103848A (en) * 2018-10-29 2020-05-05 上海电气电站设备有限公司 Method and system for compiling numerical control program for machining insertion groove of final blade of steam turbine rotor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885437A (en) * 2021-10-25 2022-01-04 珠海格力电器股份有限公司 Self-adaptive programming method, device, equipment and numerical control system of numerical control system
CN114237158A (en) * 2021-11-16 2022-03-25 广州明珞自动化有限公司 Automatic programming method, system and computer storage medium
CN114237158B (en) * 2021-11-16 2024-08-13 广州明珞自动化有限公司 Automatic programming method, system and computer storage medium
CN116149258A (en) * 2023-03-24 2023-05-23 中科航迈数控软件(深圳)有限公司 Numerical control machine tool code generation method based on multi-mode information and related equipment

Similar Documents

Publication Publication Date Title
CN112255970A (en) Method and device for generating numerical control machine tool program
US11023534B2 (en) Classification method and a classification device for service data
US6738727B2 (en) System and method for analyzing and processing data on an object
US20180107186A1 (en) Automatic strategy determination for computer aided manufacturing
US10551822B2 (en) CAD/CAM-CNC integrated system
KR101575910B1 (en) Numerical control system with error correction function and error correction method using it
CN104793560A (en) Method and system for generating a trajectory
CN111788036B (en) Method and apparatus for generating toolpaths
CN113168157A (en) Machine learning device, machining program generating device, and machine learning method
US11162787B2 (en) Measuring program compiling device and measuring program compiling method
CN111914380A (en) Part model determination method and device, computer equipment and storage medium
JP6865055B2 (en) Machining load analysis device, machining load analysis program, and machining load analysis system
CN113885437B (en) Self-adaptive programming method, device and equipment of numerical control system and numerical control system
KR20120120782A (en) System and method for producing part program for machine tool
CN111311080A (en) Order detection revision method and device, electronic equipment and computer readable medium
US7225396B2 (en) System and method for generating a report on an object
CN111045391A (en) Processed information recording device, processed information recording method, and computer-readable medium
US6834253B2 (en) System and method for outputting measurement data on an object to a graphic file thereof
CN113811908B (en) Method and device for determining production cycle of production facility
CN103530436B (en) Tooling layout drawing parameterization generation method based on AUTOCAD. NET API
CN117471988A (en) Mold processing method, mold processing apparatus, and storage medium
CN107175353B (en) The processing method and device of centrifugal compressor end cap groove body
CN101408906A (en) Automatic generation system and method of cut edge parts
JP7074718B2 (en) Machining support device, numerical control device, and machining support system
US7113961B2 (en) System and method for capturing dimensions from a graphic file of an object

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210122