bigtreetech / BIGTREETECH-OCTOPUS-V1.0

This is Octopus open source material
573 stars 337 forks source link

Octopus V1.1 - Z_MULTI_ENDSTOPS - Not working #128

Closed lukasloetkolben closed 2 years ago

lukasloetkolben commented 2 years ago

Hi, i am trying to configure my Octopus V1.1 with two independent Z-Axis Motors and two Endstops. I defined these endstops:

#define USE_XMAX_PLUG
#define USE_YMAX_PLUG
#define USE_ZMAX_PLUG
#define USE_IMAX_PLUG

Drivers:

#define X_DRIVER_TYPE  TMC2209
#define Y_DRIVER_TYPE  TMC2209
#define Z_DRIVER_TYPE  TMC2209
#define Z2_DRIVER_TYPE TMC2209
#define E0_DRIVER_TYPE TMC2209

And enabled Multi Endstops:

#ifdef Z2_DRIVER_TYPE
  #define Z_MULTI_ENDSTOPS          // Other Z axes have their own endstops
  #if ENABLED(Z_MULTI_ENDSTOPS)
    #define Z2_USE_ENDSTOP   _IMAX_   // Z2 endstop board plug. Don't forget to enable USE_*_PLUG.
    #define Z2_ENDSTOP_ADJUSTMENT 0   // Z2 offset relative to Y endstop
  #endif 
  [...]

When i am compiling like this M119 does not show the z2_max status. If i change #define Z2_USE_ENDSTOP _IMAX_ to -> #define Z2_USE_ENDSTOP _XMAX_ It does show z2_max with M119.

Can anyone help me with this issue?