Programe CNC Fanuc Verificate
Programe CNC Fanuc Verificate
Programe CNC Fanuc Verificate
O00000
(** MILL CLASS WB 4/20/04 **)
(=================================)
O00001
(vv MILL WORKBOOK EXERCISES vv)
(=================================)
O01000
(vvvv WARMUP PROGRAMS 1000 vvv)
(=================================)
O01001
(5,000 Spindle Warmup program)
(This program should be run prior)
(to machine use if machine has)
(been idle for more than 4 days.)
(Cycle time is 20-minutes.)
(This program can be used daily)
(for spindle warm-up prior to high)
(speed spindle use.)
(Set override at 100 percent for)
(5,000 rpm machines.)
(9-22-99)
(---------------------------------)
S250 M03
G04 P200.
S500 M03
G04 P200.
S1250 M03
G04 P200.
S2500 M03
G04 P200.
S3750 M03
G04 P200.
S5000 M03
G04 P200.
M30
(=================================)
O01002
(7,500 Spindle Warmup program)
(This program should be run prior)
(to machine use if machine has)
(been idle for more than 4 days.)
(Cycle time is 20-minutes.)
(This program can be used daily)
(for spindle warm-up prior to high)
(speed spindle use.)
(Set override at 100 percent for)
(7,500 rpm machines.)
(9-22-99)
(---------------------------------)
S500 M03
G04 P200.
S1000 M03
G04 P200.
S2500 M03
G04 P200.
S5000 M03
G04 P200.
S7500 M03
G04 P200.
S10000 M03
G04 P200.
M30
(=================================)
O01003
(10,000 Spindle Warmup program)
(This program should be run prior)
(to machine use if machine has)
(been idle for more than 4 days.)
(Cycle time is 20-minutes.)
(This program can be used daily)
(for spindle warm-up prior to high)
(speed spindle use.)
(Set override at 100 percent for)
(10,000 rpm machines.)
(9-22-99)
(---------------------------------)
(10,000 Spindle Warmup program)
S500 M03
G04 P200.
S1000 M03
G04 P200.
S2500 M03
G04 P200.
S5000 M03
G04 P200.
S7500 M03
G04 P200.
S10000 M03
G04 P200.
M30
(=================================)
O01004
(15,000 Spindle Warmup program)
(This program should be run prior)
(to machine use if machine has)
(been idle for more than 4 days.)
(Cycle time is 20-minutes.)
(This program can be used daily)
(for spindle warm-up prior to high)
(speed spindle use.)
(Set override at 100 percent for)
(15,000 rpm machines.)
(9-22-99)
(---------------------------------)
(150 percent for)
(15,000 rpm machines.)
(9-22-99)
S750 M03
G04 P200.
S1500 M03
G04 P200.
S3750 M03
G04 P200.
S7500 M03
G04 P200.
S11250 M03
G04 P200.
S15000 M03
G04 P200.
M30
(=================================)
O01005
(30,000 Spindle Warmup program)
(This program should be run prior)
(to any 30,000 spindles operating)
(above 10,000 rpm. This will help)
(revent possible overheating of)
(the spindle due to settling of)
(lubrication. This 20 minute)
(warmup program will bring the)
(spindle up to speed slowly and)
(allow the spindle to thermally)
(stabalize. This program should)
(be used daily for spindle warmup)
(prior to high speed use.)
(ES0352 REV.E10/03)
(---------------------------------)
(30K Spindle Warmup program)
(20 Minutes)
S1500 M03
G04 P200.
S3000 M03
G04 P200.
S7500 M03
G04 P200.
S15000 M03
G04 P200.
S22500 M03
G04 P200.
S30000 M03
G04 P200.
M30
(=================================)
O02000
(vv MISC. INFORMATION 2000 vvv)
(=================================)
O02001
(Program Names listed here, in)
(the first two lines of a program)
(will show up next to the program)
(number in the LIST PROG. display)
(when entering text names between)
(parenthesis.)
(---------------------------------)
(Pressing SHIFT and then a letter)
(will output lower case text for)
(the letters beween parenthesis.)
(---------------------------------)
N1 (Operation information)
T1 M06 (Tool information...)
G90 G54 G00 X0.5 Y-0.5
(=================================)
O03000
(vvvv MISC. PROGRAMS 3000 vvvv)
(=================================)
O03001
(MDI Commands)
(Text 10/18/02)
(vvvvvvvvv TEXT vvvvvvvvv)
(---------------------------------)
(=================================)
N1 (Spindle On S500)
S500 M03
G04 P100.
M30
N2 (Spindle On S2000)
S2000 M03
M30
N3
M80 (DOOR OPEN)
M30
N4
M81 (DOOR CLOSE)
G04 P1.
M00
N9
T9 (CHIP FAN)
(S8000 SPINDLE MAX.)
G90 G54 G00 X3. Y2.
G43 H09 Z-4. M08
G04 P1.
G03 I-1.5 F150. M09
G00 X4. Y2.
G04 P2.
S4000 M03
G03 I-2. F400.
G53 G01 X-10. Y-4.
G53 X-20.
G53 X0.
G53 Y-12.
G53 X-20.
G53 Y-4.
G53 X-10.
G00 Z0 M05
G53 G49 Y0 Z0
M30
(T)
(1/1/02)
(Setup 6 in. Vise with Step Jaws)
(Setup in Three Jaw Chuck)
(Setup in Fixture #)
(X0 Y0 Center of Part)
(X0 Y0 Lower Left Corner of Part)
(X0 Y0 on Part Diameter)
(---------------------------------)
(N1:T1= 3.0 x 5 flt. Shell Mill)
(N2:T2= 1/2 DIA. 2 flt. E.M.)
(N3:T3= 1/2 DIA. SPOT DRILL)
(N4:T4= 1/4 DIA. DRILL)
(N5:T5= 3/8 DIA. 2 fLT E.M.)
(N6:T6= #7 .201 DIA. STUB)
(N7:T7= 1/4-20 SPIRAL TAP)
(N8:T8= 1.0 DIA. 12 PITCH THD MILL)
(N9:T9= )
(N10:T10= )
(N11:T11= )
(N12:T12= )
(N13:T13= )
(N14:T14= )
(N15:T15= )
(N16:T16= )
(N17:T17= )
(N18:T18= )
(N19:T19= )
(N20:T20= )
(---------------------------------)
(T1 Dia. Comp. D1 = .5 DIA.)
(T2 Dia. Comp. D2 = .750 DIA.)
(T3 Dia. Comp. D3 = 1. DIA.)
(=================================)
O04000
(vv MISC. DEMO PROGRAMS 4000 vv)
(=================================)
O04001
(Wrench Demo)
(24-01-97 TIME, Hr:Min - 13:59)
(T1-.101 DIA. DRILL)
(T2-3" DIA. FACEMILL)
(T3-.500 DIA. 2 FLT. E.M.)
(T4-.250 DIA. 2 FLT E.M.)
(T5-60 DEG. ENGRAVE/CHAMFER TOOL)
(---------------------------------)
(Local M97 Sub-Programs Used)
(M97 P2002)
(CALLS 2ND OP. MILL PROGRAM)
(M97 P2003)
(CALLS 2ND OP. POCKET PROGRAM)
(M97 P2004)
(CALLS 1ST & 2ND OP. CHAMFER PGM)
(---------------------------------)
(WORK OFFSET #54 UPPER RIGHT)
(CORNER OF PART.)
(WORK OFFSET #55 IS THE LARGE)
(DIAMETER THAT IS X5.831 FROM ZERO)
(IN X-AXIS. AND IS Y-.9157 FROM)
(ZERO IN Y-AXIS.)
(---------------------------------)
N2002
(MILL 2ND OP SUBPROGRAM )
(3" DIA. FACEMILL)
N170 M01
N180 G00 G90 G54 X-2.9 Y0.5 S4500 M03
N190 G43 H02 Z0.2 M08
N200 G01 Z-0.125 F60.
N210 X8.7 F50.
N220 G00 Z0.2
N230 X-2.9 Y-0.7001
N240 G01 Z-0.125 F60.
N250 X8.7 F50.
N260 G00 Z0.2
N300 M99
N2003
(2ND OP. POCKETING PROGRAM)
N40 M01
N50 G00 G90 G55 X-0.9812 Y0.0079 S4500 M03
N60 G43 H04 Z0.1
N70 G01 Z-0.07 F40.
N80 X-1.1419 Y0. F50.
N90 X-0.9812 Y-0.0079
N100 G02 Y0.0079 I0.9812 J0.0079
N110 G01 X-0.8739 Y0.1133
N120 X-2.1829 Y0.0488
N130 G02 X-2.1823 Y-0.0398 I-0.7353 J-0.0488
N140 X-2.1829 Y-0.0488 I-0.7359 J0.0398
N150 G01 X-0.8739 Y-0.1133
N160 G02 Y0.1133 I0.8739 J0.1133
N170 G01 X-0.7498 Y0.2196
N180 X-2.2976 Y0.1432
N190 G02 X-2.2829 Y0.0464 I-0.6206 J-0.1432
N200 X-2.2822 Y-0.0344 I-0.6353 J-0.0464
N210 X-2.2976 Y-0.1432 I-0.636 J0.0344
N220 G01 X-0.7498 Y-0.2196
N230 G02 Y0.2196 I0.7498 J0.2196
N240 G01 X-0.6396 Y0.2347
N250 G03 X-0.7038 Y0.322 I-0.061 J0.0224
N260 G01 X-2.3458 Y0.241
N270 G03 X-2.4047 Y0.1571 I0.0032 J-0.0649
N280 G02 X-2.3827 Y0.0391 I-0.5135 J-0.1571
N290 X-2.382 Y-0.029 I-0.5355 J-0.0391
N300 X-2.4047 Y-0.1571 I-0.5362 J0.029
N310 G03 X-2.3458 Y-0.241 I0.0621 J-0.019
N320 G01 X-0.7038 Y-0.322
N330 G03 X-0.6396 Y-0.2347 I0.0032 J0.0649
N340 G02 Y0.2347 I0.6396 J0.2347
N350 G00 Z0.
N360 X-0.9812 Y0.0079
N370 G01 Z-0.14 F40.
N380 X-1.1419 Y0. F50.
N390 X-0.9812 Y-0.0079
N400 G02 Y0.0079 I0.9812 J0.0079
N410 G01 X-0.8739 Y0.1133
N420 X-2.1829 Y0.0488
N430 G02 X-2.1823 Y-0.0398 I-0.7353 J-0.0488
N440 X-2.1829 Y-0.0488 I-0.7359 J0.0398
N450 G01 X-0.8739 Y-0.1133
N460 G02 Y0.1133 I0.8739 J0.1133
N470 G01 X-0.7498 Y0.2196
N480 X-2.2976 Y0.1432
N490 G02 X-2.2829 Y0.0464 I-0.6206 J-0.1432
N500 X-2.2822 Y-0.0344 I-0.6353 J-0.0464
N510 X-2.2976 Y-0.1432 I-0.636 J0.0344
N520 G01 X-0.7498 Y-0.2196
N530 G02 Y0.2196 I0.7498 J0.2196
N540 G01 X-0.6396 Y0.2347
N550 G03 X-0.7038 Y0.322 I-0.061 J0.0224
N560 G01 X-2.3458 Y0.241
N570 G03 X-2.4047 Y0.1571 I0.0032 J-0.0649
N580 G02 X-2.3827 Y0.0391 I-0.5135 J-0.1571
N590 X-2.382 Y-0.029 I-0.5355 J-0.0391
N600 X-2.4047 Y-0.1571 I-0.5362 J0.029
N610 G03 X-2.3458 Y-0.241 I0.0621 J-0.019
N620 G01 X-0.7038 Y-0.322
N630 G03 X-0.6396 Y-0.2347 I0.0032 J0.0649
N640 G02 Y0.2347 I0.6396 J0.2347
N650 G00 Z0.5
N660 M99
N2004
(OP. 1 & 2 CHAMFER PROGRAM)
N10 M01
N50 G00 G90 G54 X0.4056 Y-0.8278
N60 G43 H05 Z0.2 M08
N70 G01 Z0.
N80 G41 D05 X0.4806 Y-0.8297 F60.
N90 G03 X0.5411 Y-0.7079 I0.0019 J0.075
N100 G02 X0.4831 Y-0.4916 I0.2189 J0.1746
N110 X0.4882 Y-0.4788 I0.0297 J-0.0045
N120 X1.5303 Y-0.3056 I0.6061 J-0.4251
N130 X1.5326 Y-0.3075 I-0.0176 J-0.0243
N140 G03 X1.8802 Y-0.44 I0.3484 J0.3918
N150 G01 X5.7943 Y-0.2304
N160 G02 X5.7936 Y-1.6009 I0.0367 J-0.6853
N170 G01 X2.0302 Y-1.3957
N180 G03 X1.6924 Y-1.5397 I0.0008 J-0.47
N190 G02 X0.8282 Y-1.7538 I-0.5465 J0.3549
N200 X0.8193 Y-1.7463 I0.0146 J0.0262
N210 X0.7614 Y-1.53 I0.219 J0.1746
N220 X0.7833 Y-1.5054 I0.0296 J-0.0044
N230 G01 X1.2545 Y-1.3792
N240 X1.3763 Y-0.9247
N250 X1.0436 Y-0.592
N260 X0.5723 Y-0.7182
N270 G02 X0.5411 Y-0.7079 I-0.0077 J0.029
N280 G03 X0.409 Y-0.7399 I-0.0586 J-0.0468
N290 G40 G01 X0.3941 Y-0.8134
N300 G00 Z0.2
N310 X3.0119 Y-0.9411
N320 G01 Z0.
N330 G41 X3.0609 Y-0.9979
N340 G03 X3.1917 Y-0.9609 I0.0568 J0.049
N350 Y-0.8705 I-0.2789 J0.0452
N360 Y-0.9609 I-0.2789 J-0.0452
N370 Y-0.8705 I-0.2789 J0.0452
N380 X3.0609 Y-0.8335 I-0.074 J-0.012
N390 G40 G01 X3.0119 Y-0.8903
N400 G00 Z0.2
N410 X5.1407 Y-0.6788
N420 G01 Z0.
N430 G41 X5.186 Y-0.6191
N440 G03 X5.1225 Y-0.4989 I-0.0598 J0.0453
N450 G01 X3.4806 Y-0.5798
N460 G03 X3.3354 Y-0.7864 I0.0078 J-0.1598
N470 G02 X3.3541 Y-0.8918 I-0.4226 J-0.1293
N480 X3.3536 Y-0.9479 I-0.4413 J-0.0239
N490 X3.3354 Y-1.045 I-0.4408 J0.0322
N500 G03 X3.4806 Y-1.2516 I0.153 J-0.0468
N510 G01 X5.1225 Y-1.3326
N520 G03 X5.2806 Y-1.1176 I0.0079 J0.1598
N530 G02 Y-0.7138 I0.5504 J0.2019
N540 G03 X5.1225 Y-0.4989 I-0.1502 J0.0551
N550 X5.0712 Y-0.6247 I0.0037 J-0.0749
N560 G40 G01 X5.1222 Y-0.6798
N570 G00 Z0.2
N580 X6.0741 Y-0.9518
N590 G01 Z0.
N600 G41 X6.1259 Y-1.006
N610 G03 X6.2547 Y-0.9624 I0.0542 J0.0518
N620 Y-0.869 I-0.4237 J0.0467
N630 Y-0.9624 I-0.4237 J-0.0467
N640 Y-0.869 I-0.4237 J0.0467
N650 X6.1259 Y-0.8254 I-0.0746 J-0.0082
N660 G40 G01 X6.0741 Y-0.8796
N670 G00 Z0.5
(2ND OP. CHAMFER)
N680 G90 G55 X-5.2469 Y0.5782
N685 G43 Z0.2 H05
N690 G01 Z0.
N700 G41 X-5.1829 Y0.5391
N710 G03 X-5.0696 Y0.6142 I0.0391 J0.064
N720 G02 X-5.0117 Y0.8306 I0.2769 J0.0418
N730 X-5.0028 Y0.8381 I0.0235 J-0.0187
N740 X-4.1386 Y0.624 I0.3177 J-0.5691
N750 G03 X-3.8008 Y0.48 I0.3386 J0.326
N760 G01 X-0.0374 Y0.6852
N770 G02 X-0.0367 Y-0.6853 I0.0374 J-0.6852
N780 G01 X-3.9508 Y-0.4757
N790 G03 X-4.2984 Y-0.6082 I0.0008 J-0.5243
N800 G02 X-4.3007 Y-0.6101 I-0.0199 J0.0224
N810 X-5.3428 Y-0.4369 I-0.436 J0.5983
N820 X-5.3479 Y-0.4241 I0.0246 J0.0172
N830 X-5.2899 Y-0.2078 I0.2769 J0.0417
N840 X-5.2587 Y-0.1975 I0.0235 J-0.0187
N850 G01 X-4.7874 Y-0.3238
N860 X-4.4547 Y0.009
N870 X-4.5765 Y0.4635
N880 X-5.0477 Y0.5897
N890 G02 X-5.0696 Y0.6142 I0.0077 J0.029
N900 G03 X-5.2 Y0.6527 I-0.0742 J-0.0111
N910 G40 G01 X-5.2497 Y0.5964
N920 G00 Z0.2
N930 X-2.8191 Y-0.0254
N940 G01 Z0.
N950 G41 X-2.7701 Y-0.0822
N960 G03 X-2.6393 Y-0.0452 I0.0568 J0.049
N970 X-3.197 Y0.0452 I-0.2789 J0.0452
N980 X-2.6393 Y-0.0452 I0.2788 J-0.0452
N990 X-2.7517 Y0.0312 I-0.074 J0.012
N1000 G40 G01 X-2.8162 Y-0.0072
N1010 G00 Z0.2
N1020 X-0.6903 Y0.2311
N1030 G01 Z0.
N1040 G41 X-0.645 Y0.2909
N1050 G03 X-0.7085 Y0.4111 I-0.0598 J0.0453
N1060 G01 X-2.3504 Y0.3301
N1070 G03 X-2.4956 Y0.1235 I0.0078 J-0.1598
N1080 G02 X-2.4768 Y0.0157 I-0.4226 J-0.1293
N1090 X-2.4956 Y-0.135 I-0.4414 J-0.0215
N1100 G03 X-2.3504 Y-0.3416 I0.153 J-0.0468
N1110 G01 X-0.7085 Y-0.4226
N1120 G03 X-0.5504 Y-0.2077 I0.0079 J0.1598
N1130 G02 Y0.1962 I0.5504 J0.2019
N1140 G03 X-0.7085 Y0.4111 I-0.1502 J0.0551
N1150 X-0.7598 Y0.2852 I0.0037 J-0.0749
N1160 G40 G01 X-0.7088 Y0.2302
N1170 G00 Z0.2
N1180 X0.2431 Y-0.036
N1190 G01 Z0.
N1200 G41 X0.295 Y-0.0902
N1210 G03 X0.4237 Y-0.0465 I0.0542 J0.0519
N1220 X-0.4237 Y0.0466 I-0.4237 J0.0465
N1230 X0.4237 Y-0.0467 I0.4237 J-0.0466
N1240 X0.3075 Y0.0239 I-0.0746 J0.0082
N1250 G40 G01 X0.2451 Y-0.0177
N1260 G00 Z0.5
N1310 M99
(=================================)
O04002
(G47 Engraving Demo)
(Three examples at N1,N2,N3)
(---------------------------------)
(N1 - FIRST Example)
(G47 Engraving NUMBERS example)
(G47 Engraving numbers with P1, is)
(Used to engrave serial numbers.)
(Specify the first number to start)
(with in MACRO VARIABLE #599.)
(The #### Between parenthesis is)
(on the G47 line is used to Select)
(the Number of Digits.)
(---------------------------------)
N1
(G47 Engraving NUMBERS with P1)
T1 M06 (ENGRAVING TOOL)
G90 G54 G00 X-3. Y0
S1500 M03
G43 H01 Z1. M08
G47 P1 X-3. Y0 I-10. J0.5 R0.05 Z-0.005 E10. F15. (###)
G00 Z1. M09
G53 G49 Y0 Z0 M05
T1 M06
M30
(---------------------------------)
(N2 - SECOND Example)
(G47 Engraving TEXT example)
(G47 Engraving text with PO, is)
(used to engrave a literal string)
(of text on a part. Enter the)
(desired text thats in-between)
(parenthasis to be engraved.)
(---------------------------------)
N2
(G47 Engraving TEXT with P0)
T1 M06 (ENGRAVING TOOL)
G90 G54 G00 X-3. Y0
S1500 M03
G43 H01 Z1. M08
G47 P0 X-3. Y0 I20. J0.5 R0.05 Z-0.005 E10. F15. (TEXT)
G00 Z1. M09
G53 G49 Y0 Z0 M05
T1 M06
M30
(---------------------------------)
(N3 - THIRD Example)
(G47 Engrave special TEXT example)
(G47 Engraving other text symbols PO, is)
(with P and the special NUMBER for)
(another keyboard symbol, thats)
(not listed on the HAAS keypad,)
(using P and a number for that)
(text character to engrave on a)
(part.)
(---------------------------------)
N3
(G47 Engrave special TEXT with P#)
T1 M06 (ENGRAVING TOOL)
G90 G54 G00 X-3. Y0
S1500 M03
G43 H01 Z1. M08
G47 P0 X-3. Y0 I20. J0.5 R0.05 Z-0.005 E10. F15. (TEXT)
G47 Y0.5 I20. P36
G47 Y1. I20. P37
G47 Y1. I20. P40
G47 Y1. I20. P38
G47 Y1.5 I20. P41
G47 Y1. I20. P43
G47 Y0.5 I20. P123
G47 Y0.7 I10. P126
G47 Y0.9 I20. P125
(And again with no angle)
G47 P0 X-3. Y-1. I0 J0.5 R0.05 Z-0.005 E10. F15. (TEXT)
G47 Y-1. I0 J0.5 P36
G47 Y-1. I0 J0.5 P37
G47 Y-1. I0 J0.5 P40
G47 Y-1. I0 J0.5 P38
G47 Y-1. I0 J0.5 P41
G47 Y-1. I0 J0.5 P43
G47 Y-1. I0 J0.5 P123
G47 Y-1. I0 J0.5 P126
G47 Y-1. I0 J0.5 P125
G00 Z1. M09
G53 G49 Y0 Z0 M05
T1 M06
M30
(=================================)
O05000
(vv MISC. MACRO PROGRAMS 5000 vv)
(=================================)
O05001
(This Macro command will Zero)
(Macro variable #599)
(---------------------------------)
N10
#599= 0
M30
(=================================)
O05002
(This Macro command will Add 1)
(to the Macro variable #599 to)
(Change the Serial No. to Engrave)
(on a G47 Command.)
(---------------------------------)
N10
#599= #599 + 1
M30
(=================================)
O05003
(This Macro command will Minus 1)
(from the Macro variable #599 to)
(Change the Serial No. to Engrave)
(on a G47 Command.)
(---------------------------------)
N10
#599= #599 - 1
M30
(=================================)
O05004
N101 (Engrave Date and Time Macro)
(---------------------------------)
T10 M06 (T10 ENGRAVING TOOL)
G90 G54 G00 X0 Y0
G43 Z0.1 H10
S7500 M03
(Engrave NAME)
G47 P0 X0 Y0 I30. J0.5 R0.05 Z-0.015 F20. (*Enter Name*)
(Engrave Actual DATE using Macro)
#100= FIX[ #3011 / 10000 ]
#101= FIX[ #3011 / 100 ] - [ #100 * 100 ]
#102= #3011 - [ #100 * 10000 ] - [ #101 * 100 ]
#599= #100
G47 P1 (##/) X-1.6 Y-1.7 I0 J0.15 R0.05 Z-0.295
#599= #101
G47 P1 (##/) I0 J0.15 R0.05 Z-0.295
#599= #102
G47 P1 (##) I0 J0.15 R0.05 Z-0.295
(Engrave Actual TIME using Macro)
#100= FIX[ #3012 / 10000 ]
#101= FIX[ #3012 / 100 ] - [ #100 * 100 ]
#102= #3012 - [ #100 * 10000 ] - [ #101 * 100 ]
#599= #100
G47 P1 ( ##:) I0 J0.15 R0.05 Z-0.295
#599= #101
G47 P1 (##:) I0 J0.15 R0.05 Z-0.295
#599= #102
G47 P1 (##) I0 J0.15 R0.05 Z-0.295
G28
M30
(=================================)
O09000
(vvvvvvvv PROGRAMS 9000 vvvvvvvv)
(Turning setting 23 ON will hide)
(programs that are defined as)
(O9### numbers.)
(=================================)
O09002
(Setting 23)
(Turning setting 23 ON will hide)
(programs that are defined as)
(O9### numbers.)
(=================================)
O90000
(vvvv MILL WORKBOOK PROGRAMS vvv)
(=================================)
O90010
(P.10 Program Format)
G80 G00 Z1. M09
G28 G91 Z0 M05
M00 (ADD BOLTS AND REMOVE CLAMPS)
(=================================)
(=================================)
O90023
(P.23 Milling Program Example)
N1 (DRILL 4 PLACES)
T1 M06 (1/2 DIA. STUB DRILL)
G90 G54 G00 X-1.5 Y1.5 S1400 M03
G43 H01 Z1. M08
G73 G99 Z-0.625 Q0.2 R0.1 F5.
Y-1.5
/ X1.5
/ Y1.5
G80 G00 Z1. M09
G28 G91 Z0. M05
M01
N2 (COUNTERSINK 4 PLACES)
T2 M06 (5/8 DIA. 90 DEG. C,SINK)
G90 G54 G00 X-1.5 Y1.5 S900 M03
G43 H02 Z1. M08
G82 G99 Z-0.27 P0.5 R0.1 F12.
Y-1.5
/ X1.5
/ Y1.5
G80 G00 Z1. M09
G28 G91 Z0 M05
M00 (ADD BOLTS AND REMOVE CLAMPS)
O90028
(P.28 Rapid Positioning Example)
N1 (Abs. and Inc. Positioning)
T1 M06 (1/2 DIA. STUB DRILL)
G90 G54 G00 X-3. Y-1. S1400 M03
G43 H01 Z1. M08
(Absolute Positioning)
G90
G00 X2.25 Y1.25
M00
Y-1.
X-3.
M00
(Incremental Positioning)
G91
G00 X5.25 Y2.25
M00
Y-2.25
X-5.25
M00
O90029
(P.29 G01 Linear Motion Example)
N1 (Abs. and Inc. Motion)
T1 M06 (1/2 DIA. E.M.)
G90 G54 G00 X-0.35 Y-0.25 S1400 M03
G43 H01 Z1. M08
Z-0.25
(Absolute Motion)
G01 G41 X0. Y-0.25 D01 F12.
G90 Y1.75 (Absolute G90 Command)
X0.546 Y3.25
X2.
Y0.
X0.
G40 X-0.35 Y-0.25
M00
(Incremental Motion)
G01 G41 X0. Y-0.25 D01 F12.
G91 Y2. (Incremental G91 Command)
X0.546 Y1.5
X1.454
Y-3.25
X-2.
G40 X-0.35 Y-0.25
M00
O90032
(P.32 G02 CW Circular Motion)
(G02 CW Circular Motion)
N1 T1 M06 (1/2 DIA. E.M.)
N2 G90 G54 G00 X-0.25 Y-0.25
N3 S1400 M03
N4 G43 H01 Z0.1 M08
N5 Z-0.25
N6 G01 Y1.25 F12.
N7 X1.5
N8 G02 X2.25 Y0.5 R0.75
(or N8 G02 X2.25 Y0.5 I0. J-.75)
N9 G01 Y-0.25
N10 G80 G00 Z1. M09
N11 G28 M05
N12 M30
(=================================)
O90033
(P.33 G02 CW Circular IJ Motion)
(G02 I&J CW Circular Motion)
T1 M06 (1/2 DIA. E.M.)
G90 G54 G00 X-2.35 Y0
S1400 M03
G43 H01 Z0.1 M08
Z-0.25
G01 X-2.25 F12.
Y1.75
G02 X-1.75 Y2.25 I0.5 J0.
G01 X1.5
G02 X2.25 Y1.5 I0. J-0.75
G01 Y-1.25
G02 X1.25 Y-2.25 I-1. J0.
G01 X-1.
G02 X-2.25 Y-1. I0. J1.25
G01 Y0.
X-2.35
G80 G00 Z1. M09
G28 G91 Y0. M05
M30
(=================================)
O90034
(P.34 G02 CW Circular R Motion)
(G02 I&J CW Circular Motion)
T1 M06 (1/2 DIA. E.M.)
G90 G54 G00 X-2.35 Y0
S1400 M03
G43 H01 Z0.1 M08
Z-0.25
G01 X-2.25 F12.
Y1.75
G02 X-1.75 Y2.25 R0.5
G01 X1.5
G02 X2.25 Y1.5 R0.75
G01 Y-1.25
G02 X1.25 Y-2.25 R1.
G01 X-1.
G02 X-2.25 Y-1. I0. J1.25
G01 Y0.
X-2.35
G80 G00 Z1. M09
G28 G91 Y0. M05
M30
(=================================)
O90035
(P.35 G03 CCW Circular Motion)
(G03 CW Circular Motion)
N1 T1 M06 (1/2 DIA. E.M.)
N2 G90 G54 G00 X0.25 Y-0.25
N3 S1400 M03
N4 G43 H01 Z0.1 M08
N5 Z-0.25
N6 G01 Y1.25 F12.
N7 X-1.5
N8 G03 X-2.25 Y0.5 R0.75
(or N8 G03 X-2.25 Y0.5 I0. J-.75)
N9 G01 Y-0.25
N10 G80 G00 Z1. M09
N11 G28 M05
N12 M30
(=================================)
O90036
(P.36 G03 CCW Circular IJ Motion)
(G03 I&J CCW Circular Motion)
T1 M06 (1/2 DIA. E.M.)
G90 G54 G00 X-2.35 Y0.
S1400 M03
G43 H01 Z0.1 M08
Z-0.25
G01 X-2.25 F12.
Y-1.
G03 X-1. Y-2.25 I1.25 J0.
G01 X1.25
G03 X2.25 Y-1.25 I0. J1.
G01 Y1.5
G03 X1.5 Y2.25 I-0.75 J0.
G01 X-1.75
G03 X-2.25 Y1.75 I0. J-0.5
G01 Y0.
X-2.35
G80 G00 Z1. M09
G28 G91 Y0. M05
M30
(=================================)
O90037
(P.37 G03 CCW Circular R Motion)
(G03 R CCW Circular Motion)
T1 M06 (1/2 DIA. E.M.)
G90 G54 G00 X-2.35 Y0.
S1400 M03
G43 H01 Z0.1 M08
Z-0.25
G01 X-2.25 F12.
Y-1.
G03 X-1. Y-2.25 R1.25
G01 X1.25
G03 X2.25 Y-1.25 R1.
G01 Y1.5
G03 X1.5 Y2.25 R0.75
G01 X-1.75
G03 X-2.25 Y1.75 R0.5
G01 Y0.
X-2.35
G80 G00 Z1. M09
G28 G91 Y0. M05
M30
(=================================)
O90038
(P.38 G02 & G03 with R and R-)
T1 M06 (1/2 DIA. E.M.)
G90 G54 G00 X-0.35 Y-0.25
S1400 M03
G43 H01 Z0.1 M08
Z-0.25
G01 X-0.25 F12.
Y1.5
G02 X1.884 Y2.384 R1.25
G01 X2.884 Y1.384
Y-0.25
X-0.35
G80 G00 Z1. M09
G28 G91 Y0. M05
M00
T1 M06 (1/2 DIA. E.M.)
G90 G54 G00 X-0.35 Y-0.25
S1400 M03
G43 H01 Z0.1 M08
Z-0.25
G01 X-0.25 F12.
Y1.5
G02 X1.884 Y0.616 R-1.25
G01 X1.018 Y-0.25
X-0.35
G80 G00 Z1. M09
G28 G91 Y0. M05
M30
(=================================)
O90047
(P.47=G12/G13 One Pass I Only)
(FIRST G12/G13 EXAMPLE)
(*The first example will do the)
(G13 circular pocket with the same)
(feedrate in X,Y and Z axes.)
( The second example is the same)
(as the first example, except a Z)
(axis feed move down has been)
(added with a different feedrate)
(then what the X and Y axes are)
(doing in the G13 circular pocket.)
(SECOND G13 EXAMPLE below)
(Adds a Z move with a different)
(feed move down)
(---------------------------------)
(FIRST G12/G13 EXAMPLE)
(G12 ONE PASS USING I ONLY)
N11 (D01 DIA. OFFSET IS .500)
N12 T1 M06 (1/2 DIA. 2 FLT E.M.)
N13 G90 G54 G00 X2.5 Y2.5
N14 S1910 M03
N15 G43 H01 Z0.1 M08
N16 G13 Z-0.5 I0.5 D01 F12. (*)
N17 G00 Z1. M09
N18 G53 G49 Z0. M05
N19 M30
(---------------------------------)
(SECOND G12/G13 EXAMPLE)
(**This second example is the same)
(as the first example, except a Z)
(axis feed move down has been)
(added with a different feedrate)
(then what the X and Y axes are)
(doing in the G13 circular pocket)
(command.)
(---------------------------------)
(G12/G13 ONE PASS USING I ONLY)
N21 (D01 DIA. OFFSET IS .500)
N22 T1 M06 (1/2 DIA. 2FLT END MILL)
N23 G90 G54 G00 X2.5 Y2.5
N24 S1910 M03
N25 G43 H01 Z0.1 M08
N26 G01 Z-0.5 F30. (**)
N27 G13 Z-0.5 I0.5 D01 F12. (**)
N28 G00 Z1. M09
N29 G53 G49 Z0. M05
N30 M30
(=================================)
O90048
(P.48=G13 Multiple Pass I,K,Q)
(FIRST G13 EXAMPLE)
(*The first example will do the)
(G13 circular pocket with the same)
(feedrate in X,Y and Z axes.)
(The second example is the same)
(as the first example, except a Z)
(axis feed move down has been)
(added with a different feedrate)
(then what the X and Y axes are)
(doing in the G13 circular pocket.)
(SECOND G13 EXAMPLE below)
(Adds a Z move with a different)
(feed move down)
(---------------------------------)
(FIRST G13 EXAMPLE)
(G13 MULTIPLE PASS I,K & Q to do a)
(3.0 Dia.x.5 Deep circular pocket.)
N31 (D02 DIA. OFFSET IS .625)
N32 T2 M06 (5/8 DIA. 2 FLT E.M.)
N33 G90 G54 G00 X2.5 Y2.5
N34 S1500 M03
N35 G43 H02 Z0.1 M08
N36 G13 Z-0.5 I0.3 K1.5 Q0.3 D02 F9. (*)
N37 G00 Z1. M09
N38 G53 G49 Z0. M05
N39 M30
(---------------------------------)
(SECOND G13 EXAMPLE)
(**This second example is the same)
(as the first example, except a Z)
(axis feed move down has been)
(added with a different feedrate)
(then what the X and Y axes are)
(doing in the G13 circular pocket)
(command.)
(---------------------------------)
(G13 MULTIPLE PASS I,K & Q to do a)
(3.0 Dia.x.5 Deep circular pocket.)
N41 (D02 DIA. OFFSET IS .625)
N42 T2 M06 (5/8 DIA. 2 FLT E.M.)
N43 G90 G54 G00 X2.5 Y2.5
N44 S1500 M03
N45 G43 H02 Z0.1 M08
N46 G01 Z-0.5 F6. (*)
N47 G13 Z-0.5 I0.3 K1.5 Q0.3 D02 F9. (**)
N48 G00 Z1. M09
N49 G53 G49 Z0. M05
N50 M30
(=================================)
O90049
(P.49=G13 Multi Z Passes+G91)
(TO DEPTH USING G91 AND AN L LOOP)
(COUNT)
(Since the G91 incremental is)
(looped together within the G13)
(circular pocket command, you are)
(NOT able to separate the Z axis)
(feed from the X and Y axis feed,)
(unless you have a separate G12 or)
(G13 for each step down, with a Z)
(move at a different feedrate.)
( You may want to fast feed down)
(to the surface of where the)
(pocket starts on the part, to)
(begin incrementally stepping down)
(to the desired depth.)
(---------------------------------)
(G13 MULTIPLE Z PASSES)
N1 (D02 DIA. OFFSET IS .625)
N2 T2 M06 (5/8 DIA. 2 FLT END MILL)
N3 G90 G54 G00 X2.5 Y2.5
N4 S1500 M03
N5 G43 H02 Z0.1 M08
N6 G01 Z0. F30.
N7 G13 G91 Z-0.375 I0.325 K2. Q0.3 D02 L4 F12.
N8 G00 G90 Z1. M09
N9 G53 G49 Z0. M05
N10 M30
(=================================)
O90054
(P.54=G17 XY Circular Plane)
N1 T1 M06 (1/2 DIA. 2 FLT E.M.)
N2 G90 G54 G00 X4. Y3.25 S2600 M03
N3 G43 H01 Z0.1 M08
N4 G01 Z-0.5 F50.
N5 G17 G02 X5.25 Y2. R1.25 F10.
N6 G00 Z0.1
N7 X5. Y-0.25
N8 G01 Z-0.5 F50.
N9 X3.25 Y0.8
N10 Y-0.25
N11 G00 Z1.
N12 X-0.25 Y1.
N13 G01 Z-0.5 F50.
N14 G17 G03 X1. Y-0.25 R1.25 F10.
N15 G00 Z1. M09
N16 G53 G49 Y0. Z0. M05
N17 M30
(=================================)
O90055
(P.55=G18 ZX Circular Plane)
N1 T1 M06 (1/2 DIA. 2FLT BALL E.M.)
N2 G90 G54 G00 X3. Y0. S2600 M03
N3 G43 H01 Z0.1 M08
N4 G01 Z0. F20.
N5 M97 P100 L80
N6 G00 Z1. M09
N7 G53 G49 Y0. Z0. M05
N8 M30
(Local sub-routine N100 called by)
(M97 P100 in line N5 and repeated)
(80 times with L80)
(---------------------------------)
N100 G91 G01 Y0.01
N101 G90
N102 G18 G03 X1.5 Z0. R0.75 F12.
N103 G91 G01 Y0.01
N104 G90
N105 G18 G02 X3. Z0. R0.75 F12.
N106 M99
(=================================)
O90056
(P.56=G19 YZ Circular Plane)
N1 T1 M06 (1/2 DIA. 2FLT BALL E.M.)
N2 G90 G54 G00 X0. Y3. S2600 M03
N3 G43 H01 Z0.1 M08
N4 G01 Z0. F20.
N5 M97 P100 L80
N6 G00 Z1. M09
N7 G53 G49 Y0. Z0. M05
N8 M30
(Local sub-routine N100 called by)
(M97 P100 in line N5 and repeated)
(80 times with L80)
(---------------------------------)
N100 G91 G01 X-0.01
N101 G90
N102 G19 G03 Y1.5 Z0. R0.75 F12.
N103 G91 G01 X-0.01
N104 G90
N105 G19 G02 Y3. Z0. R0.75 F12.
N106 M99
(=================================)
O90059
(P.59=Without/With Cutter Comp.)
(2 Passes)
(1st Pass is without cutter comp.)
(2nd Pass is with cutter comp.)
(---------------------------------)
(D01 Dia. OFFSET is .500)
N101 T1 M06 (1/2 DIA. 4 FLT E.M.)
N102 G90 G54 G00 X-2.5 Y-2.
N103 S1600 M03
N104 G43 H01 Z0.1 M08
N105 G01 Z-0.45 F50.
N106 X-2.25 F12.
N107 Y1.75
N108 G02 X-1.75 Y2.25 R0.5
N109 G01 X1.5
N110 G02 X2.25 Y1.5 R0.75
N111 G01 Y-1.1751 (Y?.????)
N112 X-0.7061 Y-2.25 (X?.????)
N113 X-1.75
N114 G02 X-2.25 Y-1.75 R0.5
N115 G01 X-2.35 Y-2.
O90060
(P.60=With No Cutter Comp.)
N1 T3 M06 (3/4 DIA. 4 FLT END MILL)
N2 G90 G54 G00 X-0.475 Y-0.1
N3 S1275 M03
N4 G43 H03 Z0.1 M08
N5 G01 Z-0.25 F50.
N6 X-0.375 F12.
N7 (Y? center of tool)
N8 (X? center of tool) Y1.875
N9 X2.6
N10 G00 Z1. M09
N11 G53 G49 Y0. Z0. M05
N12 M30
(=================================)
O90061
(P.61=With Cutter Compensation)
(D03 DIA. OFFSET IS .750)
N1 T3 M06 (3/4 DIA. 4 FLT END MILL)
N2 G90 G54 G00 X-0.475 Y-0.1
N3 S1275 M03
N4 G43 H03 Z0.1 M08
N5 G01 Z-0.25 F50.
N6 G41 X0. D03 F12.
N7 Y0.75
N8 X1.25 Y1.5
N9 X2.6
N10 G40 G01 X2.7 Y2.
N11 G00 Z1. M09
N12 G53 G49 Y0. Z0. M05
M30
(=================================)
O90062
(P.62=Cutter Comp. and Tool Dia.)
(D03 DIA. OFFSET IS .500)
N1 T3 M06 (1/2 DIA. 4 FLT END MILL)
N2 G90 G54 G00 X-0.475 Y-0.1
N3 S1275 M03
N4 G43 H03 Z0.1 M08
N5 G01 Z-0.25 F50.
N6 G41 X0. D03 F12.
N7 Y0.75
N8 X1.25 Y1.5
N9 X2.6
N10 G40 G01 X2.7 Y2.
N11 G00 Z1. M09
N12 G53 G49 Y0. Z0. M05
M30
(=================================)
O90063
(P.63=C.C. Rough/Finish Passes)
(with two different dia. offsets)
(ROUGH = D21 Dia. OFFSET of .520)
(FINISH = D01 Dia. OFFSET of .500)
(---------------------------------)
N1 T1 M06 (1/2 DIA. 4 FLT END MILL)
N2 G90 G54 G00 X-2.5 Y-2. S1600 M03
N3 G43 H01 Z0.1 M08
N4 G01 Z-0.45 F30.
N5 G41 X-2. D21 F12.
N6 Y1.75
N7 G02 X-1.75 Y2. R0.25
N8 G01 X1.5
N9 G02 X2. Y1.5 R0.5
N10 G01 Y-1.
N11 X-0.75 Y-2.
N12 X-1.75
N13 G02 X-2. Y-1.75 R0.25
N14 G40 G01 X-2.35 Y-2.
N15 G41 G01 X-2. D01 F8.
N16 Y1.75
N17 G02 X-1.75 Y2. R0.25
N18 G01 X1.5
N19 G02 X2. Y1.5 R0.5
N20 G01 Y-1.
N21 X-0.75 Y-2.
N22 X-1.75
N23 G02 X-2. Y-1.75 R0.25
N24 G40 G01 X-2.35 Y-2.
N25 G00 Z1. M09
N26 G53 G49 Y0 Z0 M05
N27 M30
(=================================)
O90068
(P.68=Loop Single Helical Move)
(FIRST HELICAL EXAMPLE)
(Repeating a single helical move)
(10 times to do a 2.0-12UN thread.)
(Tool is positioned down inside)
(thread in the Z axis on line N5,)
(and then moved up with a positive)
(Z move in N7 for the helical move)
(to climb cut thread tool.)
(---------------------------------)
N1 T4 M06 (SINGLE POINT THRD. TOOL)
N2 G90 G54 G00 X1.6 Y-1.25
N3 S1500 M03
N4 G43 H04 Z0.1 M08
N5 G01 Z-0.8 F50.
N6 G41 X2.25 D04 F10.
N7 G91 G03 X0. Y0. I-1. J0. Z0.0833 F3. L10
N8 G90 G40 G01 X1.6 Y-1.25
N9 G00 Z0.1 M09
N10 G53 G49 Z0.
N11 M30
(---------------------------------)
(SECOND HELICAL EXAMPLE)
(*This second example is the same)
(as the first example, without)
(some of the letter commands in)
(line N7. These ending command)
(values where defined with a G91)
(incremental move that has the)
(ending point the same as the)
(start point. And if it starts and)
(ends at the same location in)
(either axis, you dont need to)
(list them again. And if either)
(I and J are zero, they dont need)
(to be entered in the program.)
(---------------------------------)
N1 T4 M06 (SINGLE POINT THRD. TOOL)
N2 G90 G54 G00 X1.6 Y-1.25
N3 S1500 M03
N4 G43 H04 Z0.1 M08
N5 G01 Z-0.8 F50.
N6 G41 X2.25 D04 F10.
N7 G91 G03 I-1. Z0.0833 F3. L10
N8 G90 G40 G01 X1.6 Y-1.25
N9 G00 Z0.1 M09
N10 G53 G49 Z0.
N11 M30
(=================================)
O90069
(P.69=Thread Hob Helical Move)
(FIRST HELICAL EXAMPLE)
(Doing a single helical move once,)
(with a thread hob, to do a)
(2.0-12UN thread.)
(Tool is positioned down inside)
(thread in the Z axis on line N5,)
(and then moved up with a positive)
(Z move in N7 for the helical move)
(to climb cut thread tool.)
(Below is a SECOND HELICAL EXAMPLE)
(---------------------------------)
N1 T3 M06 (3/4 DIA. THREAD MILL)
N2 G90 G54 G00 X1.25 Y-1.25
N3 S1500 M03
N4 G43 H03 Z0.1 M08
N5 G01 Z-1. F50.
N6 G41 X1.75 Y-1.75 D03
N7 G03 X2.25 Y-1.25 R0.5 F10.
N8 G03 X2.25 Y-1.25 I-1. J0. Z-0.9167 F12.
N9 G03 X1.75 Y-0.75 R0.5
N10 G40 G01 X1.25 Y-1.25
N11 G00 Z0.1 M09
N12 G53 G49 Z0.
N13 M30
(---------------------------------)
(SECOND HELICAL EXAMPLE)
(*This second example is the same)
(as the first example, without)
(some of the letter commands in)
(line N8. These commands where)
(the same as the commands in N7.)
(And if these command values are)
(the same, you dont need to list)
(them again. And if I and J are)
(zero, they dont need to be)
(entered in the program.)
(And G03 does not need to be in)
(lines N8 and N9 since the G03 in)
(line N7 is modal, though for)
(clarity its a good idea to list)
(all arcs with either G02 or G03.)
(---------------------------------)
N1 T3 M06 (3/4 DIA. THREAD MILL)
N2 G90 G54 G00 X1.25 Y-1.25
N3 S1500 M03
N4 G43 H03 Z0.1 M08
N5 G01 Z-1. F50.
N6 G41 X1.75 Y-1.75 D03
N7 G03 X2.25 Y-1.25 R0.5 F10.
N8 G03 I-1. Z-0.9167 F12.
N9 G03 X1.75 Y-0.75 R0.5
N10 G40 G01 X1.25 Y-1.25
N11 G00 Z0.1 M09
N12 G53 G49 Z0.
N13 M30
(=================================)
O90072
(P.72=G98/G99 Return Plane)
N1 T2 M06 (7/16 DIA. CARBIDE DRILL)
N2 G90 G54 G00 X1.5 Y-0.5
N3 S1200 M03
N4 G43 H02 Z1. M08
N5 G83 G99 Z-1.2 Q0.2 R0.1 F8.
N6 X0.5 Y-0.75
N7 Y-2.25
N8 G98 X1.5 Y-2.5
N9 G99 X3.5 R-0.4
N10 X4.5 Y-2.25
N11 Y-0.75
N12 X3.5 Y-0.5
N13 G80 G00 Z1. M09
N14 G53 G49 Z0. M05
N15 M30
(=================================)
O90073
(P.73=G81 Drilling Cycle)
N1 T1 M06 (1/2 DIA. DRILL)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H01 Z1. M08
N5 G81 G99 Z-0.625 R0.1 F10.
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90074
(P.74=G82 Drill*Dwell Cycle)
(The P command in a G82 is used to)
(dwell at the end of drill cycle)
(---------------------------------)
N1 T1 M06 (1/2 DIA. C,BORE TOOL)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H01 Z1. M08
N5 G82 G99 Z-0.625 P1.5 R0.1 F10.
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90076
(P.76=G83 Deep Drill with Q)
(The P command can be used to)
(dwell at the end of the Z depth)
(on a G83 drill cycle.)
(---------------------------------)
N1 T3 M06 (1/2 DIA. x 2.5 L. DRILL)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H03 Z1. M08
N5 G83 G99 Z-2.125 Q0.5 R0.1 F10.
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90077
(P.77=G83 Deep Drill with IJK)
(The P command can be used to)
(dwell at the end of the Z depth)
(on a G83 drill cycle.)
(---------------------------------)
N1 T3 M06 (1/2 DIA. x 2.5 L. DRILL)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H03 Z1. M08
N5 G83 G99 Z-2.125 I0.5 J0.1 K0.2 R0.1 F10.
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90080
(P.80=G84 R.H. Tapping Cycle)
(You dont need to start the)
(sindle with an M03 for a tap)
(thats using a G84 because this)
(G84 cycle will turn the spindle)
(on for you.)
(---------------------------------)
N1 T4 M06 (7/16-14 TAP)
N2 G90 G54 G00 X0.75 Y0.75
N3 S450 (The G84 Turns on spindle)
N4 G43 H04 Z1. M08
N5 G84 G99 Z-0.65 R0.1 J3 F32.1429
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90081
(P.81=G85 Bore In-Bore Out)
(G85 Bores in to Z depth, then)
(bores out)
(---------------------------------)
(P.83 BORE IN BORE OUT CYCLE G85)
N1 T5 M06 (BORING BAR)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H05 Z1. M08
N5 G85 G99 Z-0.55 R0.1 F4.5
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90082
(P.82=G86 Bore-Stop-Rapid Out)
(G86 Bores in to Z depth, spindle)
(stops, and then rapids out.)
(---------------------------------)
N1 T6 M06 (BORING BAR)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H06 Z1. M08
N5 G86 G99 Z-0.55 R0.1 F4.5
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90083
(P.83=G87 Bore-Manual Retract)
(G87 Bores in to Z depth, spindle)
(stops, handwheel out.)
(---------------------------------)
N1 T7 M06 (BORING BAR)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H07 Z1. M08
N5 G87 G99 Z-0.55 R0.1 F4.5
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90084
(P.84=G88 Bore-Dwell-Manual)
(G87 Bores in to Z depth, dwell,)
(spindle stops, handwheel out.)
(---------------------------------)
N1 T8 M06 (BORING BAR)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H08 Z1. M08
N5 G88 G99 Z-0.55 P0.5 R0.1 F4.5
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90085
(P.85=G89 Bore-Dwell-Bore Out)
(G89 Bores in to Z depth, dwell,)
(bores out.)
(---------------------------------)
N1 T9 M06 (BORING BAR)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H09 Z1. M08
N5 G89 G99 Z-0.55 P0.5 R0.1 F4.5
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90089
(P.89=G73 HS Peck Drill with Q)
(The P command can be used to)
(dwell at the end of the Z depth)
(on a G73 drill cycle.)
(---------------------------------)
N1 T3 M06 (1/2 DIA. x 2.5 L. DRILL)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H03 Z1. M08
N5 G73 G99 Z-2.125 Q0.1 R0.1 F10.
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90090
(P.90=G73 HS Peck Drill IJK)
(The P command can be used to)
(dwell at the end of the Z depth)
(on a G73 drill cycle.)
(---------------------------------)
N1 T3 M06 (1/2 DIA. x 2.5 L. DRILL)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H03 Z1. M08
N5 G73 G99 Z-2.125 I0.5 J0.1 K0.2 R0.1 F10.
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90091
(P.91=G73 HS Peck Drill KQ)
(The P command can be used to)
(dwell at the end of the Z depth)
(on a G73 drill cycle.)
(---------------------------------)
N1 T3 M06 (1/2 DIA. x 2.5 L. DRILL)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H03 Z1. M08
N5 G73 G99 Z-2.125 Q0.2 K1. R0.1 F10.
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90092
(P.92=G74 L.H. Tapping Cycle)
(You dont need to start the)
(sindle with an M03 for a tap)
(thats using a G74 because this)
(G74 cycle will turn the spindle)
(on for you.)
(---------------------------------)
N1 T4 M06 (1/2-20 L.H. TAP)
N2 G90 G54 G00 X0.75 Y0.75
N3 S450 (The G74 Turns on spindle)
N4 G43 H04 Z1. M08
N5 G74 G99 Z-0.65 R0.1 J5 F22.5
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90093
(P.93=G76 Bore-Stop-Shift-Rapid)
(FIRST G76 Example = N1)
(SECOND G76 Example = N21)
(G76 Bores in to Z depth, spindle)
(stops, shifts off the amount of)
(Q in the X or Y direction either)
(+ or - as selected in setting 27,)
(and then rapids out.)
(BE SURE tool tip is positioned)
(accordingly with the position of)
(the spindle when it orientates.)
(Below is a SECOND G76 EXAMPLE)
(---------------------------------)
(FIRST G76 Example = N1)
N1 T6 M06 (BORING BAR)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H06 Z1. M08
N5 G76 G99 Z-0.55 Q0.01 R0.1 F4.5
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(---------------------------------)
(SECOND G76 Example = N21)
(*This second G76 example is the)
(same as the first example, except)
(the shift amount can be defined)
(with the I and J commands. I is)
(to shift the X axis, and J shifts)
(the Y axis in the +/- direction.)
(---------------------------------)
N21 T6 M06 (BORING BAR)
N22 G90 G54 G00 X0.75 Y0.75
N23 S1451 M03
N24 G43 H06 Z1. M08
N25 G76 G99 Z-0.55 P0.5 I-0.01 R0.1 F4.5
N26 X1.5 Y1.5
N27 G80 G00 Z1. M09
N28 G53 G49 Z0. M05
N29 M30
(=================================)
O90094
(P.94=G77 BackBore)
(FIRST G76 Example = N1)
(SECOND G76 Example = N21)
(G77 Above a part, stops spindle,)
(orientates, shifts off center,)
(rapids in to the R plane, shifts)
(back to center, turns on spindle,)
(feeds up to Z depth to produce)
(back counterbore, stops spindle,)
(shifts off, and rapids out.)
( G77 shifts off the amount of)
(Q in the X or Y direction either)
(+ or - as selected in setting 27.)
(BE SURE tool tip is positioned)
(accordingly with the positioning)
(of spindle when it orientates.)
(---------------------------------)
(FIRST G77 Example = N1)
N1 T7 M06 (BACK BORING BAR)
N2 G90 G54 G00 X0.75 Y0.75
N3 S1451 M03
N4 G43 H07 Z1. M08
N5 G77 G99 Z-0.55 Q0.06 R0.1 F4.5
N6 X1.5 Y1.5
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(---------------------------------)
(SECOND G77 Example = N21)
(This second G77 example is the)
(same as the first example, except)
(the shift amount can be defined)
(with the I and J commands. I is )
(to shift the X axis, and J shifts)
(the Y axis in the +/- direction.)
(---------------------------------)
N21 T7 M06 (BORING BAR)
N22 G90 G54 G00 X0.75 Y0.75
N23 S1451 M03
N24 G43 H07 Z1. M08
N25 G77 G99 Z-0.55 I-0.06 R0.1 F4.5
N26 X1.5 Y1.5
N27 G80 G00 Z1. M09
N28 G53 G49 Z0. M05
N29 M30
(=================================)
O90096
(P.96=G70 Bolt Hole Circle)
(I=The BHC radius)
(J=Starting angle from 3*oClock)
(L=Number of holes)
(Minus sign will reverse angle)
(---------------------------------)
N1 T1 M06 (1/2 DIA. DRILL)
N2 G90 G54 G00 X2. Y-1.5
N3 S1451 M03
N4 G43 H01 Z1. M08
N5 G81 G99 Z-0.45 R0.1 F8. L0
N6 G70 I1. J0. L8
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90097
(P.97=G71 Bolt Hole Arc)
(I=The BHC radius)
(J=Starting angle from 3*oClock)
(K=angular spacing between holes)
(L=Number of holes)
(Minus sign will reverse angles)
(---------------------------------)
N1 T1 M06 (1/2 DIA. DRILL)
N2 G90 G54 G00 X2. Y-1.5
N3 S1451 M03
N4 G43 H01 Z1. M08
N5 G81 G99 Z-0.45 R0.1 F8. L0
N6 G71 I1. J15. K30. L7
N7 G80 G00 Z1. M09
N8 G53 G49 Z0. M05
N9 M30
(=================================)
O90098
(P.98=G72 Bolt Holes at Angle)
(I=Distance between the holes)
(J=Angle of holes from 3*oClock)
(L=Number of holes)
(Minus sign will reverse angle)
(---------------------------------)
N1 T1 M06 (1/2 DIA. DRILL)
N2 G90 G54 G00 X2. Y-1.5
N3 S1451 M03
N4 G43 H01 Z1. M08
N5 G81 G99 Z-0.45 R0.1 G72 I0.5 J20. L7 F8.
N6 G80 G00 Z1. M09
N7 G53 G49 Z0. M05
N8 M30
(=================================)
O90104
(P.104=M98 Sub-Program Call)
T1 M06 (90 DEG 5/8 DIA. SPOT DRILL)
G90 G54 G00 X1.5 Y-0.5
S1406 M03
G43 H01 Z1. M08
G81 G99 Z-0.26 R0.1 F7.
M98 P11107 (Calling Program O11107)
O90105
(P.105=Sub-Program for M98)
X0.5 Y-0.75
Y-2.25
G98 X1.5 Y-2.5
X3.5 R-0.4
X4.5 Y-2.25
Y-0.75
X3.5 Y-0.5
G80 G00 Z1. M09
G53 G49 Z0. M05
M99
(=================================)
O90106
(P.106=M97 Local Sub-Routine)
T1 M06 (90 DEG 5/8 DIA. SPOT DRILL)
G90 G54 G00 X1.5 Y-0.5
S1406 M03
G43 H01 Z1. M08
G81 G99 Z-0.26 R0.1 F7.
M97 P10
(Local Sub-Routine)
N10
X0.5 Y-0.75
Y-2.25
G98 X1.5 Y-2.5
X3.5 R-0.4
X4.5 Y-2.25
Y-0.75
X3.5 Y-0.5
G80 G00 Z1. M09
G53 G49 Z0. M05
M99
(=================================)
O90108
(P.108=G150 Pocket Mill Pgm.)
N100 (Shift over Y-axis using J)
N101 T1 M06 (1/2 DIA. DRILL)
N102 G90 G54 G00 X1.5 Y3.25
N103 S1451 M03
N104 G43 H01 Z1. M08
N105 G83 G99 Z-1.25 Q0.25 R0.1 F10.
N106 G80 G00 Z1. M09
N107 G53 G49 Z0. M05
O90109
(P.109=Pocket Geometry Sub-Pgm)
N1 G01 X0.5
N2 Y2.
N3 G03 X2.25 R0.875
N4 G01 X5.25
N5 G03 X7. R0.875
N6 G01 Y5.
N7 G03 X5.25 R0.875
N8 G01 X2.25
N9 G03 X0.5 R0.875
N10 G01 Y3.25
N11 M99 (Returns to main program)
(=================================)
O90110
(P.110=G150 Pocket Mill Island)
N100 (Shift over Y-axis using J)
N101 T1 M06 (1/2 DIA. DRILL)
N102 G90 G54 G00 X1.5 Y3.25
N103 S1451 M03
N104 G43 H01 Z1. M08
N105 G83 G99 Z-1.25 Q0.25 R0.1 F10.
N106 G80 G00 Z1. M09
N107 G53 G49 Z0. M05
O90111
(P.111=Pocket Island Sub-Pgm)
N101 G01 X0.5
N102 Y1.5
N103 G03 X2.25 R0.875
N104 G01 X4.
N105 Y3.
N106 X2.5
N107 G02 Y3.5 R0.25
N108 G01 X5.
N109 G02 Y3. R0.25
N110 G01 X3.4
N111 Y1.5
N112 X5.25
N113 G03 X7. R0.875
N114 G01 Y5.
N115 G03 X5.25 R0.875
N116 G01 X2.25
N117 G03 X0.5 R0.875
N118 G01 Y3.25
N119 M99 (Returns to main program)
(=================================)
O91000
(vvvvvvv DEMO PROGRAMS vvvvvvv)
(=================================)
O91001
(Mill Class Demo Program)
(HOLD PART IN A 6 IN. VISE WITH A STEP IN JAWS TO SECURE PART)
(MATERIAL IS 1.5 IN. THICK X 4 IN. WIDE X 7.0 LONG 1018 STEEL BAR STOCK)
(LOAD WORKPIECE WITH LEFT EDGE FLUSH TO LEFT EDGE OF VISE)
(G59 XY WORK ZERO OFFSET IS THE UPPER LEFT CORNER OF PART)
(SET TOOLS OFF TOP OF PART)
(---------------------------------)
N1 (FACE MILL MULTIPLE .150 DEEP)
(PASSES OFF TOP OF PART)
T1 M06 (T1- 3.0 DIA. ISCAR 45 DEG.)
(LEAD5 CARBIDE INSERT SHELL MILL)
G90 G55 G00 X-1.9 Y-0.4
S950 M03
G43 Z1. H01
G01 Z-0.15 F100.
X8.5 F38.
G00 Z0.1
X-1.9 Y-3.4
G01 Z-0.15 F100.
X8.5 F38.
G00 Z0.1
X-1.9 Y-0.4
G01 Z-0.3 F100.
X8.5 F38.
G00 Z0.1
X-1.9 Y-3.4
G01 Z-0.3 F100.
X8.5 F38.
G00 Z0.1
X-1.9 Y-0.4
G01 Z-0.45 F100.
X8.5 F38.
G00 Z0.1
X-1.9 Y-3.4
G01 Z-0.45 F100.
X8.5 F38.
G00 Z1.
G91 G28 Z0 M05
M00 (Add Clamps)
O91002
(Mill Class Engraving HAAS Logo)
T1 M06 (TOOL#1 - ENGRAVING TOOL)
G90 G54 G00 X-0.7355 Y0.4929
S5000 M03
G00 G43 H01 Z1. M08
G01 Z0.03 F100.
G91
G01 Z-0.0337 F7.
G01 X-0.5687 Y-0.9857
G01 X-0.2275
G01 X0.1314 Y0.2275
G01 X-0.7835
G01 X0.1314 Y0.2275
G01 X0.7835
G01 X0.3058 Y0.5308
G01 X0.2275
G00 Z0.0337
G00 X0.2022
G01 Z-0.0337
G01 X0.2275
G01 X-0.5687 Y-0.9857
G01 X-0.2275
G01 X0.1314 Y0.2275
G01 X-0.1264
G01 X0.1314 Y0.2275
G01 X0.1264
G01 X0.3058 Y0.5308
G00 Z0.0337
G00 X0.3538
G01 Z-0.0337
G01 X0.2275
G01 X-0.5687 Y-0.9857
G01 X-0.2275
G01 X0.5687 Y0.9857
G00 Z0.0337
G00 X0.2591 Y-0.0505
G01 Z-0.0337
G01 X-0.1858 Y-0.3488
G01 Y-0.1314
G01 X-0.0758
G01 X-0.1314 Y-0.2275
G01 X0.1365
G02 X0.0708 Y-0.0708 I0. J-0.0708
G01 Y-0.1567
G01 X0.2553
G01 X0.5687 Y0.9857
G01 X-0.2275
G01 X-0.4107 Y-0.6824
G01 Y0.6319
G00 Z0.0337
G00 X0.6887
G01 Z-0.0337
G01 X-0.2022 Y-0.3488
G01 Y-0.1314
G01 X-0.0758
G01 X-0.1314 Y-0.2275
G01 X0.1365
G02 X0.0708 Y-0.0708 I0. J-0.0708
G01 Y-0.1567
G01 X0.2022
G01 Y0.9352
G00 Z0.0337
G00 X0.3538 Y-0.0505
G01 Z-0.0337
G01 X-0.1643 Y-0.3538
G03 X0.0632 Y-0.1264 I0.0562 J-0.0508
G01 X0.1959
G02 X0.0695 Y-0.0632 I0.0063 J-0.0629
G01 X-0.0379 Y-0.1011
G02 X-0.0632 Y-0.0379 I-0.0657 J0.038
G01 X-0.3412
G01 Y-0.2022
G01 X0.5308
G03 X0.1264 Y0.0885 I-0.0117 J0.1511
G01 X0.1517 Y0.3159
G03 X-0.1011 Y0.1769 I-0.1155 J0.0514
G01 X-0.2022
G02 X-0.0505 Y0.0505 I0.0116 J0.0622
G01 X0.0505 Y0.1011
G02 X0.0758 Y0.0253 I0.0583 J-0.0485
G01 X0.6319
G01 X0.1264 Y0.2275
G01 X-0.9099
G03 X-0.1517 Y-0.101 I0.0083 J-0.1768
G00 Z1. M09
G28 G91 Y0 Z0
G90
M30
(=================================)