Home › M-codes › Haas NGC › M46
M46 Jump if pallet loaded
Haas NGC M-code · Mill
Jumps to line P in the current program if pallet Q is loaded. Used in pallet changer programs.
Format
M46 Q P
Addresses
| Address | What it does |
|---|---|
Q | Pallet number |
P | Line number to jump to |
How it works
Not modal. Acts once on the line where it is commanded.
Example program
M46 Q1 P100 (IF PALLET 1 IS LOADED GO TO N100)
M46 Q2 P200 (IF PALLET 2 IS LOADED GO TO N200)
M30 (END IF NO PALLET MATCHED)
M46 Q2 P200 (IF PALLET 2 IS LOADED GO TO N200)
M30 (END IF NO PALLET MATCHED)
Example is in inch. Check offsets and clearances first.
Watch out for
- The P line number must exist in the current program.
Related codes
M46 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | P.T.S.Body clamp & bar advance |
| DMG Mori MAPPS (Fanuc) | Sensor selection signal ON |
| Fadal | Positive approach on |
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 M46 in the app All Haas NGC M-codes