viesturz / klipper-toolchanger

Toolcahnging extension for Klipper
GNU General Public License v3.0
49 stars 16 forks source link

Safety Feature Request: Z travel limit or probe check in tools_calibrate.py #24

Open VIN-y opened 2 months ago

VIN-y commented 2 months ago

I am not sure if this limit already existed or not, and do not want to be risk my only working printer to test it out.

At the moment, when the TOOL_LOCATE_SENSOR command is issued, the tool-head will start going down regardless of whether the calibration probe is in the right place or not. This has the risk of damaging the printer in the event of a removable probe have not been placed correctly. Therefore, I would like to request a z travel limit for the command.

Given that the printer is already homed. Maybe set the command to travel no more than 1mm below z=0. Or, throw an error (and cancel the operation) if the optical sensor got triggered before the calibration probe.