Rappetor / Sovol-SV08-Mainline

Getting the Sovol SV08 onto mainline Klipper
GNU General Public License v3.0
68 stars 18 forks source link

QGL heatup the Bed at fixed temperature #38

Closed SphaeroX closed 1 month ago

SphaeroX commented 1 month ago

on sovol-macros.cfg

[gcode_macro _CALIBRATION_ZOFFSET]
gcode:
    M117 Calibrate Offset
    QUAD_GANTRY_LEVEL
    M140 S65

M140 S65

May we can use the START_PRINT Variable for this?

i have to go, just opended the Ticket for a reminder

Rappetor commented 1 month ago

Well, this macro is more or less a standalone one (not called from the START_PRINT) so that is why it has the temperature setting in it. Think this one is called from the display menu.

One could add this to the top:

{% set bedtemp = params.BED_TEMP|default(65)|int %}

And then it's possible to pass along a variable when calling the macro (the Mainsail interface will have an input field in this case when calling the macro).

So it will become (UNTESTED btw):

[gcode_macro _CALIBRATION_ZOFFSET]
gcode:
   {% set bedtemp = params.BED_TEMP|default(65)|int %}
   M117 Calibrate Offset
   QUAD_GANTRY_LEVEL
   M140 S{bedtemp}
   G4 P500
   CLEAN_NOZZLE
   G4 P500
   M117 zoffset calibration
   Z_OFFSET_CALIBRATION
   Z_OFFSET_APPLY_PROBE
   SAVE_CONFIG 

Calling it with (for 85C):

_CALIBRATION_ZOFFSET BED_TEMP=85
SphaeroX commented 1 month ago

modified the sovol-macros.cfg https://github.com/Rappetor/Sovol-SV08-Mainline/pull/39