Welcome! Log In Create A New Profile

Advanced

How to remove the function: "Click to resume"

Posted by ZtreKo 
How to remove the function: "Click to resume"
June 23, 2020 06:34PM
Hello, I'm using Marlin on my Ender3 (mks robin 3ed) and I set up a system for automatic shutdown (Z axis on until the end and activates a microswitch, turning everything off) through the custom GCODE, but every end of printing I have to click on button for the printer to continue, that is, if I don’t click, there’s no use using GCODE pause and then move up the Z axis, because it won’t accept the GCODE, just the physical contact on the button. How to remove this option? !!? Thank you.
Attachments:
open | download - 104475039_187691565994434_4561957702596357153_n.jpg (154.3 KB)
open | download - MARLIN .zip (61.9 KB)
Re: How to remove the function: "Click to resume"
June 24, 2020 09:21PM
I do not think there are any options to disable that "feature".
But maybe there is another way to accomplish what you want.
What is your printer end script?
Where is your custom GCODE?
What does it do?
How does Z activate the micro?
Re: How to remove the function: "Click to resume"
June 24, 2020 09:42PM
g-code final my Ender3:

G91
G1 E-2 F2700
G1 E-2 Z0.2 F240
G1 X5 Y5 F3000
G1 Z10
G90

G1 X0 Y
M106 S0
M104 S0
M140 S0

M84 X Y E


The command I'm going to use was copied from a Thingverse project: [www.thingiverse.com]

GCODE :
G4 S300;
G0 Z250;

tnks
Re: How to remove the function: "Click to resume"
June 25, 2020 12:00PM
Quote
ZtreKo
g-code final my Ender3:

so what you have is

G91 = relative move
G1 E-2 F2700 = retract E
G1 E-2 Z0.2 F240 =retract E and move Z 0.2
G1 X5 Y5 F3000 =move X&Y 5
G1 Z10 = move Z 10
G90 =absolute move

not sure why you retract fast then slow.
not sure why you move XY b4 you move Z, I would move Z first to prevent hitting any part of model. It is only 0.2mm away.



G1 X0 Y = is something missing here? no value for Y?
M106 S0 = fan off
M104 S0 = hotend off
M140 S0 = bed off

M84 X Y E = disable steppers


The command I'm going to use was copied from a Thingverse project: [www.thingiverse.com]

GCODE :
G4 S300; = wait 300 seconds
G0 Z250; = move Z250

tnks

Do you really want to pause for 5 minutes?
There is a auto stepper shutdown routine in Marlin if you do not enable leaving steppers on. It is about 1 min after no activity.

This is my end code
M104 S0 ; turn off hotend
M140 S0 ; turn off hotbed
G27 P2 ; goto park

Park feature must be configured in Marlin.

I have the end code in Repetier Host.
I have three different printers configured in RH, one for PLA, PETG, & ABS because I have different Start, Pause, End, & Kill codes for each type of filament.
You can put your stop code in your slicer or in your controller (RH or whatever).

Bottom line:
I would recommend enabling the Nozzle Park feature and using that in your end code.
Place it in your slicer or your control app.

You can let Marlin time out your motors or add M84 to your end code after park.

Edited 1 time(s). Last edit at 06/25/2020 12:03PM by ruggb.
Re: How to remove the function: "Click to resume"
June 25, 2020 12:12PM
I use the 5 minute pause to wait for everything to cool down and then move the shaft up to the switch (microswitch) and turn everything off !!

I need a wait time before executing the function to raise the Z axis
Re: How to remove the function: "Click to resume"
June 25, 2020 12:48PM
I have added a BIG fan to force cool my bed.
I turn that on at the end, but at that point the motors are off.
I have not found a way to turn that fan off automatically.
I guess what you are saying is that you have a Z-MAX endstop that you are using to turn off everything off.

This is a little confusing as it looks like it is part of your end code, but is it the code you are trying to execute after the switch is triggered?

G1 X0 Y = is something missing here? no value for Y?
M106 S0 = fan off
M104 S0 = hotend off
M140 S0 = bed off

M84 X Y E = disable steppers

Again, I think you are overthinking this.

At the end of your print, your end script should be

turn off hotbed & hotend.
You can leave the fan on to provide cooling. If so, just raise Z maybe 10.
The motors will time out automatically assuming you have not enabled them to stay on.

You do not need G4 and you do not need to trip the micro to stop things.

G91
G1 Z10 E-2 F3000
M104 S0
M140 S0

If you want, you can try adding; I might try this myself to turn my fan off.

G4 S300
M106 S0
G27 P2 ; goto park to get carriage out of the way

What is unclear to me is how G4 works since I have not used it.
It should not require the push of a button to resume. If it does you should take that up with Marlin as a bug.

"Dwell pauses the command queue and waits for a period of time."
It does not say = waits for a button push =
Re: How to remove the function: "Click to resume"
June 25, 2020 12:54PM
I don't know if you got to see the thingverse project I'm using, but I need you to turn off all my printer via the switch installed at the top of the Z axis, because I don't want my printer to stay on all night, in case my printing finish in the middle of the night, the idea is to turn it off (cooler and lcd) alone, as if I had pressed the ON / OFF button, understand?
Re: How to remove the function: "Click to resume"
June 25, 2020 12:55PM
This final gocde that I showed there, is original within CURA 4.6.1, I didn't change anything ... I never touched it.
Re: How to remove the function: "Click to resume"
June 25, 2020 02:15PM
you can configure the park function to go there.
I just tried the G4 to turn off my BIG fan. Works like a charm. Thanks for the lead.
So it should work for you also.

I just reread your problem. "but every end of printing I have to click on button for the printer to continue".
I don't think I interpreted this correctly.
What you are saying is that when the print is finished Marlin goes into a sleep state that requires a button push to get out of.
Mine does not do that. An M0 in your Gcode will require a button push to continue as will a filament change M600 and I suppose there are others.
The question now is what command is causing it on your printer?

Check your print GCODE at the end to see what it is telling the printer to do.
I would guess it is either in your slicer or your app. Marlin does not do this automatically.
Sorry, only registered users may post in this forum.

Click here to login