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

How to change something in file resurrect.g?

Scheduled Pinned Locked Moved Unsolved
Tuning and tweaking
7
26
1.7k
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.
  • undefined
    DSG @Phaedrux
    last edited by 6 Nov 2019, 01:58

    @Phaedrux prologue file just
    M116
    G28 X Y

    1 Reply Last reply Reply Quote 0
    • undefined
      Phaedrux Moderator
      last edited by 6 Nov 2019, 01:58

      Thanks.

      Perhaps @dc42 will have some insight.

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • undefined
        blt3dp
        last edited by 6 Nov 2019, 22:00

        How are you testing? Manually pausing or pulling the power? If your pausing it, what you're looking for might be in pause.g pause.g

        My 3D Printing YouTube Channel
        Better Living Through 3D Printing

        Follow me on Instagram and Twitter
        Instagram
        Twitter

        1 Reply Last reply Reply Quote 1
        • undefined
          littlehobbyshop
          last edited by littlehobbyshop 11 Jul 2019, 00:11 7 Nov 2019, 00:10

          After a skim of the firmware, unfortunately this 2mm lift is hard coded and isn't configurable:

          Line 2310 in /src/GCodes/GCodes.cpp:
          https://github.com/dc42/RepRapFirmware/blob/2af0feba89833b8631dac6a3e662d4fc13f40410/src/GCodes/GCodes.cpp#L2310

          The only way you would be able to change it is to fork the repo and re-compile your own version.

          Perhaps you could also add an issue as a request for this to be configurable? No idea how that would be implemented and it may well be too much development for a fringe case.

          BLV MGN Cube w/Hemera, K8200, Sunlu S8

          undefined 1 Reply Last reply 9 Nov 2019, 09:52 Reply Quote 1
          • undefined
            T3P3Tony administrators
            last edited by 7 Nov 2019, 10:13

            @DSG what is your M911 command set to:

            https://duet3d.dozuki.com/Wiki/Gcode#Section_M911_Configure_auto_save_on_loss_of_power

            www.duet3d.com

            undefined 1 Reply Last reply 8 Nov 2019, 15:28 Reply Quote 0
            • undefined
              DSG @T3P3Tony
              last edited by 8 Nov 2019, 15:28

              @T3P3Tony just turn off the motor X Y and retract follow the guide in wiki.

              undefined 1 Reply Last reply 8 Nov 2019, 15:44 Reply Quote 0
              • undefined
                T3P3Tony administrators @DSG
                last edited by 8 Nov 2019, 15:44

                @DSG the guide in the wiki has a Z parameter added in the M911 command, hence why I asked

                www.duet3d.com

                undefined 1 Reply Last reply 9 Nov 2019, 09:51 Reply Quote 0
                • undefined
                  DSG @T3P3Tony
                  last edited by 9 Nov 2019, 09:51

                  @T3P3Tony yes, wiki has guide that but I do not add the z lift code to M911, just turn off X Y motor and retract.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    DSG @littlehobbyshop
                    last edited by 9 Nov 2019, 09:52

                    @littlehobbyshop please tell me how to compiled firmware. Thanks!

                    undefined 1 Reply Last reply 9 Nov 2019, 11:08 Reply Quote 0
                    • undefined
                      dc42 administrators @DSG
                      last edited by 9 Nov 2019, 11:08

                      @DSG, can you tell me why you want to delete those 2 lines? Those lines are intended to move the head back to the point where it was when the power fail occurred, without scraping the top of the print.

                      The firmware build instructions are at https://github.com/dc42/RepRapFirmware/blob/dev/BuildInstructions.md.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      undefined 1 Reply Last reply 10 Nov 2019, 01:51 Reply Quote 0
                      • undefined
                        DSG @dc42
                        last edited by 10 Nov 2019, 01:51

                        @dc42 the lifting z about 2mm make the resume print not fit with the exist printed object. I have successed with remove lift z code in the resurrect.g not only pause state but also power failure. Have you added this mod in the next firmware version (user can figure the movement of print head)?

                        undefined 1 Reply Last reply 10 Nov 2019, 11:48 Reply Quote 0
                        • undefined
                          dc42 administrators @DSG
                          last edited by 10 Nov 2019, 11:48

                          @DSG said in How to change something in file resurrect.g?:

                          @dc42 the lifting z about 2mm make the resume print not fit with the exist printed object.

                          I'm sorry, I still don't understand. What makes the 2mm lift unsuitable? That should keep the print head clear of the object that has been printed so far.

                          Duet WiFi hardware designer and firmware engineer
                          Please do not ask me for Duet support via PM or email, use the forum
                          http://www.escher3d.com, https://miscsolutions.wordpress.com

                          undefined undefined 2 Replies Last reply 10 Nov 2019, 13:04 Reply Quote 0
                          • undefined
                            DSG @dc42
                            last edited by 10 Nov 2019, 13:04

                            @dc42 I have 2 problems. The first is the print head lift 2mm and down 2mm before resume that make the gap (greater than layer height) between the print head and printed object. I think that problem comes from the z axis movement by belt. The next, the extrusion that has rised from calling resurrect-prologue.g before print head arrives at the previous location make the under extrusion when resume print. That are reasons I want to edit resurrect.g, disable lift the z and add gcode for extrusion after print head comes back. I have tried that by edit the resurrect.g manually and get success resume at pause/planning power off or power failure state. How to config that?

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              DSG
                              last edited by 24 Nov 2019, 16:32

                              Compile the firmware with remove some code and add a code for calling powerfailure.g (made by me) for adjusting the extrusion before resume print that solute my problem.
                              Thanks.

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                TLAS @dc42
                                last edited by 24 Nov 2019, 21:52

                                @dc42

                                Having recently been through this, I think it’s not clear that when you ‘pause’ a print and modify the resurrect file that you need to exit the print to get the resurrect file to take.

                                I kept modifying the file and just hitting resume and watching the printer try to print in mid-air. I ultimately got it, but from what I’ve been able to read here, that might have been the same problem and the z-code lift may have been misunderstood as the reason why the printer was not printing on the previous layer.

                                Not sure how to solve this in documentation, maybe just a bold somewhere that you need to restart the print and rehome to get it to take.

                                Awesome job on the resurrect sequence by the way. Wish I never had to use it, but things happen with big prints sometimes and it’s well implemented making problems recoverable. 🙂

                                undefined 1 Reply Last reply 24 Nov 2019, 22:00 Reply Quote 0
                                • undefined
                                  Phaedrux Moderator @TLAS
                                  last edited by 24 Nov 2019, 22:00

                                  @TLAS Well the resurrect feature is intended for resuming after a powerloss, which implies the printer has been power cycled, not just paused.

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  undefined 1 Reply Last reply 25 Nov 2019, 02:59 Reply Quote 0
                                  • undefined
                                    DSG @Phaedrux
                                    last edited by DSG 25 Nov 2019, 02:59

                                    @Phaedrux yes, the problem is resume print after powerloss. The gcode for lifting z axis make the gap between the previous layer and the current layer, maybe cause by under extrusion (leaking filament when heating nozzle and move from home to previous location). My solution is insert the code calling a macro before resume print (after heating nozzle already) instead hard code like the exist firmware setup. I can modify the movement of print head or extrusion before print is resumed. The resurrect-prolog.g is not used by me now, but I will change the location of calling code of resurrect-prolog.g in resurrect.g for my problem. So the new macro will nolonger nessessary.

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