List of G-codes

Classic Control - Lathe Operator's Manual

The Online Interactive Operator's Manual is currently available in English only.

A PDF version of the Operator's Manual is available for download in multiple languages. Click the link below to view the Operator's Manual in your language. Click "Continue" to view the online version in English.

Get a translated PDF Download Continue

This chapter gives detailed descriptions of the G-codes that you use to program your machine.

caution: The sample programs in this manual have been tested for accuracy, but they are for illustrative purposes only. The programs do not define tools, offsets, or materials. They do not describe workholding or other fixturing. If you choose to run a sample program on your machine, do so in Graphics mode. Always follow safe machining practices when you run an unfamiliar program.
note: The sample programs in this manual represent a very conservative programming style. The samples are intended to demonstrate safe and reliable programs, and they are not necessarily the fastest or most efficient way to operate a machine. The sample programs use G-codes that you might choose not to use in more efficient programs.
G-codes for Lathe
G00 Rapid Motion Positioning (Group 01)
G01 Linear Interpolation Motion (Group 01)
G02 CW / G03 CCW Circular Interpolation Motion (Group 01)
G04 Dwell (Group 00)
G09 Exact Stop (Group 00)
G10 Set Offsets (Group 00)
G14 Secondary Spindle Swap / G15 Cancel (Group 17)
G17 XY / G18 XZ / G19 YZ plane selection (Group 02)
G20 Select Inches / G21 Select Metric (Group 06)
G28 Return to Machine Zero Point (Group 00)
G29 Return From Reference Point (Group 00)
G31 Feed Until Skip (Group 00)
G32 Thread Cutting (Group 01)
G40 Tool Nose Compensation Cancel (Group 07)
G41 Tool Nose Compensation (TNC) Left / G42 TNC Right (Group 07)
G50 Set Global Coordinate Offset FANUC, YASNAC (Group 00)
G51 Cancel Offset (YASNAC) (Group 00)
G52 Set Local Coordinate System FANUC (Group 00)
G53 Non-Modal Machine Coordinate Selection (Group 00)
G54 - G59 Coordinate System #1 - #6 FANUC (Group 12)
G61 Exact Stop Mode (Group 15)
G64 G61 Cancel (Group 15)
G65 Macro Subprogram Call Option (Group 00)
G70 Finishing Cycle (Group 00)
G71 O.D./I.D. Stock Removal Cycle (Group 00)
G72 End Face Stock Removal Cycle (Group 00)
G73 Irregular Path Stock Removal Cycle (Group 00)
G74 End Face Grooving Cycle (Group 00)
G75 O.D./I.D. Grooving Cycle (Group 00)
G76 Threading Cycle, Multiple Pass (Group 00)
G80 Canned Cycle Cancel (Group 09)
G81 Drill Canned Cycle (Group 09)
G82 Spot Drill Canned Cycle (Group 09)
G83 Normal Peck Drilling Canned Cycle (Group 09)
G84 Tapping Canned Cycle (Group 09)
G85 Boring Canned Cycle (Group 09)
G86 Bore and Stop Canned Cycle (Group 09)
G87 Bore In and Manual Retract Canned Cycle (Group 09)
G88 Bore In, Dwell, Manual Retract Canned Cycle (Group 09)
G89 Bore and Dwell Canned Cycle (Group 09)
G90 O.D./I.D. Turning Cycle (Group 01)
G92 Threading Cycle (Group 01)
G93 Inverse Time Feed Mode (Group 05)
G95 Live Tooling Rigid Tap (Face) (Group 09)
G96 Constant Surface Speed ON (Group 13)
G97 Constant Surface Speed OFF (Group 13)
G98 Feed Per Minute (Group 10)
G99 Feed Per Revolution (Group 10)
G100/G101 Disable/Enable Mirror Image (Group 00)
G102 Programmable Output to RS-232 (Group 00)
G103 Limit Block Look-Ahead (Group 00)
G105 Servo Bar Command
G110/G111 Coordinate System #7/#8 (Group 12)
G112 XY to XC interpolation (Group 04)
G113 G112 Cancel (Group 04)
G114 - G129 Coordinate System #9 - #24 (Group 12)
G154 Select Work Coordinates P1-P99 (Group 12)
G159 Background Pickup / Part Return
G160 APL Axis Command Mode Only
G161 APL Axis Command Mode Off
G184 Reverse Tapping Canned Cycle For Left Hand Threads (Group 09)
G186 Reverse Live Tool Rigid Tap (For Left Hand Threads) (Group 09)
G187 Accuracy Control (Group 00)
G195/G196 Forward/Reverse Live Tool Radial Tapping (Diameter) (Group 00)
G198 Disengage Synchronous Spindle Control (Group 00)
G199 Engage Synchronous Spindle Control (Group 00)
G200 Index on the Fly (Group 00)
G211 Manual Tool Setting / G212 Auto Tool Setting
G241 Radial Drill Canned Cycle (Group 09)
G242 Radial Spot Drill Canned Cycle (Group 09)
G243 Radial Normal Peck Drilling Canned Cycle (Group 09)
G245 Radial Boring Canned Cycle (Group 09)
G246 Radial Bore and Stop Canned Cycle (Group 09)
G247 Radial Bore and Manual Retract Canned Cycle (Group 09)
G248 Radial Bore and Dwell and Manual Retract Canned Cycle (Group 09)
G249 Radial Bore and Dwell Canned Cycle (Group 09)

Be aware: Many service and repair procedures should be done only by authorized personnel. The service technicians at your Haas Factory Outlet (HFO) have the training, experience, and are certified to do these tasks safely and correctly. You should not do machine repair or service procedures unless you are qualified and knowledgeable about the processes.

Danger: Some service procedures can be dangerous or life-threatening. DO NOT attempt a procedure that you do not completely understand. Contact your Haas Factory Outlet (HFO) and schedule a service technician visit if you have any doubts about doing a procedure.