Configure 2nd Z Axis Stepper
-
I am configuring a Duet 2 WiFi on a Lulzbot TAZ Workhorse. Everything overall is going quite well. Wiring, firmware update and configuration...no issues. I'm in the middle of the commissioning process and I've run into something weird. I am on step 10 "Check Stepper Motors" section. The Z stepper on the right side isn't working. The weird part is it moves freely which tells me there is no power going to it. Based on that, my first guess was to check the wiring. I simply bypassed the cable with a brand new one ensuring a good connection. No change. I compared my config to other printers I have and its seems correct to me. However, I am no expert. Here is my config.g for reference. Please feel free to look for any other errors in the config as well since its a fresh one. TYIA!
; Configuration file for Duet WiFi (firmware version 3.4.6)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.3.16 on Sun Oct 08 2023 20:39:34 GMT-0400 (Eastern Daylight Time); General preferences
M575 P1 S1 B57600 ; enable support for PanelDue
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Lulzbot Workhorse" ; set printer name; Network
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; Drives
M569 P0 S1 ; X physical drive 0 goes forwards
M569 P1 S1 ; Y physical drive 1 goes forwards
M569 P2 S0 ; Z Left physical drive 2 goes backwards
M569 P3 S1 ; Z Right physical drive 3 goes forwards
M569 P4 S1 ; E physical drive 4 goes forwards
M584 X0 Y1 Z2:3 E4 ; set drive mapping
M350 X16 Y16 Z16:16 E16 I1 ; configure microstepping with interpolation
M92 X100.00 Y100.00 Z500.00 E397.00 ; set steps per mm
M566 X480.00 Y480.00 Z24.00 E120.00 ; set maximum instantaneous speed changes (mm/min) - Jerk
M203 X18000.00 Y18000.00 Z1800.00 E1500.00 ; set maximum speeds (mm/min)
M201 X2400.00 Y2400.00 Z20.00 E250.00 ; set accelerations (mm/s^2) - Acceleration
M906 X750 Y750 Z1180 E730 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X-47 Y-7 Z0 S1 ; set axis minima
M208 X280 Y280 Z285 S0 ; set axis maxima; Endstops
M574 X1 S1 P"xstop" ; configure Active High switch-type (e.g. microswitch) endstop for low end on X via pin xstop
M574 Y1 S1 P"ystop" ; configure Active High switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
M574 Z2 S1 P"zstop" ; configure Active High switch-type (e.g. microswitch) endstop for high end on Z via pin zstop; Z-Probe
M950 S0 C"exp.heater3" ; create servo pin 0 for BLTouch
M558 P9 C"^zprobe.in" H30 F180 T9000 ; set Z probe type to bltouch and the dive height + speeds
G31 P500 X49.7 Y-19.3 Z3 ; set Z probe trigger value, offset and trigger height, If you have to move the nozzle closer to the bed, increase the G31 Z value by the amount of baby stepping used. If you have to move the nozzle farther away from the bed, decrease the G31 Z value by the amount of baby stepping used.
M557 X-32:215 Y8:195 S20 ; define mesh grid; Heaters
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
M307 H0 R0.324 K0.247:0.000 D1.79 E1.35 S1.00 B0 ; disable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 R5.155 K1.471:0.000 D1.93 E1.35 S1.00 B0 V24.3 ; disable bang-bang mode for heater and set PWM limit, PID Completed 2OCT2023
M143 H1 S300 ; set temperature limit for heater 1 to 300C; Fans
M950 F0 C"fan1" Q500 ; create fan 0 on pin fan1 and set its frequency
M106 P0 C"Heat Sink Fan" S1 H1 T45 ; set fan 0 name and value. Thermostatic control is turned on
M950 F1 C"fan2" Q500 ; create fan 1 on pin fan2 and set its frequency
M106 P1 C"Part Cool Fan" S1 H-1 ; set fan 1 name and value. Thermostatic control is turned off; Tools
M563 P0 D0 H1 F0 ; define tool 0
G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C; Custom settings are not defined
-
@SonnyD1 have you tried swapping the 2 z stepper over to see if the fault stays on the same driver?
do you have another spare stepper driver you can try?
-
@SonnyD1 Is there a chance your stepper motor is fried? You can use a multimeter and measure the resistance of both phases (should be in the single digit Ohms). Alternatively you can short one phase together, this should make turning the stepper shaft by hand more difficult. Try for both phases.
Your config looks good.
You can also try swapping the two Z motors.
Also: Never unplug a stepper motor when it's energized. Either turn the machine off first or send
M18
to disable all motors.M17
reenables the motors. -
@moth4017 I suppose it could be a bad stepper although its very unlikely. I have several others I could try in its place. @nikscha made a good suggestion of swapping the two Z axis steppers. I'm gonna just plug a random stepper and test it just holding it in my hand so I don't have to tear the printer apart. If the config is good then the only thing left is the wiring and the motor. I've bypassed the wiring with a new one so I'm certain its not the wiring. I'll get back with ya. Thanks for the reply...both of you.
-
@SonnyD1 said in Configure 2nd Z Axis Stepper:
M350 X16 Y16 Z16:16 E16 I1
Remove the second 16 value from Z. You only need to set it per axis, not motor.
Can you share a photo of the wiring at the duet side just to confirm which drivers you're actually using?
-
@Phaedrux
Not sure if you can make it out in that mess. Working progress and all. They are plugged in as follows:
X axis - Xstep
Y axis - Ystep
Left Z - Zstep
Right Z - E1step
Extruder - E0step -
SO I think I've managed to isolate the issue. I tried another stepper I had that I know works on the same driver and it did't work either. So I tried that motor on the one that I know that does to confirm. The wiring is good and all motors are good. The only thing left that I can't check is the driver. Is there a way that I can confirm that I have a bad driver?
-
Do you get any error messages after trying to move the suspect driver?
Can you share the results of M122 after trying to move the driver?
Did you remove that duplicate 16 value from M350? -
@Phaedrux I don't get any error messages when moving the Z axis. One motor (Z Left) moves and the one on the right does nothing. I've confirmed that it's not the motor or the wiring by running both motors with both cables on the Zstep driver. I cant get anything to work on the E1step driver. I removed the duplicate 16 value from the M350 line before running the tests. Here are the results from the M122 taken immediately after tests:
M122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 3.4.6 (2023-07-21 14:08:28) running on Duet WiFi 1.02 or later
Board ID: 0JD0M-9P6M2-NWNS0-7J9D4-3SD6K-1V33L
Used output buffers: 1 of 26 (14 max)
=== RTOS ===
Static ram: 23896
Dynamic ram: 74944 of which 0 recycled
Never used RAM 13240, free system stack 184 words
Tasks: NETWORK(notifyWait,13.3%,242) HEAT(notifyWait,0.0%,333) Move(notifyWait,0.0%,363) MAIN(running,86.2%,436) IDLE(ready,0.4%,30), total 100.0%
Owned mutexes: WiFi(NETWORK)
=== Platform ===
Last reset 00:03:35 ago, cause: software
Last software reset at 2023-10-10 21:49, reason: User, GCodes spinning, available RAM 13168, slot 0
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
Aux0 errors 0,0,0
Step timer max interval 0
MCU temperature: min 31.5, current 32.3, max 32.8
Supply voltage: min 24.1, current 24.3, max 24.7, under voltage events: 0, over voltage events: 0, power good: yes
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Events: 0 queued, 0 completed
Driver 0: standstill, SG min n/a
Driver 1: standstill, SG min n/a
Driver 2: standstill, SG min n/a
Driver 3: standstill, SG min n/a
Driver 4: standstill, SG min n/a
Driver 5:
Driver 6:
Driver 7:
Driver 8:
Driver 9:
Driver 10:
Driver 11:
Date/time: 2023-10-10 21:52:41
Cache data hit count 4294967295
Slowest loop: 5.77ms; fastest: 0.18ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest read time 3.2ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters 0 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is idle in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
Daemon is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty
=== Network ===
Slowest loop: 12.68ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
HTTP sessions: 1 of 8
= WiFi =
Interface state: active
Module is connected to access point
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.27
WiFi MAC address f4:cf:a2:71:b4:05
WiFi Vcc 3.35, reset reason Power up
WiFi flash size 2097152, free heap 19896
WiFi IP address 192.168.1.137
WiFi signal strength -52dBm, mode 802.11n, reconnections 0, sleep mode modem
Clock register 00002002
Socket states: 0 0 0 0 0 0 0 0 -
@moth4017 I've isolated the issue to the E1step driver that my right Z stepper is plugged into. Swapping wires and motors the fault stays on the same driver. I do not have another driver that I can try.
-
When and where did you purchase the board?
-
@Phaedrux I ordered it from Filastruder on June 13 (#95005). I had some life events come up which is why I'm only just now working on it.
-
Please send an email to warranty@duet3d.com and CC your reseller. Include a link to this forum thread and the details of your original purchase. You'll receive a reply with a form to fill out.
-
@Phaedrux I did as you advised and sent that email. I haven't yet received a reply.