M915 Not Working!



  • I turned on M929 for logging and setup the M915 command for stall detection but its not doing anything when the motors stalls. I am using TMC2660 motor drivers and have tried setting the sensitivity to max even but still no response at all when the motor stalls. There is no record of any logging when the motor stalls so I am confused as to what to do in order to fix this.



  • Have you followed this guide? https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing
    If you can give some more information about your printer, eg CoreXY/Cartesian, motors, voltage, and post your config.g, that should go some way to help diagnose the problem. You haven't given us much to go on!

    Ian



  • Yes I've followed that guide, I believe that printer i CoreXY, the motors I use are 23HM22-2804S Stepper Motors that are powered with a 24V input and are rated to run at 2.8 Amps but I run them around 1 Amp. Here is the config.g file, the firmware currently running on the printer is version 2.03

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Fri Oct 05 2018 15:32:43 GMT-0500 (Central Daylight Time)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves
    M555 P1 ; Set firmware compatibility to look like RepRapFirmare

    M575 P1 B57600

    M929 P"eventlog.txt" S1 ;LOGGING ENABLED

    ; Network
    M550 PEMU ; Set machine name
    M552 S1 ; Enable network
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet
    ;
    ; Drives
    M584 X0 Y2:5 Z1 U7 E3:4:6 ; Apply custom drive mapping (added 7 for cylinder rotation)
    M569 P0 S0 ; Drive 0 goes forwards (x)
    M569 P1 S0 ; Drive 1 goes forwards (z)
    M569 P2 S0 ; Drive 2 goes backwards (Y Left)
    M569 P3 S1 ; Drive 3 goes forwards (chimera left extruder)
    M569 P4 S1 ; Drive 4 goes forwards (chimera right extruder)
    M569 P5 S0 ; Drive 5 goes backwards (Y Right)
    M569 P6 S0 ; Dive 6 goes forwards (ink needle)
    M569 P7 S0 ; Drive 7 goes forwards (cylinder rotate)
    ;M569 P8 S0 ;Drive 8 goes forwards (Mixing motor 2) ***added by -CR
    ;M569 P9 S0 ;Drive 9 *** added by CR

    M350 X16 Y16 Z16 E16:16:16 ;U16 ; Configure microstepping with interpolation ***added referenced for drives 7,8,9
    M92 X3200 Y3200 Z3200 E837:837:5039.37 ;U101.5 ; Set steps per mm *(rotating cylinder: Nema 17 1.8degree microstepped (16th) R65.95 Gear)
    M566 X150 Y100 Z200 E200:200:100 U150 ; Set maximum instantaneous speed changes (mm/min) *******added referenced for drives 7 & 8
    M203 X750 Y500 Z750 E3600:3600:300 U1500 ; Set maximum speeds (mm/min) *******added referenced for drives 7 & 8
    M201 X100 Y60 Z100 E350:350:250 U150 ; Set accelerations (mm/s^2) *******added referenced for drives 7 & 8
    M906 X2000 Y2100 Z1800 E800:800:500 U1000 I30 ; Set motor currents (mA) and motor idle factor in per cent *******added referenced for drives 7 & 8
    ;M84 U7 S1
    M84 X0 Y2:5 Z1 E3:4:6 S30 ; Set idle timeout ***added referenced for drives 7 & 8
    M915 Y S-60 F0 H200 R1 ;cR Motor stall detection

    ; Axis Limits
    ;M208 X0:50 Y0:300 Z0:128.1 ;set max and min for axis travel
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X248 Y300 Z128.10 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 Z2 E1 S0 ; Set active low endstops
    ;M574 Z0 S0 ; active low for opto switch

    ; Z-Probe (for taped area of bed)
    ;M558 P1 H1 F35 T750 ; enable (P1) laser, set dive height, probe speed and travel speed
    ;M557 X2:252 Y70:280 S60 ; Define mesh grid

    M558 P0 H0.5 F35 T700 ;CR
    M557 X0:120 Y0:120 S120 ;CR
    ;G31 P220 X23.1 Y6.5 Z85 ; Set z trigger value, x and y offsets, and trigger height

    ; Heightmap for Mesh Bed Leveling
    ;M375 ; loads latest heightmap

    ; Heaters
    M305 P0 T100000 B4138 ; Set thermistor + ADC parameters for heater 0 BED
    M143 H0 S165 ; Set temperature limit for heater 0 to 150C
    M305 P1 T100000 B4725 C7.06e-8 ; Set thermistor + ADC parameters for heater 1 CHIMERA Left Hot End
    M143 H1 S410 ; Set temperature limit for heater 1 to 410C
    M305 P2 T100000 B4725 C7.06e-8 ; Set thermistor + ADC parameters for heater 2 CHIMERA Right Hot End
    M143 H2 S410 ; Set temperature limit for heater 2 to 285C
    M305 P3 T100000 B3974 ; heater 3 is monitored by a 100K thermistor? with B=3974 and a 4.7K series resistor Chamber Heater (2nd Bed)
    M143 H3 S125;

    ; Fans
    M106 P3 T75 S255 H1:2 ; water cooling pump and fan turn on full speed(255) after temp reaches (20C) (running when duet is turned on to flush before adding coolant 10/10)
    M106 P4 T75 S255 H1:2 ;

    ; Tools
    M563 P0 D0 H1 S"Left Hotend" ; Define Tool 0 (chimera left hot end)
    G10 P0 X54.4 Y-23.1 Z-4.95 ; Set tool 0 axis offsets (need to be measured) ***(larger negative Z value is further away from the bed)
    ;G10 P0 R190 S240 ; Set initial tool 0 active and standby temperatures to 0C

    M563 P1 D0 H2 S"Right Hotend" ; Define Tool 1 (chimera right hot end)
    ;G10 P1 X74.2 Y-23.3 Z-4.95
    G10 P1 X0 Y0 Z0 ;cr
    ; Set tool 1 axis offsets (need to be measured) ***(larger negative Z value is further away from the bed)
    ;G10 P1 R145 S165 ; Set initial tool 1 active and standby temperatures to 0C

    M563 P2 D2 S"MicroDispense" ; Define Tool 2 (ink extruder)
    ;G10 P2 X0 Y0 Z0 ; Set tool 2 axis offsets (need to measured)

    ;M563 P3 D3:4 ;Mixing head tool *D3:4(not 4:5 -chaz)
    M563 P4 H3 S"Chamber Heater"

    M564 H0 S0; allow move before homing and move outside axis limits
    ;M564 H0 S1; allow move before homing and disallow move outside axis limits
    ;M564 H1 S1; disallow move before homing and outside axis limits

    ; Pressure Advance
    M572 D0 S1; set pressure advance to 1 for extruder 0 (left hot end)
    M572 D1 S1; set pressure advance to 1 for extruder 0 (right hot end)

    ;Mixing Head
    M567 P3 E0.5:0.5;

    ;Heater Fault Settings
    M570 H1 P30 T50 S15
    M570 H2 P30 T50 S15
    M570 H3 P30 T50 S15

    ; Allow cold extrude
    M302 P1

    ; Automatic saving after power loss is not enabled

    ; Custom settings are not configured


  • administrators

    @nickpm said in M915 Not Working!:

    I turned on M929 for logging and setup the M915 command for stall detection but its not doing anything when the motors stalls. I am using TMC2660 motor drivers and have tried setting the sensitivity to max even but still no response at all when the motor stalls. There is no record of any logging when the motor stalls so I am confused as to what to do in order to fix this.

    How have you tested this? Logging stalls only occurs during printing from SD card, not when you send movement commands manually.



  • Is it possible to change the firmware to allow it to monitor the stall detection under manual moves as well as regular moves.


 

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