Homing Problem

Hi!

I have used repetier firmware v1.0.3 with my self designed mainboard. (i have added my own userpins.h).
Now here is my problem: When i start the printer and connect with my repetierserver, the first thing i do is home with g28. This works just fine. After i finish a print or abort a print i also want to home. Now this time the x-Axis wont move and home at its position, the y&z axis will home as usual. i have no idea why... used m119 the check the endstop - everything looks fine. i have also used m500&m502 to reset eeprom. But the problem is i cant really repeat the mistake since it will only occure from time to thime. Here are some of my settings, i will post more if needed:

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


#define ENDSTOP_PULLUP_Z_MIN false
#define ENDSTOP_Z_MIN_INVERTING false
#define MIN_HARDWARE_ENDSTOP_Z true
#define ENDSTOP_PULLUP_Z2_MINMAX true
#define ENDSTOP_Z2_MINMAX_INVERTING false
#define MINMAX_HARDWARE_ENDSTOP_Z2 false
#define ENDSTOP_PULLUP_X_MAX true
#define ENDSTOP_X_MAX_INVERTING true
#define MAX_HARDWARE_ENDSTOP_X true
#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 ENDSTOP_PULLUP_X2_MIN true
#define ENDSTOP_PULLUP_Y2_MIN true
#define ENDSTOP_PULLUP_Z2_MINMAX true
#define ENDSTOP_PULLUP_X2_MAX true
#define ENDSTOP_PULLUP_Y2_MAX true
#define ENDSTOP_X2_MIN_INVERTING false
#define ENDSTOP_Y2_MIN_INVERTING false
#define ENDSTOP_X2_MAX_INVERTING false
#define ENDSTOP_Y2_MAX_INVERTING false
#define MIN_HARDWARE_ENDSTOP_X2 false
#define MIN_HARDWARE_ENDSTOP_Y2 false
#define MAX_HARDWARE_ENDSTOP_X2 false
#define MAX_HARDWARE_ENDSTOP_Y2 false
#define X2_MIN_PIN -1
#define X2_MAX_PIN -1
#define Y2_MIN_PIN -1
#define Y2_MAX_PIN -1
#define Z2_MINMAX_PIN -1



#define max_software_endstop_r true

#define min_software_endstop_x true
#define min_software_endstop_y false
#define min_software_endstop_z false
#define max_software_endstop_x false
#define max_software_endstop_y true
#define max_software_endstop_z true
#define DOOR_PIN -1
#define DOOR_PULLUP 1
#define DOOR_INVERTING 0
#define ENDSTOP_X_BACK_MOVE 2
#define ENDSTOP_Y_BACK_MOVE 2
#define ENDSTOP_Z_BACK_MOVE 2
#define ENDSTOP_X_RETEST_REDUCTION_FACTOR 5
#define ENDSTOP_Y_RETEST_REDUCTION_FACTOR 5
#define ENDSTOP_Z_RETEST_REDUCTION_FACTOR 20
#define ENDSTOP_X_BACK_ON_HOME 0
#define ENDSTOP_Y_BACK_ON_HOME 0
#define ENDSTOP_Z_BACK_ON_HOME 0
#define ALWAYS_CHECK_ENDSTOPS 0
#define MOVE_X_WHEN_HOMED 0
#define MOVE_Y_WHEN_HOMED 0
#define MOVE_Z_WHEN_HOMED 0

// ################# 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 1
#define INVERT_X_DIR 1
#define INVERT_X2_DIR 0
#define INVERT_Y_DIR 0
#define INVERT_Y2_DIR 0
#define INVERT_Z_DIR 1
#define INVERT_Z2_DIR 0
#define INVERT_Z3_DIR 0
#define INVERT_Z4_DIR 0
#define X_HOME_DIR 1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
#define X_MAX_LENGTH 184
#define Y_MAX_LENGTH 168
#define Z_MAX_LENGTH 235
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define PARK_POSITION_X 0
#define PARK_POSITION_Y 25
#define PARK_POSITION_Z_RAISE 25



// ##########################################################################################
// ##                           Movement settings                                          ##
// ##########################################################################################

#define FEATURE_BABYSTEPPING 1
#define BABYSTEP_MULTIPLICATOR 1

#define DELTA_SEGMENTS_PER_SECOND_PRINT 180 // Move accurate setting for print moves
#define DELTA_SEGMENTS_PER_SECOND_MOVE 70 // Less accurate setting for other moves
#define EXACT_DELTA_MOVES 1

// Delta settings
#define DELTA_HOME_ON_POWER 0

#define DELTASEGMENTS_PER_PRINTLINE 24
#define STEPPER_INACTIVE_TIME 360L
#define MAX_INACTIVE_TIME 0L
#define MAX_FEEDRATE_X 200
#define MAX_FEEDRATE_Y 200
#define MAX_FEEDRATE_Z 100
#define HOMING_FEEDRATE_X 30
#define HOMING_FEEDRATE_Y 30
#define HOMING_FEEDRATE_Z 30
#define HOMING_ORDER HOME_ORDER_XYTZ
#define ZHOME_PRE_RAISE 1
#define ZHOME_PRE_RAISE_DISTANCE 10
#define RAISE_Z_ON_TOOLCHANGE 0
#define ZHOME_MIN_TEMPERATURE 20
#define ZHOME_HEAT_ALL 0
#define ZHOME_HEAT_HEIGHT 10
#define ZHOME_X_POS 98
#define ZHOME_Y_POS 65
#define ENABLE_BACKLASH_COMPENSATION 0
#define X_BACKLASH 0
#define Y_BACKLASH 0
#define Z_BACKLASH 0
#define RAMP_ACCELERATION 1
#define STEPPER_HIGH_DELAY 2
#define DIRECTION_DELAY 2
#define STEP_DOUBLER_FREQUENCY 80000
#define ALLOW_QUADSTEPPING 1
#define DOUBLE_STEP_DELAY 2 // time in microseconds
#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_X 300
#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Y 300
#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Z 120
#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_X 300
#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Y 300
#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Z 100
#define INTERPOLATE_ACCELERATION_WITH_Z 3
#define ACCELERATION_FACTOR_TOP 80
#define MAX_JERK 20
#define MAX_ZJERK 2
#define PRINTLINE_CACHE_SIZE 24
#define MOVE_CACHE_LOW 10
#define LOW_TICKS_PER_MOVE 250000
#define EXTRUDER_SWITCH_XY_SPEED 100
#define DUAL_X_AXIS 0
#define DUAL_X_RESOLUTION 0
#define X2AXIS_STEPS_PER_MM 100
#define FEATURE_TWO_XSTEPPER 0
#define X2_STEP_PIN   ORIG_E1_STEP_PIN
#define X2_DIR_PIN    ORIG_E1_DIR_PIN
#define X2_ENABLE_PIN ORIG_E1_ENABLE_PIN
#define FEATURE_TWO_YSTEPPER 0
#define Y2_STEP_PIN   ORIG_E1_STEP_PIN
#define Y2_DIR_PIN    ORIG_E1_DIR_PIN
#define Y2_ENABLE_PIN ORIG_E1_ENABLE_PIN
#define FEATURE_TWO_ZSTEPPER 0
#define Z2_STEP_PIN   ORIG_E1_STEP_PIN
#define Z2_DIR_PIN    ORIG_E1_DIR_PIN
#define Z2_ENABLE_PIN ORIG_E1_ENABLE_PIN
#define FEATURE_THREE_ZSTEPPER 0
#define Z3_STEP_PIN   ORIG_E2_STEP_PIN
#define Z3_DIR_PIN    ORIG_E2_DIR_PIN
#define Z3_ENABLE_PIN ORIG_E2_ENABLE_PIN
#define FEATURE_FOUR_ZSTEPPER 0
#define Z4_STEP_PIN   ORIG_E3_STEP_PIN
#define Z4_DIR_PIN    ORIG_E3_DIR_PIN
#define Z4_ENABLE_PIN ORIG_E3_ENABLE_PIN
#define FEATURE_DITTO_PRINTING 0
#define USE_ADVANCE 0
#define ENABLE_QUADRATIC_ADVANCE 0






Comments

  • edit: just had the same issue with z-probe: m119 shows right value, but it wont  move until the z-probe triggers, it just stays where it is and makes this z-position z0. After a restart it worked fine. Thanks in advance!
  • You can add a print message in homeX to be sure it got called. M119 is often misleading as it shows the state when you send the command and not when homing command tried X axis. But in any case you should have seen the retry during homing when it tries x home.

    Z-Probe issues a warning in log when probing dos not work. 

    Looking at the config it looks ok as far as I can say. Mechanical xy endstops and electronic z endstop.
  • I can see a retry when x homes (a short move back when it triggers the endstop or in my case doesnt (mechanicly) trigger the endstop). Can u give me an example how that print message code looks like? i guess its a special g-code command? Thanks for your quick answer!
  • You can put anywhere in C++ code
    Com::printFLN(PSTR("Your message"));

    when then that code part of firmware gets executed you see the "Your message" in the log.

    As you see the back move I guess endstop is triggered then.

    You can also send
    M111 S71

    then you will see a endstop report at every endstop change.
  • Hi! Thanks again for your great support.
    I found the problem: When i heat the extruder and my bed appearently the PWM signals interfere with x-endstop signal and it gets pretty messi.

    I'm thinking about changing some code in the firmware. Could you propably help me out with some tips? I dont think i can change the g28 command, or can i?

  • Why Change code for electrical interference?

    add series resistor (around 100 Ohms) and capacitor (100nF should be enough) directly to board endstop Input


    and/or use shielded wires

  • Thanks, yes i will consider a electrical change in the next board i design. But for now i would like to change to firmware, so if you have any tipps please let me know :)
  • Write your own gcode start script so that G28 is before heating and leave
    #define ALWAYS_CHECK_ENDSTOPS 0

    So it is not tested during print and homing is done with heaters off.
Sign In or Register to comment.