Welcome! Log In Create A New Profile

Advanced

Dual Z TMC5160 SKR1.4 Marlin 2.0 - Only One Stepper Rotating

Posted by reynolds087 
Dual Z TMC5160 SKR1.4 Marlin 2.0 - Only One Stepper Rotating
August 29, 2021 03:23PM
Hi, I recently tried to set up dual Z steppers rather than using the parallel sockets on the Z axis in the SKR 1.4 turbo board. I now have the Z2 stepper plugged into E1, but only the original Z stepper rotates. It seems like I have missed some settings or something, but I went through a tutorial to add dual Z and I think I configured everything correctly.

I already tried M500 followed by M502 after flashing the new firmware with no improvement.

Also, the results returned from M122 S1 shows a lot of variation between Z and Z2 even though in the configuration_adv.h file they have the exact same settings defined. I am attaching the configuration and configuration_adv files. Below is the output when I run the M122 command. Does anyone know what I am missing here?


	X	Y	Z	Z2	E
Enabled		false	false	false	true	false
Set current	900	1200	1800	900	800
RMS current	893	1195	1793	893	790
MAX current	1259	1685	2528	1259	1114
Run current	26/31	31/31	31/31	26/31	23/31
Hold current	13/31	15/31	15/31	13/31	11/31
Global scaler	130/256	147/256	220/256	130/256	130/256
CS actual	13/31	15/31	15/31	0/31	11/31
PWM scale	12	14	14	9	10
vsense						
stealthChop	true	true	true	false	true
msteps		16	16	16	256	16
interp		true	true	true	false	true
tstep		max	max	max	9	max
PWM thresh.					
[mm/s]						
OT prewarn	false	false	false	false	false
triggered
 OTP		false	false	false	false	false
off time	4	4	4	9	4
blank time	24	24	24	16	24
hysteresis
 -end		2	2	2	-3	2
 -start		1	1	1	1	1
Stallguard thrs	0	0	0	0	0
uStep count	8	8	8	9	8
DRVSTATUS	X	Y	Z	Z2	E
sg_result	0	0	0	9	0
stallguard					
fsactive					
stst					*	
olb						
ola						
s2gb						
s2ga						
otpw						
ot						
Driver registers:
		X	0x80:0D:40:00
		Y	0x80:0F:40:00
		Z	0x80:0F:40:00
		Z2	0x00:00:00:09
		E	0x80:0B:40:00
Attachments:
open | download - Configuration.h (107.4 KB)
open | download - Configuration_adv.h (166.4 KB)
Re: Dual Z TMC5160 SKR1.4 Marlin 2.0 - Only One Stepper Rotating
August 29, 2021 06:09PM
Nevermind, I figured it out. Actually was a combination of two issues, but the most important was that the jumpers on E1-CLS were no good. I used the ones that had broken a little bit when I pulled them off a while back. I assumed the damage was superficial, but they were actually not making a connection to the SPI pins on at least one of the headers. I put all new jumpers in and the Dual Z function seems to work now.I also had a loose shaft coupler on one side of the gantry that was intermittently slipping and exponentially adding to the confusion while trying to troubleshoot the electronics. Once I got that sorted out, it was a lot easier to narrow down the issue.
Re: Dual Z TMC5160 SKR1.4 Marlin 2.0 - Only One Stepper Rotating
September 19, 2021 01:05PM
Did you attached pins/port from E1 to Z2 in pin file(example: Marlin/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_V2.h)?

Example:

Before:

#define E1_ENABLE_PIN                       PA3
#define E1_STEP_PIN                         PD15
#define E1_DIR_PIN                          PA1
#ifndef E1_CS_PIN
  #define E1_CS_PIN                         PD8
#endif

#define E1_SERIAL_TX_PIN                  PD8
#define E1_SERIAL_RX_PIN                  PD8

After:

#define Z2_ENABLE_PIN                       PA3
#define Z2_STEP_PIN                         PD15
#define Z2_DIR_PIN                          PA1
#ifndef Z2_CS_PIN
  #define Z2_CS_PIN                         PD8
#endif

#define Z2_SERIAL_TX_PIN                  PD8
#define Z2_SERIAL_RX_PIN                  PD8

Pin file and ports have to suitable with you printer-board.

Edited 1 time(s). Last edit at 09/19/2021 01:07PM by madurani.
Re: Dual Z TMC5160 SKR1.4 Marlin 2.0 - Only One Stepper Rotating
September 20, 2021 01:24AM
@madurani

you dont need to do that.
As long as EXTRUDERS is set to 1 Marlin will automatically use the un allocated E1 steppers for Z2

Edited 1 time(s). Last edit at 09/20/2021 01:24AM by Dust.
Sorry, only registered users may post in this forum.

Click here to login