mirror of
https://github.com/bassamanator/Sovol-SV06-firmware.git
synced 2025-11-08 21:41:15 +00:00
More changes pulled from personal.
This commit is contained in:
@@ -14,6 +14,11 @@ path: /home/pi/printer_data/gcodes
|
|||||||
[pause_resume]
|
[pause_resume]
|
||||||
[display_status]
|
[display_status]
|
||||||
|
|
||||||
|
# [delayed_gcode DISABLEFILAMENTSENSOR]
|
||||||
|
# initial_duration: 1
|
||||||
|
# gcode:
|
||||||
|
# SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=0
|
||||||
|
|
||||||
[gcode_macro _globals]
|
[gcode_macro _globals]
|
||||||
variable_filament_sensor_enabled: 0 # NOTE Enable(1) or disable(0) the filament sensor, if one is connected
|
variable_filament_sensor_enabled: 0 # NOTE Enable(1) or disable(0) the filament sensor, if one is connected
|
||||||
variable_beeping_enabled: 1 # NOTE Enable(1) or disable(0) beeping everywhere except during gantry calibration
|
variable_beeping_enabled: 1 # NOTE Enable(1) or disable(0) beeping everywhere except during gantry calibration
|
||||||
@@ -74,7 +79,7 @@ gcode:
|
|||||||
# https://github.com/VoronDesign/Voron-Switchwire/blob/200cdae033c59ef81f67c4235469da7ca66d53a1/Firmware/skr_mini_e3_v2_config.cfg
|
# 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
|
||||||
G0 Y0 X0 F4000 ; go to tongue of print bed
|
G0 Y0 X0 F4000 ; go to tongue of print bed
|
||||||
G1 Z0.4 F500.0 ; move bed to nozzle
|
G1 Z0.4 F500.0 ; move bed to nozzle
|
||||||
G92 E0.0 ; reset extruder
|
G92 E0.0 ; reset extruder
|
||||||
@@ -93,12 +98,14 @@ gcode:
|
|||||||
BASE_CANCEL_PRINT
|
BASE_CANCEL_PRINT
|
||||||
|
|
||||||
[gcode_macro PRINT_START]
|
[gcode_macro PRINT_START]
|
||||||
gcode:
|
gcode:
|
||||||
# Parameters
|
# Parameters
|
||||||
{% set bedtemp = params.BED|int %}
|
{% set bedtemp = params.BED|int %}
|
||||||
{% set hotendtemp = params.HOTEND|int %}
|
{% set hotendtemp = params.HOTEND|int %}
|
||||||
{% set chambertemp = params.CHAMBER|default(0)|int %}
|
{% set chambertemp = params.CHAMBER|default(0)|int %}
|
||||||
|
|
||||||
|
# ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
|
||||||
|
|
||||||
G28 X Y
|
G28 X Y
|
||||||
# <insert your routines here>
|
# <insert your routines here>
|
||||||
M140 S{bedtemp} ; set & don't wait for bed temp
|
M140 S{bedtemp} ; set & don't wait for bed temp
|
||||||
@@ -115,7 +122,8 @@ gcode:
|
|||||||
|
|
||||||
[gcode_macro PRINT_END]
|
[gcode_macro PRINT_END]
|
||||||
gcode:
|
gcode:
|
||||||
BEEP I=2 DUR=30 FREQ=8500 ; NOTE Comment out this line to stop the beeps at the end of a print
|
# 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
|
||||||
{% 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
|
||||||
@@ -182,7 +190,8 @@ gcode:
|
|||||||
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=zhop VALUE={z} ; set z hop variable for reference in resume macro
|
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=zhop VALUE={z} ; set z hop variable for reference in resume macro
|
||||||
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=etemp VALUE={printer['extruder'].target} ; set hotend temp variable for reference in resume macro
|
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=etemp VALUE={printer['extruder'].target} ; set hotend temp variable for reference in resume macro
|
||||||
|
|
||||||
# SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=0 ; disable filament sensor
|
# ADJUST_FILAMENT_SENSOR_STATUS ENABLE=0
|
||||||
|
|
||||||
SAVE_GCODE_STATE NAME=PAUSE ; save current print position for resume
|
SAVE_GCODE_STATE NAME=PAUSE ; save current print position for resume
|
||||||
BASE_PAUSE ; pause print
|
BASE_PAUSE ; pause print
|
||||||
{% if (printer.gcode_move.position.z + z) < printer.toolhead.axis_maximum.z %} ; check that zhop doesn't exceed z max
|
{% if (printer.gcode_move.position.z + z) < printer.toolhead.axis_maximum.z %} ; check that zhop doesn't exceed z max
|
||||||
@@ -208,8 +217,8 @@ gcode:
|
|||||||
{% set e = params.E|default(2.5)|int %} ; hotend prime amount (in mm)
|
{% set e = params.E|default(2.5)|int %} ; hotend prime amount (in mm)
|
||||||
|
|
||||||
{% if printer['pause_resume'].is_paused|int == 1 %}
|
{% if printer['pause_resume'].is_paused|int == 1 %}
|
||||||
# SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=1 ; enable filament sensor
|
# ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
|
||||||
#INITIAL_RGB ; reset LCD color
|
|
||||||
SET_IDLE_TIMEOUT TIMEOUT={printer.configfile.settings.idle_timeout.timeout} ; set timeout back to configured value
|
SET_IDLE_TIMEOUT TIMEOUT={printer.configfile.settings.idle_timeout.timeout} ; set timeout back to configured value
|
||||||
{% if etemp > 0 %}
|
{% if etemp > 0 %}
|
||||||
M109 S{etemp|int} ; wait for hotend to heat back up
|
M109 S{etemp|int} ; wait for hotend to heat back up
|
||||||
|
|||||||
Reference in New Issue
Block a user