G81 – Drilling Cycle

G81 is a canned drilling cycle for standard drilling.

Syntax
G81 X Y Z R K F
Modal
Yes – Group 1
Cancel with
G80
WARNING
Cancel the previous canned cycle with G80 before starting a new one.

Parameters

WordMeaning
X Y Z A BAxes 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.
FFeed rate for the drilling move.

Example

N10 G99 G81 X10 Y10 Z-8 R2 K2 F100
N20 X20
N30 X30
N40 G80
CodeResult
G99 G81 X10 Y10 Z-8 R2 K2 F100Moves 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.
X20Moves to X20 and drills another hole with the same parameters.
X30Moves to X30 and drills another hole with the same parameters.
G80Cancels the canned cycle.
INFORMATION
Units are inches or millimetres, depending on the machine setup and whether G20 or G21 is active.