Welcome! Log In Create A New Profile

Advanced

Dual y endstop

Posted by Chaparro1973 
Dual y endstop
July 06, 2020 04:42AM
Can someone help me on solving this error


Marlin\src\HAL\STM32\../../inc/SanityCheck.h:1851:6: error: #error "You must set Y2_USE_ENDSTOP with Y_DUAL_ENDSTOPS."

My configs

-Pins

"#define Y_MIN_PIN PF4

#define Y2_MIN_PIN PI7"

- Config_adv

#define Y_DUAL_ENDSTOPS

#if ENABLED(Y_DUAL_ENDSTOPS)

#define Y2_USE_ENDSTOP Y2_MIN

#define Y2_ENDSTOP_ADJUSTMENT 0

#endif"

- Config

#define USE_Y2_MIN_PLUG
Re: Dual y endstop
July 06, 2020 10:51AM
Do you have //#define Y_DUAL_STEPPER_DRIVERS defined?

If not, it never processes #define Y_DUAL_ENDSTOPS
Re: Dual y endstop
July 07, 2020 05:01AM
Thanks for your reply

Yes, i have:

#define Y_DUAL_STEPPER_DRIVERS
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
#define INVERT_Y2_VS_Y_DIR true // Set 'true' if Y motors should rotate in opposite directions
#define Y_DUAL_ENDSTOPS
#if ENABLED(Y_DUAL_ENDSTOPS)
#define Y2_USE_ENDSTOP _YMAX_
#define Y2_ENDSTOP_ADJUSTMENT 0
#endif
#endif

I can only compile it if i set _YMAX_

But i wanted to set another Y2 min pin, and use it for Y2 min position motor.
How can i do it, if possible?
Re: Dual y endstop
July 07, 2020 11:34AM
Hello,

only make from
#define Y_DUAL_STEPPER_DRIVERS
//#define Y_DUAL_STEPPER_DRIVERS

thats all
Re: Dual y endstop
July 08, 2020 04:43AM
But i have 2 y motors.
The purpose is to use 1 endstop for eache Y motor

Edited 1 time(s). Last edit at 07/08/2020 04:44AM by Chaparro1973.
Sorry, only registered users may post in this forum.

Click here to login