Start/Stop print Stall detected on driver(s)



  • Hi,

    I build a new Delta and all works, with sensorless homing, Auto Delta Calibration and mesh.

    G28 and G32 works fine from the Web GUI, manual started.

    But within Simplify 3D i have at the start of the print Stall detected on driver(s) printer paused, then i can resume and start the print.

    After the print with the end Script i have the same issue Stall detected on driver(s) and the printer paused.

    My start Script in Simplify:

    G28		; Home
    G32		; Home and calibrate
    G1 Z5	        ; Lift Z 5mm
    M300 S500 P1000	; Play Beep
    M572 D0 S0.25	; Set Linear
    

    My end Script in Simplify:

    M106 P0 S0  ; Turn off Fan 0
    M104 S0     ; Turn off Extruder
    M140 S0     ; Turn off Bed
    G28 	    ; Home XYZ,
    M84 	    ; Disable motors
    

    Simplify produced G-Code:

    G90
    M83
    M106 S255
    G4 P500
    M106 S0
    M140 S70
    M190 S70
    M104 S220 T0
    M109 S220 T0
    G28		; Home
    G32		; Home and calibrate
    G1 Z5	
    M300 S500 P1000	; Play Beep
    M572 D0 S0.25	; Set Linear Advance
    G1 E-4.0000 F3600
    G1 Z0.150 F1200
    ; process Process1
    ; layer 1, Z = 0.150
    T0
    ; tool H0.150 W0.450
    ; skirt
    G1 X26.575 Y-19.455 F9000
    G1 E4.0000 F1080
    G1 X26.575 Y19.455 E1.0920 F2400
    G1 X26.335 Y20.034 E0.0176
    

    Home Delta:

    M915 X Y Z S2 R2 F0	    		; set stall detect drives, S-threshold (-64 to 63), F1 filtered, R-log only
    M400					; make sure everything has stopped before we make changes
    M913 X50 Y50 Z50			; reduce motor current to 50% to prevent belts slipping
    G91					; use relative positioning
    G1 S1 X700 Y700 Z700 F3000		; move all carriages up 700mm, stopping at the endstops
    G1 Z-35 F2000				; down a few mm so that we can centre the head
    G90					; back to absolute positioning
    M400					; make sure everything has stopped before we reset the motor currents
    M913 X100 Y100 Z100			; motor currents back to normal
    G1 X0 Y0 F2000				; centre the head and set a reasonable feed rate
    M915 X Y Z S1 R0 F0			; Disable stall for prevent false detect
    

    Config:

    ; Configuration file for Duet WiFi (firmware version 1.20 or newer)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Fri Jun 22 2018 21:51:49 GMT+0200 (CEST)
    
    ; General preferences
    G90                             ; Send absolute coordinates...
    M83                             ; ...but relative extruder moves
    
    ;*** The homed height is deliberately set too high in the following - you will adjust it during calibration.
    M665 R125 L288 B125 H416        ; Set delta radius, diagonal rod length, printable radius and homed height
    M666 X0 Y0 Z0                   ; Put your endstop adjustments here, or let auto calibration find them
    
    ; Network
    M550 PNXT Delta Marc            ; Set machine name
    M552 S1                         ; Enable network
    M587 S"Macao" P"IRIZwlan"       ; 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 / TOFF-> https://forum.duet3d.com/topic/5392/does-m906-set-rms-or-peak-current/38
    M569 P0 S1               ; Drive 0 goes forwards
    M569 P1 S0               ; Drive 1 goes forwards
    M569 P2 S0               ; Drive 2 goes forwards
    M569 P3 S0               ; Drive 3 goes forwards
    
    M350 X16 Y16 Z16 E16 I1         ; Configure microstepping with interpolation
    M92 X160 Y160 Z160 E476.55      ; Set steps per mm
    
    M566 X1200 Y1200 Z1200 E1200    ; Set maximum instantaneous speed changes (mm/min)
    M203 X18000 Y18000 Z18000 E18000 ; Set maximum speeds (mm/min)
    M201 X1000 Y1000 Z1000 E1000    ; Set accelerations (mm/s^2)
    
    M906 X1200 Y1200 Z1200 E1000 I30; Set motor currents (mA) and motor idle factor in per cent
    
    M84 S1                          ; Set idle timeout
    
    ; Axis Limits
    M208 Z0 S1                      ; Set minimum Z
    
    ; Endstops
    M574 X2 Y2 Z2 S3                ; Set endstops controlled by motor load detection
    
    ; Z-Probe
    M558 P5 R0.4 H5 F1200 T6000     ; Set Z probe type to effector and the dive height + speeds
    G31 P100 X0 Y0 Z-0.1            ; Set Z probe trigger value, offset and trigger height
    M557 R125 S20                   ; Define mesh grid
    
    ; Heaters
    ;Bed
    M143 H0 S100                        	  ; Set the maximum bed temperature in c-default is 110c
    M305 P0 T100000 B3950            	  ; Bed thermistor
    M307 H0 A203.7 C745.2 D2.6  B0	          ; Set bed to use PID mode
    
    ;E3D
    M143 H1 S285                        	  ; Set the max temp of the hot-end in c-default is 280c
    M305 P1 B4725 C7.060000e-8		  ; E3D thermistor
    M307 H1 A324.6 C134.8 D3.7  B0		  ; Set E3D to use PID mode
    
    ; 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 H1 T45       ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P2 S1 I0 F500 H1 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
    
    M501				; Load stored parameters sys/config-override.g
    

    Config override:

    ; This is a system-generated file - do not edit
    ; Delta parameters
    M665 L288.000 R149.171 H419.739 B125.0 X-0.061 Y0.008 Z0.000
    M666 X-0.112 Y-0.161 Z0.273 A-0.21 B0.45
    ; Heater model parameters
    M307 H0 A90.0 C700.0 D10.0 S1.00 V0.0 B1
    M307 H1 A490.7 C264.7 D4.1 S1.00 V24.4 B0
    M307 H2 A340.0 C140.0 D5.5 S1.00 V0.0 B0
    M307 H3 A340.0 C140.0 D5.5 S1.00 V0.0 B0
    M307 H4 A340.0 C140.0 D5.5 S1.00 V0.0 B0
    M307 H5 A340.0 C140.0 D5.5 S1.00 V0.0 B0
    M307 H6 A340.0 C140.0 D5.5 S1.00 V0.0 B0
    M307 H7 A340.0 C140.0 D5.5 S1.00 V0.0 B0
    
    

  • administrators

    I suspect that the stall is occurring in the G28 homing move when the endstop switch is triggered and the motor is stopped abruptly. Try reducing the speed of the initial G1 S1 homing move in homedelta.g.



  • Hi,

    I don't think is the speed, I change now my home all to:

    M915 X Y Z S2 R2 H400 F0    		; set stall detect drives, S-threshold (-64 to 63), F1 filtered, R-log only
    					; Hnnn (optional) Minimum motor full steps per second for stall detection 
    					; to be considered reliable, default 200 (try 400 for 0.9deg motors)
    M400					; make sure everything has stopped before we make changes
    M913 X50 Y50 Z50			; reduce motor current to 50% to prevent belts slipping
    G91					; use relative positioning
    G1 S1 X700 Y700 Z700 F3000		; move all carriages up 700mm, stopping at the endstops
    ;G1 Z-35 F1500				; down a few mm so that we can centre the head
    M400					; make sure everything has stopped before we reset the motor currents
    M913 X100 Y100 Z100			; motor currents back to normal
    G1 X0 Y0 F2000				; centre the head and set a reasonable feed rate
    M915 X Y Z R0				; Disable stall for prevent false detect
    G4 S1
    G1 S0 Z-415 F3000			; down a few mm so that we can centre the head (Test maybe that's stall?)
    G90					; back to absolute positioning
    

    My start Script:

    G28
    G32
    M300 S500 P1000	; Play Beep
    M572 D0 S0.25	; Set Linear Advance
    

    Now I start the Print,

    Heating up, then go home stall detected and go to G1 S0 Z-415 F3000.
    After G1 S0 Z-415 F3000 I have stall detection, but why it's detected?
    Bevor that move I have disable stall detection with:

    M915 X Y Z R0				; Disable stall for prevent false detect
    

    Regards

    Marc



  • I think it's a Bug,

    Upload & Print give me stall detection, upload the same as Macro works without stall detection.



  • That's my small test:

    90
    M83
    M106 S255
    G4 P500
    M106 S0
    M140 S70
    M190 S70
    M104 S220 T0
    M109 S220 T0
    G28
    G32
    G1 E-4.0000 F2400
    G1 Z0.150 F1200
    ; process Process1
    ; layer 1, Z = 0.150
    ; END
    G4 S1
    M300 S500 P1000	; Play Beep
    G4 S1
    M300 S500 P1000	; Play Beep
    G4 S1
    M300 S500 P1000	; Play Beep
    G4 S1
    ; layer end
    M98 PStopScript.g
    

    Upload & Print I have stall detection printer paused,

    Upload as Macro and rund I have no stall detection...



  • Is there a way to solve this problem?


  • administrators

    I am on vacation, but if you remind me a few days from now then I'll try to reproduce it.


 

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