Resume after power fail routine



  • M916 works fine if I send the command just after power is resumed but does not work if I home the printer manually.
    After power fail but before M916 I want to be able to home the printer and then bring the effector down for cleaning.
    Once the nozzle is clean I want to send M916 to the printer to resume it last state after power loss, is it possible ?

    config.g:

    M911 S22 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"
    

    resurrect.g:
    EMPTY:

    resurrect-prologue.g:

    M116 ; wait for temperatures
    G28 ; home all towers
    M83 ; relative extrusion
    G1 E4 F3600 ; undo the retraction that was done in the M911 power fail script
    

  • administrators

    If resurrect.g is empty then the firmware failed to save the state of the print. This could mean that you need a little more reserve power, which you can provide by connecting a high value capacitor in parallel with VIN.



  • I am using a really big power supply with big capacitors
    i don't know why it was empty
    now its something like this :

    ; File "knurling_nut 08.gcode" resume print after print paused at 2018-07-03 10:12
    M140 P0 S55.0
    G10 P0 S210 R210
    T0 P0
    G29 S1
    M98 Presurrect-prologue.g
    M106 P0 S0.00
    M106 P3 S0.00
    M106 P4 S0.00
    M106 P5 S0.00
    M106 P6 S0.00
    M106 P7 S0.00
    M106 P8 S0.00
    M106 S0.00
    M116
    M290 S0.640
    G92 E0.00000
    M83
    M23 knurling_nut 08.gcode
    M26 S33564 P0.000
    G0 F6000 Z2.630
    G0 F6000 X-6.08 Y-23.76
    G0 F6000 Z0.630
    G1 F960.0 P0
    M24
    

    but if i run M916 after power restore the printer resume the print as it should.
    while if I home the printer and move the effector down and only at that point I send M916 then the command is ignored.


  • administrators

    @paboman, I can't think of any reason why the M916 command would be ignored, except because the resurrect.g file is not present.


  • administrators

    @paboman I have tested this on a delta using the latest firmware and I can't recreate the issue. The resume works no matter if i move the axis about before resuming or if i don't


 

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