Yesterday I replaced the X and Y axis motors and drivers with TMC5160. When I tried to recalibrate sensorless homing, the carriage on the X axis homed in the wrong direction (toward the end of the axis), and changing the homing_positive_dir parameter to false didn’t introduce any changes in operation. Has anyone had a similar problem and knows how to reverse this direction?
There is also this parameter in the settings for the steppers:
#homing_positive_dir:
# If true, homing will cause the stepper to move in a positive
# direction (away from zero); if false, home towards zero. It is
# better to use the default than to specify this parameter. The
# default is true if position_endstop is near position_max and false
# if near position_min.
Take care to not mash up the stepper direction and this parameter.
You have four combinations of direction flags to use and, when I’m in this situation, I find it best to make a table and simply work through each of the four combinations of negating the X/Y stepper dir specification until I find that the toolhead is moving in the correct X/Y directions:
X | Y | Result
---+---+----------------
| |
---+---+----------------
! | |
---+---+----------------
! | ! |
---+---+----------------
| ! |
---+---+----------------
Putting a table, like the one above, down on a piece of paper allows you to keep a record of the results and helps keep the changes straight when you’re modifying your printer.cfg and then restarting your printer and sometimes hitting the “Emergency STOP” because things are moving in the wrong direction.