CN115629569B - Machine tool control method and system - Google Patents

Machine tool control method and system Download PDF

Info

Publication number
CN115629569B
CN115629569B CN202211662667.9A CN202211662667A CN115629569B CN 115629569 B CN115629569 B CN 115629569B CN 202211662667 A CN202211662667 A CN 202211662667A CN 115629569 B CN115629569 B CN 115629569B
Authority
CN
China
Prior art keywords
tool
cutter
machine tool
machining
model
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
CN202211662667.9A
Other languages
Chinese (zh)
Other versions
CN115629569A (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.)
Hi P Chengdu Precision Plastic Manufacturing Co ltd
Original Assignee
Hi P Chengdu Precision Plastic Manufacturing 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 Hi P Chengdu Precision Plastic Manufacturing Co ltd filed Critical Hi P Chengdu Precision Plastic Manufacturing Co ltd
Priority to CN202211662667.9A priority Critical patent/CN115629569B/en
Publication of CN115629569A publication Critical patent/CN115629569A/en
Application granted granted Critical
Publication of CN115629569B publication Critical patent/CN115629569B/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/19Numerical 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 positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path
    • 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/35349Display part, programmed locus and tool path, traject, dynamic locus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application relates to a machine tool control method and a system, wherein the machine tool control method comprises the following steps: acquiring length information of each cutter in a cutter library of the machine tool; performing trial processing on the model by using each cutter in the cutter library; and correcting the length information of the cutter according to the size result of the trial machining. According to the technical scheme, the model is subjected to trial machining by using the cutters in the cutter library before actual machining, the length information of the cutters can be automatically corrected, the machining error of the machine tool is reduced, and the machining precision of the machine tool is improved.

Description

Machine tool control method and system
Technical Field
The application relates to the technical field of numerical control machine tools, in particular to a machine tool control method and system.
Background
The numerical control machine tool is a short name of a digital control machine tool (Computer numerical control machine tools), and is an automatic machine tool provided with a program control system. The control system is capable of logically processing and decoding a program defined by a control code or other symbolic instructions, which are represented by coded numbers, which are input to the numerical control device via the information carrier. After operation, the numerical control device sends out various control signals to control the action of the machine tool, and the parts are automatically machined according to the shape and the size required by the drawing. The machining center of the numerical control machine tool often generates larger errors when machining parts, particularly the errors generated by the Z axis are most obvious, such as the repeated positioning error of the machine tool, the error of a main shaft of the machine tool, the error of a tool holder, the error of a tool setting gauge, the error of a tool and even the temperature of a workshop all influence the machining precision of a final product. When the precision requirement is increased to the micron level, the error is particularly obvious, and how to solve the problem of high-precision machining in the Z direction is always a difficult problem.
Disclosure of Invention
In view of the above technical problems, the present application provides a machine tool control method and system, which can automatically correct length information of a tool by performing trial machining on a model using each tool in a tool library before actual machining, reduce machining errors of a machine tool, and improve machining accuracy of the machine tool.
In order to solve the above technical problem, the present application provides a machine tool control method, including:
acquiring length information of each cutter in a cutter library of the machine tool;
performing trial machining on the model by using each cutter in the cutter library;
and correcting the length information of the cutter according to the size result of the trial machining.
Optionally, before obtaining the length information of each tool in the tool magazine of the machine tool, the method further includes:
thermomechanical treatment of the machine tool.
Optionally, said thermomechanical treatment of said machine tool comprises:
and controlling the machine tool to circularly perform three-axis linkage according to preset parameters until the parameters of the machine tool reach a preset state.
Optionally, the preset parameters include at least one of a spindle rotation speed, a feed speed and a three-axis moving speed of the machine tool in an actual machining environment; the preset state includes that the oscillation quantity and/or the temperature of the machine tool are/is in a preset range.
Optionally, the acquiring length information of each tool in a tool library of the machine tool includes:
and respectively carrying out tool setting treatment on each tool in the tool magazine to obtain the length information of each tool.
Optionally, the respectively performing tool setting processing on each tool in the tool magazine includes:
controlling a main shaft of the machine tool to rotate at an actual processing rotating speed and then pausing;
after the main shaft is paused for a preset time, carrying out tool setting treatment on a tool currently installed on the main shaft so as to obtain length information of the tool;
and if a tool which is not subjected to tool setting treatment exists, changing the tool, and returning to the step of controlling the main shaft of the machine tool to rotate at the actual processing rotating speed and then pausing.
Optionally, the trial machining of the model by using each tool in the tool magazine includes:
providing a model, and enabling the side to be processed of the model to face the cutter;
and sequentially controlling the cutters in the cutter library to perform trial cutting on the side to be machined of the model according to a preset machining depth so as to form grooves corresponding to the cutters one by one on the side to be machined of the model.
Optionally, the correcting the length information of the tool according to the size result of the trial machining includes:
acquiring the depth of a groove formed by trial cutting of a target cutter in the cutter library on the model as a reference depth; comparing the depth of the groove formed by the other cutters in the cutter library in the trial cutting of the model with the reference depth, and determining the cutter length correction value corresponding to the other cutters; correcting the length information of the cutter corresponding to the cutter length correction value according to the cutter length correction value; alternatively, the first and second electrodes may be,
comparing the depth of a groove formed by trial cutting of each cutter in the cutter library on the model with the preset processing depth, and determining a cutter length correction value corresponding to each cutter; and respectively correcting the length information of the corresponding cutter according to the cutter length correction value.
Optionally, obtaining the depth of each groove includes:
and driving an infrared measuring probe to respectively measure the depth of each groove formed on the model through trial cutting.
The present application further provides a machine tool control system, comprising: a memory, and a processor, wherein the memory has stored thereon a machine tool control program that, when executed by the processor, implements the steps of the machine tool control method described above.
The machine tool control method of the present application includes: acquiring length information of each cutter in a cutter library of the machine tool; performing trial processing on the model by using each cutter in the cutter library; and correcting the length information of the cutter according to the size result of the trial machining. According to the technical scheme, the model is subjected to trial machining by using the cutters in the cutter library before actual machining, the length information of the cutters can be automatically corrected, the machining error of the machine tool is reduced, and the machining precision of the machine tool is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more clearly understood, the following preferred embodiments are specifically described in detail with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a flow diagram illustrating a method of controlling a machine tool according to one embodiment.
FIG. 2 is a flow diagram illustrating a thermomechanical process, according to one embodiment.
FIG. 3 is a schematic diagram illustrating an interface of system software during a thermal engine process, according to one embodiment.
Fig. 4 is a flow diagram illustrating tool setting processing according to an embodiment.
Fig. 5 is a schematic interface diagram of system software in a tool setting process according to an embodiment.
FIG. 6 is a schematic diagram illustrating a scenario of a trial machining process, according to one embodiment.
FIG. 7 is a schematic diagram illustrating a scenario of groove depth measurement according to an embodiment.
FIG. 8 is a diagram illustrating an interface of system software during tool error correction, according to one embodiment.
Description of reference numerals:
130. a first parameter; 127. a second parameter;
128. a first parameter list; 110. a second parameter list; 111 a third parameter list; 129. a fourth parameter list;
121. a knife handle; 122. a cutter; 123. trial cutting of the model; 124. a groove; 125. an infrared probe; 126. trial cut grooves machined with a standard tool No. 1.
Detailed Description
The following description of the embodiments of the present application is provided for illustrative purposes, and other advantages and capabilities of the present application will become apparent to those skilled in the art from the present disclosure.
In the following description, reference is made to the accompanying drawings that describe several embodiments of the application. It is to be understood that other embodiments may be utilized and that mechanical, structural, electrical, and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description is not to be taken in a limiting sense, and the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Although the terms first, second, etc. may be used herein to describe various elements in some instances, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
Fig. 1 is a flow diagram illustrating a method of controlling a machine tool according to one embodiment. As shown in fig. 1, a machine tool control method according to an embodiment of the present application includes:
step 201: acquiring length information of each cutter in a cutter library of a machine tool;
step 202: performing trial processing on the model by using each cutter in the cutter library;
step 203: and correcting the length information of the cutter according to the size result of the trial machining.
In the machine tool of the present embodiment, all the tools are set in advance to perform trial machining on the mold before the actual machining of the part, and the actual error of each tool is presented on the model. And then, automatically acquiring the machining size of each cutter on the model, determining an error according to the machining size, inputting the error into a cutter table, and correcting the length information of the cutter, so that the machining error in the Z axis can be reduced, and the machining precision of the machine tool is improved.
Optionally, before obtaining the length information of each tool in the tool library of the machine tool, the method further includes:
and carrying out thermomechanical treatment on the machine tool.
Optionally, the machine tool is subjected to a thermomechanical process comprising:
and controlling the machine tool to circularly perform three-axis linkage according to the preset parameters until the parameters of the machine tool reach a preset state.
Optionally, the preset parameters include at least one of a spindle rotation speed, a feed speed and a three-axis moving speed of the machine tool in an actual machining environment; the preset state includes that the oscillation amount and/or the temperature of the machine tool are within a preset range.
In order to maintain the thermal stability of the machine tool and prevent the precision of the machine tool from generating large deviation, a heat engine program needs to be written to carry out heat engine processing on the machine tool to lay a foundation for correcting the precision error in the Z direction. As shown in fig. 2, in order to simulate the actual machining environment of a machine tool, the thermo-mechanical process of the present application includes: the main shaft is used for taking a cutter, and setting a rotating speed and a cutting speed which are consistent with the actual processing environment of the machine tool. The spindle is then started to rotate and the cutting fluid is turned on. It should be noted that the cutting fluid is an industrial fluid used for cooling and lubricating tools and workpieces in metal cutting and grinding processes. Then, after the main shaft returns to the highest point, the mark point of the cycle start is determined in the heat engine program. And controlling the X axis and the Y axis of the machine tool to move back and forth between the maximum stroke and the minimum stroke, and finishing the heat engine program after the step is circularly executed 100 times. The spindle returns to the highest point of safety. The three-axis linkage of the machine tool is realized according to the feeding speed of the machine tool during actual processing, and the cyclic movement is not stopped until the parameters of the machine tool, such as the oscillation quantity and/or the temperature, tend to be stable. The conventional heat engine is only simple to carry out three-axis motion, and the heat engine is carried out through simulating the parameters of the actual machining environment, so that the stability of machine tool data is more facilitated, and the error caused by the machine tool environment parameters during machining of the machine tool is reduced.
The following code is extracted from a thermomechanical processing program written based on the midkrod machine heidham system. Of course, the machine tool control method and related programming method of the present application are not limited to the Mikrang machine tool and Heidenhain system, and are applicable to all CNC machining center systems.
Example thermomechanical processing program code:
0 BEGIN PGM WARMUP MM
1 TOOL CALL 3 Z S10000 F3000
2 M3
3 M8
4 M140 MB MAX
5 LBL 1
6 L X-240 Y+600 Z-50 F AUTO M91
7 L X-800 Y+48 Z-250 F AUTO M91
8 CALL LBL 1 REP100
9 M140 MB MAX
10 END PGM WARMUP MM
in the above-described thermo-engine processing program code: program segment number 0 indicates the beginning of the heat engine program; the program segment number 1 indicates that the No. 3 cutter is replaced, and the rotating speed is defined as S10000 and the feeding speed is defined as F3000; program segment number 2 indicates control of spindle rotation; block number 3 indicates control of the cutting fluid; the program segment number 4 indicates that the Z axis is controlled to return to the highest point; program segment number 5 indicates the definition of loop start flag 1; the program segment number 6 represents that the machine tool is controlled to move towards the positive direction in a three-axis linkage manner; the program segment number 7 represents that the machine tool is controlled to move in the negative direction in the three axial directions; the program segment number 8 indicates that returning to the mark 1 and circulating 100 times, the program segment can automatically stop midway after the temperature data area is stabilized; program segment number 9 indicates that the Z-axis is back to the highest point; block number 10 indicates the end of the heat engine process.
During actual operation, the machine tool is started under the condition that the workshop is kept at a constant temperature, and after the self-checking of the machine tool is finished, parameters such as the rotating speed of a main shaft, the feeding speed and the three-axis moving distance in a heat engine program are adjusted to be matched with an actual processing environment. And starting a heat engine program, simulating an actual machining environment until the parameters of the machine tool reach a preset state, wherein the preset state comprises that the oscillation amount and/or the temperature of the machine tool are within a preset range, for example, the preset range can be that the first parameter 130 (oscillation amount) in fig. 3 is less than 1G and the variation error is within + -0.2G, and/or the second parameter 127 (temperature) is less than 80 ℃ and the variation error is within + -3 ℃, so that the machine tool is in a stable state.
Optionally, step 201 acquires length information of the tool in the tool magazine of the machine tool, including:
and respectively carrying out tool setting treatment on each tool in the tool magazine to obtain the length information of each tool.
Optionally, the processing of the tool setting is performed on each tool in the tool magazine, including:
controlling a main shaft of the machine tool to rotate at an actual processing rotating speed and then pausing;
after the spindle is paused for a preset time, carrying out tool setting treatment on a tool currently installed on the spindle to obtain length information of the tool;
and if the tool which is not subjected to tool setting treatment exists, changing the tool, and returning to the step of controlling the main shaft of the machine tool to rotate at the actual processing rotating speed and then suspending.
In the embodiment, the tool setting program can be written to automatically finish the tool setting in the tool magazine at one time, so that the tool length parameters generated by the tools in the same environment are relatively accurate. Tool setting is a professional term of a numerical control machine tool, and means that tool length data are obtained by using tool setting equipment and are input into a tool length table of the machine tool. The following code is extracted from a continuous tool setting macro program written based on the Mikroon machine tool Heidenhain system, and the tool length information can be written into a tool table through macro naming at one time.
Tool setting program code exemplifies:
0 BEGIN PGM Measure_L&R MM
1 FN 0: Q1 =+1
2 FN 0: Q2 =+39
3 FN 1: Q3 =+Q2 + +1
4 LBL 99
5 TOOL CALL Q1 Z S30000
6 CYCL DEF 9.0 DWELL TIME
7 CYCL DEF 9.1 DWELL 30
8 TCH PROBE 583 TOOL SETTING LEN ~
Q350=+0;MEASURING TYPE ~
Q361=+3;NUMBER OF MEASURINGS~
Q362=+0.01 ;SCATTER TOLERANCE ~
Q359=+0;ADD. LENGTH CORRECT.
9 FN 1: Q1 =+Q1 + +1
10 FN 12: IF +Q1 LT +Q3 GOTO LBL 99
11 END PGM Measure_L&R MM
in the above tool setting program code: the program segment number 0 indicates the start of the tool setting program; the program segment number 1 represents a definition variable Q1 and is assigned with 1, namely, the tool setting is started from the standard tool No. 1; program segment number 2 indicates the definition parameter Q2 and the assignment 39; the program segment number 3 indicates that a variable Q3 is defined, Q3 being the number of all cutters, i.e. Q2+1=40 cutters; program segment number 4 indicates a loop flag 99; the program segment number 5 indicates that a tool with the number Q1 is taken from the tool magazine (the first cycle is 1), and the rotating speed is defined as the actual machining rotating speed (for example, 30000 revolutions); program segment number 6 indicates a pause loop; the program segment number 7 represents that the spindle is paused for 30 seconds before tool setting to wait for dynamic balance of the spindle; the program segment number 8 indicates the run-to-knife subroutine: driving the machine tool to a self tool setting gauge (such as a laser tool setting gauge) to acquire length data and input the length data into a tool table of the machine tool; the program segment number 9 indicates that the variable Q1 is added with 1 and the cutter numbers are accumulated once per cycle of the program; the program segment number 10 indicates that when the variable Q1 is smaller than Q3, the position of a cycle mark LBL99 is jumped to, and 40 cutters can be finished in one time after 40 cycles in total; the block number 11 indicates the end of the tool setting routine.
Referring to fig. 4, in the tool setting procedure, variables Q1, Q2, and Q3 are defined respectively. Q1 is assigned 1 as a variable of the tool number, Q2 is assigned 39 as the tool number to be measured finally, and Q3 is assigned Q2+1 as a condition for the loop judgment statement. And then determining a mark point at the beginning of the cycle, pausing for 30 seconds, and after the spindle rotates to reach dynamic balance, acquiring length data of the tool through the tool setting gauge and inputting the length data into the machine tool. Then adding 1 to Q1, and changing the cutter to continuously acquire the length data of the next cutter. The tool changing process is to place the tool on the main shaft of the machine tool into the corresponding position of the tool magazine and then grab a required tool from the tool magazine. If the current cutter number Q1 is smaller than Q3, the cutter is set circularly until the current cutter number Q1 is larger than or equal to Q3, and the cutter setting procedure is ended. According to the tool setting program, the main shaft is rotated and is suspended for 30 seconds before the tool is set for each tool, so that the tool is set after the main shaft reaches dynamic balance, the instability caused by conventional direct tool setting is broken, and the tool setting error is reduced to the minimum.
In actual operation, tool setting is prepared under the condition of sufficient heat engine, a tool setting macro program 'BEGIN PGM MEASURE _ L & R MM' stored in a machine tool is operated, the tool is paused for 30 seconds under the condition that a main shaft rotates before each tool is detected, and the tool length is detected after the main shaft is dynamically balanced. During the program running process, the required tools are detected one by one, and the tool length is written into the corresponding position of the first parameter list 128 in fig. 5, so that the tool setting process is completed.
Optionally, step 202 performs trial machining on the model by using each tool in the tool library, including:
providing a model, and enabling the side to be processed of the model to face a cutter;
and sequentially controlling the cutters in the cutter library to perform trial cutting on the side to be machined of the model according to the preset machining depth so as to form grooves corresponding to the cutters on the side to be machined of the model.
In the embodiment, errors of the tool setting gauge, the tool holder, the machine tool and the like can cause errors in the size of a machined part, and in order to improve machining precision, the conventional trial cutting is directly machined on the part, so that the size is often out of tolerance and a large amount of time is wasted. Therefore, the trial cutting model is designed, the Z axis of the machine tool is subjected to trial cutting on the model before a part is machined, machining errors are expressed in advance, and the machining errors can be measured.
And after the tool setting process is finished, trial cutting is carried out, so that the actual machining condition of each tool is reflected. As shown in fig. 6, a trial cutting model 123 is provided, which may be a rectangular copper block, and the size of the trial cutting model can be adjusted according to actual needs. And then, programming a processing program by using conventional numerical control programming software such as UG (Unigraphics) and processing one groove 124 by each cutter one by one to prepare for the next detection. Specifically, the tool 122 is loaded into the tool holder 121, and the tools 122 in the tool magazine are controlled according to a preset machining depth to perform trial cutting on the side to be machined of the trial cutting model 123 in sequence, so that the grooves 124 corresponding to the tools 122 one to one are formed on the side to be machined of the trial cutting model 123. In fig. 6, 40 grooves 124 with the same height are shown, clearly corresponding to 40 cutters in the magazine, and the actual number of grooves 124 can be increased or decreased according to the actual number of cutters. In theory, 40 grooves are machined to be as high, but actually, the machining is influenced by various factors to generate an error, and the error is just the Z-axis error to be corrected.
Optionally, step 203 corrects the length information of the tool according to the size result of the trial machining, and includes:
acquiring the depth of a groove formed by trial cutting of a target cutter in a cutter library on a model as a reference depth; comparing the depth of the groove formed by the other cutters in the cutter library in the trial cutting of the model with a reference depth, and determining the cutter length correction value corresponding to the other cutters; respectively correcting the length information of the corresponding cutter according to the cutter length correction value; alternatively, the first and second electrodes may be,
comparing the depth of a groove formed by trial cutting of each cutter in the cutter library on the model with a preset processing depth, and determining a cutter length correction value corresponding to each cutter; and respectively correcting the length information of the corresponding cutter according to the cutter length correction value.
Optionally, obtaining the depth of each groove comprises:
and driving an infrared measuring probe to respectively measure the depth of each groove formed on the model through trial cutting.
In the embodiment, the automatic acquisition and correction of the error of the cutter are realized through automatic data acquisition and correction programs, and the advance prejudgment and the advance correction of the error of the cutter are realized. As shown in fig. 7, the infrared probe 125 is driven to detect the groove 124 which is cut by each tool in a trial manner, then the depth of the groove 124 is collected as the actual machining size data of each tool, the collected data is compared with the depth of the trial cutting groove 126 which is machined by the standard tool No. 1, and the error data of each other tool is calculated. And then, the error value is written into a tool length table of the machine tool through a program macro command to carry out compensation correction, so that the actual machining error of the tool is corrected before a part is machined, and the aim of automatically correcting the Z-axis precision is fulfilled.
The following code is extracted from the automatically detected and automatically corrected macro program code written based on the Mikroon machine tool Heidenhain system:
0 BEGIN PGM TOOL-OFFEST MM
1 TOOL CALL 41 Z S50
2 LBL 1
3 FN 0: Q1 =-35
4 FN 0: Q2 =+20
5 FN 0: Q3 =+1
6 LBL 2
7 FN 0: Q1 =-35
8 LBL 3
9 TCH PROBE 417 DATUM IN TS AXIS ~
Q263=+Q1;1ST POINT 1ST AXIS ~
Q264=+Q2;1ST POINT 2ND AXIS ~
Q294=+0;1ST POINT 3RD AXIS ~
Q320=+0;SET-UP CLEARANCE ~
Q260=+30;CLEARANCE HEIGHT ~
Q305=+Q3;NUMBER IN TABLE ~
Q333=+0 ;DATUM ~
Q303=+1;MEAS. VALUE TRANSFER
10 FN 1: Q3 =+Q3 + +1
11 FN 1: Q1 =+Q1 + +10
12 CALL LBL 3 REP7
13 FN 2: Q2 =+Q2 - +10
14 CALL LBL 2 REP4
15 FN 18: SYSREAD Q1 = ID503 NR1 IDX3
16 FN 0: Q11 =+2 ;TOOL.NO.
17 LBL 11
18 FN 18: SYSREAD Q2 = ID503 NRQ11 IDX3
19 FN 2: Q3 =+Q2 - +Q1
20 FN 17: SYSWRITE ID 50 NR4 IDXQ11 =+Q3
21 FN 1: Q11 =+Q11 + +1
22 CALL LBL 11 REP38
23 END PGM TOOL-OFFEST MM
in the macro program code for automatic detection and automatic correction, the following steps are performed: program number 0 indicates starting the tool correction program; program number 1 indicates that No. 41 infrared probe 125 is called to prepare for inspection and data acquisition; program number 2 indicates a loop flag 1; the program number 3 indicates that the variable Q1 is defined as X offset from the center of the trial cutting groove 126 of the standard tool No. 1, which is convenient for the measuring head to find the position; program number 4 indicates the bias in the Y direction from the center of the trial cutting groove 126 of the standard tool No. 1 defining the variable Q2; program number 5 indicates that the detection data defining the variable Q3 as the No. 1 standard cutter is stored in the No. 1 parameter; program number 6 indicates a loop flag 2; program number 7 indicates a start position where Q1 is defined as the first detection of the infrared probe 125; program number 8 indicates a loop flag 3; program number 9 indicates that the infrared probe 125 is operated to collect groove data and input the groove data into the storage table; program number 10 indicates parameter calculation for the purpose of putting the machining data of each tool in the corresponding parameter; program number 11 indicates parameter calculation for causing the infrared probe 125 to automatically and laterally shift by 10 mm to detect the next detection point; program number 12 indicates that the program is transversely recirculated 7 times, and the first row of 8 grooves 124 on the trial cutting model 123 is detected; program number 13 indicates a parameter calculation for the purpose of measuring the second row of 8 grooves 124 by longitudinally offsetting the infrared probe 125 by 10 mm; program number 14 indicates that the program is moved in a longitudinal cycle 4 times to complete the detection of 5 rows and 8 rows of 40 grooves 124; program number 15 indicates reading of size data for standard tool machining No. 1; program number 16 indicates that the parameter Q11 is defined as tool No. 2; program number 17 indicates a loop flag 11; program number 18 indicates reading of the size data of the No. 2 tool machining; program number 19 indicates the difference in size after the comparison processing with the standard tool No. 1 using the tool No. 2; program number 20 indicates that the error value is input into the No. 2 tool table for correction by writing in a name; program number 21 indicates parameter calculation, and error calculation of the next tool is performed; program number 22 represents fixed cycle 38 times, and the remaining 38 cutters are sequentially calculated and written into the corresponding cutter table for correction; program number 23 indicates the end of the program.
It should be noted that, in this embodiment, first, the infrared measurement head 125 in the machine tool is called, the grooves 124 to be machined by each tool are measured one by one, then, the measurement data are stored one by one in the second parameter list 110 in fig. 8, and the numbers of the third parameter list 111 correspond to the tool numbers. The data of the trial cutting groove 126 processed by the standard tool No. 1 is used as a base number, the data of the standard tool No. 1 is subtracted one by one from the data of the groove 124 processed by the following other tools, and then the obtained error value is correspondingly written into the tool table of fig. 5, and specifically written into the fourth parameter list 129 of the tool table shown in fig. 5 (the fourth parameter list 129 is a correction value for tool length compensation). The specific calculation process takes tool No. 2 (NR = 2) in fig. 8 as an example: the second parameter list 110 in fig. 8 corresponds to the tool number two machining data of-78.818, minus the data of the standard tool number 1-78.8133 is equal to-0.0047, and then-0.0047 is written into the tool table in fig. 5, specifically, into the second row in the fourth parameter list 129 in fig. 5. Alternatively, the depth of the groove 124 formed by each tool in the tool library in the trial cutting of the model may be compared with the preset machining depth, for example, subtracted, to obtain the correction value of the length compensation of each tool. The process is completely realized by collecting data and inputting the data into corresponding table parameters through commands in a macroprogram without manual operation. At the moment, the automatic correction of the Z-axis machining precision error is completed, the problem that the correction can be carried out afterwards according to the quality degree of machined parts in the past is solved, meanwhile, the problem of uncertainty caused by manual input of correction values is solved, the first-time qualified rate and the overall yield of products are improved, and the automatic correction of the error is realized.
The machine tool control method of the embodiment of the application comprises the following steps: acquiring length information of each cutter in a cutter library of a machine tool; performing trial processing on the model by using each cutter in the cutter library; and correcting the length information of the cutter according to the size result of the trial machining. The length information of the cutter can be automatically corrected through trial processing of the cutter of the machine tool, so that the processing error of the machine tool is reduced, and the processing precision of the machine tool is improved.
The embodiment of the present application further provides a machine tool control system, and the machine tool control system includes: the machine tool control method comprises a memory and a processor, wherein the memory stores a machine tool control program, and the machine tool control program realizes the steps of the machine tool control method when being executed by the processor.
All the above embodiments are only specific embodiments of the present application for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and any person skilled in the art can make equivalent modifications or substitutions to the technical solutions described in the above embodiments within the scope defined by the claims of the present application.

Claims (7)

1. A machine tool control method, comprising:
acquiring length information of each cutter in a cutter library of the machine tool;
performing trial machining on the model by using each cutter in the cutter library;
correcting the length information of the cutter according to the size result of the trial machining;
before the length information of each tool in the tool magazine of the machine tool is obtained, the method further comprises the following steps:
thermomechanical treatment of the machine tool;
said thermomechanical treatment of said machine tool comprising:
controlling the machine tool to circularly perform three-axis linkage according to preset parameters simulating an actual machining environment until the parameters of the machine tool reach a preset state;
the acquiring length information of each tool in a tool magazine of the machine tool includes:
and respectively carrying out automatic tool setting treatment on each tool in the tool magazine to obtain the length information of each tool.
2. The machine tool control method according to claim 1, wherein the preset parameter includes at least one of a spindle rotation speed, a feed speed, and a three-axis movement speed of the machine tool in an actual machining environment; the preset state includes that the oscillation quantity and/or the temperature of the machine tool are in a preset range.
3. The machine tool control method according to claim 1, wherein the performing tool setting processing on each tool in the tool magazine includes:
controlling a main shaft of the machine tool to rotate at an actual processing rotating speed and then pausing;
after the spindle is paused for a preset time, carrying out tool setting treatment on a tool currently installed on the spindle to obtain the length information of the tool;
and if a tool which is not subjected to tool setting treatment exists, changing the tool, and returning to the step of controlling the main shaft of the machine tool to rotate at the actual processing rotating speed and then pausing.
4. The machine tool control method according to claim 1, wherein the trial machining of the model using each tool in the tool magazine includes:
providing a model, and enabling the side to be processed of the model to face the cutter;
and sequentially controlling the cutters in the cutter library to perform trial cutting on the side to be machined of the model according to a preset machining depth so as to form grooves corresponding to the cutters on the side to be machined of the model.
5. The machine tool control method according to claim 4, wherein the correcting the length information of the tool based on the size result of the trial machining includes:
acquiring the depth of a groove formed by trial cutting of a target cutter in the cutter library on the model as a reference depth; comparing the depth of the groove formed by the other cutters in the cutter library in the trial cutting of the model with the reference depth, and determining the cutter length correction value corresponding to the other cutters; correcting the length information of the cutter corresponding to the cutter length correction value according to the cutter length correction value; alternatively, the first and second electrodes may be,
comparing the depth of a groove formed by each cutter in the cutter library in the trial cutting of the model with the preset machining depth, and determining the cutter length correction value corresponding to each cutter; and respectively correcting the length information of the corresponding cutter according to the cutter length correction value.
6. The machine tool control method according to claim 5, wherein acquiring the depth of each groove includes:
and driving an infrared measuring probe to respectively measure the depth of each groove formed on the model through trial cutting.
7. A machine tool control system, comprising: memory, a processor, wherein the memory has stored thereon a machine tool control program which, when executed by the processor, implements the steps of the machine tool control method according to any one of claims 1 to 6.
CN202211662667.9A 2022-12-23 2022-12-23 Machine tool control method and system Active CN115629569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211662667.9A CN115629569B (en) 2022-12-23 2022-12-23 Machine tool control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211662667.9A CN115629569B (en) 2022-12-23 2022-12-23 Machine tool control method and system

Publications (2)

Publication Number Publication Date
CN115629569A CN115629569A (en) 2023-01-20
CN115629569B true CN115629569B (en) 2023-04-04

Family

ID=84910827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211662667.9A Active CN115629569B (en) 2022-12-23 2022-12-23 Machine tool control method and system

Country Status (1)

Country Link
CN (1) CN115629569B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627090B (en) * 2023-07-19 2023-11-10 太仓庄正数控设备有限公司 Numerical control machine tool regulation and control method and system based on cutting state diagnosis

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002036068A (en) * 2001-06-22 2002-02-05 Okuma Corp Method and device for correcting tool position of machine tool
CN201824194U (en) * 2010-08-31 2011-05-11 新宇航空制造(苏州)有限公司 Machine tool setting device
CN102629120A (en) * 2012-03-14 2012-08-08 南京航空航天大学 Nonlinear error processing method for using angle head toolholder to carry out numerical control processing
CN104460515A (en) * 2013-09-25 2015-03-25 山东理工大学 Five-axis cutter length compensation method based on post-processing
CN109623462A (en) * 2019-01-07 2019-04-16 赫比(成都)精密塑胶制品有限公司 Machining center main shaft avoiding collision
KR20210030767A (en) * 2019-09-10 2021-03-18 현대위아 주식회사 Tool tip error compensation system and compensation method of machine tool
CN112947308A (en) * 2019-12-10 2021-06-11 发那科株式会社 Machine learning device, control device, machining system, and machine learning method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08243883A (en) * 1995-03-08 1996-09-24 Hitachi Ltd Tool dimension automatic measuring device
TW572807B (en) * 1999-04-22 2004-01-21 Michael Huan-Chung Chiu Calibrating system for correcting tool length in a cutting machine center
CN100343770C (en) * 2005-09-14 2007-10-17 山东大学 Intelligent control system for digital control machine tool and control method thereof
CN202147180U (en) * 2011-06-23 2012-02-22 石政修 Knife length compensating processing device of multi-shaft processing machine
CN204673372U (en) * 2015-04-28 2015-09-30 江苏师范大学 For the tool setting device of numerically controlled lathe and numerical control boring and milling class lathe
CN105807715A (en) * 2016-03-03 2016-07-27 芜湖日升重型机床有限公司 Effect and method of cutter compensation in numerical control machine tool
CN107363644B (en) * 2017-07-26 2019-03-29 裘钧 A kind of method of cutter safety detection
CN110426992B (en) * 2019-08-08 2020-08-14 大连理工大学 Curve sub-region circular cutting machining tool path planning method
CN112799350A (en) * 2019-11-14 2021-05-14 北京福田康明斯发动机有限公司 Machine tool heat machine state monitoring feedback system and method and machine tool

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002036068A (en) * 2001-06-22 2002-02-05 Okuma Corp Method and device for correcting tool position of machine tool
CN201824194U (en) * 2010-08-31 2011-05-11 新宇航空制造(苏州)有限公司 Machine tool setting device
CN102629120A (en) * 2012-03-14 2012-08-08 南京航空航天大学 Nonlinear error processing method for using angle head toolholder to carry out numerical control processing
CN104460515A (en) * 2013-09-25 2015-03-25 山东理工大学 Five-axis cutter length compensation method based on post-processing
CN109623462A (en) * 2019-01-07 2019-04-16 赫比(成都)精密塑胶制品有限公司 Machining center main shaft avoiding collision
KR20210030767A (en) * 2019-09-10 2021-03-18 현대위아 주식회사 Tool tip error compensation system and compensation method of machine tool
CN112947308A (en) * 2019-12-10 2021-06-11 发那科株式会社 Machine learning device, control device, machining system, and machine learning method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Y. Altintas ; P. Kersting ; D. Biermann ; E. Budak ; B. Denkena ; I. Lazoglu.Virtual process systems for part machining operations.CIRP Annals.2014,第63卷(第2期),585-605. *
黄红辉 ; 王凌云 ; .数控加工中心刀具长度补偿的研究.邵阳学院学报(自然科学版).2007,第4卷(第03期),63-66. *

Also Published As

Publication number Publication date
CN115629569A (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN107102616B (en) Numerical controller having taper angle correction function for taper machining in spin-coating machining
CN115629569B (en) Machine tool control method and system
US20020189120A1 (en) Measuring method and device, machine tool having such device, and work processing method
JPH0525626B2 (en)
JPS6377643A (en) Numerically controlled machining device
US20200269458A1 (en) Cutting apparatus and contact position specifying program
JP2008110435A (en) Machine tool having mechanism for sensing contact of tool and workpiece
CN102079033A (en) Digitized thread repairing method
KR20080018114A (en) Method of machining crankshaft, device of machining crankshaft, control device and program
US20150153719A1 (en) Numerical control device
CN103707132A (en) Method of presetting tools on numerical control machine tool on the basis of spherical-contact sensing part of tool-presetting measuring head
CN112828682A (en) Error measurement method for machine tool and machine tool
JP6168396B2 (en) Machine Tools
CN108919746B (en) Thermal error testing and analyzing method of rotary swing table
Liu et al. Backlash error measurement and compensation on the vertical machining center
Jermak et al. Measurement system for assesment of motor cylinder tolerances and roundness
US4736325A (en) Method and apparatus for searching for a fiducial point of machining relating to C-axis
CN112114557B (en) Dynamic precision detection method and system for five-axis linkage numerical control machine tool and storage medium
Čep et al. Diagnosis of machine tool with using Renishaw ball-bar system
CN112775720A (en) Method and system for measuring position of object of machine tool, and computer-readable recording medium
CN112947301A (en) System and method for deriving and applying computer numerical control global offsets
Wilson et al. Adaptive control for a CNC lathe
JPH0622778B2 (en) Numerical control machine tool
CN116638377A (en) Quick and automatic detection method for precision of numerical control machine tool
JPH0732247A (en) Thermal displacement correction in center work

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
GR01 Patent grant
GR01 Patent grant