Haas Parameter 81 M MACRO CALL O9000


Haas Parameter 81 M MACRO CALL O9000

M code that will call O9000. This parameter can contain a value from 1 through 98, inclusive. Zero causes no call; however, it is best to use a value that is not already in use (see current M code list). When using M37, the value 37 would be entered in Parameter 81 (for example). A program would be written to include the M37:

G X0...
M37
.
.
M30

The control would run the program until it got to the M37, call program O9000, run that, return to the point that it left, and continue the main program. Be aware that, if program O9000 contains another M37, it will call itself, keep calling until it fills the stack (9 times), and then alarm out with 307, Subroutine Nesting Too Deep. Note that if M33 (for example) is used, it would override the normal M33 Conveyor Stop function.

Haas Parameter 81 M MACRO CALL O9000