mirror of
https://github.com/bassamanator/Sovol-SV06-firmware.git
synced 2025-11-08 21:41:15 +00:00
Adjusted MECHANICAL_GANTRY_CALIBRATION. Adjusted z position_max to 258 because of silicon screws.
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
[gcode_macro MECHANICAL_GANTRY_CALIBRATION]
|
[gcode_macro MECHANICAL_GANTRY_CALIBRATION]
|
||||||
gcode:
|
gcode:
|
||||||
### SET THIS DEFAULT CARFULLY - start really low
|
### SET THIS DEFAULT CARFULLY - start really low
|
||||||
{% set my_current = params.CURRENT|default(0.12)|float %} ; adjust crash current on the fly :D
|
{% set my_current = params.CURRENT|default(0.20)|float %} ; adjust crash current on the fly :D
|
||||||
###
|
###
|
||||||
{% set oldcurrent = printer.configfile.settings["tmc2209 stepper_z"].run_current %} ; TODO: Find runtime current settings
|
{% set oldcurrent = printer.configfile.settings["tmc2209 stepper_z"].run_current %} ; TODO: Find runtime current settings
|
||||||
{% set oldhold = printer.configfile.settings["tmc2209 stepper_z"].hold_current %}
|
{% set oldhold = printer.configfile.settings["tmc2209 stepper_z"].hold_current %}
|
||||||
@@ -64,7 +64,7 @@ gcode:
|
|||||||
G90 ; absolute
|
G90 ; absolute
|
||||||
G0 X{x_max / 2} Y{y_max / 2} F{fast_move * 30 } ;put toolhead in the center of the gantry
|
G0 X{x_max / 2} Y{y_max / 2} F{fast_move * 30 } ;put toolhead in the center of the gantry
|
||||||
|
|
||||||
G0 Z{z_max -1} F{fast_move_z * 60 } ; go to the Z-max at speed max z speed
|
G0 Z{z_max -5} F{fast_move_z * 60 } ; go to the Z-max at speed max z speed
|
||||||
|
|
||||||
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={my_current} ; drop current on Z stepper
|
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={my_current} ; drop current on Z stepper
|
||||||
|
|
||||||
@@ -72,13 +72,16 @@ gcode:
|
|||||||
SET_TMC_CURRENT STEPPER=stepper_z1 CURRENT={my_current} ; drop current
|
SET_TMC_CURRENT STEPPER=stepper_z1 CURRENT={my_current} ; drop current
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
BEEP I=1
|
||||||
G4 P200 ; Probably not necessary, it is here just for sure
|
G4 P200 ; Probably not necessary, it is here just for sure
|
||||||
|
|
||||||
SET_KINEMATIC_POSITION Z={z_max - 12} ; Trick printer into beleiving the gantry is 12mm lower than it is
|
SET_KINEMATIC_POSITION Z={z_max - 16} ; Trick printer into beleiving the gantry is 12mm lower than it is
|
||||||
|
|
||||||
G1 Z{z_max -2} F{6 * 60} ; try to move 10mm up
|
G1 Z{z_max} F{6 * 60} ; try to move 10mm up
|
||||||
G4 P200 ; wait
|
BEEP I=2
|
||||||
|
G4 P10000 ; wait 10 seconds
|
||||||
G1 Z{z_max -6} F{6 * 60} ; move 4mm down
|
G1 Z{z_max -6} F{6 * 60} ; move 4mm down
|
||||||
|
BEEP I=3
|
||||||
G4 P200 ; same as the first one
|
G4 P200 ; same as the first one
|
||||||
|
|
||||||
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={oldcurrent} HOLDCURRENT={oldhold}
|
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={oldcurrent} HOLDCURRENT={oldhold}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ microsteps: 32
|
|||||||
rotation_distance: 4
|
rotation_distance: 4
|
||||||
endstop_pin: probe:z_virtual_endstop
|
endstop_pin: probe:z_virtual_endstop
|
||||||
position_min: -3
|
position_min: -3
|
||||||
position_max: 257
|
position_max: 258
|
||||||
homing_speed: 5
|
homing_speed: 5
|
||||||
|
|
||||||
[tmc2209 stepper_z]
|
[tmc2209 stepper_z]
|
||||||
|
|||||||
Reference in New Issue
Block a user