Skip to content

HOME_DIR not working if set to -1  #811

@PhilippeGonze

Description

@PhilippeGonze

Hi, I recently purchased the Minitronics V2.0 for replacing the board of my printrbot simple metal.
I use repetier host ver 2.1.6

I am trying to get the X_HOME_DIR and Z_HOME_DIR to -1 (Min mode) as my endstops are at X0 and Z0. Unfortunately, if I set ..._HOME_DIR to -1 the G28 request does not home them any more (no reaction).
M119 does not return any infos on X ad Z endstops.

Y_HOME_DIR is set to 1 (max mode) as it is at Y150.
G28 homes the Y perfectly.
In fact, it just "skips" the homing of X and Z
M119 returns the state of Y enstop correctly.

Once I try setting Y_HOME_DIR to -1 (min mode), the G28 fails for X,Y and Z.
M119 does not return any endstop state any more.

Turning all HOME_DIR to 1 enables the G28 for X,Y and Z
of course, in the wrong direction for X and Z.
M119 then returns the state of all endstops correctly.

To summarise : HOME_DIR does not work if set to -1

Manual moves (G00, G01) works perfectly on all axis independently of HOME_DIR
I tried to reverse the stepper direction and the stepper physical wiring but it does not solve my problem as prints would be mirrored in X and Z (which is not very convenient :-p )

I do not have any compiling errors
I am usine the latest Arduino IDE that I just downloaded.
Board manager is 1.0.2 for SAMD21
The computer is new and runs on windows 10 pro, it also didn't work on my older computer on windows 7.
I use repetier host ver 2.1.6

Firmware version is the 4.3.7_beta that is supplied on reprapworld by @brupje
https://github.com/brupje/MK4duo/releases/download/v4.3.7-1/MK4duo-minitronics20.zip

My setup is exactly the one from the link hereunder but with the following changes :
#define MECHANISM MECH_CARTESIAN
#define X_HOME_DIR -1
#define Y_HOME_DIR 1
#define Z_HOME_DIR -1
#define ENDSTOPPULLUP_XMIN false
#define ENDSTOPPULLUP_YMIN false
#define ENDSTOPPULLUP_ZMIN true //as active inductive sensor fixed on hotend
//#define ENDSTOP_INTERRUPTS_FEATURE
#define DEFAULT_AXIS_STEPS_PER_UNIT {160, 160, 4056, 160, 625, 625, 625}
#define DEFAULT_Kp {10.97, 40, 40, 40} // Kp for H0, H1, H2, H3
#define DEFAULT_Ki {0.51, 07, 07, 07} // Ki for H0, H1, H2, H3
#define DEFAULT_Kd {59.09, 60, 60, 60} // Kd for H0, H1, H2, H3

I honestly tried most of the features and options that I thought could lead to that problem but with no results yet.
I have been working on this printer for three weeks and this problem kept me awake at night for half that time.
Thank you in advance for your help,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions