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

[feature request] configuring STOP button to lift the hot end and turn off the cooling fan #963

Open
ahmedsohair opened this issue Sep 7, 2020 · 2 comments

Comments

@ahmedsohair
Copy link

So i recently configured my 3D printer using the config tool for Repetier firmware. However, there's a little change that i need to make when i press the STOP button. What i want is that when i press the STOP button, the hot end should be lifted and the the cooling fan should be turned off. I am unable to figure this using the config tool. I have a slight idea that this might be possible by changing the functions already being used but don't know where to start from and which files or which lines of code to edit. Any help would be appreciated

@repetier
Copy link
Owner

repetier commented Sep 8, 2020

Guess you mean when sd printing. There is no config option to change behaviour but you can modify
SDCard::stopPrint()

to also send additional commands on stop.
GCode::executeFString(PSTR("M107\nG91\nG1 Z10 F800\nG90"));

or what ever you want. Just put it at the end of the function in sdcard.cpp

@ahmedsohair
Copy link
Author

Thanks a lot.
I'll check this one and update.

Currently i was thinking of adding something like this in the stopPrint() func :

Commands::setFanSpeed(0, true);
Printer::homeAxis(false, false, true);

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