Automatic setting method for tool radius compensation
By setting initial values and lifespan in the CNC system and compiling an automatic compensation program, the problem of tool radius compensation not being automatically input in automated production was solved, thus achieving uniformity of part contour dimensions and improvement of machining quality.
Patent Information
- Application Number
- CN202411614957.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2044-11-13
AI Technical Summary
In automated production mode, the tool radius compensation for aero-engine parts cannot be automatically input, resulting in uneven part contour dimensions and affecting machining quality.
An automatic setting method for tool radius compensation is provided. By setting initial values and life in the CNC system and obtaining the tool number and machining sequence through assignment statements, an automatic compensation program is compiled to realize the automatic input of tool radius compensation.
The automated production line achieves uniformity in the dimensions of parts, improves the processing qualification rate, reduces scrap loss, and enhances economic efficiency.
Abstract
Description
Technical Field
[0001] This invention relates to the field of automated machining technology, and in particular to an automatic setting method for tool radius compensation. Background Technology
[0002] Aero-engine parts are mostly made of difficult-to-machine materials, such as high-temperature alloys and titanium alloys, and are usually designed as thin-walled, weak-rigid structures. During the milling process, due to tool wear and rigidity, the contour dimensions of parts gradually increase as each set of tools processes different sequences. In manual operation, operators need to set different initial tool compensation values (symbol D) for each tool after changing to a new tool, and then decrease the tool compensation value sequentially as the number of parts processed increases, thereby ensuring the uniformity of the profile thickness. However, in automated production, 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 this invention is to solve the problem of automatic input of tool radius compensation in the machining of aero-engine parts, thereby realizing continuous machining in automated mode and ensuring the uniformity of contour dimensions. A method for automatically setting tool radius compensation is provided.
[0004] This invention provides an automatic setting method for tool radius compensation, characterized by the following steps:
[0005] Step 1: Initial values for tool radius compensation and tool life setting
[0006] In the CNC system, the initial values of tool radius compensation and tool life are set. For tools D3R1.5, D5R2.5, and D8R1, the initial values of tool radius compensation are given as -1.5, -2.5, and -1, respectively.
[0007] Step 2: Obtain the tool number on the current spindle.
[0008] Read the value in the CNC system address $P_TOOLNO and assign it through an assignment statement, such as: R18=$P_TOOLNO, which assigns the value of the tool number on the current spindle to the variable R18;
[0009] Step 3: Obtain the part sequence number processed by the tool on the current spindle after tool change.
[0010] To determine which piece has been machined since the tool was replaced with a new one, the method is as follows:
[0011] R1=$TC_MOP13[R18,1]- $TC_MOP4[R18,1]
[0012] Where $TC_MOP13[R18,1] is the value in the current spindle tool life setting address (i.e., the number of parts that 1 tool can process, which can be 4, 5, 6...), and $TC_MOP4[R18,1] is the value in the current spindle tool life remaining address (i.e., the remaining number of tool lifespans, which can be 1, 2, 3...).
[0013] Step 4: Obtain the number of tool radius compensations available in the tool list on the current spindle.
[0014] For the tool on the current spindle, such as tool #3, the tool edge compensation (i.e., tool radius compensation) in its tool list is D1, D2, D3, and D4 respectively. Therefore, the tool radius compensation count for this tool is 4, obtained as follows: $P_TOOLND[R18] is the address of the tool edge count for the tool on the current spindle. R21 = $P_TOOLND[R18], which means assigning the value at address $P_TOOLND[R18] to R21.
[0015] Step 5: Assign tool radius compensation values to the tools on the current spindle according to the order in which new tools are installed and the parts are machined.
[0016] FOR DAOY=1 TO R21 ; Assign values one by one according to the number of cutting edges.
[0017] IF R1==n1 (Compensate the tool edge when machining the n1th piece)
[0018] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]- △1
[0019] ENDIF
[0020] IF R1==n2 (When machining the n2th piece, compensate for the tool edge)
[0021] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]- △2
[0022] ENDIF
[0023] IF R1==n3 (Compensate the tool edge when machining the n3rd piece)
[0024] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]- △3
[0025] ENDIF
[0026] IF R1==n4 (Compensate the tool edge when machining the n4th piece)
[0027] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]- △4
[0028] ENDIF
[0029] …
[0030] ENDFOR
[0031] Among them, △1, △2, △3, △4... are given according to the empirical values of manual operation.
[0032] Step 6: Develop an automatic tool compensation program
[0033] List the statements generated from the above steps to form an automatic compensation program: the program name is setoffset
[0034] R18=0; initialize R18 to 0.
[0035] R18=$P_TOOLNO
[0036] R1=$TC_MOP13[R18,1]- $TC_MOP4[R18,1]
[0037] R21 = $P_TOOLND[R18]
[0038] FOR DAOY=1 TO R21;
[0039] IF R1==n1
[0040] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY] - △1 (The tool edge compensation value is the original tool edge value minus △1)
[0041] ENDIF
[0042] IF R1==n2
[0043] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY] - △2 (The tool edge compensation value is the original tool edge value minus △2)
[0044] ENDIF
[0045] IF R1==n3
[0046] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY] - △3 (The tool edge compensation value is the original tool edge value minus △3)
[0047] ENDIF
[0048] IF R1==n4
[0049] $TC_DP12[R18, DAOY] = $TC_DP12[R18, DAOY] - △4 (The tool edge compensation value is the original tool edge value minus △4)
[0050] ENDIF
[0051] …
[0052] ENDFOR
[0053] M17;
[0054] Step 7: Compile the main program and call the automatic compensation program setoffset
[0055] Main program example:
[0056] T2; Pre-selected tool #2
[0057] M06; Tool Change
[0058] N05 EXTCALL("xxx\setoffset"); Calls the radius compensation program setoffset in the xxx directory.
[0059] N10 EXTCALL("xxx\A); Calls machining program A
[0060] N20 EXTCALL("xxx\B); Calls machining program B
[0061] N30 EXTCALL("xxx\C); Calls the machining program C
[0062] N40 T3
[0063] N50 M6
[0064] N55 EXTCALL("xxx\setoffset)
[0065] N60 EXTCALL ("xxx\D")
[0066] N70 EXTCALL ("xxx\E")
[0067] N80 STEPIECE (1); Remaining tool life reduced by 1
[0068] M05; Spindle stops rotating
[0069] M30; Return to the beginning of the program
[0070] Compared with the prior art, the advantages of this invention are:
[0071] The automatic tool radius compensation setting method described in this invention enables the automatic input of tool radius compensation values for different tools processing parts in different sequences during part contour milling in an automated production line mode. This ensures that the deviation range of the part contour dimensions meets the requirements, thereby improving the processing qualification rate of automated production and reducing scrap losses annually, 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 Implementation
[0072] The present invention will be further explained below with reference to specific implementation schemes, but it is not limited to the present invention. The structures, proportions, sizes, etc. shown in the accompanying drawings are only used to complement the content disclosed in the specification, so as to enable those skilled in the art to understand and read, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modification of the structure, change of the proportion relationship or adjustment of the size, without affecting the effect and purpose that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.
[0073] Step 1: Initial values for tool radius compensation and tool life setting
[0074] In the CNC system, the initial values of tool radius compensation and tool life for tool #2 (D5R2.5) are set to -2.5 and 8, respectively.
[0075] Step 2: Obtain the tool number on the current spindle.
[0076] After executing the CNC system assignment statement, the value in the tool number address $P_TOOLNO is 2, indicating that the current tool on the spindle is tool #2 (D5R2.5). Therefore, executing R18=$P_TOOLNO assigns the value 2 to the variable R18.
[0077] Step 3: Obtain the part sequence number processed by the tool on the current spindle after tool change.
[0078] After executing the statement R1=$TC_MOP13[R18,1]- $TC_MOP4[R18,1], when the tool is machining the 5th part, the remaining tool life in the tool management panel is 3. Therefore, the tool is currently machining the 5th part, which is 8-3=5.
[0079] Step 4: Obtain the number of tool radius compensations available in the tool list on the current spindle.
[0080] For tool #2 on the current spindle, the tool radius compensations set in its tool list are D1, D2, and D3. Therefore, the tool has a total of 3 tool radius compensations, i.e., R21 = $P_TOOLND[R18] = 3.
[0081] Step 5: Assign tool radius compensation values to the tools on the current spindle according to the order in which new tools are installed and the parts are machined.
[0082] FOR DAOY=1 TO R21;
[0083] IF R1==2; When machining the second part, compensate for the tool edge.
[0084] $TC_DP12[R18, DAOY]=$TC_DP12[R18, DAOY]-0.01 (The tool edge compensation value is the original tool edge value minus 0.01)
[0085] ENDIF
[0086] IF R1==4; When machining the 4th part, compensate for the tool edge.
[0087] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.02
[0088] ENDIF
[0089] IF R1==6; When machining the 6th part, compensate the tool edge.
[0090] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.03
[0091] ENDIF
[0092] IF R1==8; When machining the 8th part, compensate for the tool edge.
[0093] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.04
[0094] ENDIF
[0095] ENDFOR
[0096] Step 6: Develop an automatic tool compensation program
[0097] List the statements generated from the above steps to form an automatic compensation program: the program name is setoffset
[0098] R18=0; initialize R18 with a value of 0.
[0099] R18=$P_TOOLNO
[0100] R1=$TC_MOP13[R18,1]- $TC_MOP4[R18,1]
[0101] R21 = $P_TOOLND[R18]
[0102] FOR DAOY=1 TO R21;
[0103] IF R1==2
[0104] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.01
[0105] ENDIF
[0106] IF R1==4
[0107] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.02
[0108] ENDIF
[0109] IF R1==6
[0110] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.03
[0111] ENDIF
[0112] IF R1==8
[0113] $TC_DP12[R18,DAOY]=$TC_DP12[R18,DAOY]-0.04
[0114] ENDIF
[0115] ENDFOR
[0116] M17;
[0117] Step 7: Compile the main program and call the automatic compensation program setoffset
[0118] Main program example:
[0119] T2; Pre-selected tool #2
[0120] M06; Tool Change
[0121] N05 EXTCALL("123\setoffset"); Calls the radius compensation program setoffset in the 123 directory.
[0122] N10 EXTCALL("123\01"); Calls machining program 01
[0123] N20 EXTCALL("123\02"); Calls machining program 02
[0124] N30 EXTCALL("123\03"); Calls machining program 03
[0125] N40 T3
[0126] N50 M6
[0127] N55 EXTCALL("123\setoffset)
[0128] N60 EXTCALL ("123\04")
[0129] N70 EXTCALL ("123\05")
[0130] N80 STEPIECE (1); Remaining tool life reduced by 1
[0131] M05; Spindle stops rotating
[0132] M30; Return to the beginning of the program
[0133] In the main program for machining parts, after installing the tool that requires automatic radius compensation on the spindle, the automatic compensation program can be called to achieve automatic compensation of the tool radius.
[0134] Matters not covered in this invention are common knowledge.
[0135] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. An automatic setting method for tool radius compensation, characterized in that: Includes the following steps: Step 1: Initial value and life setting for tool radius compensation; In the CNC system, the initial values for tool radius compensation and tool life are set; Step 2: Obtain the tool number on the current spindle; Read the value from the CNC system address $P_TOOLNO and assign it using an assignment statement; Step 3: Obtain the part sequence number processed by the tool on the current spindle after tool change. To determine which piece has been machined since the tool was replaced with a new one, the method is as follows: R1=$TC_MOP13[R18,1]- $TC_MOP4[R18,1] Where $TC_MOP13[R18,1] is the value in the address where the tool life is set on the current spindle, and $TC_MOP4[R18,1] is the value in the address where the tool life remains on the current spindle; Step 4: Obtain the number of tool radius compensations available in the tool list on the current spindle; The tool on the current spindle is obtained as follows: $P_TOOLND[R18] is the address of the tool edge count of the tool on the current spindle; R21=$P_TOOLND[R18], that is, the value in the address of $P_TOOLND[R18] is assigned to R21; Step 5: Assign tool radius compensation values to the tools on the current spindle according to the order of the parts to be machined after the new tool is installed; Step 6: Develop an automatic tool compensation program; List the statements generated by the above steps to form an automatic compensation program; Step 7: Compile the main program and call the automatic compensation program.
Citation Information
Patent Citations
Method for milling blade of integral blade ring of aero-engine in full-program manner
CN115586750A
Tool compensation system
JP1991184746A