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

    How to include "macro" in config.g ?

    Scheduled Pinned Locked Moved
    Firmware installation
    3
    3
    153
    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.
    • StAnZ-007undefined
      StAnZ-007
      last edited by

      Hello,

      I want to include a specific macro for my delta machine to do some automatic cycles after booting the machine and run autocalibration.

      So, how can I link a macro at the end of my config.g file ?
      Is there a G code for this kind of request ?

      FW version : 3.4.5
      Hardware : DUET2WIFI

      Thanks for your support.

      infiniteloopundefined 1 Reply Last reply Reply Quote 0
      • infiniteloopundefined
        infiniteloop @StAnZ-007
        last edited by

        @StAnZ-007 said in How to include "macro" in config.g ?:

        So, how can I link a macro at the end of my config.g file ?
        Is there a G code for this kind of request ?

        Sure: M98: Call Macro/Subprogram

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

          I'd be wary of including any commands that cause motion on startup without at least wrapping it in a M291 prompt that the user has to acknowledge.

          Imagine a power loss and restore during a long print. Do you really want it automatically trying to probe the bed with a print still on it?

          Z-Bot CoreXY Build | Thingiverse Profile

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