printer.cfg modified - 21/08/25 - 17:31:48

This commit is contained in:
miguel 2025-08-21 17:31:55 +01:00
parent ed9736f022
commit e8554d892b

View file

@ -50,6 +50,19 @@ restart_method: command
[include timelapse.cfg]
[include shell_command.cfg]
# Klicky Probe imports
#Simple way to include all the various klicky macros and configurations
# the current home for this configuration is https://github.com/jlas1/Klicky-Probe, please check it
[include ./klicky-specific.cfg] #place to put other configurations specific to your printer
[include ./klicky-variables.cfg] #Required
[include ./klicky-macros.cfg] #Required
[include ./klicky-bed-mesh-calibrate.cfg] #bed mesh, requires klipper configuration
[include ./klicky-z-tilt-adjust.cfg] #level 2 or 3 Z motors
[exclude_object]
[gcode_arcs]
resolution: 0.1
@ -308,22 +321,25 @@ pin: nhk:gpio10
## For Octopus Pro Probe port; NPN and PNP proximity switch types can be set by jumper
#pin: ~!PC5
activate_gcode:
{% set PROBE_TEMP = 150 %}
{% set MAX_TEMP = PROBE_TEMP + 5 %}
{% set ACTUAL_TEMP = printer.extruder.temperature %}
{% set TARGET_TEMP = printer.extruder.target %}
{% if TARGET_TEMP > PROBE_TEMP %}
{ action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
M109 S{ PROBE_TEMP }
{% else %}
# Temperature target is already low enough, but nozzle may still be too hot.
{% if ACTUAL_TEMP > MAX_TEMP %}
{ action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) }
TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP }
{% endif %}
{% endif %}
#------------------------------------------------------------------ This was all voron tap specific
#activate_gcode:
# {% set PROBE_TEMP = 150 %}
# {% set MAX_TEMP = PROBE_TEMP + 5 %}
# {% set ACTUAL_TEMP = printer.extruder.temperature %}
# {% set TARGET_TEMP = printer.extruder.target %}
# {% if TARGET_TEMP > PROBE_TEMP %}
# { action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
# M109 S{ PROBE_TEMP }
# {% else %}
# # Temperature target is already low enough, but nozzle may still be too hot.
# {% if ACTUAL_TEMP > MAX_TEMP %}
# { action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) }
# TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP }
# {% endif %}
# {% endif %}
#--------------------------------------------------------------------