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

    Using external switch to run gcode/Macros

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    257
    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.
    • dnksystemsundefined
      dnksystems
      last edited by

      Hi All

      Using the duet at the moment and all is good, running dual z, filament sensor (magnetic), dual filament motors and more, all good so far, what we need to do is the following and have no idea how at this stage, so I thought id ask you guys. Any help / Direction would be great.

      Need:
      Use and external simple button to trigger a gcode/macro event. (yes we can use a screen but in our case we are not, and can't)

      Example use:
      Press a button to unload the filament from the machine, IE with a input trigger (button press) run a pre-configured macro already created.

      I know there are limited inputs so I'm hoping there are some great operators out there that can help.

      Thanks heaps in advance for any help you can give.

      D

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @dnksystems
        last edited by

        @dnksystems You can that. Connect the switch to a spare end stop input then use M581 to run a macro when the switch is pressed.

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        1 Reply Last reply Reply Quote 0
        • dnksystemsundefined
          dnksystems
          last edited by

          Thanks for that, working on this now.

          Great work
          D

          deckingmanundefined 1 Reply Last reply Reply Quote 0
          • deckingmanundefined
            deckingman @dnksystems
            last edited by

            @dnksystems To expand on what I said, if you have Duet generation 3, then none of the io ports are pre-defined so you can use pretty much any io port, rather than an end stop input. I have a DC UPS which has various sets of NO switch contacts which trigger on various events. So I connect those to my duet which runs various macros which initiate actions in the event of interrupted mains supply and so forth.

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

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