Haas Lathe reference
Haas Lathe G-Codes List
The G-codes you will actually meet on a Haas ST, DS, TL or Toolroom lathe. Tap a highlighted code for its format, an example program and the mistake that scraps parts.
| Code | Description | Details |
|---|---|---|
G00 | Rapid motion positioning | |
G01 | Linear interpolation (with chamfer / radius) | |
G02 | Circular interpolation CW | |
G03 | Circular interpolation CCW | |
G04 | Dwell | |
G09 | Exact stop | |
G10 | Set offsets | |
G14 | Secondary spindle swap | |
G15 | Secondary spindle swap cancel | |
G17 | XY plane | |
G18 | XZ plane (default) | |
G19 | YZ plane | |
G20 | Inch mode | |
G21 | Metric mode | |
G28 | Return to machine zero | |
G29 | Return from reference point | |
G31 | Feed until skip | |
G32 | Thread cutting | |
G40 | Tool nose compensation cancel | |
G41 | Tool nose compensation left | Details → |
G42 | Tool nose compensation right | |
G50 | Spindle speed limit / set coordinates | Details → |
G52 | Local coordinate system | |
G53 | Machine coordinate move | |
G54 | Work offset #1 (G54–G59) | |
G61 | Exact stop (modal) | |
G64 | Exact stop cancel | |
G65 | Macro subroutine call | |
G70 | Finishing cycle | Details → |
G71 | OD/ID stock removal | Details → |
G72 | End face stock removal | Details → |
G73 | Irregular path stock removal | Details → |
G74 | End face grooving / peck drilling | Details → |
G75 | OD/ID grooving | Details → |
G76 | Threading cycle, multiple pass | Details → |
G80 | Canned cycle cancel | |
G81 | Drill canned cycle | |
G82 | Spot drill canned cycle | |
G83 | Normal peck drilling | Details → |
G84 | Tapping | Details → |
G85 | Boring | |
G86 | Bore and stop | |
G89 | Bore and dwell | |
G90 | OD/ID turning cycle | |
G92 | Threading cycle | Details → |
G94 | End facing cycle | |
G95 | Live tooling rigid tap (face) | |
G96 | Constant surface speed on | Details → |
G97 | Constant surface speed off | Details → |
G98 | Feed per minute | |
G99 | Feed per revolution | Details → |
G100 | Disable mirror image | |
G101 | Enable mirror image | |
G103 | Limit block lookahead | |
G112 | XY to XC interpolation (live tooling) | |
G113 | Cancel XY to XC interpolation | |
G154 | Extended work offsets P1–P99 | |
G184 | Reverse tapping | |
G186 | Live tool reverse rigid tap | |
G187 | Smoothness control | |
G195 | Live tool radial tapping | |
G196 | Live tool radial reverse tapping | |
G200 | Index on the fly | |
G241 | Radial drill | |
G242 | Radial spot drill | |
G243 | Radial peck drill | |
G245 | Radial bore |
Most-looked-up Haas lathe codes
G50Spindle Speed LimitClamps the maximum spindle RPM. Always program it before G96 constant surface speed.G70Finishing CycleRuns the profile between blocks P and Q once, at finish size. Used after G71, G72 or G73 roughing.G71OD/ID Stock Removal CycleRoughs a turned profile in Z-direction passes, leaving finish stock for G70. Works for OD and ID.G72End Face Stock Removal CycleRoughs a profile in X-direction (facing) passes. Use when the part is shorter and wider — shoulders and faces.G73Irregular Path Stock RemovalRepeats the whole profile, offset inwards each pass. Best for forgings and castings that already follow the shape.G74End Face Grooving / Peck DrillingPecks along Z. On centre it is a peck drilling cycle; with X and I it cuts face grooves.G75OD/ID Grooving CyclePecks along X to cut grooves on the OD or ID, stepping along Z for wide grooves.G76Threading Cycle, Multiple PassCuts a complete thread from one line: first pass depth, total height, infeed angle and lead.G92Threading Cycle, Single PassCuts one threading pass per line. You control every pass depth by writing the X values yourself.G96Constant Surface Speed OnS becomes surface feet (or metres) per minute. RPM rises and falls automatically as diameter changes.G97Constant Surface Speed OffS is plain RPM again. Required for drilling, tapping and threading.G99Feed per RevolutionF is inches (or mm) per spindle revolution. The normal feed mode on a lathe.G41Tool Nose Compensation LeftCompensates for insert nose radius so tapers and arcs are cut to size. G41 left, G42 right of the path.G83Peck Drilling CyclePecks on centre by Q and retracts to the R plane each peck to clear chips.G84Tapping CycleRigid taps on centre. In G99, F is simply the pitch.
Independent reference. Not affiliated with, sponsored by or endorsed by Haas Automation, Inc. Haas is a trademark of its respective owner. Always confirm codes against your machine's operator manual — options and settings vary by model and software version.