96-8000
M CODES
219
June 1999
You can simulate FANUC behavior by using the following code.
calling program: HAAS FANUC
O0001 O0001
... ...
N50 M98 P2 N50 M98 P2
N51 M99 P100 ...
... N100 (continue here)
N100 (continue here) ...
... M30
M30
subroutine: O0002 O0002
M99 M99 P100
If you have macros, you can use a global variable and specify a block to jump to by adding #nnn=dddd in the
subroutine and then using M99 P#nnn after the subroutine call. There are many ways to jump conditionally
after a M99 return when using macros.