printer.cfg modified - 04.10.2026 - 00:54:00
This commit is contained in:
1 parent
ab7d454e21
commit
08ca40c8ce
1 file changed
+16
-7
@@ -699,16 +699,25 @@ description: Abort before printing when the mesh looks like it scanned a plate e
|
||||
# rest was within +/-0.05 mm). A flat Voron bed stays well below this range.
|
||||
variable_max_range: 0.35
|
||||
gcode:
|
||||
{% set matrix = printer.bed_mesh.probed_matrix %}
|
||||
{% set values = matrix | sum(start=[]) %}
|
||||
{% if values|length == 0 %}
|
||||
{ action_raise_error("_CHECK_MESH: no mesh is loaded") }
|
||||
{% elif (values|max) - (values|min) > max_range %}
|
||||
{ action_raise_error("_CHECK_MESH: mesh range %.3f mm (min %.3f, max %.3f) exceeds %.2f mm; the scan probably crossed a plate edge. Check plate position or mesh_min/mesh_max." % ((values|max) - (values|min), values|min, values|max, max_range)) }
|
||||
{% set values = printer.bed_mesh.probed_matrix | sum(start=[]) %}
|
||||
{% set range = (values|max) - (values|min) if values else 0 %}
|
||||
{% if not values or range > max_range %}
|
||||
{% if values %}
|
||||
{ action_respond_info("_CHECK_MESH: mesh range %.3f mm (min %.3f, max %.3f) exceeds %.2f mm; the scan probably crossed a plate edge. Check plate position or mesh_min/mesh_max." % (range, values|min, values|max, max_range)) }
|
||||
{% else %}
|
||||
{ action_respond_info("_CHECK_MESH: no mesh is loaded") }
|
||||
{% endif %}
|
||||
# Heaters off first; the error then stops PRINT_START and the job.
|
||||
_PRINT_CLEANUP
|
||||
_CHECK_MESH_ABORT
|
||||
{% else %}
|
||||
{ action_respond_info("_CHECK_MESH: mesh range %.3f mm OK" % ((values|max) - (values|min))) }
|
||||
{ action_respond_info("_CHECK_MESH: mesh range %.3f mm OK" % range) }
|
||||
{% endif %}
|
||||
|
||||
[gcode_macro _CHECK_MESH_ABORT]
|
||||
gcode:
|
||||
{ action_raise_error("Print aborted by _CHECK_MESH, see the message above") }
|
||||
|
||||
[gcode_macro CARTOGRAPHER_MESH]
|
||||
description: Adaptive scan with a safe full-mesh fallback for unreachable edge-only objects
|
||||
gcode:
|
||||
|
||||
Reference in new issue
Block a user