5048
« on: October 04, 2011, 07:08:32 PM »
OK IF you are calling SUBS from inside a SUB in Macro you are in UNCHARTED ground there is really no way to predict what will happen IF you run it.
The method I showed you is not really a SUB call it is a GOTO statement left over from the original Code that Mach3 was built on. It just happens to work reliably in a simple 1 time call to a sub without the need to return. Perfect for remote calls from a BUTTON or a goto piont in a GCODE program FROM a macro. It has MANY uses.
Very few people even know it exists . There are still undocumented things in MACH3 (;-) but not as many as there once were. I am all the time plundering throught the original base code and LOOKING in mach3 to see IF any remants remain. (;-)
If you try it otherwise you may NOT have a return point to go back to in the macro and it should error out or maybe something else who knows. Like I SAID uncharted GROUNDS.
USE WITH CAUTION,
(;-) TP