M291 and using endstop for confirmation
-
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? -
This post is deleted! -
-
@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.
-
@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
-
Would it make sense to replace M291 with the following 2 lines?
M950 J1 C"e1stop"
M577 S1 -
@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 S1Try 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
-
@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.