G Codes and M Codes
G Codes and M Codes
G-
Milling Function Lathe Function
Code
Rapid travel – Axis motion at
G00 Same as Milling function
maximum speed.
Linear interpolation – Straight
G01 linear axis motion at a controlled Same as Milling function
federate.
Circular interpolation CW –
G02 Clockwise circular motion using Same as Milling function
2 axes in a single block of code.
Circular interpolation CCW –
Anticlockwise circular motion
G03 Same as Milling function
using 2 axes in a single block of
code.
Dwell – Stoppage of axis motion
G04 Same as Milling function
for a programmed length of time.
G17 X-Y plane selection Same as Milling function
G18 Z-X plane selection Same as Milling function
G19 Y-Z plane selection Same as Milling function
G20 - Inch Programming
G21 - Metric Programming
Cancel Cutter Radius
G40 Cancel Tool Nose Radius
Compensation
Cutter Radius Compensation - Tool Nose Radius Compensation
G41
Left - Left
Cutter Radius Compensation - Tool Nose Radius Compensation
G42
Right - Right
G70 Inch Programming Finishing Cycle
G71 Metric Programming Stock removal in Turning
G72 - Stock removal in Facing
G80 Cancel Canned Cycle -
Drilling Cycle, Center drilling
G81 -
Cycle
G82 Counterboring Cycle -
G83 Deep Hole Drilling Cycle -
G84 Tapping Cycle -
G85 Boring or Reaming Cycle -
G90 Absolute Positioning Same as Milling function
G91 Incremental Positioning Same as Milling function
G94 Feed rate Per Minute Same as Milling function
G95 Feed rate Per Revolution Same as Milling function
Miscellaneous Codes (M-Codes)
M-Code Function