grblHAL / core

grblHAL core code and master Wiki
Other
305 stars 74 forks source link

Hold the Z axis after backlash compensation #364

Closed Melkiyby closed 6 months ago

Melkiyby commented 10 months ago

In my CNC, the Z axis slides on Teflon pads. If, after moving the Z axis up, it moves down, then over time it slides down by 0.14 mm. This causes different milling depths and ultimately poor machining quality. Please add option for Z axis: If Z makes a downward movement, then the stepper motor returns in the opposite direction by the backlash distance, then if Z moves downward, then the GRBL must add backlash to the movement and return back to the backlash distance, and if Z moves up, then there is no backlash compensation, since the axis Z is already supported by backlash compensation.

terjeio commented 10 months ago

Backlash correction is inserted here, can you try to modify the code to suit your needs?

terjeio commented 9 months ago

Is the Backlash Compensation function now supported?

It is a compile time option.

How to configure the corresponding value for each axis?

$160, $161, $162, ... So in a similar way as other axis settings.