CN110806725B - Method and device for processing tensile sample - Google Patents

Method and device for processing tensile sample Download PDF

Info

Publication number
CN110806725B
CN110806725B CN201911084323.2A CN201911084323A CN110806725B CN 110806725 B CN110806725 B CN 110806725B CN 201911084323 A CN201911084323 A CN 201911084323A CN 110806725 B CN110806725 B CN 110806725B
Authority
CN
China
Prior art keywords
macro
variable
program
assignment
sub
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.)
Active
Application number
CN201911084323.2A
Other languages
Chinese (zh)
Other versions
CN110806725A (en
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.)
Shanxi Taigang Stainless Steel Co Ltd
Original Assignee
Shanxi Taigang Stainless Steel 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 Shanxi Taigang Stainless Steel Co Ltd filed Critical Shanxi Taigang Stainless Steel Co Ltd
Priority to CN201911084323.2A priority Critical patent/CN110806725B/en
Publication of CN110806725A publication Critical patent/CN110806725A/en
Application granted granted Critical
Publication of CN110806725B publication Critical patent/CN110806725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4097Numerical 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 using design data to control NC machines, e.g. CAD/CAM
    • 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/35Nc in input of data, input till input file format
    • G05B2219/35155From parts catalog, database, define part relationships, product definitions, specifications

Abstract

The invention discloses a processing method and a device of a tensile sample, wherein the method is applied to a numerical control system and comprises the following steps: responding to the input operation of the specification parameters of the tensile sample, and acquiring target specification parameters of the tensile sample; running a main program and a macro program through at least one processor to control the numerical control machine tool to complete a milling process, wherein the macro program comprises a macro variable assignment sub-macro program and a milling contour sub-macro program; and running the main program to assign corresponding first macro variables according to the target specification parameters of the tensile sample, calling the macro program by the main program to enable the macro variable assignment sub-macro program to assign each second macro variable according to the assignment of each first macro variable, and running the milling contour sub-macro program to finish the contour machining process of the tensile sample based on the assignment of each first variable and the assignment of each second macro variable. In the mode, the macro program is fixed as a cutting module, and the processing of tensile samples with different specifications can be finished by changing parameters in the main program.

Description

Method and device for processing tensile sample
Technical Field
The invention relates to the technical field of numerical control machining, in particular to a method and a device for machining a tensile sample.
Background
The tensile test is used as the most widely used test for detecting and evaluating the mechanical properties of the metal material, can provide a basis for engineering design, material evaluation and optimal process selection, and has important practical significance. However, there are many factors that can affect the results of the test, where the quality and efficiency of the specimen processing is the primary factor, where the shape of the tensile specimen is fixed and numerous specifications.
In the existing numerical control processing scheme, a common programming program can be used for cutting a sampling blank at a specified position of a sampling steel plate according to the requirements of standard GB/T2975-2018 'mechanical property test sampling position and sample preparation' of steel and steel products, and a dumbbell-shaped plate-shaped tensile sample is prepared by machining.
However, the inventor finds that the prior art has at least the following problems in the process of implementing the invention: firstly, when the shape of the sample is not changed and only the size is changed, the sample can only be reprogrammed, the workload of program modification and calculation is large, the program number and the program length are huge, the memory of a machine tool is occupied, the response speed of a numerical control system is seriously influenced, and processing waste products are inevitably generated if the program is called incorrectly. Secondly, the layered cutting processing of the sample needs to manually and frequently input dynamically-changed parameters to control the processing precision of the process, and the manual factors are uncontrollable, so that once the input is wrong, only the sample can be scrapped, even a cutter is damaged, and the processing quality, the processing efficiency and the processing cost are seriously influenced.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and apparatus for processing a tensile specimen that overcomes or at least partially solves the above problems.
According to one aspect of the invention, a method for processing a tensile sample is provided, and the method is applied to a numerical control system and comprises the following steps:
responding to the input operation of the specification parameters of the tensile sample, and acquiring target specification parameters of the tensile sample;
running a main program and a macro program through at least one processor to control the numerical control machine tool to complete a milling process, wherein the macro program comprises a macro variable assignment sub-macro program and a milling contour sub-macro program;
and running the main program to assign corresponding first macro variables according to the target specification parameters of the tensile sample, calling the macro program by the main program to enable the macro variable assignment sub-macro program to assign each second macro variable according to the assignment of each first macro variable, and running the milling contour sub-macro program to finish the contour machining process of the tensile sample based on the assignment of each first variable and the assignment of each second macro variable.
Optionally, the target specification parameters of the tensile specimen include: parallel part length information, blank width information, parallel part width information, tool radius information, feed amount information per time and transition arc radius information;
the first macro variable includes: the length variable of the parallel section, the width variable of the head, the width variable of the parallel section, the radius variable of a cutter, the feed variable of each time and the radius variable of a transition arc;
the second macro variables include: a single-side machining allowance variable, a feed time upper integral value variable, an actual feed step distance value variable and a cutter deviation value variable.
Optionally, the milling contour sub macro procedure comprises: the knife lifting cancels the knife deviation sub-macro program and the knife setting establishes the knife deviation sub-macro program;
the method specifically comprises the following steps of running a main program and a macro program through at least one processor to control the numerical control machine tool to finish a milling process:
and operating the cutter deviation canceling subprogram to cancel cutter deviation when the numerical control machine tool lifts the cutter, and operating the lower cutter to establish the cutter deviation subprogram to establish cutter deviation when the numerical control machine tool lowers the cutter.
Optionally, the macro procedure further comprises: a first logic sub macro program and a run stop sub macro program;
the method specifically comprises the following steps of running a main program and a macro program through at least one processor to control the numerical control machine tool to finish a milling process:
step S1, based on the assignment of each first macro variable and the assignment of each second macro variable, operating a milling contour sub-macro program to control the numerical control machine tool to complete the contour machining process of the tensile sample;
step S2, operating a first logic sub macro program to judge whether the assignment of the cutter offset variable meets a first preset condition, if so, executing step S3, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing;
and step S3, re-assigning the tool offset value variable according to the first rule, and jumping to step S1.
Optionally, the macro procedure further includes a second logic sub-macro procedure, and if it is determined that the assignment of the offset value variable does not satisfy the first predetermined condition, the step S4 is executed;
step S4, the macro variable assignment sub-macro program is operated to reassign the tool offset value variable according to a second rule;
and step S5, operating a second logic sub macro program to judge whether the assignment of the tool offset value variable reassigned according to the second rule meets a second preset condition, if so, skipping to execute step S1, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing.
Optionally, the initial assignment of the tool offset value variable is determined according to the assignment of the tool radius variable, the assignment of the one-side machining allowance variable and the assignment of the finish machining allowance;
the assigning the tool offset value variable again according to the first rule specifically includes: re-assigning the tool offset value variable according to the assignment of the current tool offset value variable and the assignment of the actual tool feeding step distance value variable;
the assigning the tool offset value variable again according to the second rule specifically includes: and re-assigning the tool offset value variable according to the assignment of the current tool offset value variable and the assignment of the finish machining allowance.
Optionally, the macro procedure further includes a procedure pause sub-macro procedure, and the running the macro variable assignment sub-macro procedure to reassign the tool offset variable according to the second rule further includes:
the operation program pauses the sub macro program, and responds to the input operation of the machining allowance parameter of the tensile sample to obtain the manual machining allowance parameter;
and operating a macro variable assignment sub-macro program to reassign the tool offset value variable according to the manual work allowance parameter.
According to another aspect of the present invention, there is provided an apparatus for processing a tensile specimen, the apparatus being applied to a numerical control system, comprising:
the acquisition module is suitable for responding to the input operation of the specification parameters of the tensile sample and acquiring the target specification parameters of the tensile sample;
the machining module is suitable for running a main program and a macro program through at least one processor so as to control the numerical control machine tool to complete a milling process, and the macro program comprises a macro variable assignment sub-macro program and a milling contour sub-macro program;
and running the main program to assign corresponding first macro variables according to the target specification parameters of the tensile sample, calling the macro program by the main program to enable the macro variable assignment sub-macro program to assign each second macro variable according to the assignment of each first macro variable, and running the milling contour sub-macro program to finish the contour machining process of the tensile sample based on the assignment of each first variable and the assignment of each second macro variable.
According to still another aspect of the present invention, there is provided an electronic apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the processing method of the tensile sample.
According to yet another aspect of the present invention, a computer storage medium is provided, the storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the method of processing a tensile specimen as described above.
According to the processing method and the device of the tensile sample provided by the embodiment of the invention, the method is applied to a numerical control system, and the method comprises the following steps: responding to the input operation of the specification parameters of the tensile sample, and acquiring target specification parameters of the tensile sample; running a main program and a macro program through at least one processor to control the numerical control machine tool to complete a milling process, wherein the macro program comprises a macro variable assignment sub-macro program and a milling contour sub-macro program; and running the main program to assign corresponding first macro variables according to the target specification parameters of the tensile sample, calling the macro program by the main program to enable the macro variable assignment sub-macro program to assign each second macro variable according to the assignment of each first macro variable, and running the milling contour sub-macro program to finish the contour machining process of the tensile sample based on the assignment of each first variable and the assignment of each second macro variable. According to the mode, the macro program is used as a cutting module to be fixed, numerical control processing of the tensile samples with different specifications can be completed by changing parameters in the main program, the user is allowed to input target specification parameters of the tensile samples by himself, for processing of the tensile samples with different specifications, only corresponding specifications are needed to be input, and the problem that different processing programs need to be compiled for the tensile samples with different specifications in the prior art is solved. And because the macro program is adopted, the internal memory of the machine tool is saved, and the response speed of the numerical control system is improved. The dynamic change parameters can be automatically assigned according to the fixed and unchangeable specification parameters in the processing process, and the dynamic change parameters are prevented from being frequently input manually, so that the uncontrollable human factors are avoided, and the processing efficiency and quality of the tensile sample are ensured.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a first embodiment of a method of processing a tensile specimen according to the present invention;
FIG. 2 is a flow chart showing a second embodiment of the method for processing a tensile specimen according to the present invention;
FIG. 3 shows a schematic representation of a tensile specimen in an embodiment of the invention;
FIG. 4 shows a schematic of a feed path for processing a profile of a tensile specimen in an embodiment of the invention;
FIG. 5 is a flow chart showing a third embodiment of the method of processing a tensile specimen according to the present invention;
FIG. 6 shows a schematic flow chart of a tensile specimen macroprogram algorithm in an embodiment of the present invention;
FIG. 7 shows a functional block diagram of an embodiment of the apparatus for processing tensile specimens of the present invention;
fig. 8 shows a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As the numerical control machining technology is applied, programming is one of the most important matters. However, people rely on software programming more, and neglect manual programming, especially the application of macro programs, and have the advantage that automatic programming cannot be replaced. The macro is an abstract concept in the field of computers, aims to automate frequently-used instruction sequences, is a high-level language instruction form, and is a secondary development tool provided for users to perform conditional conditions on a system platform by a numerical control system software developer, so that functions of a numerical control system are correspondingly expanded to a certain extent. The method is characterized in that variables (represented by a #, and a variable serial number i following the variable serial number i is 1, 2 and 3 …) are arranged in a program, the program has a sequence, branch selection and circulation flow structure, the program has universality, and the flow direction of a program segment can be controlled by performing mathematical operation or logic operation assignment processing on the variables in the programming process so as to fully exert the functions of the variables, so that the macro program is also called a variable quantization program.
The method has the advantages that the macro program function of the numerical control system is developed, the main characteristic is that the regular shape or size is expressed by the shortest program, the optimized macro program is generally less than 60 lines and at most not more than 2KB of capacity, the written program is very concise, strict in logic, extremely strong in universality and extremely good in readability, modification and modification are easy, and as long as the shape of a workpiece is not changed and the size of the workpiece is changed, the variable and the formula are correspondingly changed, so that the method is quicker and more efficient than a program generated by executing software, and brings great convenience to production.
The method can be applied to the processing of parts with particularly complex shapes by using software automatic programming, can generate complex cutter paths, uses straight lines to approach curved surfaces, has a large quantity of repetition of the cutter paths, a huge program amount and difficult modification of processing parameters, and needs to re-model when the geometric parameters of the parts are changed, reset the processing parameters and regenerate a numerical control program. The program length may be tens of times, hundreds of times or even more different than the macro program, and the processing time is greatly increased. For example, the most widely used FANUC0i system standard configuration is generally 128K or 256K, and the capacity of thousands of lines or more of programs is more than 128K or 256K, then DNC online processing mode is required, and the main factor influencing the processing efficiency is the data transmission speed between the computer and the machine tool, and online processing is realized by R232 serial port communication. Even under the maximum transmission speed, when the calculation precision is higher and the speed is higher, the transmission speed of the program cannot keep up with the maximum transmission speed, and the phenomenon of intermittent movement of the cutter occurs. And the macro program is used for processing, and the discontinuous phenomenon cannot occur due to the high calculation speed.
The common program, i.e. manual constant programming, is programmed according to a preset route track sequence by using a relatively simple instruction code function, is only suitable for processing a workpiece with a limited specification, i.e. a standard geometric body, and does not allow the use of variables, mathematical operations, functions, logics and circulation.
The above methods all have respective application fields and serve specific purposes. Automatic programming and general procedure only one geometry can be described by a procedure. There is a clear lack of flexibility and applicability compared to macro procedures. It can be seen that macro procedures are important to numerically controlled machine tools.
The macro program is dissolved in the intelligence of a programmer, a corresponding mathematical model is established according to the geometric information of the part, and the programming is realized by adopting a modularized programming idea, so that the calling is convenient, and the programmer is liberated from fussy and large amount of repetitive work, which is an effect that any automatic programming software cannot achieve; macro programming provides a variety of tools that increase efficiency, which other methods are desired. The key points of the current industrial manufacturing are not only realization of automation and efficiency improvement, but also realization of flexible automation, and programming design can flexibly adapt to different processing requirements with set logic.
Based on this, the 'part family' with the same shape and different specifications like the steel plate tensile sample is very suitable for macro programming, and an 'intelligent' program is written by developing a parameterization program of the 'part family'.
Fig. 1 shows a flow chart of a first embodiment of the method for processing a tensile specimen, which is applied to a numerical control processing system. As shown in fig. 1, the method comprises the steps of:
step S11, in response to the input operation of the specification parameters of the tensile specimen, acquires the target specification parameters of the tensile specimen.
In an embodiment of the invention, the numerical control processing system is provided with an operable control panel, a user inputs the tensile sample through the operable control panel, and the system responds to the input operation of the specification parameters of the tensile sample and determines the target specification parameters of the tensile sample so as to process the tensile sample according to the target specification parameters.
And step S12, running a main program and a macro program through at least one processor to control the numerical control machine tool to finish a milling process, wherein the macro program comprises a macro variable assignment sub-macro program and a milling contour sub-macro program, the main program is run to assign values to corresponding first macro variables according to the target specification parameters of the tensile sample, the main program calls the macro program to enable the macro variable assignment sub-macro program to assign values to all second macro variables according to the assignment of all first macro variables, and the milling contour sub-macro program is run to finish the contour machining process of the tensile sample based on the assignment of all first variables and the assignment of all second macro variables.
The first macro variable in the main routine corresponds to a fixed parameter, such as a target specification parameter of the processed tensile specimen. And each second macro variable in the macro program corresponds to a parameter that dynamically changes during the milling process, such as a tool offset and the like. When the numerical control machine tool is operated, the main program assigns values to the first macro variables according to the obtained target specification parameters, then the macro program is called, the macro program assigns values to the second macro variables according to the assignments of the first macro variables, and then the milling contour sub-macro program is operated based on the assignments of the first macro variables and the assignments of the second macro variables so as to control the numerical control machine tool to finish contour processing of the tensile sample. In the method, the parameter change is set in the programming instead of manual input, so that the problem of uncertainty of manual input can be avoided.
Therefore, according to the embodiment of the invention, the macro program is used as a cutting module to be fixed, and the numerical control processing of the tensile samples with different specifications can be completed by changing the parameters in the main program, that is, the user is allowed to input the target specification parameters of the tensile samples by himself. And because the macro program is adopted, the internal memory of the machine tool is saved, and the response speed of the numerical control system is improved. The dynamic change parameters can be automatically assigned according to the fixed and unchangeable specification parameters in the processing process, and the dynamic change parameters are prevented from being frequently input manually, so that the uncontrollable human factors are avoided, and the processing efficiency and quality of the tensile sample are ensured.
Fig. 2 shows a flow chart of a second embodiment of the method for processing a tensile specimen, which is applied to a numerical control processing system. As shown in fig. 2, the method comprises the steps of:
step S20, in response to the input operation of the specification parameters of the tensile specimen, acquires the target specification parameters of the tensile specimen.
In an embodiment of the present invention, the numerical control processing system is provided with an operable control panel through which a user inputs the above specification parameters of the tensile specimen, and the system determines the target specification parameters of the tensile specimen in response to the input operation of the specification parameters of the tensile specimen so as to process the tensile specimen in accordance with the target specification parameters.
And step S21, running a main program through at least one processor to assign the corresponding first macro variables according to the target specification parameters of the tensile sample, and calling the macro program by the main program to enable the macro variable assignment sub-macro program in the macro program to assign the second macro variables according to the assignment of the first macro variables.
In the embodiment of the present invention, the main program mainly includes 3 subprograms: a subprogram for establishing a workpiece coordinate system and initializing the program; the subprogram is used for calling the subprogram of the macro program and assigning values to the first macro variables; a subroutine for shutdown and system reset. Before formal machining is started, the main program writes a workpiece coordinate system of a machined tensile sample, and the assignment of each first macro variable corresponding to the specification parameters of the tensile sample is modified.
And then, calling a macro program by the main program, wherein the macro program comprises a macro variable assignment sub-macro program, and operating the macro variable assignment sub-macro program to assign each second macro variable according to the assignment of each first macro variable, wherein the first macro variable corresponds to the target specification parameter of the tensile sample, and the second macro variable is a dynamically-changing variable which can be obtained through calculation according to the assignment of the first macro variable.
Fig. 3 shows a schematic diagram of a tensile test sample in an embodiment of the invention, in the schematic diagram, a is a steel plate thickness, Lc is a length of a parallel section of the test sample, B is a width of the parallel section used for detection of the test sample, B is a width of a head of the test sample, r is a radius of an excessive arc, and the parallel section and the excessive arc are required to be smoothly butted.
Since the specifications of the steel sheet tensile test specimen are in accordance with "GB/T228.1-2010 metallic material tensile test part 1: room temperature test method "and" GB/T228.2-2015 Metal materials tensile test part 2: the high-temperature test method is characterized in that a specified part family with the same shape and different specifications is adopted, so that 6 parameters including a parallel section length, a head width, a parallel section width and a transition circular arc radius which cause the change of the geometric shape of a sample and a machining parameter including a cutting feed amount and a used cutter radius are used as variables which can be specifically assigned in a main program, and other variables can be obtained through systematic operation of known variables. Based on this, the target specification parameters of the tensile specimen include: parallel portion length information, blank width information, parallel portion width information, tool radius information, feed per pass information, and transition arc radius information. Accordingly, the first macro variable includes: the length variable of the parallel section, the width variable of the head, the width variable of the parallel section, the radius variable of the cutter, the feed variable of each time and the radius variable of the transition arc.
In an embodiment of the present invention, the second macro variable includes: a single-side machining allowance variable, a feed time upper integral value variable, an actual feed step distance value variable and a cutter deviation value variable. The table one shows a list of assignments of tensile specimen macro variables in an embodiment of the present invention. When the program is executed for machining, the address code A, B … + specific variable assignment in the main program performs machining of samples having similar shapes and different specifications on parameters represented by the corresponding variable # i (i is 1, 2, or 3 …) transferred to the macro program cutting module. As shown in table one, the initial assignment of the tool offset variable is the sum of the assignment of the tool radius variable, the assignment of the one-side machining allowance variable and the assignment of the finishing allowance, and the assignment of the dynamically changing tool offset variable is the difference between the assignment of the current tool offset variable and the assignment of the actual feed step.
Watch 1
Figure BDA0002264914460000081
And step S22, based on the assignment of each first macro variable and the assignment of each second macro variable, operating a milling contour sub-macro program to control the numerical control machine tool to complete the contour machining process of the tensile sample.
The milling contour sub macro program is determined according to a feed track of the contour of the processed tensile sample, for example, instructions in a FANUC0i system are arranged according to the feed track, and the milling contour sub macro program is obtained. Fig. 4 is a schematic diagram showing a feed path for processing a tensile sample profile according to an embodiment of the present invention, where the feed path is as shown in fig. 4: a (knife start point) -B-C-D-E-F (knife lifting) -F1 (knife lowering) -E1-D1-C1-B1-A1 (knife lifting).
Step S23, a first logic sub-macro procedure is executed to determine whether the assignment of the offset variable satisfies a first predetermined condition, if yes, step S24 is executed, and if no, step S25 is executed.
After finishing the contour machining of the tensile sample, operating a first logic sub-macro program to judge whether the assignment of the current tool offset value variable meets a first preset condition, specifically, the first preset condition is as follows: and whether the assignment of the current tool offset value variable is larger than the sum of the assignment of the tool radius variable and the assignment of the finish machining allowance.
And step S24, re-assigning the tool offset value variable according to the first rule, and jumping to step S22.
If the assignment of the current tool offset value variable is larger than the sum of the assignment of the tool radius variable and the assignment of the finish machining allowance, the tool offset value variable is assigned again according to a first rule, specifically, the first rule is as follows: and (4) assigning the difference obtained by subtracting the actual feeding cloth distance from the current tool offset value variable to the tool offset value variable, skipping to execute the step S22, and executing a milling contour sub-macro program based on the assignment of each first macro variable and the assignment of each second macro variable to finish the contour machining of the tensile sample. With continuous and cyclic machining, the assignment of each macro variable gradually changes, the assignment of the tool offset value variable finally changes into the sum of the assignment of the tool radius variable and the assignment of the finishing allowance according to the sum of the initial assignment of the tool radius variable, the assignment of the one-side machining allowance variable and the assignment of the finishing allowance.
Therefore, through judgment of the first logic sub-macro program, a cycle of contour machining of the tensile sample is formed, namely a rough machining process, and the machining of the tensile sample is completed through continuous cycle machining.
And step S25, operating the stop sub macro program to control the numerical control machine tool to stop processing.
And if the assignment of the cutter offset variable is not greater than the sum of the assignment of the cutter radius variable and the assignment of the finish machining allowance, stopping operation, and finishing the machining of the tensile sample.
In summary, according to the embodiment of the present invention, a macro program is used as a cutting module and is fixed, and numerical control processing of tensile samples of different specifications can be completed by changing parameters in a main program, that is, a user is allowed to input target specification parameters of the tensile samples by himself/herself, and only corresponding specifications need to be input for processing the tensile samples of different specifications, so that a problem that different processing programs need to be programmed for the tensile samples of different specifications in the prior art is solved. And because the macro program is adopted, the internal memory of the machine tool is saved, and the response speed of the numerical control system is improved. And the dynamically changed parameters are automatically assigned through program logic, so that the dynamically changed parameters are prevented from being frequently input manually, the uncontrollable human factors are avoided, and the processing efficiency and quality of the tensile sample are ensured.
Fig. 5 shows a flow chart of a third embodiment of the method for processing a tensile specimen, which is applied to a numerical control processing system. As shown in fig. 5, the method comprises the steps of:
step S50, in response to the input operation of the specification parameters of the tensile specimen, acquires the target specification parameters of the tensile specimen.
And step S51, running a main program through at least one processor to assign the corresponding first macro variables according to the target specification parameters of the tensile sample, and calling the macro program by the main program to enable the macro variable assignment sub-macro program in the macro program to assign the second macro variables according to the assignment of the first macro variables.
And step S52, based on the assignment of each first macro variable and the assignment of each second macro variable, operating a milling contour sub-macro program to control the numerical control machine tool to complete the contour machining process of the tensile sample.
In step S53, a first logic sub-macro procedure is executed to determine whether the assignment of the offset variable satisfies a first predetermined condition, if yes, step S54 is executed, and if no, step S55 is executed.
And judging whether the assignment of the current tool offset value variable is larger than the sum of the assignment of the tool radius variable and the assignment of the finish machining allowance.
And step S54, re-assigning the tool offset value variable according to the first rule, and jumping to step S52.
And if the assignment of the current tool offset value variable is greater than the sum of the assignment of the tool radius variable and the assignment of the finish machining allowance, assigning the difference of subtracting the actual feeding cloth distance from the current tool offset value variable to the tool offset value variable, skipping to execute the step S52, and executing a milling contour sub macro program based on the assignments of the first macro variables and the assignments of the second macro variables to finish the contour machining of the tensile sample.
Therefore, through judgment of the first logic sub-macro program, a cycle of contour machining of the tensile sample is formed, namely a rough machining process, assignment of each macro variable gradually changes along with continuous cycle machining, and assignment of the tool offset value variable finally changes into the sum of assignment of the tool radius variable and assignment of the finishing allowance according to the sum of initial assignment of the tool radius variable, assignment of the one-side machining allowance variable and assignment of the finishing allowance.
And step S55, operating the macro variable assignment sub-macro program to reassign the tool offset value variable according to a second rule.
And if the assignment of the tool offset variable is not greater than the sum of the assignment of the tool radius variable and the assignment of the finish machining allowance, assigning the tool offset variable again, and specifically, assigning the tool offset variable by subtracting the assignment of the finish machining allowance from the assignment of the current tool offset variable.
And step S56, operating a second logic sub-macro program to judge whether the cutter offset value variable re-assigned according to the second rule meets a second preset condition, if so, skipping to execute step S52, and if not, executing step S57.
And operating a second logic sub-macro program to judge whether the cutter offset value variable re-assigned according to the second rule meets a second preset condition, wherein the second preset condition is specifically as follows: and whether the re-assigned tool offset variable is greater than the assignment of the tool radius variable according to a second rule.
And if the assignment of the tool offset value variable reassigned according to the second rule is larger than the assignment of the tool radius variable, skipping to execute S52, and running a milling contour sub-macro program based on the assignments of the first macro variables and the assignments of the second macro variables to control the numerical control machine tool to finish contour machining of the tensile sample.
It can be seen that the second logic sub-macro program also produces a contour cycle of the tensile specimen, which is referred to as a finishing process. In the embodiment of the invention, in order to control the machining precision of the workpiece, precision compensation is implemented between the rough machining and the finish machining of common programs, but in the prior art, a finish machining program segment with the same feed track needs to be rewritten, so that the program length is increased. In the method of the embodiment, in the rough machining process, the tool deflection variable in the rough machining process is assigned as the sum of the assignment of the tool radius variable and the finish machining allowance, the machining allowance is reserved for the finish machining process, the flow direction function is controlled by using a logic statement, the finish machining process uses one feed contour for machining, the programming is greatly simplified, and therefore the memory is saved.
Optionally, the milling contour sub macro procedure comprises: and (4) canceling the knife deviation sub-macro program by lifting the knife and establishing the knife deviation sub-macro program by lowering the knife. And operating the cutter deviation canceling subprogram to cancel cutter deviation when the numerical control machine tool lifts the cutter, and operating the lower cutter to establish the cutter deviation subprogram to establish cutter deviation when the numerical control machine tool lowers the cutter. The processing process of the steel plate tensile sample is a processing cycle of firstly milling one side and then lifting a cutter to mill the other side, and after the cutter deviation is introduced, the system is frequently stopped by a soft overtravel alarm. In order to solve the above problems, in the method of this embodiment, the macro program is designed so that the tool offset is added when the tool is lifted and the tool offset is added when the tool is lowered, so that the tool offset adding of the macro program is a closed cutting cycle, and the problem of frequent alarm of the system due to improper timing of adding and removing the tool offset can be solved.
And step S57, operating the stop sub macro program to control the numerical control machine tool to stop processing.
And if the assignment of the tool offset value variable reassigned according to the second rule is not greater than the assignment of the tool radius variable, operating the stop sub-macro program to control the numerical control machine to stop processing, so that the processing of the tensile sample is finished.
In the above embodiment, the rough machining process and the finish machining process are automatically performed based on the loop logic, and in addition, in an alternative embodiment of the present invention, the finish machining process may be manually initiated by a user. Specifically, one embodiment of step S55 is: the operation program pauses the sub macro program, and responds to the input operation of the machining allowance parameter of the tensile sample to obtain the manual machining allowance parameter; and operating a macro variable assignment sub-macro program to reassign the tool offset value variable according to the manual machining allowance parameter.
That is to say, when the assignment of the tool offset variable is judged not to meet the second preset condition, the program is automatically suspended for measurement, the user manually inputs the machining allowance parameter, the system responds to the input operation of the user, obtains the manual machining allowance parameter, and runs the macro variable assignment sub-macro program to reassign the tool offset variable according to the manual machining allowance parameter. For example, a user determines a manual machining allowance parameter according to a specification parameter of a currently machined tensile sample and a preset target specification parameter of the tensile sample, then inputs the manual machining allowance parameter through an operation panel, the system obtains the manual machining allowance parameter, and a macro variable assignment sub-macro program is operated to assign a tool offset value variable again according to the assignment of the manual machining allowance parameter and a finishing allowance. In this way, the accuracy of the machining can be further improved.
Therefore, according to the method implemented by the invention, the macro program is used as a cutting module to be fixed, the macro program is called by the main program by changing several parameters of the main program, and the numerical control processing of the steel plate tensile samples of all specifications can be finished, so that the problem that the tensile samples of different specifications need to be programmed with different processing programs is solved; on the other hand, the dynamic change of the tool deviation parameters is realized through the macro program logic statement, the setting of the parameter change is completed in the programming stage, and the problem that the tool deviation parameters need to be manually and frequently input in the machining process is solved; on the other hand, the cutter deviation sub-macro program is set up by designing the cutter lifting and canceling the cutter deviation sub-macro program and setting the cutter deviation sub-macro program, so that the problem of cutter deviation introduction and cancellation under any conditions is solved, and the system alarm problem caused by improper cutter deviation introduction and cancellation time is avoided; on the other hand, in order to control the machining precision of the workpiece, a finish machining allowance is reserved in the rough machining process so as to carry out the finish machining processing process of precision compensation, and the flow direction function is controlled by using a logic statement, the rough machining process and the finish machining process are controlled to use the same feed contour of a macro program, programming is greatly simplified, the machining efficiency of a tensile sample is improved, meanwhile, precision compensation is added in the rough machining process, the machining size precision is effectively controlled, and the machining quality and efficiency are improved.
Fig. 6 shows a schematic flow chart of a tensile sample macro-programming algorithm in an embodiment of the present invention, and as shown in fig. 6, the algorithm flow includes:
step S60, setting variables;
and step S61, initializing a program, establishing a workpiece coordinate system, rotating the spindle and quickly positioning the approaching workpiece.
In step S62, it is determined whether #17 is greater than #7+0.5, if yes, step S63 is performed, and if no, step S66 is performed. Wherein, #17 is the tool offset value variable, #7 is the tool radius variable, and 0.5 is the finishing allowance.
Step S63, establishing logic statement rough machining: IF [ #17GT [ #5+0.5] GOTO < milling contour statement >; invoking special function (programmable parameter input validation): G10L 12P < tool offset geometry compensation number > R # 17.
Step S64, assigning a cutter offset variable and a cutter setting;
s65, establishing a cutter bias, milling a contour statement, canceling a cutter lifting by the cutter bias, and jumping to execute the step S62;
step S66, M00 suspends the measurement;
in step S67, it is determined whether #17 is greater than #7, if so, step S68 is executed, otherwise, the process ends.
Step S68, establishing logic statement finishing: IF #17GT #7 GOTO < milling contour statement >, the strip jump executes step S64.
And a second table shows that macro programs are prepared by taking a FANUC0i system numerical control vertical milling machine to process a steel plate tensile sample as an example in the embodiment of the invention, wherein O1000 is a main program, and O8000 is a macro program which is used as a cutting module and is fixed.
As shown in table two, the main program includes only 3 programs, including: establishing a coordinate system, and initializing a program; calling a macro program, and assigning macro variables; and when the operation is finished, resetting the system. The variable specification parameters of the tensile sample are clear at a glance, and the possibility of program debugging during processing by using a common program is greatly reduced.
From table two, macro program G41D 11G 01X- [ #18+ #1/2] Y [ #18+ #3/2] F150, macro program name: the bias is established and validated (node B), to the sub macro procedure "G00X-70. y100.; the name of the macro program: and returning to each sub macro program between the starting points to form a milling contour sub macro program, wherein the milling contour sub macro program is reused in a rough machining process and a finish machining process, and the milling contour sub macro program is operated to control the numerical control machine tool to finish the contour machining of the workpiece. In the macro procedure, referring to the schematic diagram of the feed trajectory shown in fig. 4, when a tool is cut down, a tool offset is established and becomes effective (node B); lifting the cutter when the cutter reaches a node F, and canceling deviation of the cutter when the cutter is lifted, so that milling of one side of the tensile sample is completed; milling the other side, wherein when the cutter is set, the cutter deviation is established and takes effect (a node E1); when the cutter reaches the node A1, the cutter is lifted, and when the cutter is lifted, the cutter deflection is cancelled.
Watch two
Figure BDA0002264914460000121
Figure BDA0002264914460000131
Figure BDA0002264914460000141
In the macro program of the embodiment of the invention, on one hand, an initial value, namely the sum of the radius value of the cutter, the machining allowance of the single side of the sample and the finish machining allowance, is assigned to the deflection variable, then the actual feed step distance is subtracted from the deflection variable and then the deflection variable is assigned to the deflection variable, and the dynamic change of the deflection parameter is realized through a macro program logic statement; on the other hand, the programmable data input G10 instruction is used for writing data into the control system, is an optional function, but is not fully paid attention in practical application, if the application is proper, the programming is greatly facilitated, the setting of parameter change is completed in a programming stage instead of manual input, the FANUC system G10 instruction and the system macroprogram instruction are matched for use in numerical control programming, a general program of the same cutting track part is programmed, and the efficient processing of the steel plate tensile sample can be realized; on the other hand, the cutter deviation is cancelled by lifting the cutter, and the cutter deviation is added by the lower cutter, namely, the macro program cutter deviation is a closed cutting cycle, so that the frequent occurrence of system soft overrun alarm shutdown is avoided; on the other hand, in order to control the machining precision of the workpiece, precision compensation is performed by using an M00 program pause instruction in the process of rough machining and finish machining of common programs, but a finish machining program segment with the same feed track needs to be rewritten, the program length is increased, a tool deflection variable can be assigned again in a macro program, the flow direction function is controlled by using logic statements, the same feed contour in the macro program is used for machining, and programming is greatly simplified.
Meanwhile, in the embodiment of the invention, the macro program is used as a cutting module to be fixed, and the numerical control processing of the steel plate tensile samples of all specifications can be finished by changing several parameters of the main program, so that the problem that the tensile samples of different specifications need to be programmed with different processing programs is solved. The application of the program written-in tool offset value variable in the macro program is adopted, and the problem that the tool offset parameter is frequently input manually in the machining process is solved. And a 'program pause instruction' is set in the macro program, the machining size precision in the process is detected, and precision compensation is implemented, so that the machining size precision is effectively controlled. The application of the tool deflection function and the circular interpolation instruction in the macro program better solves the tool connecting trace at the position of the excessive circular arc of the tensile sample in the common program processing. The problem that tensile samples of different specifications need to be compiled into different processing programs and the tool deviation parameters are input manually frequently is solved well, and the processing quality cannot be influenced by factors such as manual fatigue, negligence, proficiency and the like. The method has certain practical significance for improving the sample processing quality, improving the labor condition, shortening the processing period and ensuring the balance of input and output.
In practice, the following process route is used for processing the tensile specimens.
The first step is as follows: and calling the main program, assigning values to the variables, and pressing a start button. This step is performed manually.
The second step is that: and automatically milling the contour layer by layer. The main program automatically calls a macroprogram, and each cutting cycle is automatically written into a dynamically-changed tool offset parameter to control the machining process; and reserving a feed cycle finish machining allowance to create conditions for ensuring the geometric accuracy and the surface roughness of subsequent finish machining.
The third step: the program suspends the measurement process for machining accuracy. And manually measuring the size, and compensating according to the precision error. It should be noted that: when the first batch of machining measurement is qualified, the abrasion period of the cutter is considered, if the measurement is carried out once every 5 batches of machining, the measurement can not be carried out in the middle machining batch, the start button is pressed again to finish the finish machining, and the efficiency is improved.
The fourth step: and pressing the starting button again to automatically finish the finish machining.
The fifth step: and finally measuring and delivering the inspection, wherein the step is manually operated.
The following will explain the advantageous effects of the tensile sample processing method according to the embodiment of the present invention with specific data.
And the third table is the common processing drawing number of the steel plate tensile sample. The fourth table shows the measurement of the plate tensile specimen, the fifth table shows the measurement data of the ordinary program processed high temperature tensile specimen, and the sixth table shows the measurement data of the macro program processed high temperature tensile specimen.
Watch III
Figure BDA0002264914460000151
Figure BDA0002264914460000161
Watch four
Figure BDA0002264914460000162
Watch five
Figure BDA0002264914460000163
Watch six
Figure BDA0002264914460000171
According to the test data, the macro program is adopted to carry out actual cutting processing on the steel plate tensile samples with different specifications, compared with the common program, the macro program processing efficiency can be improved by at least 20 percent (see table four, table five and table six), and the measurement data precision and the concentration are obviously improved.
Fig. 7 shows a schematic structural view of an embodiment of the apparatus for processing a tensile specimen according to the present invention. As shown in fig. 7, the apparatus includes: an acquisition module 71 and a processing module 72.
An obtaining module 71, adapted to respond to an input operation of the specification parameters of the tensile sample, and obtain target specification parameters of the tensile sample;
a processing module 72 adapted to run a main program and a macro program through at least one processor to control the numerical control machine to perform a milling process, the macro program comprising a macro variable assignment sub-macro program and a milling contour sub-macro program;
and running the main program to assign corresponding first macro variables according to the target specification parameters of the tensile sample, calling the macro program by the main program to enable the macro variable assignment sub-macro program to assign each second macro variable according to the assignment of each first macro variable, and running the milling contour sub-macro program to finish the contour machining process of the tensile sample based on the assignment of each first variable and the assignment of each second macro variable.
In an alternative form, the target specification parameters for the tensile specimen include: the method comprises the following steps of (1) parallel part length information, blank width information, parallel part width information, cutter radius information, each cutting feed amount information and transition arc radius information;
the first macro variable includes: the length variable of the parallel section, the width variable of the head, the width variable of the parallel section, the radius variable of a cutter, the feed variable of each time and the radius variable of a transition arc;
the second macro variables include: a single-side machining allowance variable, a feed time upper integral value variable, an actual feed step distance value variable and a cutter deviation value variable.
In an alternative approach, the milling contour sub-macro procedure includes: the knife lifting cancels the knife deviation sub-macro program and the knife setting establishes the knife deviation sub-macro program;
the processing module 72 is further adapted to: the method specifically comprises the following steps of running a main program and a macro program through at least one processor to control the numerical control machine tool to finish a milling process:
and operating the cutter deviation canceling subprogram to cancel cutter deviation when the numerical control machine tool lifts the cutter, and operating the lower cutter to establish the cutter deviation subprogram to establish cutter deviation when the numerical control machine tool lowers the cutter.
In an optional manner, the macro procedure further includes: a first logic sub macro program and a run stop sub macro program;
the processing module 72 is further adapted to perform the steps of:
step S1, based on the assignment of each first macro variable and the assignment of each second macro variable, operating a milling contour sub-macro program to control the numerical control machine tool to complete the contour machining process of the tensile sample;
step S2, operating a first logic sub macro program to judge whether the assignment of the cutter offset variable meets a first preset condition, if so, executing step S3, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing;
and step S3, re-assigning the tool offset value variable according to the first rule, and jumping to step S1.
In an alternative, where the macro program further comprises a second logic sub-macro program, the processing module 72 is further adapted to perform the following steps:
if the assignment of the tool offset value variable is judged not to meet the first preset condition, executing the step S4;
step S4, the macro variable assignment sub-macro program is operated to reassign the tool offset value variable according to a second rule;
and step S5, operating a second logic sub macro program to judge whether the assignment of the tool offset value variable reassigned according to the second rule meets a second preset condition, if so, skipping to execute step S1, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing.
In an optional mode, the initial assignment of the tool offset value variable is determined according to the assignment of the tool radius variable, the assignment of the single-side machining allowance variable and the assignment of the finish machining allowance;
the processing module 72 is further adapted to: re-assigning the tool offset value variable according to the assignment of the current tool offset value variable and the assignment of the actual tool feeding step distance value variable;
and re-assigning the tool offset value variable according to the assignment of the current tool offset value variable and the assignment of the finish machining allowance.
In an alternative, where the macro routine further includes a program pause sub-macro routine, the processing module 72 is further adapted to: the operation program pauses the sub macro program, and responds to the input operation of the machining allowance parameter of the tensile sample to obtain the manual machining allowance parameter; and operating a macro variable assignment sub-macro program to reassign the tool offset value variable according to the manual work allowance parameter.
Therefore, the macro program is fixed as a cutting module, the macro program is called by the main program by changing several parameters of the main program, and the numerical control processing of the steel plate tensile samples with all specifications can be finished, so that the problem that the tensile samples with different specifications need to be programmed with different processing programs is solved; on the other hand, the dynamic change of the tool deviation parameters is realized through the macro program logic statement, the setting of the parameter change is completed in the programming stage, and the problem that the tool deviation parameters need to be manually and frequently input in the machining process is solved; on the other hand, the cutter deviation sub-macro program is set up by designing the cutter lifting and canceling the cutter deviation sub-macro program and setting the cutter deviation sub-macro program, so that the problem of cutter deviation introduction and cancellation under any conditions is solved, and the system alarm problem caused by improper cutter deviation introduction and cancellation time is avoided; on the other hand, in order to control the machining precision of the workpiece, a finish machining allowance is reserved in the rough machining process so as to carry out the finish machining processing process of precision compensation, and the flow direction function is controlled by using a logic statement, so that the rough machining process and the finish machining process are controlled to use the same feed contour of a macro program, the programming is greatly simplified, the machining efficiency of a tensile sample is improved, and meanwhile, the precision compensation is added in the rough machining process so that the machining size precision is effectively controlled.
Embodiments of the present invention provide a non-volatile computer storage medium, where at least one executable instruction is stored in the computer storage medium, and the computer executable instruction may execute the method for processing a tensile sample in any of the above method embodiments.
Fig. 8 is a schematic structural diagram of an embodiment of the electronic device according to the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 8, the electronic device may include: a processor (processor)802, a Communications Interface 804, a memory 806, and a communication bus 808.
Wherein: the processor 802, communication interface 804, and memory 806 communicate with one another via a communication bus 808. A communication interface 804 for communicating with network elements of other devices, such as clients or other servers. The processor 802, configured to execute the program 810, may specifically execute the relevant steps in the above-described embodiment of the method for processing a tensile specimen for an electronic device.
In particular, the program 810 may include program code comprising computer operating instructions.
The processor 802 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 806 stores a program 810. The memory 806 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 810 may be specifically configured to cause the processor 802 to perform the following operations:
responding to the input operation of the specification parameters of the tensile sample, and acquiring target specification parameters of the tensile sample;
running a main program and a macro program through at least one processor to control the numerical control machine tool to complete a milling process, wherein the macro program comprises a macro variable assignment sub-macro program and a milling contour sub-macro program;
and running a main program to assign corresponding first macro variables according to the target specification parameters of the tensile sample, calling the macro program by the main program to enable a macro variable assignment sub-macro program to assign each second macro variable according to the assignment of each first macro variable, and running a milling contour sub-macro program to finish the contour machining process of the tensile sample based on the assignment of each first variable and the assignment of each second macro variable.
In an alternative form, the target specification parameters for the tensile specimen include: parallel part length information, blank width information, parallel part width information, tool radius information, feed amount information per time and transition arc radius information;
the first macro variable includes: the length variable of the parallel section, the width variable of the head, the width variable of the parallel section, the radius variable of a cutter, the feed variable of each time and the radius variable of a transition arc;
the second macro variables include: a single-side machining allowance variable, a feed time upper integral value variable, an actual feed step distance value variable and a cutter deviation value variable.
In an alternative approach, the milling contour sub-macro procedure includes: the knife lifting cancels the knife deviation sub-macro program and the knife setting establishes the knife deviation sub-macro program; the program 810 causes the processor 802 to perform the following operations:
and operating the cutter deviation canceling subprogram to cancel cutter deviation when the numerical control machine tool lifts the cutter, and operating the lower cutter to establish the cutter deviation subprogram to establish cutter deviation when the numerical control machine tool lowers the cutter.
In an optional manner, the macro procedure further includes: a first logical sub-macro routine and a stop-run sub-macro routine, the routine 810 causing the processor 802 to:
step S1, based on the assignment of each first macro variable and the assignment of each second macro variable, operating a milling contour sub-macro program to control the numerical control machine tool to complete the contour machining process of the tensile sample;
step S2, operating a first logic sub macro program to judge whether the assignment of the cutter offset variable meets a first preset condition, if so, executing step S3, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing;
and step S3, re-assigning the tool offset value variable according to the first rule, and jumping to step S1.
In an alternative, the macro procedure further includes a second logical sub-macro procedure, the procedure 810 causing the processor 802 to: if the assignment of the tool offset value variable is judged not to meet the first preset condition, executing the step S4;
step S4, the macro variable assignment sub-macro program is operated to reassign the tool offset value variable according to a second rule;
and step S5, operating a second logic sub macro program to judge whether the assignment of the tool offset value variable reassigned according to the second rule meets a second preset condition, if so, skipping to execute step S1, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing.
In an optional mode, the initial assignment of the tool offset value variable is determined according to the assignment of the tool radius variable, the assignment of the single-side machining allowance variable and the assignment of the finish machining allowance; the program 810 causes the processor 802 to perform the following operations:
re-assigning the tool offset value variable according to the assignment of the current tool offset value variable and the assignment of the actual tool feeding step distance value variable;
and re-assigning the tool offset value variable according to the assignment of the current tool offset value variable and the assignment of the finish machining allowance.
In an alternative, the macro procedure further includes a procedure pause sub-macro procedure, the procedure 810 causes the processor 802 to:
the operation program pauses the sub macro program, and responds to the input operation of the machining allowance parameter of the tensile sample to obtain the manual machining allowance parameter;
and operating a macro variable assignment sub-macro program to reassign the tool offset value variable according to the manual work allowance parameter.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (9)

1. A method for processing a tensile sample, which is applied to a numerical control system, comprises the following steps:
responding to the input operation of the specification parameters of the tensile sample, and acquiring target specification parameters of the tensile sample;
running a main program and a macro program through at least one processor to control the numerical control machine tool to complete a milling process, wherein the macro program comprises a macro variable assignment sub-macro program and a milling contour sub-macro program;
the main program is operated to assign values to corresponding first macro variables according to the target specification parameters of the tensile sample, the main program calls a macro program to enable the macro variable assignment sub-macro program to assign values to all second macro variables according to the assignments of all first macro variables, and the milling contour sub-macro program is operated to complete the contour machining process of the tensile sample based on the assignments of all first variables and the assignments of all second macro variables;
wherein the macro procedure further comprises: a first logic sub macro program and a run stop sub macro program;
the operation of the main program and the macro program through at least one processor to control the numerical control machine tool to complete the milling process specifically comprises the following steps:
step S1, based on the assignment of each first macro variable and the assignment of each second macro variable, operating a milling contour sub-macro program to control the numerical control machine tool to complete the contour machining process of the tensile sample;
step S2, operating a first logic sub macro program to judge whether the assignment of the cutter offset variable meets a first preset condition, if so, executing step S3, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing;
and step S3, re-assigning the tool offset value variable according to the first rule, and jumping to step S1.
2. The method of claim 1, wherein the target gauge parameters of the tensile specimen comprise: parallel part length information, blank width information, parallel part width information, tool radius information, feed amount information per time and transition arc radius information;
the first macro variable comprises: the length variable of the parallel section, the width variable of the head, the width variable of the parallel section, the radius variable of a cutter, the feed variable of each time and the radius variable of a transition arc;
the second macro variable includes: a single-side machining allowance variable, a feed time upper integral value variable, an actual feed step distance value variable and a cutter deviation value variable.
3. The method of claim 1, wherein the milling contour sub macro procedure comprises: the knife lifting cancels the knife deviation sub-macro program and the knife setting establishes the knife deviation sub-macro program;
the operation of the main program and the macro program through at least one processor to control the numerical control machine tool to complete the milling process specifically comprises the following steps:
and operating the cutter deviation canceling subprogram to cancel cutter deviation when the numerical control machine tool lifts the cutter, and operating the lower cutter to establish the cutter deviation subprogram to establish cutter deviation when the numerical control machine tool lowers the cutter.
4. The method according to claim 1, wherein the macro procedure further comprises a second logic sub-macro procedure, and if the evaluation of the bias value variable does not satisfy the first predetermined condition, the step S4 is executed;
step S4, the macro variable assignment sub-macro program is operated to reassign the tool offset value variable according to a second rule;
and step S5, operating a second logic sub macro program to judge whether the assignment of the tool offset value variable reassigned according to the second rule meets a second preset condition, if so, skipping to execute step S1, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing.
5. The method of claim 4, wherein the initial assignment of the tool offset variable is determined based on an assignment of a tool radius variable, an assignment of a single-sided machining allowance variable, and an assignment of a finishing allowance;
the assigning the tool offset value variable again according to the first rule specifically includes: re-assigning the tool offset value variable according to the assignment of the current tool offset value variable and the assignment of the actual tool feeding step distance value variable;
the re-assigning the tool offset value variable according to the second rule specifically includes: and re-assigning the tool offset value variable according to the assignment of the current tool offset value variable and the assignment of the finish machining allowance.
6. The method of claim 4, wherein the macro procedure further comprises a program pause sub-macro procedure, and wherein the running the macro variable assignment sub-macro procedure to reassign the tool offset variable according to the second rule further comprises:
the operation program pauses the sub macro program, and responds to the input operation of the machining allowance parameter of the tensile sample to obtain the manual machining allowance parameter;
and operating a macro variable assignment sub-macro program to reassign the tool offset value variable according to the manual work allowance parameter.
7. A tensile specimen processing device is applied to a numerical control system and comprises:
the acquisition module is suitable for responding to the input operation of the specification parameters of the tensile sample and acquiring the target specification parameters of the tensile sample;
the machining module is suitable for running a main program and a macro program through at least one processor so as to control the numerical control machine tool to complete a milling process, and the macro program comprises a macro variable assignment sub-macro program and a milling contour sub-macro program;
the main program is operated to assign values to corresponding first macro variables according to the target specification parameters of the tensile sample, the main program calls a macro program to enable the macro variable assignment sub-macro program to assign values to all second macro variables according to the assignments of all first macro variables, and the milling contour sub-macro program is operated to complete the contour machining process of the tensile sample based on the assignments of all first variables and the assignments of all second macro variables;
wherein the macro procedure further comprises: a first logic sub macro program and a run stop sub macro program;
the processing module is further adapted to perform the steps of:
step S1, based on the assignment of each first macro variable and the assignment of each second macro variable, operating a milling contour sub-macro program to control the numerical control machine tool to complete the contour machining process of the tensile sample;
step S2, operating a first logic sub macro program to judge whether the assignment of the cutter offset variable meets a first preset condition, if so, executing step S3, and if not, operating a stop sub macro program to control the numerical control machine tool to stop processing;
and step S3, re-assigning the tool offset value variable according to the first rule, and jumping to step S1.
8. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform operations corresponding to the method of processing a tensile specimen of any one of claims 1-6.
9. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the method of processing a tensile specimen of any one of claims 1-6.
CN201911084323.2A 2019-11-07 2019-11-07 Method and device for processing tensile sample Active CN110806725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911084323.2A CN110806725B (en) 2019-11-07 2019-11-07 Method and device for processing tensile sample

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911084323.2A CN110806725B (en) 2019-11-07 2019-11-07 Method and device for processing tensile sample

Publications (2)

Publication Number Publication Date
CN110806725A CN110806725A (en) 2020-02-18
CN110806725B true CN110806725B (en) 2021-03-12

Family

ID=69501808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911084323.2A Active CN110806725B (en) 2019-11-07 2019-11-07 Method and device for processing tensile sample

Country Status (1)

Country Link
CN (1) CN110806725B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111804932B (en) * 2020-05-25 2022-10-18 山西太钢不锈钢股份有限公司 Method for turning tensile samples with different feed profiles by using macro program
CN113720695A (en) * 2021-08-08 2021-11-30 山西太钢不锈钢股份有限公司 Method for continuously processing rectangular tensile samples of different specifications in four stations
CN114888641B (en) * 2022-05-26 2023-08-01 中国机械总院集团北京机电研究所有限公司 Workpiece processing method and equipment thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102390020A (en) * 2011-09-30 2012-03-28 吉林建龙钢铁有限责任公司 Clamping device of numerical control vertical milling machine
WO2015189659A1 (en) * 2014-06-11 2015-12-17 Saint-Gobain Centre De Recherches Et D'etudes Europeen Ceramic product with oriented particles and method for the production thereof

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6955716B2 (en) * 2002-03-01 2005-10-18 American Dental Association Foundation Self-hardening calcium phosphate materials with high resistance to fracture, controlled strength histories and tailored macropore formation rates
US20030201167A1 (en) * 2002-04-24 2003-10-30 Gleeson William Stanley Pressurized electro-hydraulic processing means
US20050020945A1 (en) * 2002-07-02 2005-01-27 Tosaya Carol A. Acoustically-aided cerebrospinal-fluid manipulation for neurodegenerative disease therapy
CN101414167A (en) * 2008-11-25 2009-04-22 天津第一机床总厂 Setting and program of machining cylindrical gear man-machine conversation interface of digital control gear shaper
CN101550514B (en) * 2009-05-15 2011-04-13 东北大学 Hot-rolling transformation-induced plasticity steel plate and preparation method thereof
JP5609223B2 (en) * 2010-04-09 2014-10-22 Jfeスチール株式会社 High-strength steel sheet with excellent warm workability and manufacturing method thereof
CN102887478B (en) * 2011-07-20 2015-09-09 厦门大学 Based on micro-nano processing method and the device thereof of the functional material of electrochemical micro-nano system
CN202779963U (en) * 2012-09-04 2013-03-13 连云港三重机械有限公司 Numerical control machine tool for processing tensile sample of steel plate
CN203606208U (en) * 2013-11-20 2014-05-21 衡阳华菱钢管有限公司 Automatic clamp for machining pipe fitting tensile sample
CN103695765A (en) * 2013-12-11 2014-04-02 蔡志辉 Cold-rolled medium manganese steel with high strength and high plasticity and preparation method thereof
CN105033998B (en) * 2015-09-15 2017-05-10 南京航空航天大学 Intelligent flexible production line based on automatic robot assembling and operating method thereof
EP3615196A1 (en) * 2017-04-28 2020-03-04 Blueshift Materials, Inc. Macroporous-structured polymer aerogels
CN107544429B (en) * 2017-09-28 2020-02-07 中国航发动力股份有限公司 Method for preventing numerical control machining tool setting value and tool compensation value from being input wrongly
CN107971534B (en) * 2017-11-24 2019-03-22 中国航发沈阳黎明航空发动机有限责任公司 A kind of processing method of circumference high-efficient milling Deformation control
CN107942950A (en) * 2017-12-04 2018-04-20 中国航发南方工业有限公司 Blind threaded processing control method, control device, processor and storage medium
CN107976371A (en) * 2018-01-24 2018-05-01 中国石油工程建设有限公司 Curved straight fatigue experimental device and test method based on strain controlling
CN108956283A (en) * 2018-08-08 2018-12-07 东南大学 A kind of the dynamic tensile test fixture and test method of countersunk head sheet test specimen

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102390020A (en) * 2011-09-30 2012-03-28 吉林建龙钢铁有限责任公司 Clamping device of numerical control vertical milling machine
WO2015189659A1 (en) * 2014-06-11 2015-12-17 Saint-Gobain Centre De Recherches Et D'etudes Europeen Ceramic product with oriented particles and method for the production thereof

Also Published As

Publication number Publication date
CN110806725A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN110806725B (en) Method and device for processing tensile sample
JP4680176B2 (en) Machine tool control method and apparatus therefor
JP5193598B2 (en) Method for creating CNC machine tool control program, computer program for executing said method, method for producing workpiece and workpiece production CNC program
Eremeykin et al. A software system for thin-walled parts deformation analysis
CN110531699B (en) Method for automatically measuring and setting workpiece plane by machine tool measuring head
Melnyk et al. Tooling constraints and shop floor scheduling: a simulation study
KR20100068535A (en) Experience-based nc-programming based on machining features
CN107818051B (en) Test case jump analysis method and device and server
Hutchinson The control of flexible manufacturing systems: required information and algorithm structures
Pagone et al. The effect of operational policies on production systems robustness: an aerospace case study
Afifi et al. Non-productive tool path optimisation of multi-tool part programmes
Fischer et al. Reuse Assessment of IEC 61131-3 Control Software Modules Using Metrics–An Industrial Case Study
CN110914774B (en) Design information generation device and design support system
JP2017157194A (en) Numerical controller for machine tool
Diyachenko et al. Features of development of control programs by means of the modular description of elementary forms
CN111804932B (en) Method for turning tensile samples with different feed profiles by using macro program
CN116736791A (en) Machining method, device, equipment and storage medium of numerical control machine tool
Dodok et al. Application of strategy manager tools for optimized NC programming
Kunakov et al. Applicability of Quality Metrics and New Approaches to the PDCA Cycle in Improving Quality Control and Management Systems Applied in Aircraft Manufacturing Processes
Inoue et al. Practical approach to flexible job shop scheduling with tool switching constraints using quantum annealing
Nikiel Computer-aided CNC programming for the machining of non-typical parts
Uski et al. Will Model-based Definition Accelerate the Inspection Phase in the Manufacturing Process?
CN115793567A (en) Numerical control method based on error prevention and prevention function
Eldessouky et al. Closed loop CNC machining and inspection of interlinked manufacturing features for “Right First Time” production
CN117348520A (en) Numerical control machining zero error prevention and control method

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
CB02 Change of applicant information

Address after: 030003, Shanxi, Taiyuan, pointed lawn area, lawn street, No. 2

Applicant after: Shanxi Taigang Stainless Steel Co.,Ltd.

Address before: 030003 Taiyuan science and technology center, Shanxi 2

Applicant before: Shanxi Taigang Stainless Steel Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant