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

    M291 and using endstop for confirmation

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    8
    303
    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.
    • ericlmccormickundefined
      ericlmccormick
      last edited by

      I am using motor stall for X & Y and a probe for Z which leaves all my endstops open for reuse. I have also setup a macro for filament swaps. I have the hotend move to a specific area above the build plate, heat to 230, extrude a little then retract a lot. Then I use M291 P"Click ok" S1 to wait, then I have it extrude enough to clear the old filament out and have clean filament out the nozzle, then shut down.
      I would like to use an endstop as a trigger to continue from M291 instead of having to trigger from my computer/phone. Is this possible?

      jay_s_ukundefined fcwiltundefined 2 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @ericlmccormick
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • fcwiltundefined
          fcwilt @ericlmccormick
          last edited by

          @ericlmccormick

          Why the M291?

          How would you use the endstop?

          I'm a bit confused.

          Thanks.

          Frederick

          Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

          ericlmccormickundefined 1 Reply Last reply Reply Quote 0
          • ericlmccormickundefined
            ericlmccormick @fcwilt
            last edited by

            @fcwilt M291 with S1 allows you to pause your gcode and wait for an input before continuing. The code seems to work out well, but I have to go back to my computer and it would be better to hold the filament in the extruder and push a button the printer.

            fcwiltundefined 1 Reply Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt @ericlmccormick
              last edited by

              @ericlmccormick said in M291 and using endstop for confirmation:

              @fcwilt M291 with S1 allows you to pause your gcode and wait for an input before continuing. The code seems to work out well, but I have to go back to my computer and it would be better to hold the filament in the extruder and push a button the printer.

              Thanks for the explanation.

              Because there are times when "local control" is desirable I ended up installing PanelDue units on all my printers.

              The problem in your case is executing some code while the M291 is waiting for a response.

              A M292 would do it but how to execute it? PanelDue units use that to clear the M291.

              Let me give that some thought.

              Frederick

              Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

              ericlmccormickundefined 1 Reply Last reply Reply Quote 0
              • ericlmccormickundefined
                ericlmccormick @fcwilt
                last edited by

                Would it make sense to replace M291 with the following 2 lines?

                M950 J1 C"e1stop"
                M577 S1

                fcwiltundefined 1 Reply Last reply Reply Quote 0
                • fcwiltundefined
                  fcwilt @ericlmccormick
                  last edited by

                  @ericlmccormick said in M291 and using endstop for confirmation:

                  Would it make sense to replace M291 with the following 2 lines?

                  M950 J1 C"e1stop"
                  M577 S1

                  Try it and see.

                  How would you know that the button needed pushing.

                  Perhaps a LED mounted with/near the button turned on/off in code?

                  Frederick

                  Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                  ericlmccormickundefined 1 Reply Last reply Reply Quote 0
                  • ericlmccormickundefined
                    ericlmccormick @fcwilt
                    last edited by ericlmccormick

                    @fcwilt I have 24V LED strips 2 of my 3 printers, but easy to add it to my 3rd. I use E1 heater for the LEDs, putting them on a fan output cause voltage drop on the fans.

                    But since I have the hotend shoot out a little filament before a retraction, having the hotend in a given place above the build plate with a little filament under would signal it has done what it needs and needs me to swap out the filament and hit the button to continue the process.

                    I have also setup a macro for replacing my nozzle and this would be a good way to tell the machine I am done with the nozzle swap and to start cooling off or go into a stand-by state.

                    I will have to check out this code a little later today.

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