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

    macros in sys and in macros ?

    Scheduled Pinned Locked Moved
    General Discussion
    4
    6
    301
    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.
    • A Former User?
      A Former User
      last edited by

      if I put in config.g

      M98 P"startup.g"
      

      it's not executed if startup.g is in /macros but only if it's in /sys
      If I just in console shoot M98 P"startup.g" again same thing it looks for it in sys .. but if I put xx.g in /macros it's shown on the paneldue and click on it executes it but how do I call it from code ?

      1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User
        last edited by

        specify full path M98 P"/macros/xx.h"

        1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User
          last edited by

          obvious when you write it like that 😄 thanks, lemme go hide now 😄

          1 Reply Last reply Reply Quote 1
          • A Former User?
            A Former User
            last edited by

            no worries, it got me as well, especially triggers vs macros and where they are stored, its a bit non-intuitive imho.

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators
              last edited by

              The /macros folder is for macros that you want to appear in DWC and on PanelDue. Any other macros, including macros that RRF runs automatically, should be in /sys. The default path for M98 is /sys.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

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

                I've always been in the habit of using the full absolute path for all macro calls including the SD card drive letter. That also helps me keep track of where that macro is living if I need to look it up later.

                Z-Bot CoreXY Build | Thingiverse Profile

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