mirror of
https://github.com/oducceu/klipper_configs.git
synced 2025-12-23 16:13:36 +05:00
Updates and fixes
update /macros folder Update *bltouch.cfg Fix Z and Y pins Fix Y direction Update MKSRN-Sv1.3 pins Clean obsolete comments
This commit is contained in:
@@ -3,14 +3,18 @@
|
||||
# Printer: Flying Bear Ghost 4S / Ghost 5 / Reborn
|
||||
# G-code Macros by ODUCCEU
|
||||
################################################################################
|
||||
# WARNING! DO NOT EDIT THIS FILE!
|
||||
# To override settings from this file, you can copy and paste the relevant
|
||||
# sections into your printer.cfg and change it there.
|
||||
################################################################################
|
||||
|
||||
# Print Job Management #########################################################
|
||||
|
||||
[gcode_macro START_PRINT]
|
||||
## PrusaSliser:
|
||||
## PrusaSliser/SuperSlicer:
|
||||
# M190 S0
|
||||
# M109 S0
|
||||
# START_PRINT EXTRUDER_TEMP={first_layer_temperature[0]} BED_TEMP={first_layer_bed_temperature}
|
||||
# START_PRINT EXTRUDER_TEMP={first_layer_temperature[0]} BED_TEMP={first_layer_bed_temperature[0]}
|
||||
## Cura:
|
||||
# M190 S0
|
||||
# M109 S0
|
||||
@@ -30,17 +34,15 @@ gcode:
|
||||
M220 S100 # reset feedrate
|
||||
M221 S100 # reset flowrate
|
||||
G90 # absolute positioning
|
||||
M82 # relative extrusion mode
|
||||
M83 # relative extrusion mode
|
||||
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={bed_temp} # set bed temp
|
||||
TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={bed_temp_preheat} # wait until bed is partially heated
|
||||
SET_HEATER_TEMPERATURE HEATER=extruder TARGET={extruder_temp} # set extruder temp
|
||||
TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={bed_temp} # wait for bed temp
|
||||
TEMPERATURE_WAIT SENSOR=extruder MINIMUM={extruder_temp} # wait for extruder temp
|
||||
G28 # home
|
||||
G0 Z10 F1500 # raise Z
|
||||
G92 E0 # reset extruder
|
||||
G1 E{E} F1500 # prime
|
||||
G92 E0 # reset extruder
|
||||
G0 Z10 F600 # raise Z
|
||||
G1 E{E} F2100 # prime
|
||||
|
||||
[gcode_macro END_PRINT]
|
||||
gcode:
|
||||
@@ -48,15 +50,14 @@ gcode:
|
||||
TURN_OFF_HEATERS
|
||||
M107 # turn off fan
|
||||
G91 # relative positioning
|
||||
G1 E-{E} F1500 # retract
|
||||
G0 X1 Y1 F5000 # wipe
|
||||
G0 Z2 F1500 # raise Z
|
||||
G1 E-{E} F2100 # retract
|
||||
G0 X1 Y1 F6000 # wipe
|
||||
G0 Z2 F600 # raise Z
|
||||
G90 # absolute positioning
|
||||
PARK Z=30
|
||||
M84 # turn off all motors
|
||||
BEEP P=200 S=250
|
||||
# NORMAL_SPEED # reset stepper current
|
||||
# SAVE_IF_SET # SAVE_CONFIG
|
||||
SAVE_UPDATES
|
||||
|
||||
[gcode_macro PARK]
|
||||
gcode:
|
||||
@@ -78,8 +79,8 @@ gcode:
|
||||
SAVE_GCODE_STATE NAME=PARK_STATE
|
||||
{% if printer.toolhead.homed_axes != "xyz" %} G28 {% endif %} # home if not homed
|
||||
G90 # absolute positioning
|
||||
G0 Z{z_park} F1500
|
||||
G0 X{x_park} Y{y_park} F5000
|
||||
G0 Z{z_park} F600
|
||||
G0 X{x_park} Y{y_park} F6000
|
||||
RESTORE_GCODE_STATE name=PARK_STATE
|
||||
|
||||
[gcode_macro PAUSE]
|
||||
@@ -113,7 +114,7 @@ gcode:
|
||||
G1 E{E} F2100
|
||||
G90
|
||||
{% else %}
|
||||
{action_respond_info("Extruder is not hot enough")}
|
||||
{action_respond_info("Extruder is not hot enough")}
|
||||
{% endif %}
|
||||
RESTORE_GCODE_STATE NAME=PAUSE_STATE MOVE=1
|
||||
BASE_RESUME {get_params}
|
||||
@@ -129,7 +130,7 @@ gcode:
|
||||
{% if printer.extruder.can_extrude|lower == 'true' %}
|
||||
G91 # relative positioning
|
||||
G1 E-{E} F2100 # retract
|
||||
G0 Z2 F1500 # raise Z
|
||||
G0 Z2 F600 # raise Z
|
||||
G90 # absolute positioning
|
||||
{% else %}
|
||||
{action_respond_info("Extruder is not hot enough")}
|
||||
@@ -138,6 +139,16 @@ gcode:
|
||||
BASE_CANCEL_PRINT
|
||||
PARK Z=30
|
||||
M84 # turn off all motors
|
||||
# NORMAL_SPEED # reset stepper current
|
||||
|
||||
# Save to Config ##########################################################
|
||||
|
||||
[gcode_macro SAVE_UPDATES]
|
||||
description: Run SAVE_CONFIG if there are updates that it may persist to disk
|
||||
gcode:
|
||||
{% if printer.configfile.save_config_pending %}
|
||||
M118 Saving and restarting now
|
||||
G4 P2000 # wait 2 seconds
|
||||
SAVE_CONFIG
|
||||
{% endif %}
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user