_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:
[gcode_macro _USER_END_PRINT_PARK]
gcode:
M220 S100 ;set printspeed back to 100% in case I have tweaked it during printing
RESPOND MSG="set printspeed (back) to 100%"
M221 S100 ;set extrusion factor back to 100% in case I have tweaked it during printing
RESPOND MSG="set extrusion factor (back) to 100%"
SET_SKEW CLEAR=1
RESPOND MSG="Clear Skew profile"
[gcode_macro _USER_END_PRINT_PARK]
gcode:
M220 S100 ;set printspeed back to 100% in case I have tweaked it during printing
RESPOND MSG="set printspeed (back) to 100%"
M221 S100 ;set extrusion factor back to 100% in case I have tweaked it during printing
RESPOND MSG="set extrusion factor (back) to 100%"
SET_SKEW CLEAR=1
RESPOND MSG="Clear Skew profile"
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.)
No description
16 Replies
miklschmidt
miklschmidtā€¢3w ago
I don't know, that works for me
Extrusion factor and printspeed remain at the settings that I have set them during printing
How are you verifying this?
Arthur_C
Arthur_COPā€¢3w ago
In mainsail, the sliders and nummers for extrusion factor and speed are at the same position they were prior to the macro running...
miklschmidt
miklschmidtā€¢3w ago
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.
Arthur_C
Arthur_COPā€¢3w ago
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"?
miklschmidt
miklschmidtā€¢3w ago
will do a moonraker restart and ctrl-shift-F5 next time a d see it this helped
Just 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
Arthur_C
Arthur_COPā€¢3w ago
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?)
Helge Keck
Helge Keckā€¢3w ago
there is a filter timer if its configured, but this doesnt affect what you are doing here
miklschmidt
miklschmidtā€¢3w ago
Yeah sorry i copy/pasted the wrong text for some reason šŸ˜…
Arthur_C
Arthur_COPā€¢2w ago
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...)
No description
Arthur_C
Arthur_COPā€¢2w ago
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?
No description
Arthur_C
Arthur_COPā€¢2w ago
Gave the gcode commands in the console and this works,.... "Paint me striped and call me a panther",... no clue...
No description
miklschmidt
miklschmidtā€¢2w ago
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 šŸ™‚
Helge Keck
Helge Keckā€¢2w ago
Filter fan runs 5 mintues after the print has finsihed to clean the chamber, you can configure this
Helge Keck
Helge Keckā€¢2w ago
No description
Arthur_C
Arthur_COPā€¢2w ago
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!
Want results from more Discord servers?
Add your server