Resurrect extruding failure



  • I'm having issues setting up recover from power failure. After a power failure I call M916, Everything heats and moves to the right place but the extruder keeps extruding and just sits there. Here is my sys/resurrect-prologue.g file. It's a Duet Maestro and I'm using build 2.04RC4+1.
    G28 X Y
    T0 P0
    G10 P0 S205 R205
    M116
    M83
    G1 E4 F3600

    Here is what I have in my config file
    M911 S21.3 R23.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"


  • administrators

    Try 2.04 release firmware. You should be able to remove the T0 and G10 commands from resurrect-prologue.g but you will need a M116 command to wait for temperatures to stabilise before the G1 E command.



  • Still happening. Here's my resurrect-prologue.g

    G28 X Y
    M116
    M83
    G1 E4 F3600

    Here's the resurrect file it's writing

    ; File "0:/gcodes/CCRv310S5_dog v1 03.gcode" resume print after power failure at 2019-11-06 14:05
    G21
    M140 P0 S60.0
    G29 S1
    T-1 P0
    G92 X169.296 Y230.157 Z0.300
    G60 S1
    G10 P0 S215 R215
    T0 P0
    M98 P"resurrect-prologue.g"
    M116
    M290 X0.000 Y0.000 Z0.000 R0
    T-1 P0
    T0 P6
    G10 L2 P1 X0.00 Y0.00 Z0.00
    G10 L2 P2 X0.00 Y0.00 Z0.00
    G10 L2 P3 X0.00 Y0.00 Z0.00
    G10 L2 P4 X0.00 Y0.00 Z0.00
    G10 L2 P5 X0.00 Y0.00 Z0.00
    G10 L2 P6 X0.00 Y0.00 Z0.00
    G10 L2 P7 X0.00 Y0.00 Z0.00
    G10 L2 P8 X0.00 Y0.00 Z0.00
    G10 L2 P9 X0.00 Y0.00 Z0.00
    G54
    M106 S0.00
    M106 P0 S0.00
    M106 P1 S0.00
    M116
    G92 E242.80960
    M82
    M23 "0:/gcodes/CCRv310S5_dog v1 03.gcode"
    M26 S118639 P0.900
    G0 F6000 Z2.300
    G0 F6000 X169.296 Y230.157
    G0 F6000 Z0.300
    G1 F1200.0
    G21
    M24

    Here's my config File. I know it could use some cleaning up.

    ; Configuration file for Duet Maestro (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Fri Mar 22 2019 16:57:23 GMT-0400 (Eastern Daylight Time)

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

    ; Network
    M550 P"Big Square" ; Set machine name
    M586 P0 S1 R5003 ; set Http avtivate network Port 5002
    M552 P0.0.0.0 S1 ; Enable network and acquire dynamic address via DHCP
    M554 P10.1.10.1 ; Gateway
    ;M553 P255.255.255.0 ; Netmask
    ;M552 P0.0.0.0 S1 ; Enable network and acquire dynamic address via DHCP
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    M918 P1 E4 ; enable lcd 12864

    ; Drives
    M569 P0 S1 ; Drive 0 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S0 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes backwards
    ,M569 P4 S0 ; Drive 4 goes backwards

    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    ;M569 P2 V60 ;stealthchop 78mm Z default v118
    M92 X80.00 Y80.00 Z400.00 E411.00 ; Set steps per mm
    M566 X900.00 Y900.00 Z12.00 E120.00 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000.00 Y6000.00 Z180.00 E1200 ;default e1200.00 ; Set maximum speeds (mm/min)
    M201 X750 Y750 Z100 E4000 ; Set accelerations (mm/s^2)
    M906 X800.00 Y1100.00 Z800.00 E800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y-20 Z0 S1 ; Set axis minima
    M208 X508 Y528 Z500 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 S1 ; Set active high endstops
    ;M574 Z1 S0 ;duet wifi Set active low end-stops

    ; Z-Probe
    M574 Z1 S2 ; Set endstops controlled by probe
    M558 P9 H5 F120 T6000 ; Set Z probe type to bltouch and the dive height + speeds
    G31 P500 X-20.42 Y-17.76 Z1.29 ; Set Z probe trigger value, offset and trigger height
    M557 X20:480 Y40:460 S40 ; probe from X=10 to 190, Y=10 to 190mm with a mesh spacing of 20mm ; Define mesh grid

    ; Heaters
    M307 H0 B0 S1.00 ; Disable bang-bang mode for the bed heater and set PWM limit
    M305 P0 T100000 B4138 R2200 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    ;M305 P1 T100000 B4138 R2200 ; Set thermistor + ADC parameters for heater 1 seemecnc
    M305 P1 B4725 C7.060000e-8 ;e3d
    M143 H1 S280 ; Set temperature limit for heater 1 to 280C

    ; Fans
    M106 P0 H-1 ; Part Cooling Fan
    M106 P2 T50 H1 ; Heat sink fan

    ; 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

    ; Other settings
    ;G29 S1 ; Enable automatic bed mesh compensation
    M572 D0 S0.10 ; Enable pressure-advance of 0.10 seconds
    M915 X Y S10 F1 R1 ; Enable stall detection for X and Y axis with a sensitivity of 10 and report only
    M915 Z S0 F1 R1 ; Enable stall detection for Z axis with a sensitivity of 10 and report only

    :M591 D0 P2 C2 S1 ;Filament sensor, extruder 0, sensor type 2, Z endstop, enabled
    M591 D0 P3 C3 S1 R70:130 L26.24 E3.0 ; Duet3D rotating magnet sensor for extruder drive 0 is connected to E0 endstop input, enabled, sensitivity 24.8mm.rev, 70% to 130% tolerance, 3mm detection length L24.8

    M911 S21.3 R23.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Automatic saving after power loss is enabled

    ; Custom settings are not configured

    ; Miscellaneous
    ;M501 ; Load saved parameters from non-volatile memory

    M501 ; Load saved parameters from non-volatile memory
    G29 S1 ; Enable automatic bed mesh compensation
    ;G91 ; relative positioning
    ;G1 Z10 F6000 S2 ; lift Z relative to current position
    ;G1 S1 X-415 Y-415 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
    ;G1 X5 Y5 F6000 ; go back a few mm
    ;G1 S1 X-415 Y-415 F360 ; move slowly to X and Y axis endstops once more (second pass)
    ;G1 X250 Y200 F6000 ; move X and Y to the bottom left corner of the bed
    ;G30 ; Do a single probe to home our Z axis
    ;G90 ; Make sure we are in absolute mode
    ;G1 X200 Y200 Z5 F6000 ; Move to parked position

    T0 ; Select Tool 0


  • administrators

    @chickenwoman said in Resurrect extruding failure:

    ;M83 ; ...but relative extruder moves

    are you setting relative extruder moves in you slicer star gcode or are you actually usin absolute extruder moves? (you can check if the gcode files you are printing has the E value in lots of small number or if its increasing steadily). to fix it i would set the slicer to use relative moves and have the m83 not commented out.



  • @T3P3Tony Commenting M82 was part of my trouble shooting with firmware 2.04RC4+1 and it had no effect. I don't think I enabled M82 with my test since upgrading to firmware 2.04. I'll try today. I don't have absolute written in my gcode start but Cura puts it there by default. I can try with M83 in my start code. With a bowden setup which is better to use, relative or absolute? I also have a Duet rotating filament sensor that keeps fasly triggering. I tuned it like the instructions said. Would absolute effect that? Thanks



  • Here's a small example of the Cura gcode file.
    ;FLAVOR:Marlin
    ;TIME:18405
    ;Filament used: 59.2988m
    ;Layer height: 0.4
    ;Generated with Cura_SteamEngine 3.6.0
    M140 S60
    M105
    M190 S60
    M104 S215
    M105
    M109 S215
    M82 ;absolute extrusion mode
    G28 ;Home
    G1 Z15.0 F6000 ;Move the platform down 15mm
    ;Prime the extruder
    G92 E0
    G1 F200 E3
    G92 E0
    G92 E0
    G1 F2400 E-2
    ;LAYER_COUNT:426
    ;LAYER:0
    M107
    M204 S5000
    G0 F4500 X248.378 Y275.919 Z0.3
    M204 S500
    ;TYPE:SKIRT
    G1 F2400 E0
    G1 F1800 X248.249 Y277.157 E0.1242
    G1 X248.208 Y277.936 E0.20203
    G1 X248.247 Y278.714 E0.27976
    G1 X248.366 Y279.484 E0.3575
    G1 X248.563 Y280.239 E0.43536
    G1 X248.837 Y280.969 E0.51316
    G1 X249.183 Y281.667 E0.5909
    G1 X249.6 Y282.326 E0.66871
    G1 X249.859 Y282.672 E0.71183
    G1 X250.356 Y283.297 E0.79151
    G1 X250.872 Y283.882 E0.86934
    G1 X251.445 Y284.41 E0.94709
    G1 X252.069 Y284.877 E1.02486
    G1 X252.738 Y285.278 E1.10269
    G1 X253.444 Y285.608 E1.18045
    G1 X254.18 Y285.864 E1.2582
    G1 X254.939 Y286.043 E1.33601
    G1 X255.355 Y286.107 E1.37801
    G1 X257.597 Y286.39 E1.60349
    G1 X257.168 Y286.955 E1.67428
    G1 X256.763 Y287.621 E1.75205
    G1 X256.429 Y288.325 E1.8298
    G1 X256.407 Y288.388 E1.83646
    G1 X256.309 Y288.5 E1.85131
    G1 X255.861 Y289.137 E1.92902
    G1 X255.664 Y289.488 E1.96918
    G1 X255.336 Y289.836 E2.0169
    G1 X254.863 Y290.455 E2.09463
    G1 X254.735 Y290.664 E2.11908
    G1 X254.433 Y290.939 E2.15984
    G1 X253.914 Y291.52 E2.23757
    G1 X253.689 Y291.831 E2.27587
    G1 X253.504 Y291.963 E2.29855
    G1 X252.918 Y292.477 E2.37633
    G1 X252.476 Y292.954 E2.44121
    G1 X252.467 Y292.959 E2.44224
    G1 X251.802 Y293.366 E2.52004
    G1 X251.182 Y293.838 E2.59779
    G1 X251.059 Y293.954 E2.61466
    G1 X250.055 Y294.228 E2.7185
    G1 X249.314 Y294.472 E2.79634
    G1 X248.729 Y294.734 E2.8603
    G1 X248.332 Y294.471 E2.90782


  • administrators

    I think you can use absolute extrusion but its much easier to work with relative extrusion (in my opinion) especially when you start doing things like power fail resume. The biggest issue is having a mismatch between them which is what i think is the issue with power fail resume here as you are using absolute extrusion in the slicer (by the look of the file you just posted) but relying on relative extrusion in resurrect prologue by the look of it.

    Try slicing a file in relative extrusion mode and testing with that set throughout.


  • administrators

    @chickenwoman, is it extruding continuously, or in bursts as if it is printing without any XY movement?



  • @dc42 it's extruding continuously. I'm going to test things today with relative extrusion.



  • Power resurrect seems to only work in relative mode. There's a hidden setting in Cura under special modes to enable relative extrusion that I used. Everything works great with this setup. There's no need to have M83 in the startup script or the config file.

    I went back to try absolute mode. Put M82 in the config file. Had Cura set to absolute. After power fail M82 was written into the resurrect file but the same issue of the continuous extruder run happened.


  • administrators

    @chickenwoman said in Resurrect extruding failure:

    Power resurrect seems to only work in relative mode. There's a hidden setting in Cura under special modes to enable relative extrusion that I used. Everything works great with this setup. There's no need to have M83 in the startup script or the config file.

    I went back to try absolute mode. Put M82 in the config file. Had Cura set to absolute. After power fail M82 was written into the resurrect file but the same issue of the continuous extruder run happened.

    Thanks, I found the problem. The G92 E command sets up the virtual extruder position, but then it gets cleared when the print is resumed. I'll fix that in the next build, and add it as a known issue in 2.04 and 3.0beta12.


  • administrators

    Update:

    • The fix will be in the next RRF3 build
    • Workaround for RRF 2.04 (does not work in RRF3): If you need to resurrect a print that has been sliced using absolute extrusion, then edit the resurrect.g file to move the G92 E command later in the file, after the M23 and M26 commands.

Log in to reply