MACRO FILE PLACING IN THE sys FOLDER
-
Greetings
I want to create 6 Macro.g Files in the sys folder. A normal sys folder consists of 10.g files, such as bed.g, config.g asn so on
- Where should these macro.g files be placed in the sys folder?
- And should any G-Code for the macro.g be written in the config.g file like a G98?
For ease of Understanding i have placed picture of the sys folder
-
@SANJR You can put them wherever you want. The "normal" place for macros is in the /macros folder. That way you'll be easily able to run them from the web interface. But if you aren't likely to want to run them directly from the web interface, then you can put them directly in /sys or create a sub folder. You just need to specify the correct path when you call them. E.g. M98 P"MyMacro.g" will run the macro entitled "MyMacro.g" which resides in the .sys folder, but M98 P"0:/macros/MyMacro.g" will run the macro entitled "MyMacro.g which resides in the macros folder".
-
Some other details here: https://docs.duet3d.com/en/User_manual/Tuning/Macros_tasks
Macros are just text files that contain the commands you want to run. Nothing else special about that.
See here on how to call them: https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m98-call-macrosubprogram
-
@deckingman Thanks for the update