Home › M-codes › Haas NGC › M17
M17 Pallet unclamp and open APC door / Turret rotation forward
Haas NGC M-code · Mill, Lathe
On mills: Pallet unclamp and open APC door
Unclamps the pallet and opens the automatic pallet changer door. Used on machines with an APC.
Format
M17
How it works
Not modal. Acts once on the line where it is commanded.
Example program
G91 G28 Z0. (Z HOME)
M17 (UNCLAMP PALLET AND OPEN APC DOOR)
M18 (CLAMP PALLET AND CLOSE APC DOOR)
M17 (UNCLAMP PALLET AND OPEN APC DOOR)
M18 (CLAMP PALLET AND CLOSE APC DOOR)
Example is in inch. Check offsets and clearances first.
Watch out for
- Normally M50 does the full pallet change. M17 and M18 are for special sequences.
On lathes: Turret rotation forward
Makes tool changes rotate the turret forward. Stays in effect for the rest of the program.
Format
T M17
How it works
Modal for the rest of the program.
Example program
T0101 M17 (TOOL 1, TURRET FORWARD)
T0505 (STILL FORWARD)
G00 G54 X2.1 Z.1 (APPROACH)
T0505 (STILL FORWARD)
G00 G54 X2.1 Z.1 (APPROACH)
Example is in inch. Check offsets and clearances first.
Watch out for
- Setting 97, tool change direction, must be set to M17 and M18.
Related codes
M17 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Machine lock act |
| Mazak (EIA) | Spindle orientation 120° (for AJC) |
| Okuma OSP | CEJ MATIC : Request of Data transfer |
| Siemens 840D 828D | End of subprogram |
| Centroid CNC12 Acorn | Prepare for tool change, macro |
| Hurco WinMax (NC) | Automatic buffering off |
| Fadal | End of subroutine, Format 1 |
Every M-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 M17 in the app All Haas NGC M-codes