O0710 (TRES CICLOS DE TALADRADO EN UNA TAPA) | ( Program header. ) |
G21 G17 G40 G49 G80 | ( Millimeters, XY plane and a clean state. The G80 in the header makes sure no cycle is left active from the previous part. ) |
G91 G28 Z0. | ( Z to the reference point before the tool change. ) |
T1 M06 (BROCA D8) | ( Ø8 drill for the two through holes. ) |
G90 G54 G00 X20. Y10. | ( Absolute, work offset and positioning over the first hole with Z up. ) |
G43 H01 Z50. M03 S3000 | ( T1 length offset and spindle on. Without this block the Z of the cycle doesn't correspond to the drill point. ) |
M08 | ( Coolant on. ) |
G99 G81 X20. Y10. Z-15. R2. F250 | ( G81 for a through hole: in and out without stopping. Z is -15 and not -12 because the cone point has to come out the other side: it measures 2.4 mm, so the full Ø comes out at Z-14.4 at the least. G99 makes it return only to the R plane between holes. ) |
X60. Y10. | ( Second hole. Here is the chaining: neither G81 nor Z nor R nor F is repeated, just the new position, and the whole cycle runs again. ) |
G80 G00 Z50. | ( Cancels the cycle BEFORE moving Z. Without G80, the next block with coordinates would drill again. ) |
G91 G28 Z0. | ( Z to the reference point for the change. ) |
T2 M06 (FRESA PLANA D10) | ( Flat-bottom tool for the recess. ) |
G90 G54 G00 X40. Y40. | ( Positions over the recess. ) |
G43 H02 Z50. M03 S2400 | ( T2 length offset. ) |
G99 G82 X40. Y40. Z-6. R2. P500 F120 | ( G82 for the flat bottom: half a second of dwell at the bottom. That time is what makes the tool turn several revolutions at the same level, so the bottom comes out without a step. ) |
G80 G00 Z50. | ( Cancels the cycle and retracts. ) |
G91 G28 Z0. | ( Z to the reference point. ) |
T3 M06 (BROCA D6) | ( Ø6 drill for the deep hole. ) |
G90 G54 G00 X80. Y40. | ( Positions over the deep hole. ) |
G43 H03 Z50. M03 S2800 | ( T3 length offset. ) |
G98 G83 X80. Y40. Z-45. R2. Q6. F180 | ( G83 because it is more than seven diameters deep. Q6 means 6 mm pecks. G98 instead of G99 because, as this is the only hole, you want the drill to come all the way out and clear itself. ) |
G80 M09 | ( Cancels the cycle and turns the coolant off. ) |
G91 G28 Z0. M05 | ( Z to the reference point and spindle stop. ) |
G90 M30 | ( Back to absolute and end of program. ) |