Welcome! Log In Create A New Profile

Advanced

Help Configuring Dual Z endstops for SKR 1.4 Turbo

Posted by PickyBiker 
Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 08, 2022 12:35PM
I'm building a 3d Printer with 2 z motors and 2 z endstops. The z axis is moving up and down as expected, so the motors and drivers in Marlin 2.1.1 should be set correctly.

This system uses the SKR 1.4 Turbo board and I need help with 2 items.

1: How to I configure the dual z endstops in firmware? I think the following is where the changes are supposed to be made but I don't understand what this means "// Z2 endstop board plug. Don't forget to enable USE_*_PLUG."

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


2: Where does the second endstop plug into the board and how do I tell Marlin where it is?

Edited 3 time(s). Last edit at 11/08/2022 12:42PM by PickyBiker.
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 08, 2022 06:19PM
I believe this sould be

Zmin=Z1 limit switch
Zmax=Z2 limit switch

Edited 1 time(s). Last edit at 11/08/2022 06:20PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 08, 2022 06:58PM
1)
when you enable an endstop you also have to say what plug is used

Ie.
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
//#define USE_XMAX_PLUG
//#define USE_YMAX_PLUG
#define USE_ZMAX_PLUG


2)
#define Z2_USE_ENDSTOP _XMAX_

change to _ZMAX_ to use z-max endstop

Edited 1 time(s). Last edit at 11/08/2022 06:59PM by Dust.
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 09, 2022 03:11PM
Here are my current configurations for configuration.h and configuration_adv.h.
Unfortunately, when I home the Z axis, tripping one or both z endstops doesn't stop the movement. Both of the endstop switches are configured with NC connections.

What am I doing wrong?


Configuration.h

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

ENDSTOP PLUGS
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#define USE_ZMAX_PLUG

ENSTOP INVERT
#define X_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.


Configuration_adv.h

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

Edited 1 time(s). Last edit at 11/09/2022 03:55PM by PickyBiker.
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 09, 2022 10:50PM
What does M119 report when you manually trigger the Z endstops?
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 10, 2022 10:13AM
With both switches manually activated, this is the m119 result. Looks like something wrong with the z switch.

x_min: open
y_min: open
z_min: open
z2_min: triggered
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 10, 2022 11:04AM
The wiring checks out okay at the board connector end and the pin mapping in the btt_skr_V1.4.h looks like this:

#elif ENABLED(Z_MULTI_ENDSTOPS)
#ifndef Z_MIN_PIN
#define Z_MIN_PIN P1_27 // Z-STOP
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN P1_00 // PWRDET
#endif

And according to the schematic, those are correct for the SKR 1.4 turbo

It really got me scratching my head now.
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 10, 2022 12:22PM
Okay, just read something about cutting a pin off the 2209's or the endstops won't work correctly.

Really! Cutting off one of the pins? Is that really necessary? On all of them?
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 10, 2022 04:42PM
Yes you must remove the diag pins form the stepper driver modules. These pins are directly connected to the endstop pins and interfere with endstops. The skr 1.3 was a better design in this area, it had jumpers that could be removed instead off cutting off pins.
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 10, 2022 06:55PM
Yep, I clipped the pins on all 5 drivers and now the whole think g is working.

Such a shame to have to permanently mutilate a driver to get it to work. In the future, if I want to try sensorless, I will need 5 new drivers. Yuck.
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 10, 2022 10:25PM
Its a standard 2.54mm two pin connector, you just solder on a new one,
Re: Help Configuring Dual Z endstops for SKR 1.4 Turbo
November 10, 2022 10:43PM
Thanks!
Sorry, only registered users may post in this forum.

Click here to login