CNC Machinist Calculator Ultra

Home › G-codes › Mach3 Mach4 › G81

G81 Drill cycle

Mach3 Mach4 G-code · Mill

Feeds to Z and rapids out. The basic drill and spot cycle.

Format

G81 X Y Z R [L] F

Addresses

AddressWhat it does
X YHole position
ZHole bottom
RRetract plane
LRepeat count
FFeed rate

How it works

Modal, canned cycle group. Cancel with G80.

Example program

G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (SPOT DRILL)
S2500 M3 (SPINDLE ON)
G0 X1.0 Y-1.0 (FIRST HOLE)
…

The full 10-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G80 · G82 · G83 · G98 · G99

G81 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucDrilling cycle
Haas NGCDrill canned cycle
Mazak (EIA)Drilling cycle, spot drill
Okuma OSPDrill or spot cycle
Mitsubishi M70 M80Drilling cycle
Brother SpeedioDrilling cycle
Fagor 8055 8065Drilling canned cycle
LinuxCNC TormachDrill cycle
Centroid CNC12 AcornDrilling cycle
Hurco WinMax (NC)Drill or spot drill cycle
FadalDrill, spot drill

Every G-code for Mach3 Mach4 in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G81 in the app All Mach3 Mach4 G-codes

App Store Google Play