TB6600 external drives
-
@dc42 step rate as in khz ( not quite sure ) or the microstepping limit? I’m using 32x for these external driver.
What is the default pulse time of the board?
-
@dc42 ; Configuration file for Duet WiFi (firmware version 1.21)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Mon Oct 15 2018 11:27:10 GMT-0500 (Central Daylight Time); General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Network
M550 PNamDuetTest ; Set machine name
M551 PTest123 ; Set password
M552 S1 ; Enable network
M587 S"Print Print" P"Nam123123" I192.168.2.100 ; Configure access point. You can delete this line once connected
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet; Drives
;M569 P0 S1 ; Drive 0 goes forwards
;M569 P1 S1 ; Drive 1 goes forwards
;M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M569 P4 S1 ; Drive 4 goes forwards
M569 P5 S1 T5 ; Drive 5 goes forwards
M569 P6 S1 T5 ; Drive 6 goes forwards
M569 P7 S1 T5 ; Drive 7 goes forwards
M569 P8 S1 T5 ; Drive 8 goes forwards
M584 X5 Y6:7 Z8 E3 ; Apply custom drive mapping
M350 X32 Y32 Z32 I0 ; Configure microstepping without interpolation
M350 E16 I1 ; microstep with interpolation
M92 X218.73852 Y218.73852 Z1259.84252 E418.5; Set steps per mm
M566 X900 Y900:900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
M203 X12000 Y12000:12000 Z180 E1200 ; Set maximum speeds (mm/min)
M201 X500 Y500:500 Z250 E250 ; Set accelerations (mm/s^2)
M906 X1600 Y1600:1600 Z1600 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 X1200 Y800 Z150 S0 ; Set axis maxima; Endstops
M574 X1 Y1 Z2 S0 ; Set active high endstops; Z-Probe
M558 P1 H10 F120 T6000 ; Set Z probe type to unmodulated and the dive height + speeds
G31 P500 X400 Y400 Z2.5 ; Set Z probe trigger value, offset and trigger height
M557 X30:1170 Y30:770 S20 ; Define mesh grid; Heaters
M140 H-1 ; Disable heated bed
M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C
;M305 P2 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
;M143 H2 S280 ; Set temperature limit for heater 1 to 280C; Fans
M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F500 H T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 S1 I0 F500 H T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on; Tools
M563 P0 D0 H1 ; Define tool 0
M563 P1 D1 H2 ; Define tool 1
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
G10 P1 X100 Y0 Z0 ; Set tool 0 axis offsets
G10 P1 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C; Automatic saving after power loss is not enabled
; Custom settings are not configured
-
@dc42
even when I commented the P0 out with ; , it stills runs when I tested M584 X0 .
But still no motion from external drive 5 6 7 8. -
This post is deleted! -
This is the similar thread but ut is locked out
https://forum.duet3d.com/topic/4935/wiring-up-external-dq542ma-stepper-motor-driver/6Exactly what I am doing but still no clear answer...
And I got 3.7V on dir- and dir+ when I was trying to home...
-
Have you tried using the M569 T parameters that were published in the last post in that thread?
-
@dc42 I tried. I think my driver is bad. I'm buying new ones. I will report the results soon
Thanks so much -
@dc42
I got it to run!!!Now here is a new issue. When I run test all motors, I edited to have 32x microstepping. An error pop up saying M350 drive Z does not support 32x microstepping... what is the deal?
-
@namlecnc M350 sets the internal stepper driver microstepping (over SPI). As you are using an external driver the firmware cannot set the microstepping on the driver, you do that in some other way (normally Dip switches). If you set the steps/mm (M92) correctly for whatever microstepping you use on that external drive that will work.
-
@t3p3tony
Yes this is on external drivers(xyz) so m350 for xyz doesn’t matter but the m92 steps per unit (mm) is the deciding factor?Thanks a bunch!
-
@namlecnc yes. just use M350 for any internal drivers.
-
@namlecnc Can you let us know what you did to fix the issue you were having getting the TB6600 to run?
-
@t3p3tony TB6600 does not work.
I have to change to a more expensive DM542SI have it running now. At 32x , it runs ebrry time now. 128x doesn’t work.
-
I am also having issues getting my external drive to work. I attempted to wire the
+(STEP,DIR,EN) to the 5V on the Heater Pins on the expansion, to see if the voltage of the expansion breakout was too low. This did not change my stepper motor behavior (it just vibrates after a few X+1 commands.See thread here for more information: https://forum.duet3d.com/topic/7703/closed-loop-control-of-stepper-motors-with-rotary-encoder/24
-
@sean, as a follow on. ENA+ is by default at 3.35 V.
If the schematic above says >3.5 V, would 3.35V be an issue? If it were, I would imagine wiring all the + leads to 5V would have remedied my issue.
-
@sean The CL57T manual says in 3.1.1 the high mode to be 4.5 to 24 volts, low between 0 to 0.5
-
@joergs5 If this were the issue, wouldn't it have worked when I wired all of the + leads to +5V?
-
@sean I only meant it's not 3.5 volts, but higher. I don't think this is the reason. I suspect timing problems (2.5 us too short or acceleration / speed too high).
-
@joergs5 ah, thanks for pointing that out. I have the T parameter in M569 set to T10 right now - I saw a post from dc42 that said it would limit the step rate, but otherwise cause no problems. I'll leave it there for now to make sure all other things are working, and then decrease the timing later.
Regarding acceleration / speed, this is just with the motor sitting on the table, no load, and only commanding +1 mm movements. Acceleration and speed shouldn't be a factor yet.
-
In short, don’t use tb6600