protoloft / klipper_z_calibration

Klipper plugin for self-calibrating z-offset
GNU General Public License v3.0
1.06k stars 152 forks source link

At end of calibration i get a "unknown command" #135

Closed Experiment4 closed 3 months ago

Experiment4 commented 10 months ago

5:47:54 // Unknown command:"DETACH_PROBE" 15:47:54 // probe: TRIGGERED 15:47:48

Config section..says [z_calibration] nozzle_xy_position: 208,293 # <X,Y position for clicking the nozzle on the z endstop - not needed if [safe_z_home] is used> switch_xy_position: 208,268 # A X, Y coordinate (e.g. 100,100) of the probe's switch body, clicking on the z endstop. bed_xy_position: 150,150 #<X,Y position for probing the bed, for instance the center point - not needed if mesh with zero_reference_position is used> switch_offset: 0.4 # <offset of the switch trigger (read the Switch Offset section!)> start_gcode: attach_probe # before_switch_gcode: attach_probe # end_gcode: dock_probe #

thebrettman73 commented 7 months ago

For me, this was coming from "klicky-calibrate_z.cfg":

[gcode_macro CALIBRATE_Z] rename_existing: BASE_CALIBRATE_Z gcode: {% set bed_position = params.BED_POSITION|default('None') %} CG28 # can also be a conditional homing macro M117 Z-Calibration..

ATTACH_PROBE # a macro for fetching the probe first <---HERE

{% if bed_position != 'None' %}
  BASE_CALIBRATE_Z BED_POSITION={bed_position}
{% else %}
  BASE_CALIBRATE_Z
{% endif %}
#DETACH_PROBE                # and parking it afterwards (or DOCK_PROBE in klicky macros)    **<---HERE**
M117

I just commented out the attach and detach macros, as the are called correctly in the "[z_calibration]" config section.

TitusLabs commented 5 months ago

Yes, you need to call the correct macro name that you are using. Is this already solved?