Home › M-codes › Haas NGC › M50
M50 Pallet change
Haas NGC M-code · Mill
Runs a full pallet change on machines with an automatic pallet changer.
Format
M50 [P]
Addresses
| Address | What it does |
|---|---|
P | Pallet number to load |
How it works
Not modal. Acts once on the line where it is commanded.
Example program
G91 G28 Z0. (Z HOME)
G90 (ABSOLUTE)
M50 P2 (LOAD PALLET 2)
G90 (ABSOLUTE)
M50 P2 (LOAD PALLET 2)
Example is in inch. Check offsets and clearances first.
Watch out for
- Settings 121 to 129 control pallet changer behavior.
- Send Z home and stop the spindle before M50.
Related codes
M50 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Bar-feeder command 1 |
| DMG Mori MAPPS (Fanuc) | Oil-hole drill coolant ON |
| LinuxCNC Tormach | Feed override control |
| Centroid CNC12 Acorn | C axis off |
| Swiss (Citizen Star) | Pick-off check (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 M50 in the app All Haas NGC M-codes