Wantai dq542ma Stepper Driver in errornous state when not moving
-
I have setup my printer to use external Wantai dq542ma stepper drivers.
In general this setup works fine, but the drivers report an errornous state (red light) when they are not executing movements.
As soon as there is movements commanded, they switch to the normal state (green light) and the move just fine.Now while this does work fine like this in regards to printing, the errornous state still indicates there is something wrong with the configuration somewhere.
Any ideas?
; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"My 3D-Printer" ; 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 R0 ; physical drive 0 is disabled (R0) M569 P1 S1 R0 ; physical drive 1 is disabled (R0) M569 P2 S1 R0 ; physical drive 2 is disabled (R0) M569 P3 S1 ; physical drive 3 goes forwards (E0) M569 P4 S1 ; physical drive 4 goes forwards (E1) M569 P5 S1 R1 ; physical drive 5 goes forwards (X) M569 P6 S1 R1 ; physical drive 6 goes forwards (Y-Left) M569 P7 S1 R1 ; physical drive 7 goes forwards (Y-Right) M569 P8 S1 R1 ; physical drive 8 goes forwards (Z-Left) M569 P9 S1 R1 ; physical drive 9 goes forwards (Z-Right) M584 X5 Y6:7 Z8:9 E3:4 ; set drive mapping M350 X1 Y1 Z1 E16 I0 ; configure microstepping with interpolation off M92 X80.00 Y80.00 Z400.00 E420.00 ; set steps per mm M566 X900.00 Y900.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2) M906 X800 Y800 Z800 E800 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X284 Y333 Z370 S0 ; set axis maxima ; Endstops M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop M574 Y1 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop M574 Z1 S1 P"zstop" ; configure active-high endstop for low end on Z via pin zstop ; Z-Probe M558 P2 C"zprobe.in+zprobe.mod" H5 F120 T3000 ; set Z probe type to modulated and the dive height + speeds G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height M557 X15:215 Y15: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 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S145 ; set temperature limit for heater 0 to 145C 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 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M308 S2 P"e1temp" Y"thermistor" T100000 B4138 ; configure sensor 2 as thermistor on pin e1temp M950 H2 C"e1heat" T2 ; create nozzle heater output on e1heat and map it to sensor 2 M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit ; Fans M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency M106 P0 S1 H-1 ; set fan 0 value. Thermostatic control is turned off M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency M106 P1 S1 H-1 ; set fan 1 value. Thermostatic control is turned off ; Tools M563 P0 S"Main Extruder" 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 M563 P1 S"Support Extruder" D1 H2 F1 ; define tool 1 G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C ; Custom settings are not defined ; Miscellaneous M575 P1 S1 B57600 ; enable support for PanelDue T0 ; select first tool
-
nothing I can see. but i would suggest checking out the driver timings.
typically external drivers need slightly longer step times etc.Here's what I use for my external TB6600's. They are part of the M569 gcode and would have to be altered to match your driver. This information should be available in their datasheet.
T2.5:2.5:5:0
-
per http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Stepper_Drive_Timing
T5.05:5.05:0.5:0.5
-
Are you sure that the red/green light doesn't just indicate whether the drivers are enabled or not? When the movement stops, do the LEDs remain green, or go back to red?
-
From https://openbuildspartstore.com/content/DQ542MA%20English%20Manual.pdf:
1, the status on light’s indication
RUN: green, normal work light.
ERR: red, failure light, the motor with phase short-circuit, overvoltage and undervoltage
protection.
-