_USER_END_PRINT_PARK Macro misbehaving
W have a macro that should reset extrusion factor and printspeed back to 100% and also clear the skew profile, like so:
I see from the console that at least the respond messages are parsed through, however both Extrusion factor and printspeed remain at the settings that I have set them during printing (i.e. NOT 100%)
what am I doing wrong?
(running latest RatOS v2.1.0 v2.1.0-RC3-65-g1ab0c0b.)
16 Replies
I don't know, that works for me
Extrusion factor and printspeed remain at the settings that I have set them during printingHow are you verifying this?
In mainsail, the sliders and nummers for extrusion factor and speed are at the same position they were prior to the macro running...
Right, that works when i enter those into the console, so not sure what's happening in your case, did you try to reload mainsail? Could easily just be that mainsail disconnected from moonraker and need to catch up etc.
Also check that you haven't overridden those or something.
I saw this A few days ago for the first time. In the meantime, i rebooted an fully switched off the printer a couple of times... I will do a moonraker restart and ctrl-shift-F5 next time a d see it this helped. So you can confirm there is no stupid error in the macro?
What do you mean with "those"?
will do a moonraker restart and ctrl-shift-F5 next time a d see it this helpedJust the reload, no need to restart moonraker
So you can confirm there is no stupid error in the macro?Yes it looks good to me M221 and M220
As per my screenshot, I waited until Ratos says its done printing. This should be when all macros are done, right? Or is there still a timer running (for instance in the internal filter or so?)
there is a filter timer if its configured, but this doesnt affect what you are doing here
Yeah sorry i copy/pasted the wrong text for some reason š
Print is done. Macro has run (see console output) but print speed is still at 95%. Also, Fan filter is still running... (not reloaded yet,... waiting for fan to shut off...)
Fans are off. Print is finished. done F5, Done Shift-f5, done ctrl-F5... still no change in the extrusion rate and print speed due to the macro.... Weird... Any ideas what is sticking here?
Gave the gcode commands in the console and this works,.... "Paint me striped and call me a panther",... no clue...
Ooooh.. Yeah i know what this is..
We use
SAVE_GCODE_STATE
and RESTORE_GCODE_STATE
to not mess with state you've set during a print.
So any modification of that state via RatOS macro's will revert at the end of the RatOS macro.
Yay....
š
@Arthur_C I've just pushed a _USER_END_PRINT_FINISHED
hook that runs after the gcode state has been restored, use that instead šFilter fan runs 5 mintues after the print has finsihed to clean the chamber, you can configure this
Ha,... so funny, A feature used to circumvent the exact thing I was trying to achieve,.. Thanks Mikkel. Ill update and report back!!!
Yes, And it is a really nice feature to have, particularly with ASA or ABS prints!
Upgraded Ratos, renamed existing macro to _USER_END_PRINT_FINISHED: Works like a Charm! Thanx Mikkel!