33 lines
1.2 KiB
INI
33 lines
1.2 KiB
INI
# Nozzle collision guard: bd_pressure watches the nozzle force during moves
|
|||
|
|
# that must not touch anything (needs extras/bdp_guard.py and the bd_pressure
|
||
|
|
# load-check firmware). See extras/bdp_guard.py.
|
||
|
|
#
|
||
|
|
# mode: log only measures and reports each phase (console and klippy.log,
|
||
|
|
# "bdp_guard:"). Run a few print starts in log mode, set threshold well
|
||
|
|
# above the peaks the phases show, then switch to mode: stop.
|
||
|
|
|
||
|
|
[bdp_guard]
|
||
|
|
sensor: bd_pa
|
||
|
|
mode: log
|
||
|
|
threshold: 30
|
||
|
|
samples: 3
|
||
|
|
interval: 0.02
|
||
|
|
|
||
|
|
# M400 first: BDP_GUARD_ARM/DISARM act at once, not in the move queue, so
|
||
|
|
# without it the guard would watch moves that are still queued (contact
|
||
|
|
# homing, extrusion) or stop watching before the armed moves ran.
|
||
|
|
[gcode_macro _GUARD_ON]
|
||
|
|
description: Arm the nozzle guard for PHASE=<name> [MODE=log|stop] after the queued moves (nothing without [bdp_guard])
|
||
|
|
gcode:
|
||
|
|
{% if 'bdp_guard' in printer %}
|
||
|
|
M400
|
||
|
|
BDP_GUARD_ARM PHASE={params.PHASE|default('armed')} {('MODE=' ~ params.MODE) if 'MODE' in params else ''}
|
||
|
|
{% endif %}
|
||
|
|
|
||
|
|
[gcode_macro _GUARD_OFF]
|
||
|
|
description: Disarm the nozzle guard after the queued moves (nothing without [bdp_guard])
|
||
|
|
gcode:
|
||
|
|
{% if 'bdp_guard' in printer %}
|
||
|
|
M400
|
||
|
|
BDP_GUARD_DISARM
|
||
|
|
{% endif %}
|