Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    MACRO FILE PLACING IN THE sys FOLDER

    Scheduled Pinned Locked Moved
    General Discussion
    3
    4
    155
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SANJRundefined
      SANJR
      last edited by

      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

      1. Where should these macro.g files be placed in the sys folder?
      2. 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
      sys file.png

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @SANJR
        last edited by

        @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".

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        SANJRundefined 1 Reply Last reply Reply Quote 1
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          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

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • SANJRundefined
            SANJR @deckingman
            last edited by

            @deckingman Thanks for the update

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA