G64

Machining center, LatheModal, group 15

Cutting mode (continuous cutting; cancels exact stop)

Format and notes

G64

Example

G90 G54 G00 X-10. Y-10. ;
G01 Z-2. F100 ;
G61 ; (EXACT STOP AT EVERY CORNER)
G01 Y0 F400 ;
X40. ;
Y20. ;
G64 ; (CUTTING MODE: NO STOP AT JOINTS)
G03 X20. Y40. R20. F800 ;
G01 X-10. ;

The three blocks from G61 to G64 (Y0, X40., Y20.) stop at each end point and confirm the position, so the corners come out sharp. The arc and line after G64 are fed continuously without stopping at the junctions, so the feed speed stays constant. In return, any corner at a junction is slightly rounded. The coordinates and feeds are for illustration and are not recommended values.

Diagram: Corner motion: exact stop and cutting mode

G09/G61: stops at cornerDecelerates and stopsG64: passes without stoppingCorner rounds slightly(exaggerated)
G64 is the normal mode that moves to the next block without stopping at the junction. It is fast, but corners are slightly rounded (how much depends on the machine and feed).

Differences between controls and machines

The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.

SourceMachineItemDetail
LinuxCNC—FormatG64 P_ (tolerance) Q_. Without P, speed takes priority and how far the path departs from the commanded point is not defined. With P, the actual path stays within P of the commanded end point
Siemens (native)—FormatG64 is continuous cutting. G641 ADIS= (rounding distance) and G642–G644 select how corners are rounded. G60 and G9 stop the motion

Frequently asked questions about G64

What is G64 (Cutting mode (continuous cutting; cancels exact stop)) used for and how is it formatted in a CNC program?
G64 commands "Cutting mode (continuous cutting; cancels exact stop)" on Machining center, Lathe. The standard program format is "G64". The normal mode that moves on to the next block without stopping at block joints. The default on many machines
Is G64 a modal code or a one-shot (non-modal) code?
G64 is a modal code (Group 15). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
Does G64 work differently on machining centers (mills) versus CNC lathes?
G64 is primarily used on Machining center, Lathe. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
Are there differences in G64 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G64. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.

Sources

The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.

  1. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
  2. Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
  3. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
  4. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
  5. National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
  6. Mitsubishi Electric — MITSUBISHI CNC 700/70 Series Programming Manual (Lathe System) (IB-1500057) mitsubishielectric.com
  7. Siemens AG — SINUMERIK 840D sl/840D/840Di sl/810D Fundamentals, Programming Manual, Edition 08/2005 (6FC5398-1BP10-0BA0) cache.industry.siemens.com
  8. LinuxCNC project — G-Codes (LinuxCNC Documentation) linuxcnc.org