Home › M-codes › Haas NGC › M18
M18 Pallet clamp and close APC door / Turret rotation reverse
Haas NGC M-code · Mill, Lathe
On mills: Pallet clamp and close APC door
Clamps the pallet and closes the automatic pallet changer door.
Format
M18
How it works
Not modal. Acts once on the line where it is commanded.
Example program
M17 (UNCLAMP AND OPEN)
M00 (CHECK THE PALLET IS SEATED)
M18 (CLAMP PALLET AND CLOSE APC DOOR)
M00 (CHECK THE PALLET IS SEATED)
M18 (CLAMP PALLET AND CLOSE APC DOOR)
Example is in inch. Check offsets and clearances first.
Watch out for
- Check the pallet is seated before M18.
On lathes: Turret rotation reverse
Makes tool changes rotate the turret in reverse. Stays in effect for the rest of the program.
Format
T M18
How it works
Modal for the rest of the program.
Example program
T1212 M18 (TOOL 12, TURRET REVERSE)
G00 G54 X2. Z.1 (APPROACH)
G01 Z-1. F.01 (TURN)
G00 G54 X2. Z.1 (APPROACH)
G01 Z-1. F.01 (TURN)
Example is in inch. Check offsets and clearances first.
Watch out for
- Setting 97 must be set to M17 and M18 for these to work.
- Use it to swing past a long boring bar a safer way.
Related codes
M18 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Machine lock cancel |
| Mazak (EIA) | Spindle orientation 240° (for AJC) |
| Okuma OSP | Oriented spindle stop Cancel |
| Fadal | Cycle Cushman indexer |
| Swiss (Citizen Star) | C axis on (Citizen) |
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 M18 in the app All Haas NGC M-codes