Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause macro causes printer to lose homing #56

Open
SaschaUncia opened this issue Sep 30, 2022 · 4 comments
Open

Pause macro causes printer to lose homing #56

SaschaUncia opened this issue Sep 30, 2022 · 4 comments

Comments

@SaschaUncia
Copy link

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
Copy link

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

@SaschaUncia
Copy link
Author

SaschaUncia commented Sep 30, 2022

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
Copy link
Author

SaschaUncia commented Sep 30, 2022

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]

  • gcode:
  • A list of G-Code commands to execute on an idle timeout. See
  • docs/Command_Templates.md for G-Code format. The default is to run
  • "TURN_OFF_HEATERS" and "M84".
    gcode:
    M104 S0
    timeout: 720
  • Idle time (in seconds) to wait before running the above G-Code
  • commands. The default is 600 seconds.
    `

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
Copy link
Author

SaschaUncia commented Sep 30, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants