As a tool breaker, setup/programming CNC lathes is but a distant memory from college before my apprenticeship. I have been charged with programming a Daewoo Puma 200 with C-axis, live tool and 2nd spindle (instead of a tailstock).
Just hoping someone with Fanuc 18i experience could take a *brief* gander at this program and point out any glaring errors which will prevent the program from executing. I'm fairly confident of the geometry, I'm just wary of the program erroring out, baffling me and my boss.
If I'm ever within arm's reach of a Fanuc control manual author.. Well, anyway, the manual is of little help for those who actually need to extract info from it.
N010 O0001 Program 0001 N020 G0 G54 G20 G90 Safety Block N030 G50 S2500 Max spindle rpm N040 T0101 Tool change to 01 (bar puller) N050 G96 S500 Consistant surface speed N060 G0 Z-0.45 Approach bar puller to allow setup N070 G0 X2.5 Rapid approach N080 M01 Optional stop for initial setup N090 G1 X-0.75 F20 G98 Feed in IPM as spindle is not turning N100 M69 Unclamp chuck N110 G1 Z-1.15 F20 G98 Pull bar N120 M68 Clamp chuck N130 G1 x2.5 F20 G98 Feed retract bar puller N140 T0000 Remove tool offsets N150 G0 X20 Z9 Move to tool change position N160 T0202 Change tool (trapazoidal turn/face holder) N170 M2 M8 S500 G96 Spindle on, coolant on N180 G0 X1.55 Z1.025 Approach end of stock to face N190 G1 X-0.02 F0.01 G99 Rough face at 0.01"/rev N200 G0 X1.55 Retract for finish face N210 G0 Z1.015 Move to finish facing location N220 G1 X-0.02 F0.005 Finish face at 0.005"/rev N230 G0 X1 Move to rough turning diameter N240 G1 Z0.31 F0.01 Rough turn .25" per side, 0.01"/rev N250 G0 Z1.015 Retract N260 G0 X.55 Move to rough turning diameter N270 G1 Z0.31 F0.01 Rough turn ~.25" per side, 0.01"/rev N280 G1 X 1.55 F0.01 Rough face at 0.01"/ref N290 G0 Z1.015 N300 G0 X0.43 Move to beginning of chamfer N310 G1 X0.51 Z0.975 F0.005 Cut chamfer at .005"/rev N320 G1 Z0.305 Turn 0.51 dia N330 G1 X1.48 Finish face at 0.005"/ref N340 G1 X1.49 Z.295 Cut chamfer at .005"/rev N350 G1 Z.2 Finish OD N360 T0000 Remove tool offsets N370 G0 X20 Z9 Move to tool change position N380 T0101 Change tool (bar puller) N390 M2 M8 S200 G96 Spindle on, coolant on N400 G0 X0.52 Z0.835 Approach for bumper groove N410 G1 X0.39 F0.005 Cut groove N420 G0 X0.51 Retract N430 G0 Z0.825 Move to beginning of 1st rad N440 G2 X.49 Z.835 R.01 Cut first bumper goove rad N450 G2 X.51 Z.845 R.01 Cut second bumper groove rad N460 G0 X1.505 Z.055 Move to start of facing cycle for thread THIS ASSUMES THE TOOL IS 0.15" WIDE!!!! N470 G72 U0.15 R.05 F.01 Facing cycle as plunge cycle for parting tool. 0.27"DOC, .05" X clearnace, .01"/rev N480 G72 P450 Q450 X.005 W0 Facing cycle as plunge cycle for parting tool. Geometry starts line 450, ends line 450, leave .005" on X, 0" on Z N490 X1.235 Z-0.545 Last point in facing cycle N500 T0000 Remove tool offsets N510 G0 X20 Z9 Move to tool change position N520 T0303 Change tool (Nikcole gooving tool) N530 M2 M8 S500 G96 Spindle on, coolant on N540 G0 X1.51 Z0.182 Approach first shoulder THIS ASSUMES TOOL IS .
043" WIDE!!! N550 G1 X1.3 F.005 Cut first shoulder N560 G0 X1.51 Retract N570 G0 Z0.162 Approach o-ring groove THIS ASSUMES TOOL IS .043" WIDE!!! N580 G1 X1.165 Cut o-ring groove N590 G0 X1.250 Retract N600 G0 Z.141 N610 G1 X1.235 Move to OD of thread chamfer N620 G1 X1.165 Z0.162 Cut 1st thread chamfer N630 G0 X1.250 Retract N640 G0 Z-.043 Move such as to cut a groove at the end of the part N650 G1 X1.165 Cut groove - groove tool does not have side clearance to this is req'd N660 G0 X1.250 Retract N670 G0 Z-0.023 Z to start of chamfer N680 G1 X1.235 X to start of chamfer N690 G1 X1.165 Z-.043 Cut chamfer N700 G0 X1.55 Retract N710 T0000 Remove tool offsets N720 G0 X20 Z9 Move to tool change position N730 T0404 Change tool (threading tool) N740 M2 M8 S200 G97 Spindle on, coolant on, 200 RPM N750 G0 Z-.1 X1.55 Approach bar N760 G0 X1.235 Approach thread major dia N770 G76 P010060 Q0010 R.005 Thread cycle line 1 N780 G76 X1.1807 Z0.162 P.02715 Q0020 F.0394 Thread cycle line 2 N790 G0 X1.55 Retract N800 T0000 Remove tool offsets N810 G0 X20 Z9 Tool change position N820 T0505 Tool change (carbide form drill for center) N830 M2 M8 S2500 G97 Spindle on, coolant on, 2500 RPM (RPM mode) N840 G0 X0 Z1.025 Approach bar - center of stock N850 G74 X0 Z-.05 K0.1 F.005 Drilling cycle RESET Z TO CORRECT DEPTH!!! 0.005"/rev 0.1" peck N860 G0 Z1.025 Retract - probably no necessary, but good to start with N870 T0000 Remove tool offsets N880 G0 X20 Z9 Retract tool change pos N890 T0606 Change tools (0.094" drills for cross drilling) N900 M35 Turn on live tooling mode N910 M90 Unclamp C-axis N920 G50 C0 Bring C to reference point, bring C-axis to zero degrees N930 M33 S3000 Live tool spindle forward, assumes 3000 RPM capability N940 G0 X1.55 Z0.662 Approach bar N950 G0 X0.52 Approach 0.51 dia N960 G1 X.25 G98 F12.0 Feed X in at 12IPM assuming 3000rpm N970 G0 X.55 Retract N980 C180 Rotate C 180 to drill opp of hole N990 G1 X.25 G98 F12.0 Feed X in at 12IPM assuming 3000rpm N1000 G0 X.55 Retract N1010 C25 Z.577 Rotate C 25deg abs for lower cross drill N1020 G1 X.25 G98 F12.0 Feed X in at 12IPM assuming 3000rpm N1030 G0 X.55 Retract N1040 C205 Index to 180deg away from previous hole N1050 G1 X.25 G98 F12.0 Feed X in at 12IPM assuming 3000rpm N1060 G0 X.55 retract N1070 M35 M9 Stop live spindle, coolant off N1080 T0000 Remove tool offsets N1090 G0 X20 Z9 Retract tool change pos N1100 T0707 Change tools (0.173" endmill/drill) N1110 C-45 Rotate C -45deg N1120 M33 S3000 Live tool spindle forward, assumes 3000 RPM capability N1130 G0 X0.9 Z0.315 Approach face N1140 G1 Z-.05 F12.0 Drill .05 past face (insert polar interpolation as next line) N1150 G0 Z0.315 Retract N1160 M35 M9 Stop live spindle, coolant off N1170 T0000 Remove tool offsets N1180 G0 X20 Z9 Tool change position N1190 T0808 Change tool (.060" carbide form drill) N1200 C-225 Index to 180deg away from previous hole N1210 M33 S3000 Live tool spindle forward, assumes 3000 RPM capability N1220 G0 X0.9 Z0.315 Approach face N1230 G1 Z-.05 F12.0 Drill .05 past face N1240 M35 M9 Stop live spindle, coolant off N1250 G0 Z0.315 retract N1260 T0000 Remove tool offsets N1270 G0 X20 Z9 Tool change position N1280 T0909 Change tool (boring tool) N1290 M2 M8 S500 G96 Spindle on, coolant on, 500fpm N1300 G0 X0.378 Z1.025 Approach face N1310 G1 Z1.015 F.002 Feed in to chamfer N1320 G1 X.29 Z0.971 Cut chamfer N1330 G1 Z0.45 Cut larger bore dia N1340 G3 X0.26 Z.426 R.024 Cut first radius N1350 G1 Z0 Cut smaller bore dia N1360 G0 X.25 Retract X N1370 G0 Z 1.025 Retract Z N1380 T0000 Remove tool offsets N1390 G0 X20 Z9 Tool change position N1400 T0101 Tool change (cutoff bar puller) N1410 M2 M8 S200 G96 Spindle on, coolant on, 200fpm N1420 G0 X1.55 Z-0.15 Approach bar N1430 G1 X-0.1 Feed in partial cutoff N1440 G0 X1.5 Retract X N1450 T0000 Remove tool offsets N1460 G0 X20 Z9 Tool change position N1470 M5 M9 Turn off spindle, off coolant N1480 M30 Return to start of programThanks for any and all thoughts, suggestions, error-proofing, etc. Not my specialty, but certainly my responsibility.
Regards,
Robin