G-code reference

G107 G-Code: Cylindrical Mapping / Interpolation

Cylindrical Mapping / Interpolation — Haas mills: cylindrical mapping that wraps Y-axis moves onto a rotary A or B axis of a given diameter. Fanuc lathes (system A): the code for cylindrical…

By cnccode · Updated
PropertyValue
CodeG107
FunctionCylindrical Mapping / Interpolation
Modal group00
TypeOne-shot (non-modal) — active only in its own block
Used onMills and lathes
SyntaxHaas: G107 A_ Y_ R_

What does G107 do?

Haas mills: cylindrical mapping that wraps Y-axis moves onto a rotary A or B axis of a given diameter. Fanuc lathes (system A): the code for cylindrical interpolation (same as G07.1).

G107 is a one-shot code: it only acts in the block where it is written, and the previously active modal codes take over again afterwards.

Syntax and parameters

Format
Haas: G107 A_ Y_ R_
AddressMeaning
RCylinder radius

G107 example program

Example
(Haas)
G107 A0 Y0 R25.0
G01 Y50.0 Z-1.0 F300.
G107

▶ Open this example in the G-code viewer

Controller compatibility

G107 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 G107 modal?
No. G107 is a one-shot (group 00) code and only acts in the block where it appears.
What does G107 mean in CNC?
G107 means Cylindrical Mapping / Interpolation. Haas mills: cylindrical mapping that wraps Y-axis moves onto a rotary A or B axis of a given diameter. Fanuc lathes (system A): the code for cylindrical interpolation (same as G07.1).
What is the difference between G107 and G07.1?
G107 is Cylindrical Mapping / Interpolation, while G07.1 is Cylindrical Interpolation. See the G07.1 page for its syntax and examples.
Can I use G107 on a lathe?
Yes, G107 is used on both mills and lathes, although some parameters differ between them.