CNC Machinist Calculator Ultra

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)

Example is in inch. Check offsets and clearances first.

Watch out for

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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M17 · M50

M18 on other controls

The same number can mean something different on another control.

ControlMeaning
Doosan (Fanuc)Machine lock cancel
Mazak (EIA)Spindle orientation 240° (for AJC)
Okuma OSPOriented spindle stop Cancel
FadalCycle 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

App Store Google Play