mirror of
https://github.com/bassamanator/Sovol-SV06-firmware.git
synced 2025-11-08 21:41:15 +00:00
Merge branch 'personal' into temp-ms-good-mesh-edited
This commit is contained in:
@@ -2,4 +2,6 @@
|
|||||||
|
|
||||||
## This branch contains my personal settings.
|
## This branch contains my personal settings.
|
||||||
|
|
||||||
## Please refer to the [master](https://github.com/bassamanator/Sovol-SV06-firmware/tree/master) branch to download the recommended Klipper configuration.
|
## Please refer to the [master](https://github.com/bassamanator/Sovol-SV06-firmware/tree/master) branch to download the recommended Klipper configuration for the SV06.
|
||||||
|
|
||||||
|
## For all other printers running Klipper, please refer to the [any-printer](https://github.com/bassamanator/Sovol-SV06-firmware/tree/any-printer) branch to download the OSS Klipper configuration.
|
||||||
|
|||||||
@@ -52,40 +52,55 @@ gcode:
|
|||||||
SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE={NEWSTATUS}
|
SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE={NEWSTATUS}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# [gcode_macro M109]
|
[gcode_macro M109]
|
||||||
# rename_existing: M99109
|
rename_existing: M99109
|
||||||
# gcode:
|
gcode:
|
||||||
# #Parameters
|
#Parameters
|
||||||
# {% set s = params.S|float %}
|
{% set s = params.S|float %}
|
||||||
|
|
||||||
# M104 {% for p in params %}{'%s%s' % (p, params[p])}{% endfor %} ; Set hotend temp
|
M104 {% for p in params %}{'%s%s' % (p, params[p])}{% endfor %} ; Set hotend temp
|
||||||
# {% if s != 0 %}
|
{% if s != 0 %}
|
||||||
# TEMPERATURE_WAIT SENSOR=extruder MINIMUM={s} MAXIMUM={s+1} ; Wait for hotend temp (within 1 degree)
|
TEMPERATURE_WAIT SENSOR=extruder MINIMUM={s} MAXIMUM={s+1} ; Wait for hotend temp (within 1 degree)
|
||||||
# {% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# [gcode_macro M190]
|
[gcode_macro M190]
|
||||||
# rename_existing: M99190
|
rename_existing: M99190
|
||||||
# gcode:
|
gcode:
|
||||||
# #Parameters
|
#Parameters
|
||||||
# {% set s = params.S|float %}
|
{% set s = params.S|float %}
|
||||||
|
|
||||||
# M140 {% for p in params %}{'%s%s' % (p, params[p])}{% endfor %} ; Set bed temp
|
M140 {% for p in params %}{'%s%s' % (p, params[p])}{% endfor %} ; Set bed temp
|
||||||
# {% if s != 0 %}
|
{% if s != 0 %}
|
||||||
# TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={s} MAXIMUM={s+1} ; Wait for bed temp (within 1 degree)
|
TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={s} MAXIMUM={s+1} ; Wait for bed temp (within 1 degree)
|
||||||
# {% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[gcode_macro PURGE_LINE]
|
[gcode_macro PURGE_LINE]
|
||||||
# https://github.com/JoeCat1207/V0.1-Purge-line-SuperSlicer/blob/main/Purgeline.txt
|
|
||||||
# https://github.com/VoronDesign/Voron-Switchwire/blob/200cdae033c59ef81f67c4235469da7ca66d53a1/Firmware/skr_mini_e3_v2_config.cfg
|
|
||||||
gcode:
|
gcode:
|
||||||
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
|
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
|
||||||
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
|
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
|
||||||
G0 Y0 X0 F4000 ; go to tongue of print bed
|
|
||||||
G1 Z0.4 F500.0 ; move bed to nozzle
|
# Get Boundaries
|
||||||
|
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
|
||||||
|
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
|
||||||
|
{% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
|
||||||
|
{% set extrudeAmount = 26.6 %}
|
||||||
|
{% set movementLength = 100 %}
|
||||||
|
{% set movementSpeed = 15 * 60 %}
|
||||||
|
|
||||||
|
# Set safe speeds
|
||||||
|
{% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %}
|
||||||
|
{% set maxVelocityAdjusted = (0.9 * maxVelocity * 60)|int %}
|
||||||
|
|
||||||
G92 E0.0 ; reset extruder
|
G92 E0.0 ; reset extruder
|
||||||
|
G90 ; Absolute positioning
|
||||||
|
G0 X0 Y0 F{maxVelocityAdjusted} ; move to purge position
|
||||||
|
G1 Z0.4 F500.0 ; move to purge height
|
||||||
|
M83 ; Relative extrusion mode
|
||||||
G1 E{PRE_PURGE_PRIME_LENGTH} F500 ; pre-purge prime LENGTH SHOULD MATCH YOUR PRINT_END RETRACT
|
G1 E{PRE_PURGE_PRIME_LENGTH} F500 ; pre-purge prime LENGTH SHOULD MATCH YOUR PRINT_END RETRACT
|
||||||
G1 Y140 E35.0 F1200.0 ; intro line 1
|
G1 X{movementLength} E{extrudeAmount} F{movementSpeed} ; intro line 1
|
||||||
|
#G1 E-.5 F2100 # Retract
|
||||||
G92 E0.0 ; reset extruder
|
G92 E0.0 ; reset extruder
|
||||||
|
M82 ; Absolute extrusion mode
|
||||||
G1 Z5.0 ; move nozzle to prevent scratch
|
G1 Z5.0 ; move nozzle to prevent scratch
|
||||||
|
|
||||||
[gcode_macro CANCEL_PRINT]
|
[gcode_macro CANCEL_PRINT]
|
||||||
@@ -125,11 +140,18 @@ gcode:
|
|||||||
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=0
|
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=0
|
||||||
CONDITIONAL_BEEP I=2 DUR=30 FREQ=8500 ; NOTE Comment out this line to stop the beeps at the end of a print
|
CONDITIONAL_BEEP I=2 DUR=30 FREQ=8500 ; NOTE Comment out this line to stop the beeps at the end of a print
|
||||||
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
|
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
|
||||||
|
|
||||||
M400 ; wait for buffer to clear
|
M400 ; wait for buffer to clear
|
||||||
G92 E0 ; zero the extruder
|
G92 E0 ; zero the extruder
|
||||||
G1 E-{PRE_PURGE_PRIME_LENGTH} F400 ; retract filament
|
G1 E-{PRE_PURGE_PRIME_LENGTH} F400 ; retract filament
|
||||||
G91 ; relative positioning
|
G91 ; relative positioning
|
||||||
|
|
||||||
|
# Set safe speeds
|
||||||
|
{% set zVelocity = printer.configfile.settings.printer.max_z_velocity|default(15)|int %}
|
||||||
|
{% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %}
|
||||||
|
{% set zVelocityAdjusted = (0.95 * zVelocity * 60)|int %}
|
||||||
|
{% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %}
|
||||||
|
|
||||||
# Get Boundaries
|
# Get Boundaries
|
||||||
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
|
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
|
||||||
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
|
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
|
||||||
@@ -155,8 +177,8 @@ gcode:
|
|||||||
{% set z_safe = max_z - printer.toolhead.position.z %}
|
{% set z_safe = max_z - printer.toolhead.position.z %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
G0 Z{z_safe} F2000 ; move nozzle up
|
G0 Z{z_safe} F{zVelocityAdjusted} ; move nozzle up
|
||||||
G0 X{x_safe} Y{y_safe} F9000 ; move nozzle to remove stringing
|
G0 X{x_safe} Y{y_safe} F{maxVelocityAdjusted} ; move nozzle to remove stringing
|
||||||
TURN_OFF_HEATERS
|
TURN_OFF_HEATERS
|
||||||
M107 ; turn off fan
|
M107 ; turn off fan
|
||||||
G90 ; absolute positioning
|
G90 ; absolute positioning
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ homing_retract_dist: 0
|
|||||||
[tmc2209 stepper_x]
|
[tmc2209 stepper_x]
|
||||||
uart_pin: PC1
|
uart_pin: PC1
|
||||||
run_current: 0.860
|
run_current: 0.860
|
||||||
|
stealthchop_threshold: 0
|
||||||
interpolate: False
|
interpolate: False
|
||||||
sense_resistor: 0.150
|
sense_resistor: 0.150
|
||||||
uart_address: 3
|
uart_address: 3
|
||||||
@@ -66,6 +67,7 @@ homing_retract_dist: 0
|
|||||||
[tmc2209 stepper_y]
|
[tmc2209 stepper_y]
|
||||||
uart_pin: PC0
|
uart_pin: PC0
|
||||||
run_current: 0.900
|
run_current: 0.900
|
||||||
|
stealthchop_threshold: 0
|
||||||
interpolate: False
|
interpolate: False
|
||||||
sense_resistor: 0.150
|
sense_resistor: 0.150
|
||||||
uart_address: 3
|
uart_address: 3
|
||||||
@@ -86,6 +88,7 @@ homing_speed: 5
|
|||||||
[tmc2209 stepper_z]
|
[tmc2209 stepper_z]
|
||||||
uart_pin: PA15
|
uart_pin: PA15
|
||||||
run_current: 1.000
|
run_current: 1.000
|
||||||
|
stealthchop_threshold: 0
|
||||||
interpolate: False
|
interpolate: False
|
||||||
sense_resistor: 0.150
|
sense_resistor: 0.150
|
||||||
uart_address: 3
|
uart_address: 3
|
||||||
@@ -114,6 +117,7 @@ pressure_advance: 0.0465 # 0.044
|
|||||||
[tmc2209 extruder]
|
[tmc2209 extruder]
|
||||||
uart_pin: PC14
|
uart_pin: PC14
|
||||||
run_current: 0.550
|
run_current: 0.550
|
||||||
|
stealthchop_threshold: 0
|
||||||
interpolate: False
|
interpolate: False
|
||||||
sense_resistor: 0.150
|
sense_resistor: 0.150
|
||||||
uart_address: 3
|
uart_address: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user