CNC Machinist Calculator Ultra

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

AddressWhat it does
QPallet number
PLine 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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M48 · M50

M46 on other controls

The same number can mean something different on another control.

ControlMeaning
Doosan (Fanuc)P.T.S.Body clamp & bar advance
DMG Mori MAPPS (Fanuc)Sensor selection signal ON
FadalPositive 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

App Store Google Play