Alternate Trinamic Drivers
-
@3dpmicro which was what?
-
@dougal1957 said in Alternate Trinamic Drivers:
@3dpmicro which was what?
What are you referring to? The initial problem?
-
The Answer
-
@dougal1957. No solution yet. Narrowed it down though. It's either the sequence in which I am powering it up- 35v to the driver then power up Duet, Can't drive 4988 or 2130 from expansion or conn_lcd pins or something in firmware. Killed 4 drivers so far but not sure at exactly what point. Checked wiring many times. Have 3 more drivers coming to try again. Bizarre. Also plan to try a different capacitor on motor voltage side
Tried on both of the Duets I have with same result -
@dc42
Would you mind looking at my config file? I have the 2130 configured and working correctly but the endtop is not right. If I put the T0 in the M584 command it triggers an E-stop (as expected) when the axis hits the endstop after homing X so the E2 end stop pin is right. Im confused about what "T" value is needed to execute the homex. Also drive 5 is showing the switch triggering. But need drive 0 to see this?
Also if I remove the M581, put X1 back into M574 and plug in to normal X stop pins it triggers "endstop hit" for drive 0 in machine properties but still doesnt work when attempting to home.; Configuration file for Duet Ethernet (firmware version 1.20 or newer)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Mon May 07 2018 21:27:03 GMT-0400 (Eastern Daylight Time); General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Network
M550 PBoard 1 ; Set machine name
M552 P192.168.0.68 S1 ; Enable network and set IP address
M553 P255.255.255.0 ; Set netmask
M554 P192.168.1.254 ; Set gateway
M586 P0 S1 ; Enable HTTP
M586 P1 S1 ; Enable FTP
M586 P2 S0 ; Disable Telnet; Drives
M569 P5 R0 S1 T2.5:2.5:5 ; 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
M584 X5 Y1 Z2 E5 ; Apply custom drive mapping
M350 X16 ; Configure microstepping with interpolation
M350 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
M92 X320 Y320 Z1600 E420 ; Set steps per mm
M566 X36000 Y36000 Z1200 E120 ; Set maximum instantaneous speed changes (mm/min)
M203 X6000 Y6000 Z3000 E1200 ; Set maximum speeds (mm/min)
M201 X2000 Y20 Z250 E250 ; Set accelerations (mm/s^2)
M906 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 S0 ; Set axis minima
M208 X230 Y210 Z200 S1 ; Set axis maxima; Endstops
M574 Y1 S0 ; Set active LOW endstops
M581 E2 S1 C0 ;T0
; Z-Probe
M558 P0 H5 F120 T6000 ; Disable Z probe but set dive height, probe speed and travel speed
M557 X15:215 Y15:195 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; Fans
M106 P0 S0.3 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
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 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
-
M584 maps drives, not endstop inputs. If you map drive X to driver 5, you still need to connect the X endstop to the X endstop input on the Duet.
-
With it plugged in to the X stop under the Machine properties list drive 0 is toggling yes/no but it runs in to the end stop when homex button is pressed. This is how my config looks set up that way-
; Drives
M569 P5 R0 S0 T2.5:2.5:5 ; Drive 5 ENB low, backwards, TMG stp pls, stp intvl, DIR su time
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M584 X5 Y1 Z2 E5 ; Apply custom drive mapping
M350 X16 Y16 ; Configure microstepping TMC2130 no interp. spread cycle
M350 Z16 E16 T1 ; Configure microstepping with interpolation
M92 X320 Y320 Z1600 E420 ; Set steps per mm
M566 X2000 Y2000 Z1200 E120 ; Set maximum instantaneous speed changes (mm/min)
M203 X40000 Y40000 Z3000 E1200 ; Set maximum speeds (mm/min)
M201 X4000 Y4000 Z250 E250 ; Set accelerations (mm/s^2)
M906 Y800 Z800 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Endstops
M574 X1 Y1 S1 ; Set active high endstops normally closedIn case for a second you might have wondered
I M564'd the end stops so I could test the TMC2130.
-10 mm lead ball screw, 100 mm stroke, 3kg load, 2.1 amp nema 17 set to 1.68 amps with the 2660 on 24v= maximum speed of 19,800 mm/m, 4000 acceleration--10 mm lead ball screw, 100 mm stroke, 3kg load, 2.1 amp nema 17 set to 1.2 amps with the 2130LA on 44v= maximum speed of 30,000 mm/m, 4000 acceleration
-
Please post your homex.g file.
-
; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool on Mon May 07 2018 21:27:03 GMT-0400 (Eastern Daylight Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ;lift Z relative to current position
G1 S1 X-235 F1800 ; move quickly to X axis endstop and stop there (first pass)
G1 X5 F6000 ; go back a few mm
G1 S1 X-235 F360 ; move slowly to X axis endstop once more (second pass)
G1 Z-5 F6000 S2 ;lower Z again
G90 ; absolute positioning -
That part of your config.g file looks OK, so does homex.g. So if the "drive 0" endstop shows the correct status in DWC Machine Properties and/or in M119, you should be able to home X by itself. That is assuming that you don't have another M574 command somewhere else that is overriding the one you published.
-
@dc42
I cant see any conflicts. one thing I did notice was if I changed the speed in the first X move in homex.g to 180 from 1800 mm/m to give me time to press the switch by hand while the axes was moving towards home the motor sped up after pressing it so its seeing the switch
I was able to determine that the speed at which the motor sped up to is the programmed speed in the next G1, X move which is "; go back a few mm"next I copied and pasted the homex example from dozuki doc. "Configuring RepRapFirmware for a Cartesian printer" and it slowed down after hitting the switch manually on its way to home which is how it is written.
G91 ; relative mode
G1 Z4 S2 F200 ; raise head to avoid dragging nozzle over the bed
G1 X-240 F3000 S1 ; move up to 240mm in the -X direction, stopping if the homing switch is triggered
G1 X4 F600 ; move slowly 4mm in the +X direction
G1 X-10 S1 ; move slowly 10mm in the -X direction, stopping at the homing switch
G1 Z-4 S2 F200 ; lower the head again
G90 ; back to absolute modeseems the S1 is not producing the desired effect. Before this test with homex.g I have not changed any other FW files except for config.g. Sorry to be a PITA