Finally made my mpcnc and got this problem. X move backwards.
after flipping the stepper plugs this problem is solved, but another problem arises.
the automatic return to home position now moves in a different direction rather than towards the end stops. how i can change auto homing direction?
Search the forums for invert axis… can’t remember the exact name but it’s a marlin setting.
I changed this this setting on merlin, X_HOME_DIR -1
now X changes homing direction but not work swich of endstop
i must change any others parameters too? ?
I have all of my endstops set for the minimum position of each axis.
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
Then just flip the motor connectors to which ever way makes the axis travel in the negative direction (towards home).
Are you saying the endstop does not work at all now? If you run the M119 command while holding down the endstop trigger, does it show it registering as TRIGGERED?
I assume you aren’t using stock V1 firmware, because it should be configured that way already. We usually want the home position close to the 0, 0 corner.
I’m going to reference how the stock V1 dual endstop firmware is configured, and assume a RAMPS like board (RAMBo, for example.)
The motor that’s plugged into the driver labelled X on the mainboard must be paired with a limit switch plugged into X_MIN. The motor plugged into the driver labelled E0 on the mainboard must be paired to the limit switch plugged into X_MAX. If these are backwards, bad things happen. Make sure that those switches are still plugged in to the S and - pins on the mainboard, and that they are connected NC.
Use M119 from the serial console to report on the status of the endstops. They should show “open” when the switches are not pressed, and “triggered” when they are.
when i finished build of MPCNC, everything was perfect, Y and X also moving to home in correct direction(from LCD and from Repetier too) . excepting one thing , X moving backward and like a mirrored draws.
Board Rambo 1.4
Firmware V1 Dual
M119 also reported correct status of the endstops.
pairing also motors and endstops was correct.
then what i do:
- first I fliped X motors plugs. machine start moving forward and no more mirror drawing. but now auto home moving opposite direction.
- on marlin firmware :
#define X_HOME_DIR 1 (it was -1, and changed to 1)
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
#define X2_USE_ENDSTOP XMIN (it was XMAX. and changed XMIN)
now machine work correct, moving forward also homming on correct direction to. but lcd show X-600 Y-0 Z-0
now i think changes position of endstop switch on opposite direction and reflash back stock firm.
Finally, I changed the position of the limit switch for X in the opposite direction and my problem was resolved.