Just curious, what needs to be modified in Marlin for it to support homing

Just curious, what needs to be modified in Marlin for it to support homing to max endstops for a CoreXY machine (at least Z-max)?

Currently, homing to max endstops is disabled because of compatibility issues with the endstop checking routine, but I’d prefer if the machine homed to x-min, y-max, and z-max

Thanks in advance,

I just did that to my printer! If nobody tells directions here before I reach my laptop, I can post my settings from configuration.h file.

Here is those endstop settings in configuration.h what I think effects to this situation. I don’t have XY endstops so please don’t pay attention to their settings.

With these settings my H-bot printer homes Z-axis to the lowest point(max lenght) and with “travel limits after homing” I can adjust the distance between bed and nozzle.

#ifndef ENDSTOPPULLUPS
// fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
#define ENDSTOPPULLUP_XMAX
#define ENDSTOPPULLUP_YMAX
#define ENDSTOPPULLUP_ZMAX
#define ENDSTOPPULLUP_XMIN
#define ENDSTOPPULLUP_YMIN
// #define ENDSTOPPULLUP_ZMIN
#endif

#ifdef ENDSTOPPULLUPS
#define ENDSTOPPULLUP_XMAX
#define ENDSTOPPULLUP_YMAX
#define ENDSTOPPULLUP_ZMAX
#define ENDSTOPPULLUP_XMIN
#define ENDSTOPPULLUP_YMIN
#define ENDSTOPPULLUP_ZMIN
#endif

#define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
#define INVERT_Y_DIR true // for Mendel set to true, for Orca set to false
#define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true
#define INVERT_E0_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false

// ENDSTOP SETTINGS:
// Sets direction of endstops when homing; 1=MAX, -1=MIN
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR 1

// Travel limits after homing
#define X_MAX_POS 220
#define X_MIN_POS 0
#define Y_MAX_POS 220
#define Y_MIN_POS 0
#define Z_MAX_POS 177.03
#define Z_MIN_POS 0

@Topias_Korpi , Thanks for the help; I got the printer to home to Z-max successfully, XY max is not too critical

Glad to help you!