markniu / Bed_Distance_sensor

Auto bed level with High resolution distance sensor
275 stars 26 forks source link

Quad gantry level behavior #37

Closed Galloz closed 10 months ago

Galloz commented 11 months ago

Printer: Voron 2.4 350mm

When doing QGL the head travels horizontally at 1mm distance (_horizontal_movez:1) from the bed.

This distance is too little especially in large format printers: when the z motors are not holding there could be a corner that looses 2 or 3mm. At the next QGL the nozzle will be dragged into the bed damaging it (near 3 corners I have quite deep scars in my PEI sheet) and potentially also bend the hotend/printhead assembly.

Setting higher _horizontal_movez will cause QGL to fail.

At each corner of QGL the ideal behaviour would be for the head to move down, read the value, move up, and only then travel. The same behavior as when the [probe] feature is used.

markniu commented 11 months ago

Hello, you can do the z-tilt before QGL.the BD sensor will work as normal probe while doing z tilt

Galloz commented 11 months ago

Thanks fo the hint, I've implemented the z_tilt in the QGL macro, still have to fine tune the speeds.

[gcode_macro QUAD_GANTRY_LEVEL]
rename_existing: QUAD_GANTRY_LEVEL_1
gcode:
  Z_TILT_ADJUST
  G28 Z
  {% if printer["gcode_macro status_leveling"] != null %}
    status_leveling
  {% endif %}
    QUAD_GANTRY_LEVEL_1 { rawparams }
  {% if printer["gcode_macro status_ready"] != null %}
    status_ready
  {% endif %}

Might be helpful to highlight the z_tilt importance before QGL in the instructions

CanadianDreamer commented 7 months ago

Could you share your 2.4 printer.cfg file. This could give me a starting point for my BDsensor project. Thanks