Skip to content

Instantly share code, notes, and snippets.

@bistory
Created April 7, 2022 06:01
Show Gist options
  • Save bistory/2a2ae1bba0b8545de84069b178af8a34 to your computer and use it in GitHub Desktop.
Save bistory/2a2ae1bba0b8545de84069b178af8a34 to your computer and use it in GitHub Desktop.
Example klicky-z-calibration configuration for the Voron 2.4 with Klicky probe (don't forget to include it in your klicky-probe.cfg)
[z_calibration]
## update these variable according to the documentation here https://github.com/protoloft/klipper_z_calibration
## you then should call CALIBRATE_Z as one of the last lines on your PRINT_START to set the Z offset dinamically
# The X and Y coordinates (in mm) for clicking the nozzle on the
# Z endstop.
nozzle_xy_position: X,Y
# The X and Y coordinates (in mm) for clicking the probe's switch body
# on the Z endstop.
switch_xy_position: X,Y
# The X and Y coordinates (in mm) for probing on the print surface
# (e.g. the center point) These coordinates will be adapted by the
# probe's X and Y offsets. The default is the relative_reference_index
# of the configured bed_mesh. It will raise an error if there is no
# probe_bed site and no bed_mesh with a relative_reference_index
# configured.
#bed_xy_position: X,Y
# The trigger point offset of the used switch.
# This needs to be fined out manually. For more details go to
# https://github.com/protoloft/klipper_z_calibration#switch-offset
# "So, with a smaller offset value, the nozzle is more away from the
# bed! The value cannot be negative."
switch_offset: 0.45
# The maximum allowed deviation of the calculated offset.
# If the offset exceeds this value, it will stop!
# The default is 1.0 mm.
max_deviation: 1.5
# The number of times to probe each point. The probed z-values
# will be averaged. The default is from the probe's configuration.
#samples: default from "probe:samples" section
# The maximum Z distance (in mm) that a sample may differ from other
# samples. The default is from the probe's configuration.
#samples_tolerance: default from "probe:samples_tolerance" section
# The number of times to retry if a sample is found that exceeds
# samples_tolerance. The default is from the probe's configuration.
#samples_tolerance_retries: default from "probe:samples_tolerance_retries" section
# The calculation method when sampling more than once - either
# "median" or "average". The default is from the probe's configuration.
#samples_result: default from "probe:samples_result" section
# The distance in mm to move up before moving to the next
# position. The default is two times the z_offset from the probe's
# configuration.
clearance: 7.5
#position_min: default from "stepper_z:position_min" section.
# The moving speed in X and Y. The default is 50 mm/s.
speed: 200
# Speed (in mm/s) of the Z axis when lifting the probe between
# samples and clearance moves. The default is from the probe's
# configuration.
#lift_speed: default from "probe:lift_speed" section
# The fast probing speed (in mm/s) used, when probing_first_fast
# is activated. The default is from the Z rail configuration.
#probing_speed: default from "stepper_z:homing_speed" section.
# The slower speed (in mm/s) for probing the recorded samples.
# The default is second_homing_speed of the Z rail configuration.
#probing_second_speed: default from "stepper_z:second_homing_speed" section.
# Distance to back off (in mm) before probing the next sample.
# The default is homing_retract_dist from the Z rail configuration.
#probing_retract_dist: default from "stepper_z:homing_retract_dist" section.
# If true, the first probing is done faster by the probing speed.
# This is to get faster down and the result is not recorded as a
# probing sample. The default is false.
probing_first_fast: true
# If true, the first probing is done faster by the probing speed.
# This is to get faster down and the result is not recorded as a
# probing sample. The default is false.
start_gcode: Dock_Probe_Unlock
# A list of G-Code commands to execute prior to each calibration command.
# See docs/Command_Templates.md for G-Code format. This can be used to
# attach the probe.
before_switch_gcode: Attach_Probe
# A list of G-Code commands to execute prior to each probing on the
# mag-probe. See docs/Command_Templates.md for G-Code format. This can be
# used to attach the probe after probing on the nozzle and before probing
# on the mag-probe.
end_gcode: Dock_Probe
# A list of G-Code commands to execute after each calibration command.
# See docs/Command_Templates.md for G-Code format. This can be used to
# detach the probe afterwards.
[gcode_macro CALIBRATE_Z]
rename_existing: BASE_CALIBRATE_Z
gcode:
M117 Z-Calibration..
SET_GCODE_OFFSET Z=0
BASE_CALIBRATE_Z
M117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment