Giter VIP home page Giter VIP logo

Comments (4)

TitusLabs avatar TitusLabs commented on June 16, 2024

This is strange. The QGL or Z-Tilt should behave the same. So yes, just exchange the QGL routine with the one of the Z-Tilt. It can also be a good thing to home Z again after QGL/Z-Tilt...

from klipper_z_calibration.

jp8311 avatar jp8311 commented on June 16, 2024

Yep, I just needed a G28 Z after Z_Tilt in the macro series to fix the issue.

I also didn't quite have enough buffer set to avoid hitting the switch on the probe, so if it attached slightly to the side it was hitting the trigger on the bedprobe and getting inconsistent results. Must have retested that 50 times before I actually managed to observe it happening, always seemed to happen when I was watching something else.

I was going to do a PR but honestly ctrl+f & replace "QUAD_GANTRY_LEVEL" with "Z_TILT_ADJUST" & add the 'G28 Z' after Z_Tilt sorts it out.

For those googling my issues:

[gcode_macro Z_TILT_ADJUST]
description: Level a flying bed to a stationary gantry
rename_existing: BASE_Z_TILT_ADJUST
gcode:
  #####  get user defines  #####
  {% set park_pos = printer['gcode_macro _USER_VARIABLE'].park_bed %}
  {% set z_hop = printer['gcode_macro _USER_VARIABLE'].z_hop|float %}
  ##### get toolhead position #####
  {% set act_z = printer.toolhead.position.z|float %}
  #####  set default  #####
  {% set park = params.PARK|default('true') %}
  #####  end of definitions  #####
  # home all axes if not already
  {% if "xyz" not in printer.toolhead.homed_axes %}
    _CG28
  {% endif %}
  SAVE_GCODE_STATE NAME=STATE_Z_TILT_ADJUST
  _SET_ACC VAL=HOME
  _CG28 RESET_SETTINGS=false
  {% if act_z < z_hop %}
    G1 Z{z_hop} F900 ; move head up to ensure Probe is not triggered in error case
  {% endif %}
  ATTACH_PROBE 
  BASE_Z_TILT_ADJUST
  G28 Z
  {% if params.CALIBRATE|default('false') == 'true' %}
    CALIBRATE_Z RESET_SETTINGS=false
  {% else %}
    DETACH_PROBE
  {% endif %}
  {% if params.RESET_SETTINGS|default('true') == 'true' %}
    _SET_ACC
  {% endif %}
  {% if park|lower == 'true' %}
    G90
    G0 Z{park_pos[2]} F1800           ; move nozzle to z high first
    G0 X{park_pos[0]} Y{park_pos[1]} F18000 ; home to get toolhead in the middle
  {% endif %}
  RESTORE_GCODE_STATE NAME=STATE_Z_TILT_ADJUST

from klipper_z_calibration.

TitusLabs avatar TitusLabs commented on June 16, 2024

Nice to hear that it works for you!

A second homing is not necessary. The auto calibration is able to compensate this. But, it can be a good advice to do so if the adjustments by the Z-Tilt/QGL are too high. And my probe is mounted to the bed. So, a correct Z is need to fetch it.

Thanks! I will add your macro to the example configuration...

from klipper_z_calibration.

TitusLabs avatar TitusLabs commented on June 16, 2024

I added the macro to the examples.

from klipper_z_calibration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.