Homing 2 steppermotors with different steps

Try this MobaTools example, it homes the X&Y motors by

  1. slowly backing off CCW a set amount, then
  2. moves CW slowly at a slow speed until it hits the limit switch (someone pushes their buttons) and then
  3. it zeros and
  4. it runs full speed CCW.