I found this code on the web and by trying to understand G-code I commented it. I was wondering if this was correc
OTP1
(X= Radial Dimension, Z=axial Dimension)
G50 S2000 (Max Spindle Speed 2000 rpm)
G00 T0606 (Rapid Positioning, Change Tool Rought Turn Tool)
G96 S300 M03 (Constant Surface Speed, Spindle Speed 300 rpm, Spindle On Forward)
G95 X37. Z0. (End Face Live Tooling Rigid Tap X=37mm Z=0mm)
G01 X-1. F0.2 (Linear Interpolation Motion X=1mm, Feed Rate .2 mm/min)
Z1. (Z=1mm)
G00 X30. (Rapid Positioning Motion X=30mm)
G01 Z-20. (Linear Interpolation Motion Z=20mm)
X33. (Feed to the Position X=33mm)
X35. Z-21. (Feed to the Position X=35mm, Z=21mm)
Z-25. (Feed to the Position Z=25mm)
X37. (Feed to the Position X=37mm)
G00 X150. Z300. (Rapid Positioning Motion X=150mm, Z=300mm)
M01 (Optional Program Stop)
T0101 (18MM DRILL)
G97 S1000 M03 (Constant Non-Varying Spindle Speed=1000, Spindle On Forward)
G94 X0. Z5. (End Facing X=0mm, Z=5mm)
G01 Z-25. F100 (Linear Interpolation Motion Z=25mm, Feed Rate =100 mm/min)
G00 Z5. (Rapid Positioning Motion, Z=5mm)
X150. Z300. (X=150mm, Z=300mm)
M05 (Spindle Stop)
M30 (Program End and Reset)