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…
| Property | Value |
|---|---|
| Code | G107 |
| Function | Cylindrical Mapping / Interpolation |
| Modal group | 00 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Mills and lathes |
| Syntax | Haas: 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
Haas: G107 A_ Y_ R_| Address | Meaning |
|---|---|
R | Cylinder radius |
G107 example program
(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.