G-code reference
G15 G-Code: Polar Coordinate Command Cancel
Polar Coordinate Command Cancel — Cancels polar coordinate mode (G16) and returns X/Y to normal Cartesian values.
| Property | Value |
|---|---|
| Code | G15 |
| Function | Polar Coordinate Command Cancel |
| Modal group | 17 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G15 |
What does G15 do?
Cancels polar coordinate mode (G16) and returns X/Y to normal Cartesian values.
G15 is modal: once programmed it remains in effect for the following blocks until another code from modal group 17 replaces it or the control is reset.
Syntax and parameters
G15G15 example program
G16 (polar on)
G81 X50.0 Y30.0 Z-10.0 R2.0 F200.
G15 (polar off)▶ Open this example in the G-code viewer
Tips and common mistakes
- Always cancel G16 before normal positioning moves.
Controller compatibility
G15 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
Frequently asked questions
Is G15 modal?
Yes. G15 belongs to modal group 17 and stays active until another code of that group is programmed.
What does G15 mean in CNC?
G15 means Polar Coordinate Command Cancel. Cancels polar coordinate mode (G16) and returns X/Y to normal Cartesian values.
What is the difference between G15 and G16?
G15 is Polar Coordinate Command Cancel, while G16 is Polar Coordinate Command. See the G16 page for its syntax and examples.
Can I use G15 on a lathe?
Usually not with the same meaning: G15 is documented here for milling machines. Check your control manual for the equivalent.