Home › G-codes › Haas NGC › G15
G15 Secondary spindle swap cancel
Haas NGC G-code · Lathe
Cancels G14 so commands go back to the main spindle and Z mirror from G14 is removed.
Format
G15
How it works
Modal, group 17. Default at power up and reset.
Example program
M05 (STOP SPINDLE, SECONDARY UNDER G14)
G00 G53 X0 (X HOME)
G15 (CANCEL SPINDLE SWAP)
G54 (BACK TO MAIN SPINDLE WORK OFFSET)
G00 G53 X0 (X HOME)
G15 (CANCEL SPINDLE SWAP)
G54 (BACK TO MAIN SPINDLE WORK OFFSET)
Example is in inch. Check offsets and clearances first.
Watch out for
- Stop the secondary spindle and move to a safe position before G15.
- After G15, M143, M144 and M145 control the secondary spindle again.
Related codes
G15 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Polar coordinate command cancel |
| Mazak (EIA) | Polar coordinate input off |
| Okuma OSP | Work coordinate system select, modal |
| Brother Speedio | Polar coordinate cancel |
| Fagor 8055 8065 | Longitudinal axis selection |
| Mach3 Mach4 | Polar coordinates off |
| Hurco WinMax (NC) | Polar coordinates cancel |
| Fadal | YZ circular interpolation with A axis |
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 G15 in the app All Haas NGC G-codes