Home › G-codes › Mach3 Mach4 › G2
G2 Clockwise arc
Mach3 Mach4 G-code · Mill
Cuts a clockwise arc at feed rate in the active plane. Give the center with I J K or the radius with R. Add the third axis for a helix.
Format
G2 X Y [Z] I J F or G2 X Y [Z] R F
Addresses
| Address | What it does |
|---|---|
X Y Z | End point of the arc |
I J K | Arc center, from the start point or absolute per IJ mode |
R | Radius, negative for more than 180 degrees |
F | Feed rate |
How it works
Modal, motion group.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S2500 M3 (SPINDLE ON)
G91.1 (INCREMENTAL IJ MODE)
…
T1 M6 (TOOL CHANGE)
S2500 M3 (SPINDLE ON)
G91.1 (INCREMENTAL IJ MODE)
…
The full 10-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Mach has an IJ mode setting. Incremental IJ is normal for Fanuc style posts. If arcs show as huge wrong circles, the IJ mode does not match the post.
- Set the IJ mode with G90.1 or G91.1 in the program so the setting in the configuration cannot catch you.
- R with a negative value cuts the arc over 180 degrees. Use I and J for full circles.
Related codes
G2 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Circular interpolation clockwise |
| Haas NGC | Circular interpolation clockwise |
| Mazak (EIA) | Circular interpolation, clockwise |
| Okuma OSP | Circular interpolation clockwise |
| Mitsubishi M70 M80 | Circular move clockwise |
| Brother Speedio | Circular interpolation clockwise |
| Siemens 840D 828D | Circular interpolation clockwise |
| Heidenhain TNC (ISO) | Clockwise arc, Cartesian |
| Fagor 8055 8065 | Clockwise circular interpolation |
| LinuxCNC Tormach | Clockwise arc or helix |
| Centroid CNC12 Acorn | Clockwise arc or helix |
| Hurco WinMax (NC) | Circular or helical move clockwise |
| Fadal | Circular interpolation clockwise |
| Swiss (Citizen Star) | Circular move clockwise |
Every G-code for Mach3 Mach4 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 G2 in the app All Mach3 Mach4 G-codes