Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Unable to restart after power cut

    Scheduled Pinned Locked Moved
    CNC
    2
    9
    288
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danny_swbcundefined
      danny_swbc
      last edited by

      I have a hobbyist cnc that has a Duet 3 Main Board 6HC controlling it.

      On my previous machine it was the earlier Duet board and if there was a power cut when the power came back on it was possible to resume the job from when it stopped.

      The current one does not have this and if there is a power cut and you are several hours into a job it all lost. In addition it will not remember the last work zero position if switched off.

      Obviously there is some code that isn't in the current files that was in the last.

      I'd like to sort this out as I've just had a power cut that wasted 3hrs of machine time and the workpiece.

      Any suggestions?

      Thanks

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @danny_swbc
        last edited by

        @danny_swbc Most likely pause/save and resurrect isn't set up. See https://docs.duet3d.com/en/User_manual/Tuning/Resume

        Are you running the 6HC from a Raspberry Pi, in SBC mode? It's possible that the power demands mean it shuts down before the machine state can be saved.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        danny_swbcundefined 2 Replies Last reply Reply Quote 0
        • danny_swbcundefined
          danny_swbc @droftarts
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • danny_swbcundefined
            danny_swbc @droftarts
            last edited by

            @droftarts sorry its not SBC, its just via the ethernet port which was the same as the previous earlier version of the duet I had and that was fine for saving the work zero between sessions and also for resuming after a power cut. Thanks

            droftartsundefined 1 Reply Last reply Reply Quote 0
            • droftartsundefined
              droftarts administrators @danny_swbc
              last edited by

              @danny_swbc Please post your config.g, and response to M115 and M98 P"config.g".

              Can you remember how you saved the work zero between sessions with the old Duet? Did you run a macro, or just turn the machine off, and it showed the correct position when you turned it back on? What was the old machine? I may be able to look up the configuration of that machine, if you don't have a copy of the old configuration.

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

              danny_swbcundefined 1 Reply Last reply Reply Quote 0
              • danny_swbcundefined
                danny_swbc @droftarts
                last edited by

                @droftarts it was a Duet 2 as far as I remember, the one that generated its own wifi access point.

                I never changed any of the settings other than the ones to designate the size of the work area.

                The initial settings as it came saved work zero between sessions automatically and also saved where it was if there was a power cut.

                I may have a copy of the old sd card for it somewhere so I will try and see if I can find anything on there no one the newer duet settings.

                Thanks

                1 Reply Last reply Reply Quote 0
                • danny_swbcundefined
                  danny_swbc
                  last edited by

                  so, yet another power cut today and two more pieces of work lost and I still can't figure out the issues

                  in the config.g file the M911 line is exactly the same

                  both have resurrect. g and resurrect-prologue and resume

                  with the current power failure the smaller of the two machines a 1010 I have checked the sd card and it actually has the details of the file it was running saved under the resurrect.g file but there seems to be no way to call that on the web interface.

                  The previous one had a resume from power cut button or similar as far as I remember

                  getting really frustrating now especially with a few power cuts each month that invariably happen when work is on the machine

                  danny_swbcundefined 1 Reply Last reply Reply Quote 0
                  • danny_swbcundefined
                    danny_swbc @danny_swbc
                    last edited by

                    CURRENT 1010 config.g PREVIOUS 1010 config.g

                    droftartsundefined 1 Reply Last reply Reply Quote 0
                    • droftartsundefined
                      droftarts administrators @danny_swbc
                      last edited by

                      @danny_swbc What firmware version are you using? Send M115 and post the response. Your config.g calls another file, customconfig.g. Is there anything in that? Please also post your resurrect-prologue.g and latest resurrect.g files.

                      Have you read through the advice in the wiki page here? https://docs.duet3d.com/en/User_manual/Tuning/Resume

                      From the above wiki page, to use the resurrect.g file, you send M916:

                      After the power is restored, you can use command M916 to resume the print from where it stopped. This command runs file sys/resurrect.g which calls sys/resurrect-prologue.g at an appropriate point to home the printer

                      If you pause during a job, does it create a new resurrect.g file (it should)? Delete any resurrect.g file then test by turning off power during a job, does it create a resurrect.g? If you're connected via DWC, it should show whether a resurrect.g is saved.

                      The resurrect.g should save all the workplace coordinates in it. While I don't use workplace coordinates in my test setup, I've just tested the functionality, and it is working in the current firmware. This is the resurrect.g that was created:

                      ; File "0:/gcodes/x_carriage_IAN.gcode" resume print after print paused at 2023-06-26 12:48
                      G21
                      M140 P0 S60.0
                      G92 X16.119 Y7.463 Z3.600
                      G60 S1
                      G10 P0 S195 R200
                      T0 P0
                      M98 P"resurrect-prologue.g"
                      M116
                      M290 X0.000 Y0.000 Z0.000 R0
                      T-1 P0
                      T0 P6
                      ; Workplace coordinates
                      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 S1.00
                      M106 P0 S1.00
                      M116
                      G92 E0.00000
                      M83
                      M486 S-1
                      G17
                      M23 "0:/gcodes/x_carriage_IAN.gcode"
                      M26 S706324
                      G0 F6000 Z5.600
                      G0 F6000 X16.119 Y7.463
                      G0 F6000 Z3.600
                      G1 F1800.0 P0
                      G21
                      M24
                      

                      This is the console output in DWC from turning off the power in the middle of a job:

                      26/06/2023, 12:48:20 	M0
                      Printing paused at X16.1 Y7.5 Z3.6
                      Cancelled printing file 0:/gcodes/x_carriage_IAN.gcode, print time was 0h 2m
                      26/06/2023, 12:48:18 	M25
                      Resume state saved
                      26/06/2023, 12:45:19 	M916
                      File 0:/gcodes/x_carriage_IAN.gcode selected for printing
                      26/06/2023, 12:43:30 	Connection established
                      26/06/2023, 12:43:16 	Connection interrupted, attempting to reconnect...
                      HTTP request timed out
                      26/06/2023, 12:43:07 	Resume state saved
                      Print auto-paused due to low voltage
                      

                      getting really frustrating now especially with a few power cuts each month that invariably happen when work is on the machine

                      To be honest, if it's happening that frequently, I think complaining to your electricity supplier and/or a robust power backup solution would be better options.

                      Ian

                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA