Macro within a macro
-
I have looked in the Wiki's and anywhere else I can think of to find an answer to my question, but no success!
I am running the latest RRF3 on a Duet2 Ethernet with Duex5If I am running a macro and call another macro from it, what happens to the original macro, does it continue or wait for the called macro to finish before continuing?
For instance.
Macro1 - does a bed leveling procedure.
Macro2 - fades the RGB lights up and down in red. (Lots of copy and paste!);Level bed Macro M98 "Macro2.g" ; start fade the lights to indicate something is happening. ; do ; carry on with my leveling procedure my leveling commands here etc ;Stop Macro2.g somehow!!
If it does just 'call' Macro2 and continue, can I stop Macro2 when Macro1 is finished?
Regards,
Paul -
The original macro will be paused until the one it called has completed.
-
@dc42 That was quick David, thank you.
Will the Duet2 ever be able to run a 'called / sub' process independantly?
Out of interest, can the Duet3?So the best I can do is turn the red LEDs on full, and off at the end.
Thanks again.
Paul
-
@PaulHew said in Macro within a macro:
@dc42 That was quick David, thank you.
Will the Duet2 ever be able to run a 'called / sub' process independantly?
Out of interest, can the Duet3?The only independent subprocess on Duet 2 or Duet 3 in standalone mode is the daemon.g file. You could use that to control your LEDs. On Duet 3 with attached SBC, many things are possible using plugins.