Turning Centers Machine Code Glossary
Turning Centers Machine Code Glossary
What is G-Code?
G-code is the common name for the most widely used numerical control (NC) programming
language. Used primarily in automation, it is part of computer-aided engineering. G-code is also
known as “G programming language”.
In basic terms, G-code is a language in which people tell computerized machine tools what to
make and how to make it. The "how" is defined by instructions on where to move to (direction of
travel), how fast to move (rapid or controlled feedrate) and through what path to move (linear,
circular, etc). The most common example is that, within a machine tool, a cutting tool is moved
according to these instructions through a toolpath, cutting away excess material to leave only the
finished workpiece. The same concept also applies to non-cutting tools, such as forming or
burnishing tools and to measuring probes that validate the results.
888.688.3234 | GOENGINEER.COM
G49 = Tool length compensation OFF.
G50 = Maximum spindle speed setting (RPM limit).
G51 = Turn on scale factors.
G52 = Local workshift for all coordinate systems: Add XYZ offsets.
G53 = Machine coordinate positioning (cancel work offsets). (*Non-modal)
G54 = Work coordinate shift (Fixture offset #1).
G55 thru G59 = Work coordinate shift (Fixture offsets #2 thru #6).
G61 = Exact stop check mode. (*Modal)
G62 = Automatic corner override.
G63 = Tapping mode.
G64 = Best speed path.
G65 = User macro programming simple call.
G66 = User macro programming modal call.
G67 = User macro programming modal call OFF.
G68 = Mirror image for double turrets, ON.
G69 = Mirror image for double turrets, OFF.
G70 = Finishing turning cycle.
G71 = O.D. / I.D. rough stock removal cycle.
G72 = End face rough stock removal cycle.
G73 = Pattern repeating cycle.
G74 = Peck drilling cycle.
G75 = O.D. / I.D. grooving cycle.
G76 = Thread cutting cycle, multiple pass.
G80 = Cancel canned cycle.
G81 = Drill canned cycle.
G82 = Spot drill / counterbore canned cycle.
G83 = Face drilling canned cycle.
G84 = Face tapping canned cycle.
G85 = Boring canned cycle. Feed in, feed out.
G86 = Boring canned cycle. Feed in, dwell, feed out.
G87 = Boring canned cycle. Feed in, stop, manual retract out.
G88 = Boring canned cycle. Feed in, dwell, manual retract out.
G89 = Boring canned cycle. Feed in, dwell, bore out.
G90 = O.D. / I.D. turning cycle. (*Modal)
G92 = Thread cut turning cycle. (*Modal)
G94 = End face turning cycle. (*Modal)
G96 = Constant surface speed control ON.
G97 = Constant surface speed control OFF.
G98 = Feedrate per minute.
G99 = Feedrate per revolution.
*Note: Modal is defined as a code which stays in effect until replaced, or cancelled by,
another permitted code. Non-modal means the code executes only once.
888.688.3234 | GOENGINEER.COM
Standard M Codes for Turning Centers
888.688.3234 | GOENGINEER.COM