Haas M Code Reference
Haas M02 Program End
M02 ends a program. Note that the most common way of ending a program is with an M30.
Haas M05 Spindle Stop
The M05 code is used to stop the spindle. The block is delayed until the spindle slows below 10 RPM.