Z axis Doesn't Stop When Endstop Triggered

My Z axis moves in the correct directions using manual control. If it's moving up (away from the bed and away from the endstop) I can trigger the endstop with my finger and it will stop. If I home the z axis (down towards the bed and endstop) it just keeps going crashing into the bed.

Here is my configuration.h:

// ################ Endstop configuration
#####################

 

#define ENDSTOP_PULLUP_X_MIN true

#define ENDSTOP_X_MIN_INVERTING false

#define MIN_HARDWARE_ENDSTOP_X true

#define ENDSTOP_PULLUP_Y_MIN true

#define ENDSTOP_Y_MIN_INVERTING false

#define MIN_HARDWARE_ENDSTOP_Y true

#define ENDSTOP_PULLUP_Z_MIN true

#define ENDSTOP_Z_MIN_INVERTING false

#define MIN_HARDWARE_ENDSTOP_Z true

#define ENDSTOP_PULLUP_X_MAX true

#define ENDSTOP_X_MAX_INVERTING true

#define MAX_HARDWARE_ENDSTOP_X false

#define ENDSTOP_PULLUP_Y_MAX true

#define ENDSTOP_Y_MAX_INVERTING true

#define MAX_HARDWARE_ENDSTOP_Y false

#define ENDSTOP_PULLUP_Z_MAX true

#define ENDSTOP_Z_MAX_INVERTING true

#define MAX_HARDWARE_ENDSTOP_Z false

#define max_software_endstop_r true

 

#define min_software_endstop_x false

#define min_software_endstop_y false

#define min_software_endstop_z false

#define max_software_endstop_x true

#define max_software_endstop_y true

#define max_software_endstop_z true

#define ENDSTOP_X_BACK_MOVE 5

#define ENDSTOP_Y_BACK_MOVE 5

#define ENDSTOP_Z_BACK_MOVE 2

#define ENDSTOP_X_RETEST_REDUCTION_FACTOR 3

#define ENDSTOP_Y_RETEST_REDUCTION_FACTOR 3

#define ENDSTOP_Z_RETEST_REDUCTION_FACTOR 3

#define ENDSTOP_X_BACK_ON_HOME 1

#define ENDSTOP_Y_BACK_ON_HOME 1

#define ENDSTOP_Z_BACK_ON_HOME 1

#define ALWAYS_CHECK_ENDSTOPS 1

 

// ################# XYZ movements ###################

 

#define X_ENABLE_ON 0

#define Y_ENABLE_ON 0

#define Z_ENABLE_ON 0

#define DISABLE_X 0

#define DISABLE_Y 0

#define DISABLE_Z 0

#define DISABLE_E 0

#define INVERT_X_DIR 0

#define INVERT_Y_DIR 0

#define INVERT_Z_DIR 0

#define X_HOME_DIR -1

#define Y_HOME_DIR -1

#define Z_HOME_DIR 1

#define X_MAX_LENGTH 180

#define Y_MAX_LENGTH 180

#define Z_MAX_LENGTH 120

#define X_MIN_POS 0

#define Y_MIN_POS 0

#define Z_MIN_POS 0

#define DISTORTION_CORRECTION 0

#define DISTORTION_CORRECTION_POINTS 5

#define DISTORTION_CORRECTION_R 100

#define DISTORTION_PERMANENT 1

#define DISTORTION_UPDATE_FREQUENCY 15

#define DISTORTION_START_DEGRADE 0.5

#define DISTORTION_END_HEIGHT 1

#define DISTORTION_EXTRAPOLATE_CORNERS 0

#define DISTORTION_XMIN 10

#define DISTORTION_YMIN 10

#define DISTORTION_XMAX 190

#define DISTORTION_YMAX 190

M119 shows: endstops hit: x_min:L  y_min:L  z_min:L   When I trigger the z endstop  z_min changes to H

My printer is a reprap Prusa Mendel i2. Mega 2560 with RAMPS 1.4. Computer is running Win 8.1. Latest Repetier firmware and host 1.6.1.

How can I get the z axis to stop when it hits the endstop?

Comments

  • You z home dir is wrong, must be -1 for z min homing. Since you assume this was right I guess you also need to invert z direction.
Sign In or Register to comment.