• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Yonkiman
    last edited by 15 Mar 2017, 22:58

    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
    • undefined
      kraegar
      last edited by 15 Mar 2017, 23:08

      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
      • undefined
        Yonkiman
        last edited by 15 Mar 2017, 23:11

        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
        • undefined
          T3P3Tony administrators
          last edited by 15 Mar 2017, 23:31

          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
          4 out of 4
          • First post
            4/4
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA