070709-0810 EST USA

Stu M3:

I believe the use of the word "MACRO" was used in place of a more correct term "subroutine".

Thus, I expect that Jester966 wants to pass parameters into a subroutine from a G65 call. He has shown segments of that subroutine. So #1 maps from A in the subroutine calling line, #18 from R, #7 from D, #24 from X, and #26 from Z. #4 and #6 are probably local to the subroutine and a don't care on return from the subroutine.

However, if another G65 subroutine (second subroutine) is called from this first subroutine and any of the local variables are used in the second subroutine, then on return to the first subroutine the local variables as viewed in the first subroutine will remain unchanged from their values before the call to the second subroutine. I suspect this is because the local variables are actually stored on a stack.

See my post #2 at http://www.cnczone.com/forums/showthread.php?t=32630 for some information on local variables in a HAAS machine.

.