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.
    • DSGundefined
      DSG
      last edited by DSG

      The end of resurrect.g file that was created automatically by system after power failure or planning power off (pause) has some code to move the print head to previous location before power fail. I do not want the print head move up 2mm before resume printing. I must edit the resurrect.g file manually before resume print. How can I config that?
      Thanks!

      1 Reply Last reply Reply Quote 0
      • DSGundefined
        DSG
        last edited by

        Anyone can help me?

        1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          Can you post a sample of the resurrect.g?

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • DSGundefined
            DSG
            last edited by

            My resurrect.g is below:

            ; File "0:/gcodes/prusaslicer/prusaslicer-test bed.gcode" resume print after print paused at 2019-11-05 10:18
            G21
            G29 S1
            T-1 P0
            G92 X5.000 Y157.500 Z0.150
            G60 S1
            M98 P"resurrect-prologue.g"
            M116
            M290 X0.000 Y0.000 Z0.000 R0
            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
            G10 P0 S190 R190
            T0 P6
            M106 S0.00
            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
            M116
            G92 E0.00000
            M83
            M23 "0:/gcodes/prusaslicer/prusaslicer-test bed.gcode"
            M26 S459 P0.000
            G0 F6000 Z2.150
            G0 F6000 X5.000 Y157.500
            G0 F6000 Z0.150
            G1 F6000.0 P0
            G21
            M24
            

            And the lines that I want to delete

            G0 F6000 Z2.150
            
            G0 F6000 Z0.150
            
            

            Add some code at the end of it.
            How can I figure that? Not modify manually.

            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator
              last edited by

              Thanks for the sample. What firmware version?

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • DSGundefined
                DSG
                last edited by

                My board is duet2wifi rev1.04 using firmware 2.03

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  I'm not sure if it's related, but there were some changes to the resurrection behaviour in the recently released 2.04 firmware update. Perhaps you can give it a try.

                  https://github.com/dc42/RepRapFirmware/blob/dev/WHATS_NEW.md

                  Z-Bot CoreXY Build | Thingiverse Profile

                  DSGundefined 1 Reply Last reply Reply Quote 0
                  • DSGundefined
                    DSG @Phaedrux
                    last edited by

                    @Phaedrux the last update 2.04 just fix the select tool before resurrect-prologue.g is called.. I think it is not that I need, but I will try.
                    Thanks for your support.

                    1 Reply Last reply Reply Quote 1
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      What's in your prologue file?

                      Z-Bot CoreXY Build | Thingiverse Profile

                      DSGundefined 1 Reply Last reply Reply Quote 0
                      • DSGundefined
                        DSG @Phaedrux
                        last edited by

                        @Phaedrux prologue file just
                        M116
                        G28 X Y

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          Thanks.

                          Perhaps @dc42 will have some insight.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • blt3dpundefined
                            blt3dp
                            last edited by

                            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
                            • littlehobbyshopundefined
                              littlehobbyshop
                              last edited by littlehobbyshop

                              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

                              DSGundefined 1 Reply Last reply Reply Quote 1
                              • T3P3Tonyundefined
                                T3P3Tony administrators
                                last edited by

                                @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

                                DSGundefined 1 Reply Last reply Reply Quote 0
                                • DSGundefined
                                  DSG @T3P3Tony
                                  last edited by

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

                                  T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                                  • T3P3Tonyundefined
                                    T3P3Tony administrators @DSG
                                    last edited by

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

                                    www.duet3d.com

                                    DSGundefined 1 Reply Last reply Reply Quote 0
                                    • DSGundefined
                                      DSG @T3P3Tony
                                      last edited by

                                      @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
                                      • DSGundefined
                                        DSG @littlehobbyshop
                                        last edited by

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

                                        dc42undefined 1 Reply Last reply Reply Quote 0
                                        • dc42undefined
                                          dc42 administrators @DSG
                                          last edited by

                                          @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

                                          DSGundefined 1 Reply Last reply Reply Quote 0
                                          • DSGundefined
                                            DSG @dc42
                                            last edited by

                                            @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)?

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