1, algorithm
In the CYCLE 251 cycle, the length, width, and fillet size of the rectangle can be defined. The layered milling method is used to automatically change the length and width of the rectangle and the rounded corner until the gradient is a circle.
Length update: ΔL = (rectangular length - bottom circle diameter) / stratification times
Width update: ΔW = (rectangle width - bottom circle diameter) / stratification times
Chamfer radius: ΔR = (initial chamfer radius - bottom circle radius) / number of stratification
Depth update: ΔH = final depth / stratification
2, the formula
Calculation | Q218 = Q218 - (Q2 -Q4) / Q7 | Update rectangle length |
Q219 = Q219 - (Q3 -Q4) / Q7 | Update rectangle width | |
Q220 = Q220 + (Q4 / 2 - Q5) / Q7 | Update fillet radius | |
Q201 = Q1 / Q7 | Calculate the depth of the lower knife | |
FN 0: Q202 = +Q201 | Negative tool depth | |
FN 1: Q11 = +Q11 + +1 | Counter plus 1 | |
Comparison | FN 12: IF +Q11 LT +Q7 GOTO LBL 1 Q11 < Q7 | Judge processing depth |
3, processing procedures
Main program | 0 BEGIN PGM FUNNEL MM | |
1 BLK FORM 0.1 Z X-60 Y-50 Z-30 | ||
2 BLK FORM 0.2 X+60 Y+50 Z+0 | ||
3 TOOL CALL 1 Z S3000 | ||
4 CYCL DEF 247 SET DATUM Q339=+6 | Call the coordinate system No. 6 | |
Negative value | 5 FN 0: Q1 = +30 | Funnel depth |
6 FN 0: Q2 = +110 | Rectangular length | |
7 FN 0: Q3 = +80 | Rectangular width | |
8 FN 0: Q4 = +50 | Round diameter | |
9 FN 0: Q5 = +20 | Rectangular fillet | |
10 FN 0: Q7 = +25 | Number of times | |
11 L Z+100 R0 FMAX M3 | ||
Processing round hole | 12 CYCL DEF 208 BORE MILLING | Spiral milling cycle definition |
Q200=+2 ;Setup clearance | ||
Q201=-Q1; Depth | ||
Q206=1200; Feed rate for plunging | ||
Q334=2 ;Plunging depth | ||
Q203=+0 ;Surface coordinate | ||
Q204=50; 2nd setup clearance | ||
Q335=Q4; Nominal diameter | ||
Q342=0; Preset diameter | ||
13 L X+0 Y+0 R0 FMAX M99 | Loop call | |
14 TOOL CALL 2 Z S3000 | ||
15 FN 0: Q11 = +1 | Counter setting 1 | |
16 Q201 = Q1 / Q7 | ||
17 CYCL DEF 251 RECTANGULAR POCKET | Rectangular cavity machining cycle | |
Q215=2;Machining operation | ||
Q218=Q2 ;1st side length | ||
Q219=Q3 ; 2nd side length | ||
Q220=Q5 ;Rounding-off radius | ||
Q368=0; Allowance for side | ||
Q224=+0 ;Rotational position | ||
Q367=0; Pocket position | ||
Q207=1200; Feed rate for milling | ||
Q351=+1; Climb/Up-cut | ||
Q201=-Q201;Depth | ||
Q202=Q202; Plunging depth | ||
Q369=0; Allowance for floor | ||
Q206=300;Feed rate for plunging | ||
Q338=0; Infeed for finishing | ||
Q200=2; Setup clearance | ||
Q203=+Q203;Surface coordinate | ||
Q204=2 ; 2nd setup clearance | ||
Q370=1; Path overlap | ||
Q366=2 ;Plunging | ||
Q385=1800;Feed rate for finishing | ||
Subroutine | 18 LBL 1 | |
Calculation | 19 Q218 = Q218 - ( Q2 - Q4 ) / Q7 | Update X-axis length |
20 Q219 = Q219 - ( Q3 - Q4 ) / Q7 | Update Y-axis length | |
21 Q220 = Q220 + ( Q4 / 2 - Q5 ) / Q7 | Update fillet radius | |
22 Q203 = Q203 - Q1 / Q7 | Update workpiece surface coordinates | |
23 FN 0: Q202 = +Q201 | Undercut depth | |
24 FN 1: Q11 = +Q11 + +1 | Counter plus 1 | |
25 L X+0 Y+0 R0 FMAX M99 | New loop call | |
26 FN 12: IF +Q11 LT +Q7 GOTO LBL 1 | Number judgment | |
27 L Z+100 R0 FMAX M2 | ||
28 END PGM FUNNEL MM |
The above program has only 28 sentences, which is one thousandth of the CAM program, which greatly saves the hard disk space, and the fixed cycle in the iTNC530 integrates various process control methods such as the infeed mode and the rough finishing process. After the completion of the machine mode and test processing, different sizes of the workpiece can be freely controlled by the six parameters in the program head to control the shape size and surface quality of the part.
Previous page next page
Guangzhou Jointair Co., Ltd. , https://www.jointair.cn