2026-11-02 16:58:20 +01:00
|
|
|
# Touch comparison: Beacon contact vs bd_pressure (needs extras/bdp_touch.py
|
|
|
|
|
# and the bd_pressure load-check firmware). See extras/bdp_touch.py.
|
|
|
|
|
#
|
2026-11-02 17:32:43 +01:00
|
|
|
# TOUCH_COMPARE [N=10] [X=175] [Y=175] [TEMP=150] [THRESHOLD=15] [STOP=60]
|
2026-11-02 17:24:12 +01:00
|
|
|
# [SPEED=0.3] [START=0.1]
|
2026-11-02 16:58:20 +01:00
|
|
|
# Nozzle to TEMP (Beacon contact refuses above 180C), HOME (contact Z),
|
|
|
|
|
# then N pairs at X/Y: one Beacon contact probe, one BDP_TOUCH starting
|
|
|
|
|
# START mm above the Beacon result. Reports per method the mean, standard
|
|
|
|
|
# deviation and range, and the same for the per-pair difference.
|
|
|
|
|
# The nozzle must be clean (no ooze blob) and the bed soaked: a bed that
|
|
|
|
|
# still changes shape moves both results, the difference less so.
|
|
|
|
|
# Nozzle heater off at the end.
|
|
|
|
|
#
|
|
|
|
|
# BDP_TOUCH alone: touch at the current X/Y from the current Z (home first,
|
2026-11-02 17:24:12 +01:00
|
|
|
# start 0.1-0.2 mm above the bed). One quick press, see extras/bdp_touch.py.
|
2026-11-02 16:58:20 +01:00
|
|
|
|
|
|
|
|
[bdp_touch]
|
|
|
|
|
sensor: bd_pa
|
|
|
|
|
|
|
|
|
|
[gcode_macro TOUCH_COMPARE]
|
|
|
|
|
description: Compare Beacon contact and bd_pressure touches at one spot
|
|
|
|
|
gcode:
|
|
|
|
|
{% set temp = params.TEMP|default(150)|float %}
|
|
|
|
|
{% set x = params.X|default(175)|float %}
|
|
|
|
|
{% set y = params.Y|default(175)|float %}
|
|
|
|
|
{% if printer.print_stats.state in ("printing", "paused") %}
|
|
|
|
|
_ERROR MSG="TOUCH_COMPARE: a print is running"
|
|
|
|
|
{% elif temp > 180 or temp < 140 %}
|
|
|
|
|
_ERROR MSG="TOUCH_COMPARE: TEMP must be 140-180C (Beacon contact)"
|
|
|
|
|
{% else %}
|
|
|
|
|
M109 S{temp}
|
|
|
|
|
HOME
|
|
|
|
|
G90
|
|
|
|
|
G1 X{x} Y{y} Z5 F6000
|
|
|
|
|
M400
|
2026-11-02 17:32:43 +01:00
|
|
|
_TOUCH_COMPARE N={params.N|default(10)|int} START={params.START|default(0.1)|float} THRESHOLD={params.THRESHOLD|default(15)|float} STOP={params.STOP|default(60)|float} SPEED={params.SPEED|default(0.3)|float}
|
2026-11-02 16:58:20 +01:00
|
|
|
M104 S0
|
|
|
|
|
{% endif %}
|