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
Addresses
| Address | What it does |
|---|---|
P | Sequence number |
How it works
Not modal. Acts once on the line where it is commanded.
Example program
M300 P1 (RUN ROBOT LOAD SEQUENCE)
M81 (CLOSE THE DOOR)
Example is in inch. Check offsets and clearances first.
Watch out for
- Sequences are set up with the APL or robot integration. Check your cell setup.
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
Addresses
| Address | What it does |
|---|---|
P | Alias number of the custom sequence |
Q0 | Play in the background of the program |
R0 | Play the sequence in reverse |
How it works
Non-modal.
Example program
M300 P1 R0 (RUN SEQUENCE 1 IN REVERSE)
M30 (END)
Example is in inch. Check offsets and clearances first.
Watch out for
- In reverse, non robot commands such as dwells, door, workholding and orients are skipped.
Related codes
M300 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Z-axis mirror image on |
| Centroid CNC12 Acorn | Fast 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