faster homing and tilting

This commit is contained in:
Kyle Brown 2023-06-10 21:40:03 -07:00
parent e9fb4083db
commit fb8def8da4
6 changed files with 38 additions and 115 deletions

View file

@ -22,8 +22,8 @@ gcode:
CHAMBER_WARMER TEMPERATURE={chamberTemp} # Warm chamber
{% endif %}
SET_HEATER_TEMPERATURE HEATER=extruder TARGET={hotendTemp|float*0.8} # Set extruder don't drip temp
Z_TILT_ADJUST # Z-Tilt after soak
G28 Z # Rehome Z as it's not the same
FAST_TILT # Z-Tilt after soak
DETACH_PROBE_CHECKED # Ensure probe is detached
G90 # Absolute positioning
G1 X{x_park} Y{y_park} F{travel_speed * 60} # Move to park position
G1 X{x_park} Y{y_park} Z{z_park} F{z_speed * 60} # Park nozzle on bed to prevent ooze

View file

@ -4,6 +4,10 @@ port: 7125
[file_manager]
enable_object_processing: True
queue_gcode_uploads: True
[job_queue]
load_on_startup: False
[timelapse]
@ -31,8 +35,15 @@ trusted_clients:
# enables moonraker to track and store print history.
[history]
# enables moonraker announcements in mainsail
[announcements]
subscriptions:
mainsail
# this enables moonraker's update manager
[update_manager]
refresh_interval: 48
enable_auto_refresh: True
[update_manager mainsail]
type: web

View file

@ -35,7 +35,7 @@ serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_32002C000750414235363020-if00
[printer]
kinematics: corexy
max_velocity: 1000
max_velocity: 800
max_accel: 20000
max_accel_to_decel: 20000
max_z_velocity: 15
@ -220,19 +220,14 @@ detach_position: 120, 80
check_open_attach: True
dock_fixed_z: True
dock_retries: 3
attach_speed: 15
attach_speed: 50
detach_speed: 15
travel_speed: 50
post_attach_gcode:
G0 X90 Y115.5
detach_gcode:
# Klicky really don't want to let go. Go slow
G0 X120 Y80 F{15*60}
allow_delayed_detach: False
travel_speed: 500
allow_delayed_detach: True
x_offset: 30
y_offset: -2.4
z_offset = 15.055
z_offset = 14.805
[bed_mesh]
speed: 120

View file

@ -1,96 +0,0 @@
[include menu.cfg]
[mcu menu]
serial: /dev/serial/by-id/usb-Klipper_stm32f042x6_300021001943534D34383120-if00
restart_method: command
[display]
lcd_type: uc1701
kill_pin: menu:PF0
spi_bus: spi1
cs_pin: menu:PA4
a0_pin: menu:PA2
rst_pin: menu:PA3
contrast: 63
encoder_pins: ^menu:PA0, ^menu:PA1
click_pin: ^!menu:PB1
[output_pin BEEPER_pin]
pin: menu:PF1
pwm: True
value: 0
shutdown_value: 0
cycle_time: 0.001
scale: 1000
[gcode_macro M300]
gcode: SET_PIN PIN=BEEPER_pin VALUE={1000}
G4 P{100}
SET_PIN PIN=BEEPER_pin VALUE=0
[neopixel fysetc_mini12864]
# To control Neopixel RGB in mini12864 display
pin: menu:PA13
chain_count: 3
color_order: RGB
initial_RED: 0
initial_GREEN: 0
initial_BLUE: 0.4
[delayed_gcode set_displaytemp_timer]
initial_duration: 1
gcode:
SET_LED_TEMPERATURES
UPDATE_DELAYED_GCODE ID=set_displaytemp_timer DURATION=5
[gcode_macro SET_LED_TEMPERATURES]
gcode:
# Make display red if any heater is above 50C
{% if printer.extruder.temperature >= 50 or printer.heater_bed.temperature >= 50 %}
SET_LED LED=fysetc_mini12864 RED=1.00 GREEN=0.00 BLUE=0.00 INDEX=1 SYNC=0
{% else %}
SET_LED LED=fysetc_mini12864 RED=0.00 GREEN=0.60 BLUE=0.60 INDEX=1 SYNC=0
{% endif %}
{% if printer.extruder.temperature >= 180 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.50 BLUE=0.00 INDEX=2 SYNC=0
{% elif printer.extruder.temperature >= 160 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.40 BLUE=0.00 INDEX=2 SYNC=0
{% elif printer.extruder.temperature >= 140 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.30 BLUE=0.00 INDEX=2 SYNC=0
{% elif printer.extruder.temperature >= 120 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.20 BLUE=0.00 INDEX=2 SYNC=0
{% elif printer.extruder.temperature >= 100 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.10 BLUE=0.00 INDEX=2 SYNC=0
{% elif printer.extruder.temperature >= 80 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.00 BLUE=0.00 INDEX=2 SYNC=0
{% elif printer.extruder.temperature >= 60 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.00 BLUE=0.33 INDEX=2 SYNC=0
{% elif printer.extruder.temperature >= 50 %}
SET_LED LED=fysetc_mini12864 RED=0.33 GREEN=0.00 BLUE=0.66 INDEX=2 SYNC=0
{% else %}
SET_LED LED=fysetc_mini12864 RED=0.00 GREEN=0.00 BLUE=0.00 INDEX=2 SYNC=0
{% endif %}
{% if printer.heater_bed.temperature >= 100 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.50 BLUE=0.00 INDEX=3 SYNC=0
{% elif printer.heater_bed.temperature >= 90 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.40 BLUE=0.00 INDEX=3 SYNC=0
{% elif printer.heater_bed.temperature >= 80 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.30 BLUE=0.00 INDEX=3 SYNC=0
{% elif printer.heater_bed.temperature >= 70 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.20 BLUE=0.00 INDEX=3 SYNC=0
{% elif printer.heater_bed.temperature >= 60 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.10 BLUE=0.00 INDEX=3 SYNC=0
{% elif printer.heater_bed.temperature >= 50 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.00 BLUE=0.00 INDEX=3 SYNC=0
{% elif printer.heater_bed.temperature >= 40 %}
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.00 BLUE=0.33 INDEX=3 SYNC=0
{% else %}
SET_LED LED=fysetc_mini12864 RED=0.00 GREEN=0.00 BLUE=0.00 INDEX=3 SYNC=0
{% endif %}
[menu __main __octoprint]
type: disabled

View file

@ -12,7 +12,7 @@ gcode:
G28 X0
# Move away
G91
G1 X60 F{400*60} # dodge probe
G1 X5 F{400*60} # dodge probe
# Set current during print
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CUR}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CUR}
@ -41,10 +41,10 @@ gcode:
[gcode_macro HOME]
gcode:
G90
# Home X
SENSORLESS_HOME_X
# Home Y
SENSORLESS_HOME_Y
# Home X
SENSORLESS_HOME_X
# Home Z
G28 Z0
@ -54,14 +54,14 @@ axes: xyz
gcode:
{% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %}
{% if home_all or 'X' in params %}
SENSORLESS_HOME_X
{% endif %}
{% if home_all or 'Y' in params %}
SENSORLESS_HOME_Y
{% endif %}
{% if home_all or 'X' in params %}
SENSORLESS_HOME_X
{% endif %}
{% if home_all or 'Z' in params %}
G28 Z

View file

@ -80,3 +80,16 @@ speed: 500
horizontal_move_z: 18
retries: 15
retry_tolerance: 0.0125
[gcode_macro FAST_TILT]
gcode:
Z_TILT_ADJUST horizontal_move_z=18 retry_tolerance=1.00
Z_TILT_ADJUST horizontal_move_z=16.25
G28 Z
[gcode_macro DETACH_PROBE_CHECKED]
description: Only detaches the probe if it's attached
gcode:
{% if printer.probe.last_query == 1 %}
DETACH_PROBE
{% endif %}