G-code reference

G07.1 G-Code: Cylindrical Interpolation

Cylindrical Interpolation — Fanuc function that lets you program a profile on the surface of a cylinder as if it were flat: the rotary axis (C or A) is programmed in arc-length units on…

By cnccode · Updated
PropertyValue
CodeG07.1
FunctionCylindrical Interpolation
Modal group18
TypeModal — stays active until replaced by another code of the same group
Used onMills and lathes
SyntaxG07.1 C_ (radius) … G07.1 C0 (cancel)

What does G07.1 do?

Fanuc function that lets you program a profile on the surface of a cylinder as if it were flat: the rotary axis (C or A) is programmed in arc-length units on the unrolled surface. It is used for cam grooves and slots wrapped around shafts.

G07.1 is modal: once programmed it remains in effect for the following blocks until another code from modal group 18 replaces it or the control is reset.

Syntax and parameters

Format
G07.1 C_ (radius)  …  G07.1 C0 (cancel)
AddressMeaning
C (or A)Radius of the cylinder; C0 cancels the mode

G07.1 example program

Example
G19 G07.1 C20.0 (cylinder radius 20)
G01 G42 Z-10.0 C30.0 F200.
Z-25.0 C60.0
G40 Z0 C80.0
G07.1 C0

▶ Open this example in the G-code viewer

Tips and common mistakes

  • On Fanuc lathes in G-code system A the same function is G107.
  • Cutter compensation works in the unrolled plane.

Controller compatibility

G07.1 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.

Frequently asked questions

Is G07.1 modal?
Yes. G07.1 belongs to modal group 18 and stays active until another code of that group is programmed.
What does G07.1 mean in CNC?
G07.1 means Cylindrical Interpolation. Fanuc function that lets you program a profile on the surface of a cylinder as if it were flat: the rotary axis (C or A) is programmed in arc-length units on the unrolled surface. It is used for cam grooves and slots…
What is the difference between G07.1 and G107?
G07.1 is Cylindrical Interpolation, while G107 is Cylindrical Mapping / Interpolation. See the G107 page for its syntax and examples.
Can I use G07.1 on a lathe?
Yes, G07.1 is used on both mills and lathes, although some parameters differ between them.