• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    StAnZ-007
    last edited by 26 Feb 2023, 14:38

    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.

    undefined 1 Reply Last reply 26 Feb 2023, 14:43 Reply Quote 0
    • undefined
      infiniteloop @StAnZ-007
      last edited by 26 Feb 2023, 14:43

      @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
      • undefined
        Phaedrux Moderator
        last edited by 26 Feb 2023, 20:24

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