G81 is a canned drilling cycle for standard drilling.
WARNING
Cancel the previous canned cycle with G80 before starting a new one.
Parameters
| Word | Meaning |
|---|
| X Y Z A B | Axes to move and the target position, in the current machine units. |
| R (required) | Z retract position. |
| K (optional) | Number of times to repeat the cycle at the same position. |
| F | Feed rate for the drilling move. |
Example
N10 G99 G81 X10 Y10 Z-8 R2 K2 F100
N20 X20
N30 X30
N40 G80
| Code | Result |
|---|
| G99 G81 X10 Y10 Z-8 R2 K2 F100 | Moves to X10 Y10, sets the retract plane to Z2 and drills to Z−8 at 100 mm/min. K2 repeats the cycle once more at the same position. |
| X20 | Moves to X20 and drills another hole with the same parameters. |
| X30 | Moves to X30 and drills another hole with the same parameters. |
| G80 | Cancels the canned cycle. |
INFORMATION
Units are inches or millimetres, depending on the machine setup and whether G20 or G21 is active.