O0103 (AGUJERO D30 POR INTERPOLACION HELICOIDAL) | ( Program header. ) |
G21 G17 G40 G49 G80 | ( Millimeters and XY plane: the helix is drawn in XY while Z comes down, so the plane has to be the right one. ) |
G91 G28 Z0. | ( Z to the reference point before the change. ) |
T2 M06 | ( Three flute 12 mm cutter for aluminum. ) |
G90 G54 G00 X50. Y50. | ( Positions over the center of the hole, which is also the center of the helix. ) |
G43 H02 Z50. M03 S5000 | ( T2 length offset and spindle on. ) |
G00 Z1. M08 | ( Rapid down to 1 mm above the face and coolant on. ) |
G01 X41. Y50. F600 | ( Moves from the center out to the helix radius: 9 mm in X. From here on the cutter circles around X50 Y50. ) |
G03 X41. Y50. I9. J0. Z-2. F450 | ( First turn. The end point matches the start point, so it is a full circle; I9 J0 put the center 9 mm to the right of the starting point. Z goes from 1 to -2, three millimeters in one turn. ) |
G03 X41. Y50. I9. J0. Z-5. | ( Second turn, another 3 mm. G03 and F are modal, but the center has to be repeated in every block. ) |
G03 X41. Y50. I9. J0. Z-8. | ( Third turn. ) |
G03 X41. Y50. I9. J0. Z-11. | ( Fourth turn: it reaches Z-11, one millimeter below the plate, so the hole breaks out clean underneath. ) |
G03 X41. Y50. I9. J0. F300 | ( A full turn with no drop in Z: this is the finish pass that leaves the wall straight and wipes out the spiral mark of the helix. ) |
G01 X50. Y50. F1000 | ( Back to the center of the hole, now off the wall, so it can come up without scratching it. ) |
G00 Z50. M09 | ( Retract in Z and coolant off. ) |
G91 G28 Z0. M05 | ( Z to the reference point and spindle stop. ) |
G90 M30 | ( Back to absolute and end. ) |