G-code reference
G13 G-Code: Circular Pocket Milling CCW (Haas) / Cancel Polar Interpolation (G13.1)
Circular Pocket Milling CCW (Haas) / Cancel Polar Interpolation (G13.1) — Haas: counter-clockwise version of G12 (climb milling for a right-hand cutter inside a pocket). On Fanuc lathes G13.1 cancels polar coordinate interpolation…
| Property | Value |
|---|---|
| Code | G13 |
| Function | Circular Pocket Milling CCW (Haas) / Cancel Polar Interpolation (G13.1) |
| Modal group | 00 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Milling machines |
| Syntax | G13 I_ K_ Q_ D_ L_ Z_ F_ |
What does G13 do?
Haas: counter-clockwise version of G12 (climb milling for a right-hand cutter inside a pocket). On Fanuc lathes G13.1 cancels polar coordinate interpolation started by G12.1.
G13 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
G13 I_ K_ Q_ D_ L_ Z_ F_| Address | Meaning |
|---|---|
I K Q D L Z F | Same as G12 |
G13 example program
G00 X0 Y0 Z1.0
G13 I5.0 K25.0 Q4.0 D01 Z-3.0 F300.▶ Open this example in the G-code viewer
Tips and common mistakes
- G13 gives climb milling inside a pocket with a standard right-hand cutter.
Controller compatibility
G13 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.
Related codes
- G12 — Circular Pocket Milling CW (Haas) / Polar Interpolation (Lathe G12.1)
- G03 — Circular Interpolation Counter-Clockwise