[klipper] Re: How to home 2 X steppers?

  • From: Gerald Dachs <gda@xxxxxx>
  • To: klipper@xxxxxxxxxxxxx
  • Date: Sun, 22 Sep 2019 12:45:39 +0200

I started now with using two independent rails for the x steppers. Seems
not that complicated as I had thought first. I currently don't know how
the new rail gets its axis. Is the name of the stepper used (in my case
"stepper_x1") ? Have to find out.

Am 22.09.19 um 10:39 schrieb Gerald Dachs:



Am 22.09.19 um 06:36 schrieb Jeffrey B. Rogers:
I'm not speaking from a position of knowledge or authority by any
means, but from my understanding, a two X motor Cartesian
configuration simply steps both motors in unison. Klipper just
assumes they are mechanically in phase with each other.

That would be a problem.
I'm not sure I understand your setup completely. You have two X
carriages on the same rail that are independently movable?
yes
 I recently rewired my printer to have its two Z motors on separate
drivers, and I was able to add a "z tilt" section to my config to
allow klipper to home both motors using my bed probe. Maybe you can
take a look at how the z tilt routine is implemented for some insight?
Maybe that could be a workaround. I could home both steppers to the
same side and the z_tilt would be the width of the first X carriage.
Also, if you can only define one endstop per rail, maybe you can
define two rails that just happen to be the same and always move in
unison?

Maybe even the cleanest solution, but I would have to dig into the
code much deeper.

In cartesian.py there is the support for dual_carriage_rails, but this
expects the steppers to be in one multirail, but then again I don't
understand the homing of that.

Before I make big changes I just want to know whether that is really
necessary. I am afraid I just don't understand the current code. I am
a lousy Python programmer.

On Sat, Sep 21, 2019 at 3:27 PM Gerald Dachs <gda@xxxxxx
<mailto:gda@xxxxxx>> wrote:

    Hello,

    I have build a printer with a new kinematic. It is a CoreXY IDEX
    printer, I named it Core2XY ;).

    I started to change the current corexy kinematic in Klipper to my
    needs.
    I have not tested it, but
    I should at least be able to move one X Stepper without moving the
    second one, what is not trivial on a CoreXY.

    To understand what I have to do for homing the X steppers I
    looked into
    the cartesian kinematic, but I don't understand how it works. My X
    steppers are both in one rail, like with the cartesian
    kinematics. The
    endstop_position is saved it the rail and not in the stepper
    class. So I
    can't have two different endstop_positions for the X steppers.
    My idea was to home the first stepper on X min and the other on X
    max.

    Kevin, please explain how dual X steppers home in the cartesian
    kinematics. That might help me to understand what I have to do.

    Thank you
    Gerald









!DSPAM:5d8750d3385191936634083!

Other related posts: