1156
« on: May 12, 2015, 09:25:04 PM »
YOU are not using SUB program code so your question does not really apply.
I cannot see the Mcode script to comment on that part.
The way you are doing the coding you can apply the o word order any way you want to as the macro I assume is redirecting the code from Mcode script.
If you remember me telling you , there are Dragons in the woods when you do things this way. IF you change the order of execution you must also declare the return point as the M98 from inside of a macro cannot do the return as Mach3 has NO idea where the return point is. Gcode and Mcode code run in different threads and each know nothing of the other until it hits the run QUE.
It only runs now because the order of execution is correct. Changing the order of the program code without redirecting will cause KAOS.
Just a thought, (;-) TP