Common G-Codes for CNC Lathes
G00 - Rapid PositioningG61 - Exact Stop Check Mode
G01 - Linear InterpolationG62 - Automatic Corner Override
G02 - Circular Interpolation CWG63 - Tapping Mode
G03 - Circular Interpolation CCWG64 - Cutting Mode
G04 - DwellG65 - User Simple Macro Call
G07 - Feedrate Sine Curve ControlG66 - User Modal Macro Call
G10 - Data SettingG67 - User Modal Macro Call Cancel
G11 - Data Setting CancelG70 - Finishing Cycle
G17 - XY Plane SelectionG71 - Turning Cycle
G18 - XZ Plane SelectionG72 - Facing Cycle
G19 - YZ Plane SelectionG73 - Pattern Repeating Cycle
G20 - Input in InchesG74 - Drilling Cycle
G21 - Input in MetricG75 - Grooving Cycle
G22 - Stored Stroke Check ONG76 - Threading Cycle
G23 - Stored Stroke Check OFFG80 - Canned Cycle Cancel
G27 - Reference Point Return CheckG83 - Face Drilling Cycle
G28 - Automatic Zero ReturnG84 - Face Tapping Cycle
G29 - Return from Zero PositionG85 - Face Boring Cycle
G30 - 2nd Reference Point ReturnG87 - Side Drilling Cycle
G31 - Skip FunctionG88 - Side Tapping Cycle
G32 - Thread CuttingG89 - Side Boring Cycle
G36 - Automatic Tool CompensationG90 - Absolute Positioning
G40 - Tool Compensation CancelG91 - Incremental Positioning
G41 - Tool Compensation LeftG92 - Threading Cycle
G42 - Tool Compensation RightG94 - Face Turning Cycle
G46 - Automatic Tool CompensationG96 - Constant Surface Speed Control On
G50 - Coordinate System SettingG97 - Constant Surface Speed Control Off
G52 - Local Coordinate System SettingG98 - Feedrate Per Time
G53 - Machine Coordinate System SettingG99 - Feedrate Per Revolution
G54 - Workpiece Coordinate Setting 1G107 - Cylindrical Interpolation
G55 - Workpiece Coordinate Setting 2G112 - Polor Coordinate Interpolation Mode On
G56 - Workpiece Coordinate Setting 3G113 - Polor Coordinate Interpolation Mode Off
G57 - Workpiece Coordinate Setting 4G250 - Polygonal Turning Mode Cancel
G58 - Workpiece Coordinate Setting 5G251 - Polygonal Turning Mode
G59 - Workpiece Coordinate Setting 6 

Common M-Codes for CNC Lathes
M00 - Program StopM07 - Coolant 1 On
M01 - Optional Program StopM08 - Coolant 2 On
M02 - Program EndM09 - Coolant Off
M03 - Spindle ClockwiseM30 - End Progarm, Return to Start
M04 - Spindle Counter ClockwiseM98 - Call Subprogram
M05 - Spindle StopM99 - Cancel Subprogram

Note: Great care has been made to make sure this information is accurate. However, due to human error, the user agrees to accept full responsibility to verify that the provided information meets their requirements before using it.