fluidd-core / FluiddPI

FluiddPi - A Pi image with Klipper, Moonraker, Fluidd and Web Camera support pre-installed.
https://docs.fluidd.xyz
GNU General Public License v3.0
299 stars 58 forks source link

Pause macro causes printer to lose homing #56

Open SaschaUncia opened 2 years ago

SaschaUncia commented 2 years ago

Adding the default PAUSE macro to my gcode causes the printer to pause where expected, and if left alone for a couple of minutes, to cool the hotend and bed (this is fine). However it also loses it's homing location, and it won't let me resume the print without rehoming all axis.

How do I prevent this behavior?

arabisaldrin commented 2 years ago

idle_timeout. https://www.klipper3d.org/Config_Reference.html#idle_timeout defaults to turn off heaters and disable motors.

SaschaUncia commented 2 years ago

So there's no way to decouple the timeout commands or use different ones for when the print is paused (as opposed to forgetting a preheated printer for half an hour)

For example I may want to set the motor timeout to never, or at least several hours. That way I can have the print pause at a set point and not lose the positioning.

I may want the bed to stay preheated as well to prevent plate separation. Maybe for a max of 6 hours as a safety consideration.

The hotend meanwhile should cool after a few minutes and not bake the filament for hours.

[Edit] I actually had a plate fail as I was writing this because the plate cooled during pause

SaschaUncia commented 2 years ago

Ok, I think I see, You can enter gcode in the [Idle_Timeout] section which should cause the printer to ignore the default behavior.

Problem is it keeps giving me syntax errors

` [idle_timeout]

Results in a warning of

File contains parsing errors: /home/Sascha/klipper_config/printer.cfg [line 108]: 'M104 S0\n'

Once the underlying issue is corrected, use the "RESTART" command to reload the config and restart the host software. Printer is halted

Even using the default settings of "TURN_OFF_HEATERS" and "M84" as defined in the comments results in the same error (with or without the quotes).

I replaced the hashes with dashes because the github editor was turning the code blocks into a mess of bold titles

SaschaUncia commented 2 years ago

Sigh It needed a space before M104 Syntax errors are the worst...

I'll go try it out

[Edit]

Ok, this seems to work. No way to add separate timeouts for the bed and motors, but they stayed on after the primary timeout. The nozzle cooled as expected.