Home › G-codes › Haas NGC › G107
G107 Cylindrical mapping
Haas NGC G-code · Mill, Lathe
On mills: Cylindrical mapping
Wraps a flat XY program around a cylinder on a rotary axis, so linear moves turn into rotary moves. Needs a 4th axis.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
A or B | Rotary axis used for the mapping |
Q | Diameter of the cylinder surface |
R | Radius of the cylinder surface |
How it works
Modal. Cancel with G107 alone.
Example program
G01 Y1.5 F10. (Y MOVE BECOMES A ROTATION)
G107 (MAPPING OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Use Q or R, not both.
- The rotary axis must be set up with its center on the cylinder axis.
On lathes: Cylindrical mapping
Wraps Y axis motion onto the C axis so you can mill a flat pattern around a diameter with a radial live tool. Use G19 plane.
Format
Addresses
| Address | What it does |
|---|---|
Y | Y axis command |
C | C axis command |
R | Radius of the mapping cylinder |
Q | Diameter of the cylinder |
How it works
Group 00. G107 alone turns it off.
Example program
M133 P500 (LIVE TOOL FORWARD 500 RPM)
G98 G19 (FEED PER MINUTE, YZ PLANE)
G107 C0 R2. (MAP ON 2.0 RADIUS)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- An R or Q is required or the control alarms.
- Stay in G19 while G107 is on. Do not switch to G17 or G18.
Related codes
Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G107 in the app All Haas NGC G-codes