# Touch comparison: Beacon contact vs bd_pressure (needs extras/bdp_touch.py # and the bd_pressure load-check firmware). See extras/bdp_touch.py. # # TOUCH_COMPARE [N=10] [X=175] [Y=175] [TEMP=150] [THRESHOLD=15] [STOP=80] # [STEP=0.005] [START=0.1] # 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, # start 0.1-0.2 mm above the bed). [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 _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(80)|float} STEP={params.STEP|default(0.005)|float} M104 S0 {% endif %}