-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
Please implement conditional QGL #214
Comments
Isn't this already available with |
Hum.... good point. Maybe its not clear, at least for me, that this option is also for QGL... could not find it in the documentation or in the variables file as well. |
I just confirmed... it execute the QGL with the force_homing_in_start=false. |
Can you identify at which point? |
Yes... its variable_disable_motors_in_end_print: False |
What about my first question? :) |
"Can you identify at which point?" ... here it goes the console output for the 2nd print: |
Do you have any output after the qgl line? Just one more line would most likely suffice |
Currently there is no way to get "conditional QGL" in Klippain as it's not a really good practice. In fact bed corners are where the bed deflect the more due to temperature change and that will lead to different QGL positions as the machine is heating up (prints after prints). However, if this is a thing wanted by the community, as I already have the conditional homing (less a problem since we always measure the Z offset before a print, it's only the first homing that is skipped), I see no reasons to block the addition of a variable to do a Force QGL like the Force homing and set this to true by default. |
Thanks Frix. Yeah, I think its important to have choice, after all each Voron is unique (examples: Kynematic vs standard mount, bed plate quality, Y backers, PLA vs ABS printing temperatures, etc.). |
Yeah sorry, I wrote it too fast without reading me back. I edited my message. |
Ok, I'm back to this subject and looking more in details it seems that there is indeed a conditional QGL already implemented and also using the klippain/macros/base/start_print.cfg Lines 264 to 265 in 52632ec
I think your mistake was to use I do confirm that there is already some documentation about it, but it could not be clear and I could modify it if needed (as that it can be done only if the motors were not shut off and that the machine is already homed or QGL was already done at least once after the homing). See here: klippain/user_templates/variables.cfg Lines 37 to 38 in 52632ec
|
In my variables.cfg I read: Force always a full homing and QGL/Z_TILT during the START_PRINT macrovariable_force_homing_in_start_print: False Capital "F" and ":", not equal. |
Ok, so this should work (ie conditionnal QGL when called during the START_PRINT routine) if the QGL is already applied and motors are not shutted down in between. If it's not the case, I'll try to see and replicate it as it's very likely a bug |
I re-tested, no motor shutdown between prints and it re-do QGL (not full home). Regards! |
Hi, I tried to work on this subject but I can't reproduce: everything is working as it should and the QGL is indeed avoided when the conditions are met.
Then start a print, let it finish. The motors should continue running and be able to move without a home. If you start a new print, it should avoid the home and QGL |
I have been battling this and it appears to be down to how the FORCE parameter is handled. Most likely because parameters are treated as strings. if FORCE_OPERATION Using the below macro which takes relevant parts from the _TILT_CALIBRATE macro I did some tests.
First I ran the macro with no parameters straight after a klipper restart. The FORCE parameter is evaluating as true.
I now ran a QGL and ran the test macro. The original code thinks FORCE is true while the modified code does not get run.
While testing this I also discovered that the _TILT_CALIBRATION macro uses verbose but does not include: |
Thank you very much for finding the issue. I've finally managed to work on this and pushed a fix (e37ce23) that will be included in the next release :) |
Loving Klippain. But I'm still playing with the start sequence to have it right to my needs.
I usually print repeated sets and have no need to QGL every time.
Can you please add a variable "conditional_QGL" that allows the macro check if QGL is done and bypass it?
The text was updated successfully, but these errors were encountered: