I'm trying to pass variables from one macro to a sub macro to remove repetitive code and simplify programing. trouble is the sub-program is wiping the variables when it returns to the main program with M99.
I only have variables #100 to #131 and variables #500 to #531. I'd like to have the 100 series variables stay resident in the sub-macro and when the sub-program ends avoiding the need to save essential variables in the #500-531 range
I tried parameter (0m-a) 40#6 but it didn't seem to have an effect. my previous parameter 40 was 00000000 and changed to 01000000.
found a problem with the macro that caused the issue. now works as I intended.
solved the problem by inserting optional stops M00 to help debug.