G-Codes to Know
G-Code The universal language of CNC (almost). Industry has standardized on this basic set of codes. The code has many undefined numbers that have been used by various manufacturers for canned cycles and special functions. Recently, tools have been developed that dont use G code, but some other coding. At PEARL these include the Roland Camm3 and the LaserCamm. The Anilam 1100 doesnt directly use G-code, but has a natural language based programming language. The Anilam Crusader and 1400 have both a natural language based code as well as G-Code.
Basic format N G XYZAB F S T M eob
line number
function
dimension data
feed spindle speed
tool machine function
Good G-Codes to Know G00rapid position G01Linear cut G02Arc cw G03Arc ccw G04dwell G40cutter comp cancel G41cutter comp left G42cutter comp right G28return to machine reference point G92absolute zero reset Good M-Codes to know M03 M04 M05 M06 M02 M30 spindle cw spindle ccw spindle off tool change end of program end of tape
Knowing these codes will help you determine what your program is doing. It will also let you try programming at the most primitive level. A complete list of G-codes specific for each machine is available.
revision history ver 1 12/93
John Wadsworth
original text