Hello all,

This is kind of a continuation of my last post. So I hope it's okay to make a new thread with the Forum Mods. It just seemed like it needed a new post.

Basically this is my first time programming straight G-code. In all my past jobs they have had a CAM system and I have just had to tweak the code here and there. I wanted to make sure this program holds water. Also I would appreciate a critique on my programming. Did I repeat something that wasn't necessary?, Did I forget something, Did I do something stupid etc... Also I would like to send a thank you shout out to dcoupar and superman for their help.

Any help would be greatly appreciated.

It's a FANUC Oi controller on a doosan
The M89 is High pressure clamp and the M90 is Main spindle unclamp
M35 is C axis on
and M34 is C axis off



%
O0001 (SHAFT 2X5)
G99 G20 G23
G55
G50 S1500
G00 X8.0 Z6.0 (SAFE INDEX POSITION)

T0101 M41 (FACE TOOL)

G96 S350 M04 P11 (SFM)
G00 X2.1 Z-.0625 M08
G01 X2.0 F.015 (FPR)
X1.875 Z0.0
X-.0625
G00 Z.1
M05 P11
X8.0 Z6.0 M09 (SAFE INDEX POSITION)
M01

T0505(21/32 FACE DRILL)

M90
M35
G28 H0
G97 S650 M03 P12 (RPM)
G00 C0 M08
X1.125 Z.05
G83 C0 Z-.625 Q5000 R0.05 F.014 M89(FPR)
M05 P12
G00 G80 X8.0 Z6.0 M09(SAFE INDEX POSITION)
M90
M01

T0606(11/32 FACE DRILL)

G97 S800 M03 P12 (RPM)
G00 X1.125 Z.05 M08
G83 C0 Z-2.990 Q5000 R0.05 F.014 M89(FPR)
M05 P12
G00 G80 X8.0 Z6.0 M09(SAFE INDEX POSITION)
M90
M01

T0707(1/4-27 NPT TAP)

G97 S200 M29 P12 (RPM)
G00 X1.125 Z.05 M08
G84 C0 Z-1.110 F.037037037 M89(TAP CYLE)
M05 P12
G00 G80 X8.0 Z6.0 M09(SAFE INDEX POSITION)
M90
M01



T0202(SPOT SIDE DRILL)

G97 S800 M03 P12
G00 X2.1
Z-3.0 M08
G87 G99 C0 X1.875 R0 P300 F.014 M89 (FPR)
C90. Z-0.5 P300 M89
G00 G80
M05 P12
X8.0 Z6.0 M09 (SAFE INDEX POSITION)
M90
M01

T0303(7/16 SIDE DRILL)


G97 S800 M03 P12
G00 X2.1
Z-3.0 M08
G87 G99 C90 X-2.263 R0 Q5000 F.014 M89 (FPR)
C0. Z-0.5 M89
G00 G80
M05 P12
X8.0 Z6.0 M09 (SAFE INDEX POSITION)
M90
M34
M01

T0404 M41(.125" CUTOFF)

G50 S1000
G96 S350 M04 P11 (SFM)
G00 X2.1 Z-5.125 M08
G01 X1.875 F.006 (FPR)
G00 X2.1
Z-5.0625
G01 X2.0
X1.875 Z-5.0
G75 R0.002
G75 X-.032 P0.125 F.006 (FPR)
G00 G80
X2.1
M05 P11
X8.0 Z6.0 M09 (SAFE INDEX POSITION)
M01

M30
%