Firmware Configuration for external drivers.



  • Hello, my name is Samuel Gonzalez from Mexico, I built a Cartesian 3D printer with large dimensions 800mm * 800mm * 800mm, I installed a Duet3D Wifi and a Duet expansion break board to install steppers TB6600 external drivers (these need 5V) and Nema steppers motor 23, the help I need is that I can not configure the firmware, I can not get the machine to move, I think it's a firmware configuration problem.
    The distribution of the stepper motors is as follows:
    X axis 1 stepper motor (nema 23)
    Y axis 2 motor stepper (nema 23)
    Z axis 4 stepper motor (nema 23)
    Extruder 1 stepper motor (nema 17)
    All the possible help is appreciated.


  • administrators

    Please post your config.g file.



  • ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Wed Jun 05 2019 20:40:35 GMT-0500 (hora de verano central)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Network
    M550 P"My Printer" ; Set machine name
    M552 S1 ; Enable network
    M587 S"AXTEL-4B37" P"password" ; Configure access point. You can delete this line once connected
    M586 P0 S1 ; Enable HTTP
    M586 P1 S1 ; Enable FTP
    M586 P2 S1 ; Enable Telnet

    ; Drives
    M569 P8 S1 ; Physical drive 8 goes forwards
    M569 P7 S1 ; Physical drive 7 goes forwards
    M569 P6 S1 ; Physical drive 6 goes forwards
    M569 P5 S1 ; Physical drive 5 goes forwards
    M584 X8 Y7 Z6:9 E5 ; Apply custom drive mapping
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80.00 Y80.00 Z4000.00 E420.00 ; Set steps per mm
    M566 X900.00 Y900.00 Z12.00 E120.00 ; Set maximum instantaneous speed changes (mm/min)
    M203 X18000.00 Y18000.00 Z300.00 E1200.00 ; Set maximum speeds (mm/min)
    M201 X3000.00 Y3000.00 Z100.00 E250.00 ; Set accelerations (mm/s^2)
    M906 X1900.00 Y1900.00 Z1900.00 E800.00 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 X430 Y430 Z450 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y2 S1 ; Set active high endstops

    ; Z-Probe
    M574 Z1 S2 ; Set endstops controlled by probe
    M558 P9 H5 F120 T6000 ; Set Z probe type to unmodulated and the dive height + speeds
    G31 P500 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
    M557 X15:11 Y15:195 S20 ; Define mesh grid

    ; Heaters
    M305 P0 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; Set temperature limit for heater 1 to 280C

    ; Fans
    M106 P0 S0 I0 F500 H T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 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 power saving
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    ; Custom settings are not configured

    Thank you for the attention, now i have connected all the positives of the x driver to the 5v pin on the PMW7 and the motors still not moving



  • Have you tried running the NEMA23 motors directly from the Duet's TMC2660 drivers?

    I bought the expansion breakout board thinking I would use my external drivers but my motors work great with the on-board drivers.



  • I still do not try to use the internal drivers, because I have many nema 23 stepper motors , for example, the Z axis has 4 independent motors. Can the internal drivers control the current and amperage demand they require without damaging the card?
    Regards.



  • I guess not, you'd use one driver per motor, meaning using the DueX. Some external drivers have tuning circuits that would get confused by multiple motors, it's worth checking if that's what you are planning.



  • The 4 independent stepper motors of the z axis are to be able to level the bed, since the printer is a big machine, how could you configure the firmware ?, I would like to use the expansion breakout to be able to control all the stepper motor, (in total 8 stepper motors).
    Regards.



  • @samgles four screws rather than three is generally a bad idea from an over constraint perspective.

    That aside read the following:

    https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors



  • The machine is already manufactured, now the importatnye is to try, just that I have no experience with the firmware, I need help to configure.
    regards


  • administrators

    Your M569 commands in config.g do not have the T parameters that you need to slow down the step pulse timing for external drivers. See https://duet3d.dozuki.com/Wiki/Gcode#Section_M569_Set_motor_driver_direction_enable_polarity_and_step_pulse_timing. For some external drivers, the Enable input is actually a Disable input and you need to swap the ENA+ and ENA- wires, or use the M569 R parameter to invert the Enable polarity.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.