G-Code

G-Code & M-Code Reference

G00Rapid Positioning

Non-cutting move at max traverse rate

Haas: ✓Fanuc: ✓
G01Linear Interpolation

Cutting move at programmed feedrate

Haas: ✓Fanuc: ✓
G02Circular Interpolation CW

Clockwise arc, use I/J or R

Haas: ✓Fanuc: ✓
G03Circular Interpolation CCW

Counter-clockwise arc

Haas: ✓Fanuc: ✓
G04Dwell

Pause for P seconds (Haas) or P milliseconds (Fanuc)

Haas: ✓Fanuc: ✓
G10Set Offsets

Programmable offset setting

Haas: ✓Fanuc: ✓
G17XY Plane Selection

Default plane for arcs

Haas: ✓Fanuc: ✓
G18XZ Plane Selection

For turning / XZ arcs

Haas: ✓Fanuc: ✓
G19YZ Plane Selection

YZ plane arcs

Haas: ✓Fanuc: ✓
G20Inch Programming

Switch to inch mode

Haas: ✓Fanuc: ✓
G21Metric Programming

Switch to mm mode

Haas: ✓Fanuc: ✓
G28Return to Machine Home

Moves through intermediate point to home

Haas: ✓Fanuc: ✓
G29Return from Reference

Move from G28 intermediate point

Haas: ✓Fanuc: ✓
G40Cutter Comp Cancel

Cancel cutter radius compensation

Haas: ✓Fanuc: ✓
G41Cutter Comp Left

Tool left of programmed path

Haas: ✓Fanuc: ✓
G42Cutter Comp Right

Tool right of programmed path

Haas: ✓Fanuc: ✓
G43Tool Length Comp +

Apply tool length offset (H register)

Haas: ✓Fanuc: ✓
G44Tool Length Comp -

Negative tool length offset

Haas: ✓Fanuc: ✓
G49Tool Length Comp Cancel

Cancel G43/G44

Haas: ✓Fanuc: ✓
G53Machine Coordinate System

Move in machine coordinates (non-modal)

Haas: ✓Fanuc: ✓
G54Work Coordinate #1

First work offset

Haas: ✓Fanuc: ✓
G55Work Coordinate #2

Second work offset

Haas: ✓Fanuc: ✓
G56Work Coordinate #3

Third work offset

Haas: ✓Fanuc: ✓
G57Work Coordinate #4

Fourth work offset

Haas: ✓Fanuc: ✓
G58Work Coordinate #5

Fifth work offset

Haas: ✓Fanuc: ✓
G59Work Coordinate #6

Sixth work offset

Haas: ✓Fanuc: ✓
G73High Speed Peck Drill

Chip-breaking peck, partial retract

Haas: ✓Fanuc: ✓
G74Reverse Tap Cycle

Left-hand tapping

Haas: ✓Fanuc: ✓
G76Fine Boring Cycle

Oriented spindle stop, shift, retract

Haas: ✓Fanuc: ✓
G80Cancel Canned Cycle

Cancel all canned cycles

Haas: ✓Fanuc: ✓
G81Drill Cycle

Simple drill, rapid out

Haas: ✓Fanuc: ✓
G82Spot Drill / Counterbore

Drill with dwell at bottom

Haas: ✓Fanuc: ✓
G83Peck Drill Cycle

Full retract peck drill

Haas: ✓Fanuc: ✓
G84Tapping Cycle

Right-hand rigid tapping

Haas: ✓Fanuc: ✓
G85Boring Cycle

Bore in, feed out

Haas: ✓Fanuc: ✓
G86Bore & Stop

Bore in, spindle stop, rapid out

Haas: ✓Fanuc: ✓
G90Absolute Positioning

Coordinates from origin

Haas: ✓Fanuc: ✓
G91Incremental Positioning

Coordinates from current position

Haas: ✓Fanuc: ✓
G92Set Work Coordinate

Haas: max spindle speed clamp. Fanuc: set WCS origin

Haas: Diff.Fanuc: ✓
G98Canned Cycle Return Initial

Return to initial Z level

Haas: ✓Fanuc: ✓
G99Canned Cycle Return R

Return to R plane

Haas: ✓Fanuc: ✓