Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Can macros call .g files?

    General Discussion
    3
    4
    1226
    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.
    • Yonkiman
      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
      • kraegar
        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
        • Yonkiman
          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
          • T3P3Tony
            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).

            Duet Hardware Designer
            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