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

    Execute macros when power on?

    Scheduled Pinned Locked Moved
    Firmware installation
    6
    7
    995
    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.
    • peirofundefined
      peirof
      last edited by

      Hi,

      There is some kind of system of run macros when power on printer… For example, as idea:

      Power on

      Heat bed
      Heat nozzle
      Homing
      Calibrate
      Extrude some plastic
      Move nozzle near bed for print

      Repetitive things that are almost always done when the printer is turned on ...

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        If you really want to execute commands at power up, you can do so in config.g or In a macro that you call from that. But think carefully about unusual conditions that might make it undesirable to have actions performed at power up, such as power being lost when there is a large print under way, and then restored.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • fmaundefined
          fma
          last edited by

          If the macro button in the GUI is not enough for you, you can wire a physical button on an unused endstop input which triggers you macro.

          Frédéric

          1 Reply Last reply Reply Quote 0
          • DjDemonDundefined
            DjDemonD
            last edited by

            Is there documentation for how to do that? Sounds good.

            Simon. Precision Piezo Z-Probe Technology
            www.precisionpiezo.co.uk
            PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

            1 Reply Last reply Reply Quote 0
            • nhofundefined
              nhof
              last edited by

              Try using M581 along with a trigger2.g to an unused endstop (I use E0 end stop) Should be pretty simple to connect a push button as an end stop, then configure a script to trigger on button press.

              https://duet3d.com/wiki/Connecting_endstop_switches (Follow instructions for microswitch)

              https://duet3d.com/wiki/G-code#M581:_Configure_external_trigger

              1 Reply Last reply Reply Quote 0
              • elmoretundefined
                elmoret
                last edited by

                @DjDemonD:

                Is there documentation for how to do that? Sounds good.

                https://www.duet3d.com/wiki/Connecting_an_Emergency_Stop_button

                1 Reply Last reply Reply Quote 0
                • DjDemonDundefined
                  DjDemonD
                  last edited by

                  Thanks

                  Simon. Precision Piezo Z-Probe Technology
                  www.precisionpiezo.co.uk
                  PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

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