Can macros call .g files?
-
Using the Duet Web Control interface, can I write a macro that will execute code in (for example) my tfree0.g and tpost0.g files?
Edit: Duh - those files will automatically be called when I change tools, right?
-
Those are called when you change tools, yep.
-
This forum's looking more and more like strong evidence that my brain's not that young anymore…
-
yes and more generally check out:
https://duet3d.com/wiki/G-code#M98:_Call_Macro.2FSubprogram
Macro calls can be nested (ie a macro can call another macro).