Course: PMT 250 Multi-Axis CNC Programming (Section 060)

HAAS HRT210 Lessons

Programming with Sub-Programs
Programming with Sub-Programs
- Programming a 4th axis indexer can be complicated, but many programmers use sub-programs.
- Sub-Programming works great when a programming is programming the same feature on multiple side of a work piece.
- Local Sub-Programming means that you create a main program and you use a special "M" code to call up a Sub-Program.
- When using Sub-Programming you will need to create a main program and another program for the sub.
- Each Sub-Program will need to be saved in the memory of the HAAS control.
- "M" codes used for Sub-Programming:

M98 - Local Sub-Program call.

P - Is the program number that the sub-program will look for in the memory of the HAAS control.

(Example: M98 P101

The control will look for program number 101. This is saved as O101 in memory).

M99 - Return to the main program.