Below is a sample block of code utilizing the myCNC drilling cycle:
G90 G21 G54. G0 X50. Y50. Z3. G0 Z10. M3 S800 G98 G83 X0 Z-9. R1. Q1 P0. F500 L1000 G98 G83 X10 Z-9. R1. Q3 J0.5 K1 P0. F500. L1000 G98 G73 X20 Z-9. R1. Q3 J0.5 K1 P0. F500. L1000 G98 G81 X30 Z-9. R1. Q3 J0.5 K1 P0. F500. L1000 G99 X40. G80 M5
The nomenclature functions in the following manner:
Code | Meaning |
---|---|
G83 | Drilling cycle command |
G98 | Raise to starting height at the end of cycle |
G99 | Raise to height R at the end of cycle |
R | Position of the R height |
F | Drill speed |
L | Lift speed |
Z | Total drill depth |
P | Pause (in seconds) |
Q | Initial cut depth |
J | Distance to incrementally reduce drill depth by on each pass |
K | Minimum drill depth per pass |
The two major differences for the drilling cycle are the G-codes G98 (raise back to starting height at the end of the cycle) and G99 (raise back to height R at the end of the cycle).
An illustration of the command utilizing the G98 G83 block:
An illustration of the command utilizing the G98 G83 block:
A cycle for drilling in one pass (immediately going down to the Total Depth Z). G98/G99 and drill/lift speeds also apply.
G73 - cycle with chip breaking. Similar to G83, but G73 differs in that it pulls the tool out not to the very end, but by a fixed (typically a very small, such as 0.5 mm) distance called Clearance Distance. G98/G99 and drill/lift speeds also apply.
G98 option:
G99 option:
G82 is the standard drilling cycle with a dwell of time P at the bottom of the hole.
G98 option:
G99 option:
G85 boring cycle is similar to G82, minus the dwell time at the bottom of the hole.
G98 option:
G99 option: