Fanuc G-Code List

CNC machines work by following the commands or instructions (G-codes / M-codes) which are given in Part Program. Here are G-codes for Fanuc cnc  control which are necessary for a cnc machinists to learn to understand cnc programming.

Fanuc G-Code List (Lathe)

G codeDescription
G00Rapid traverse
G01Linear interpolation
G02Circular interpolation CW
G03Circular interpolation CCW
G04Dwell
G09Exact stop
G10Programmable data input
G20Input in inch
G21Input in mm
G22Stored stroke check function on
G23Stored stroke check function off
G27Reference position return check
G28Return to reference position
G32Thread cutting
G40Tool nose radius compensation cancel
G41Tool nose radius compensation left
G42Tool nose radius compensation right
G70Finish machining cycle
G71Turning cycle
G72Facing cycle
G73Pattern repeating cycle
G74Peck drilling cycle
G75Grooving cycle
G76Threading cycle
G92Coordinate system setting or max. spindle speed setting
G94Feed Per Minute
G95Feed Per Revolution
G96Constant surface speed control
G97Constant surface speed control cancel

Fanuc G-Code List (Mill)

G codeDescription
G00Rapid traverse
G01Linear interpolation
G02Circular interpolation CW
G03Circular interpolation CCW
G04Dwell
G17X Y plane selection
G18Z X plane selection
G19Y Z plane selection
G28Return to reference position
G302nd, 3rd and 4th reference position return
G40Cutter compensation cancel
G41Cutter compensation left
G42Cutter compensation right
G43Tool length compensation + direction
G44Tool length compensation – direction
G49Tool length compensation cancel
G53Machine coordinate system selection
G54Workpiece coordinate system 1 selection
G55Workpiece coordinate system 2 selection
G56Workpiece coordinate system 3 selection
G57Workpiece coordinate system 4 selection
G58Workpiece coordinate system 5 selection
G59Workpiece coordinate system 6 selection
G68Coordinate rotation
G69Coordinate rotation cancel
G73Peck drilling cycle
G74Left-spiral cutting circle
G76Fine boring cycle
G80Canned cycle cancel
G81Drilling cycle, spot boring cycle
G82Drilling cycle or counter boring cycle
G83Peck drilling cycle
G84Tapping cycle
G85Boring cycle
G86Boring cycle
G87Back boring cycle
G88Boring cycle
G89Boring cycle
G90Absolute command
G91Increment command
G92Setting for work coordinate system or clamp at maximum spindle speed
G98Return to initial point in canned cycle
G99Return to R point in canned cycle