Hello!
Im trying to get this to work but i fail all the time... I have a Folgertech FT-5 and I have these settings so far:
In Configuration.h
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#define USE_XMAX_PLUG
//#define USE_YMAX_PLUG
//#define USE_ZMAX_PLUG
AND
const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Z_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
And in Configuration_adv.h
#define Z_DUAL_STEPPER_DRIVERS
#if ENABLE (Z_DUAL_STEPPER_DRIVERS)
#define Z_DUAL_ENDSTOPS
#if ENABLED(Z_DUAL_ENDSTOPS)
#define Z2_USE_ENDSTOP _XMAX_
#endif
And in Conditionals.h
#if ENABLED(Z_DUAL_ENDSTOPS)
#define XMIN 100
#define YMIN 200
#define ZMIN 300
#define XMAX 101
#define YMAX 201
#define ZMAX 301
const bool Z2_MAX_ENDSTOP_INVERTING = 1;
#if Z2_USE_ENDSTOP == XMAX
//X_MAX_ENDSTOP_INVERTING
#define Z2_MIN_PIN X_MAX_PIN
#undef USE_XMAX_PLUG
Ive seen people get away with this but i dont i get error here after this:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Arduino:1.8.1 (Windows 10), Kort:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from sketch\Configuration.h:42:0,
from sketch\Marlin.h:44,
from sketch\stepper.cpp:47:
sketch\stepper.cpp: In function 'void update_endstops()':
stepper.cpp:459: error: 'Z2_MIN_ENDSTOP_INVERTING' was not declared in this scope
SET_ENDSTOP_BIT(Z2, MIN);
^
sketch\macros.h:34:38: note: in definition of macro 'SET_BIT'
#define SET_BIT(n,b,value) (n) ^= ((-value)^(n)) & (_BV(b))
^
sketch\stepper.cpp:357:132: note: in expansion of macro '_ENDSTOP_INVERTING'
#define SET_ENDSTOP_BIT(AXIS, MINMAX) SET_BIT(current_endstop_bits, _ENDSTOP(AXIS, MINMAX), (READ(_ENDSTOP_PIN(AXIS, MINMAX)) != _ENDSTOP_INVERTING(AXIS, MINMAX)))
^
sketch\stepper.cpp:459:15: note: in expansion of macro 'SET_ENDSTOP_BIT'
SET_ENDSTOP_BIT(Z2, MIN);
^
exit status 1
'Z2_MIN_ENDSTOP_INVERTING' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
And the program shows me here:
{ // z -direction
#if HAS_Z_MIN
#if ENABLED(Z_DUAL_ENDSTOPS)
SET_ENDSTOP_BIT(Z, MIN);
#if HAS_Z2_MIN
SET_ENDSTOP_BIT(Z2, MIN); <--------------------------------------------------------------------HERE!!!!!!!
#else
COPY_BIT(current_endstop_bits, Z_MIN, Z2_MIN);
#endif
byte z_test = TEST_ENDSTOP(Z_MIN) | (TEST_ENDSTOP(Z2_MIN) << 1); // bit 0 for Z, bit 1 for Z2
if (z_test && current_block->steps[Z_AXIS] > 0) { // z_test = Z_MIN || Z2_MIN
endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
SBI(endstop_hit_bits, Z_MIN);
if (!performing_homing || (z_test == 0x3)) //if not performing home or if both endstops were trigged during homing...
step_events_completed = current_block->step_event_count;
}
#else // !Z_DUAL_ENDSTOPS
Can anyone PLEASE help me?
Thanks