Repetier 0.92 Y Endstop Problem

Hello,

Description of my Problem:

After Uploading the new 0.92 to 5 Button LCD with Melzi 2.0 China Printer my axe directions were a bit messed up. I fixed it with inverting.
When homing my y-Axis the Endstop does not work.
Even after several tries and searches i couldnt find a solution maybe you could help:

Below is my 0.92 Config in which i tried to change the endstop min max which would fix my problem i think but i couldnt get it to work because of an error :

Arduino: 1.0.6 (Windows NT (unknown)), Board: "Melzi 1284p 16mhz"
Printer.cpp:941:2: error: #error You have defined hardware y max endstop without pin assignment. Set pin number for Y_MAX_PIN

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

#define ENDSTOP_PULLUP_X_MIN    true
#define ENDSTOP_X_MIN_INVERTING true
#define MIN_HARDWARE_ENDSTOP_X  true
#define ENDSTOP_PULLUP_Y_MIN      true
#define ENDSTOP_Y_MIN_INVERTING   true
#define MIN_HARDWARE_ENDSTOP_Y    true
#define ENDSTOP_PULLUP_Z_MIN    true
#define ENDSTOP_Z_MIN_INVERTING true
#define MIN_HARDWARE_ENDSTOP_Z  true
#define ENDSTOP_PULLUP_X_MAX    true
#define ENDSTOP_X_MAX_INVERTING false
#define MAX_HARDWARE_ENDSTOP_X  false
#define ENDSTOP_PULLUP_Y_MAX      true
#define ENDSTOP_Y_MAX_INVERTING   true
#define MAX_HARDWARE_ENDSTOP_Y    true
#define ENDSTOP_PULLUP_Z_MAX    true
#define ENDSTOP_Z_MAX_INVERTING false
#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 0
#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 1
#define INVERT_Z_DIR 1
#define X_HOME_DIR -1
#define Y_HOME_DIR 1
#define Z_HOME_DIR -1
#define X_MAX_LENGTH 220
#define Y_MAX_LENGTH 220
#define Z_MAX_LENGTH 210
#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

These were my 0.91 setting which worked flawless:

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

#define ENDSTOP_PULLUP_X_MIN true
#define ENDSTOP_X_MIN_INVERTING true
#define MIN_HARDWARE_ENDSTOP_X true
#define ENDSTOP_PULLUP_Y_MIN true
#define ENDSTOP_Y_MIN_INVERTING true
#define MIN_HARDWARE_ENDSTOP_Y true
#define ENDSTOP_PULLUP_Z_MIN true
#define ENDSTOP_Z_MIN_INVERTING true
#define MIN_HARDWARE_ENDSTOP_Z true
#define ENDSTOP_PULLUP_X_MAX true
#define ENDSTOP_X_MAX_INVERTING false
#define MAX_HARDWARE_ENDSTOP_X false
#define ENDSTOP_PULLUP_Y_MAX true
#define ENDSTOP_Y_MAX_INVERTING false
#define MAX_HARDWARE_ENDSTOP_Y false
#define ENDSTOP_PULLUP_Z_MAX true
#define ENDSTOP_Z_MAX_INVERTING false
#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 0
#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 1///0
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
#define X_MAX_LENGTH 220
#define Y_MAX_LENGTH 220
#define Z_MAX_LENGTH 210
#define X_MIN_POS -0
#define Y_MIN_POS -5
#define Z_MIN_POS 0


Would be nice if someone could help.

Thanks in forwards



Comments

  • Change


    #define ENDSTOP_Y_MAX_INVERTING   true
    #define MAX_HARDWARE_ENDSTOP_Y    true
    to
    #define ENDSTOP_Y_MAX_INVERTING   false
    #define MAX_HARDWARE_ENDSTOP_Y    false



    AND
    #define INVERT_Y_DIR 1
    to
    #define INVERT_Y_DIR 0

  • That didnt work, with my posted Config i have my axes properly orking just the endstop doesnt work
  • I don't have that board, but, I looked in my repetier firmware "pins.h" file  under the 
    /****************************************************************************************
    * Melzi pin assignment
    *
    ****************************************************************************************/
    and the pin assigned to the #define ORIG_Y_MAX_PIN is a -1 which I am pretty sure is unassigned. 
    You need to define the pin and connect to that one defined. Right above it in the listing is the Y_MIN_PIN as 19.
    You could swap those two.Its a good idea to have a backup before you start swapping stuff around.
    So you are saying that the M119 command does not change the status of the endstop when you activate/deactivate it, correct?
    Possibly a wire came off, or somethng. I googled a picture of the Melzi 2.0 on Wiki and it looks like it only has one endstop connector per axis
    I see how you changed your settings for the other endstop. I think what shogun was showing you was the differences to go back to your original setup also your Y_HOME_DIR was -1 and your Y_MIN_POS was -5 on the original 0.91 you posted.
  • got it to work with these settings:


    #define ENDSTOP_PULLUP_X_MIN    true
    #define ENDSTOP_X_MIN_INVERTING true
    #define MIN_HARDWARE_ENDSTOP_X  true
    #define ENDSTOP_PULLUP_Y_MIN    true
    #define ENDSTOP_Y_MIN_INVERTING true
    #define MIN_HARDWARE_ENDSTOP_Y  true
    #define ENDSTOP_PULLUP_Z_MIN    true
    #define ENDSTOP_Z_MIN_INVERTING true
    #define MIN_HARDWARE_ENDSTOP_Z  true
    #define ENDSTOP_PULLUP_X_MAX    true
    #define ENDSTOP_X_MAX_INVERTING false
    #define MAX_HARDWARE_ENDSTOP_X  false
    #define ENDSTOP_PULLUP_Y_MAX    true
    #define ENDSTOP_Y_MAX_INVERTING false
    #define MAX_HARDWARE_ENDSTOP_Y  false
    #define ENDSTOP_PULLUP_Z_MAX    true
    #define ENDSTOP_Z_MAX_INVERTING false
    #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 0
    #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 1
    #define X_HOME_DIR -1
    #define Y_HOME_DIR -1
    #define Z_HOME_DIR -1
    #define X_MAX_LENGTH 210
    #define Y_MAX_LENGTH 210
    #define Z_MAX_LENGTH 210
    #define X_MIN_POS -0
    #define Y_MIN_POS -5
    #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
  • I guess your board has no hardware y max endstop pin. So you need to disable y min hardware enstop and set y max to y min pin and connect the y max endstop cable to y min endstop connector.

    Hope it was not to confusing.

  • It was confusing, anti logical!



    Nevermind, thanks to everyone who made some thoughts about it
  • Simply said, don't use y min endstop and put y max in y min connector and tell it to configuration tool.
  • IF you looke better you will se that he made the changes that i told him to make
Sign In or Register to comment.