Automatic setting method for cutter radius compensation
By setting and automatically inputting tool radius compensation values in the CNC system, the problem of automatic input of tool radius compensation in the processing of aircraft engine parts is solved, and the uniformity of part contour dimensions and high efficiency of automated production are achieved.
Patent Information
- Application Number
- CN202411614957.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-13
AI Technical Summary
During the milling process of aircraft engine parts, tool wear and rigidity influences lead to uneven contour size, and the prior art cannot realize automatic input of tool radius compensation in automated production.
By setting the initial value and life of the tool radius compensation in the CNC system, and using the assignment statement to obtain the tool number and sequence number of the machining parts on the current spindle, gradually assigning the tool radius compensation value to form an automatic compensation program to realize automated input.
In the automated production line mode, the tool radius compensation numerical automatic input of different tools for parts in different orders is realized, ensuring the uniformity of the part profile size, improving the processing pass rate of automated production, and reducing waste loss.
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automated machining, and in particular to an automatic setting method for tool radius compensation. Background Art
[0002] The parts of aircraft engines are mostly made of difficult-to-process materials, such as high-temperature alloys and titanium alloys, and are usually designed as thin-walled, weakly rigid structures. During the milling process, affected by tool wear and rigidity, the contour size of each set of tools processing parts in different orders gradually increases. In the manual operation mode, the operator needs to set a different tool compensation initial value (symbol D) for each tool after replacing the new tool, and decrease the tool compensation value in turn as the number of parts processed increases, so as to ensure the uniformity of the surface contour thickness. However, in the automated production mode, manual input of tool radius compensation cannot be achieved, so it is necessary to solve the problem of automatic input of tool radius compensation. Summary of the invention
[0003] The purpose of the present invention is to solve the problem of automatic input of tool radius compensation in the machining of aircraft engine parts, thereby realizing continuous machining in an automated mode and ensuring uniformity of contour dimensions, and a method for automatically setting tool radius compensation is provided.
[0004] The present invention provides an automatic setting method for tool radius compensation, which is characterized by comprising the following steps:
[0005] Step 1: Set the initial value and life of tool radius compensation
[0006] The initial value and life of tool radius compensation are set in the CNC system. The initial values of tool radius compensation for D3R1.5, D5R2.5, and D8R1 tools are set to -1.5, -2.5, and -1 respectively.
[0007] Step 2: Get the number of the tool on the current spindle
[0008] Read the value in the address $P_TOOLNO of the CNC system and assign it through the assignment statement, such as: R18 = $P_TOOLNO, that is, assign the number value of the tool on the current spindle to the variable R18;
[0009] Step 3: Get the sequence number of the part processed by the tool on the current spindle after the tool change
[0010] Get the number of pieces processed by the current tool after the new tool is replaced. The method to obtain it is as follows:
[0011] R1=$TC_MOP13[R18,1]-$TC_MOP4[R18,1]
[0012] Among them, $TC_MOP13[R18,1] is the value in the life setting address of the tool on the current spindle (that is, the number of parts that can be processed by 1 tool, which can be 4, 5, 6...), and $TC_MOP4[R18,1] is the value in the remaining life address of the tool on the current spindle (that is, the remaining number of the tool life, which can be 1, 2, 3...)
[0013] Step 3: Get the number of cutting edges set for the tool on the current spindle
[0014] The tool on the current spindle, such as tool 3#, has cutting edges or tool radius compensations in the tool list of D1, D2, D3, and D4 respectively. The number of tool radius compensations owned by the tool is 4, which can be obtained by the following method: $P_TOOLND[R18] is the address of the number of cutting edges of the tool on the current spindle. R21 = $P_TOOLND[R18], that is, assign the value in the address $P_TOOLND[R18] to R21;
[0015] Step 4: Assign tool radius compensation values to the tool on the current spindle in the order of parts to be processed after the new tool is replaced FOR DAOY=1TO R21; assign values one by one according to the number of tool edges IF R1==n1 (when processing the n1th piece, compensate the tool edge)
[0016] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-△1ENDIF IF R1==n2 (when processing the n2th piece, compensate the tool edge)
[0017] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY] - △ 2 ENDIF IF R1 == n3 (when processing the n3th piece, compensate the tool edge)
[0018] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-△3ENDIF IF R1==n4 (when processing the n4th piece, compensate the tool edge)
[0019] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-△4ENDIF
[0020] …
[0021] ENDFOR
[0022] Among them, △1, △2, △3, △4... are given according to the empirical values of manual operation.
[0023] Step 5: Prepare the tool automatic compensation program
[0024] List the statements formed in the above steps to form an automatic compensation program: the program name is setoffset
[0025] R18=0; assign the initial value of R18 to 0
[0026] R18=$P_TOOLNO
[0027] R1=$TC_MOP13[R18,1]-$TC_MOP4[R18,1]
[0028] R21=$P_TOOLND[R18]
[0029] FOR DAOY=1TO R21;
[0030] IF R1 == n1
[0031] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY]-△1 (the tool edge compensation value is the original tool edge value minus △1)
[0032] ENDIF
[0033] IF R1 == n2
[0034] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY] - △2 (the tool edge compensation value is the original tool edge value minus △2)
[0035] ENDIF
[0036] IF R1 == n3
[0037] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY]-△3 (the tool edge compensation value is the original tool edge value minus △3)
[0038] ENDIF
[0039] IF R1 == n4
[0040] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY]-△4 (the tool edge compensation value is the original tool edge value minus △4)
[0041] ENDIF
[0042] …
[0043] ENDFOR
[0044] M17;
[0045] Step 6: Compile the main program and call the automatic compensation program setoffset
[0046] Main program example:
[0047] T2; pre-select tool No. 2
[0048] M06; tool change
[0049] N05 EXTCALL("xxx\setoffset"); call the radius compensation program setoffset in the xxx directory
[0050] N10 EXTCALL("xxx\A"); Call processing program A
[0051] N20 EXTCALL("xxx\B) ;Call machining program B
[0052] N30 EXTCALL("xxx\C) ;Call machining program C
[0053] N40 T3
[0054] N50 M6
[0055] N55 EXTCALL("xxx\setoffset)
[0056] N60 EXTCALL("xxx\D)
[0057] N70 EXTCALL("xxx\E)
[0058] N80 STEPIECE(1); Remaining tool life decreases by 1
[0059] M05; spindle stops rotating
[0060] M30; Return to the beginning of the program
[0061] Compared with the prior art, the present invention has the following advantages:
[0062] The automatic setting method of tool radius compensation described in the present invention realizes automatic input of tool radius compensation values for part contour milling in the automated production line mode, where different tools process parts in different orders, thereby ensuring that the deviation range of part contour dimensions meets the requirements, thereby improving the processing qualification rate of automated production, reducing scrap losses every year, and achieving good results. With the increase in the company's production capacity and the promotion and application of this technology, the economic benefits will be greatly improved. DETAILED DESCRIPTION
[0063] The present invention will be further explained below in conjunction with specific implementation plans, but the present invention is not limited thereto. The structures, proportions, sizes, etc. shown in the specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the restrictive conditions under which the present invention can be implemented. Therefore, they have no substantive technical significance. Any structural modification, change in proportional relationship or adjustment of size should still fall within the scope of the technical content disclosed by the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0064] Step 1: Set the initial value and life of tool radius compensation
[0065] In the CNC system, the initial value and life of the tool radius compensation of the 2# tool D5R2.5 are given as -2.5 and 8 respectively.
[0066] Step 2: Get the number of the tool on the current spindle
[0067] After executing the CNC system assignment statement, the value in the tool number address $P_TOOLNO is 2, which means that the current spindle is tool 2# (D5R2.5). It executes R18=$P_TOOLNO, which assigns 2 to the variable R18.
[0068] Step 3: Get the sequence number of the part processed by the tool on the current spindle after the tool change
[0069] After executing the statement R1=$TC_MOP13[R18,1]-$TC_MOP4[R18,1], when the tool processes the fifth part, the remaining life of the tool in the tool management column is 3, and it is concluded that the tool is currently processing the fifth part, that is, 8-3=5.
[0070] Step 4: Get the number of tool radius compensations in the tool list on the current spindle
[0071] For tool 2 on the current spindle, the tool radius compensations set in the tool list are D1, D2, and D3 respectively. The number of tool radius compensations for this tool is 3, that is, R21 = $P_TOOLND[R18] = 3
[0072] Step 5: Assign tool radius compensation values to the tool on the current spindle in the order in which the new tool is replaced and the parts are processed.
[0073] FOR DAOY=1TO R21;
[0074] IF R1==2; when processing the second piece, compensate the tool edge
[0075] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.01 (the tool edge compensation value is the original tool edge value minus 0.01)
[0076] ENDIF
[0077] IF R1==4; when processing the 4th piece, compensate the tool edge
[0078] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.02
[0079] ENDIF
[0080] IF R1==6; when processing the sixth piece, compensate the tool edge
[0081] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.03
[0082] ENDIF
[0083] IF R1==8; when processing the 8th piece, compensate the tool edge
[0084] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.04
[0085] ENDIF
[0086] ENDFOR
[0087] Step 5: Prepare the tool automatic compensation program
[0088] List the statements formed in the above steps to form an automatic compensation program: the program name is setoffset R18=0; assign the initial value of R18 to 0
[0089] R18=$P_TOOLNOR1=$TC_MOP13[R18,1]-$TC_MOP4[R18,1]
[0090] R21=$P_TOOLND[R18]
[0091] FOR DAOY=1TO R21;
[0092] IF R1 == 2
[0093] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.01ENDIF IF R1==4
[0094] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.02ENDIF IF R1==6
[0095] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.03ENDIF IF R1==8
[0096] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.04ENDIF ENDFOR M17;
[0097] Step 6: Compile the main program and call the automatic compensation program setoffset
[0098] Main program example:
[0099] T2; pre-select tool No. 2
[0100] M06; tool change
[0101] N05 EXTCALL("123\setoffset); call the radius compensation program setoffset in directory 123 N10EXTCALL("123\01); call the machining program 01 N20 EXTCALL("123\02); call the machining program 02 N30EXTCALL("123\03); call the machining program 03 N40 T3
[0102] N50 M6
[0103] N55 EXTCALL("123\setoffset)
[0104] N60 EXTCALL("123\04)
[0105] N70 EXTCALL("123\05)
[0106] N80 STEPIECE(1); Remaining tool life decreases by 1
[0107] M05; spindle stops rotating
[0108] M30; Return to the beginning of the program
[0109] In the main program for machining parts, after the tool that needs automatic radius compensation is installed on the spindle, the automatic compensation program is called to realize automatic compensation of the tool radius.
[0110] Matters not covered by the present invention are known technologies.
[0111] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for automatically setting tool radius compensation, characterized in that: The following steps are involved: Step 1: Set the initial value and life of tool radius compensation; Set the initial value and life of tool radius compensation in the CNC system; Step 2: Get the number of the tool on the current spindle; Read the value in the address $P_TOOLNO of the CNC system and assign it through the assignment statement; Step 3: Get the sequence number of the part processed by the tool on the current spindle after the tool change Get the number of pieces processed by the current tool after the new tool is replaced. The method to obtain it is as follows: R1=$TC_MOP13[R18,1]-$TC_MOP4[R18,1] Among them, $TC_MOP13[R18,1] is the value in the life setting address of the tool on the current spindle, and $TC_MOP4[R18,1] is the value in the life remaining address of the tool on the current spindle; Step 3, obtain the number of cutting edges set for the tool on the current spindle; The tool on the current spindle is obtained by the following method: $P_TOOLND[R18] is the address of the number of tool edges on the current spindle; R21 = $P_TOOLND[R18], that is, the value in the $P_TOOLND[R18] address is assigned to R21; Step 4, assigning tool radius compensation values to the tool on the current spindle in the order of machining parts after the new tool is replaced; Step 5: Prepare the tool automatic compensation program; List the statements formed by the above steps to form an automatic compensation program; Step 6: compile the main program and call the automatic compensation program.
Citation Information
Patent Citations
Tool wear-compensating system and method
CN101670532A
Compensation method for inconsistency of cutting accuracy for multi-station machine tool and device thereof
CN104907891A
Numerical control machine tool cutter length compensation system and method
CN109623485A
Unattended machining method for numerical control machining equipment
CN112305992A
Cutter service life prediction method based on cutter path moving trajectory
CN115167276A