Basic G and M Codes
Basic G and M Codes
CODE O N S T M Function program number, ex. O5678 sequence number spindle speed (rpm) tool number, ex. T3 misc./machine functions CODE G F X, Y, Z R I, J, K Function preparatory function feed rate (mm/min) coordinate axis motion arc radius circle center coordinates
CANNED CYCLES
G CODE G75 / G76 G77 / G78 G74 G210 G211 G83 G84 G98 G220 G221 Function Rectangular pocket milling CW / CCW Circular pocket milling CW / CCW Linear Slot milling Linear Slot with reciprocating plunge-cut Circular Slot with reciprocating plunge-cut Pecking drill cycle Tapping cycle Assign label number Circular or Polar Pattern Linear or Cartesian Pattern M CODE M99 Cycle Call Function