CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC › M300

M300 APL or robot custom sequence

Haas NGC M-code · Mill, Lathe

On mills: APL or robot custom sequence

Runs a custom sequence for an automatic parts loader or robot cell.

Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.

Format

M300 [P]

Addresses

AddressWhat it does
PSequence number

How it works

Not modal. Acts once on the line where it is commanded.

Example program

M80 (OPEN THE DOOR)
M300 P1 (RUN ROBOT LOAD SEQUENCE)
M81 (CLOSE THE DOOR)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: APL or robot custom sequence

Calls an APL or robot custom sequence by the alias number in P. Q0 plays it in the background and R0 plays it in reverse.

Format

M300 P [Q0] [R0]

Addresses

AddressWhat it does
PAlias number of the custom sequence
Q0Play in the background of the program
R0Play the sequence in reverse

How it works

Non-modal.

Example program

M300 P1 (RUN CUSTOM SEQUENCE 1)
M300 P1 R0 (RUN SEQUENCE 1 IN REVERSE)
M30 (END)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M80 · M81 · M299

M300 on other controls

The same number can mean something different on another control.

ControlMeaning
Doosan (Fanuc)Z-axis mirror image on
Centroid CNC12 AcornFast PLC value update

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 M300 in the app All Haas NGC M-codes

App Store Google Play