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

    Can macros call .g files?

    Scheduled Pinned Locked Moved
    General Discussion
    3
    4
    1.4k
    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.
    • Yonkimanundefined
      Yonkiman
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • kraegarundefined
        kraegar
        last edited by

        Those are called when you change tools, yep.

        Co-Creator of the RailcoreII CoreXY printer
        https://www.thingiverse.com/thing:2407174

        1 Reply Last reply Reply Quote 0
        • Yonkimanundefined
          Yonkiman
          last edited by

          This forum's looking more and more like strong evidence that my brain's not that young anymore… 🙂

          1 Reply Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators
            last edited by

            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).

            www.duet3d.com

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