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

    Pause.g Resume.g problems

    Scheduled Pinned Locked Moved Unsolved
    Gcode meta commands
    8
    58
    3.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.
    • Deluxe 600undefined
      Deluxe 600
      last edited by

      Happy holidays.
      Im fighting a weird problem. I was trying to modify The pause.g and resume.g macros to suit my printer better.
      The idea was that on pause.g the printer moves to a set position turns off fans, heaters and X,Y axis because of noise (pause over night).
      That i managed to make work but on the resume.g side i understad that i need to home the X,Y axis using G28 X Y but when i entered it in the resume.g file the printer refuses to do it before resuming and thus failing the print giving error (G0/G1: insufficient axes homed). Thank you for your help

      ; pause.g
      ; called when a print from SD card is paused
      ;
      M83 ; relative extruder moves
      G1 E-10 F3600 ; retract 10mm of filament
      G91 ; relative positioning
      G1 Z5 F360 ; lift Z by 5mm
      G90 ; absolute positioning
      G1 X20 Y525 F6000 ; go to X=20 Y=525
      M106 S0 ;fans 0
      M18 X Y ;turn off X,Y steppers

      ; resume.g
      ; called before a print from SD card is resumed
      G28 X Y ; home X and Y
      G1 R1 X0 Y0 Z5 F4000 ; go to 5mm above position of the last print move
      G1 R1 X0 Y0 ; go back to the last print move
      M83 ; relative extruder moves
      G1 E10 F3600 ; extrude 10mm of filament

      baird1faundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
      • PCRundefined
        PCR
        last edited by

        Do you have the right homex.g and homey.g ?

        1 Reply Last reply Reply Quote 0
        • Deluxe 600undefined
          Deluxe 600
          last edited by

          ; homex.g
          ; called to home the X axis
          ;
          ; generated by RepRapFirmware Configuration Tool v3.1.4 on Thu Jul 30 2020 22:57:30 GMT+0200 (Central European Summer Time)
          G91 ; relative positioning
          G1 H2 Z5 F6000 ; lift Z relative to current position
          G1 H1 X-545 F1800 ; move quickly to X axis endstop and stop there (first pass)
          G1 H2 X5 F6000 ; go back a few mm
          G1 H1 X-545 F360 ; move slowly to X axis endstop once more (second pass)
          G1 H2 Z5 F6000 ; lower Z again
          G90 ; absolute positioning

          ; homey.g
          ; called to home the Y axis
          ;
          ; generated by RepRapFirmware Configuration Tool v3.1.4 on Thu Jul 30 2020 23:06:37 GMT+0200 (Central European Summer Time)
          G91 ; relative positioning
          G1 H2 Z5 F6000 ; lift Z relative to current position
          G1 H1 Y565 F1800 ; move quickly to Y axis endstop and stop there (first pass)
          G1 H2 Y-5 F6000 ; go back a few mm
          G1 H1 Y565 F360 ; move slowly to Y axis endstop once more (second pass)
          G1 H2 Z-5 F6000 ; lower Z again
          G90 ; absolute positioning

          1 Reply Last reply Reply Quote 0
          • baird1faundefined
            baird1fa @Deluxe 600
            last edited by

            @Deluxe-600 just a suggestion but don’t turn off the steppers just decrease the power to them. Then there should be no reason to home them anyway.

            Sometimes certain macro calls don’t work inside other macros. You could try pasting the home code into the resume.g and see if that works. But again you shouldn’t need to home during a pause.

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

              The motor current will reduce to the idle value after 30 seconds anyway, so IMO there is no need to turn the motors off. But if you want to anyway, then in resume.g try this instead of G28 XY:

              M98 P"homex.g"
              M98 P"homey.g"

              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

              1 Reply Last reply Reply Quote 0
              • Deluxe 600undefined
                Deluxe 600
                last edited by

                Do you guys any ideas what can i do so that i can pause the printer and get rid off the stepper whine noise? The printer i built is very large and because i keep it at home cant be run over night. So i am trying to set up a pause state in which it doesnt make any noticable noise but can be resumed printing the next day. I would be very happy for any suggestions 🙂 . And happy christmas to you all

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

                  Well you could make note of the XYZ position and then turn off the printer. If it's stable enough and doesn't drop the Z axis or something like that you could then use G92 X Y Z after power up to reset the current position to what it was before powering off.

                  As long as the print stays attached to the bed and the Z axis doesn't change to much you should be able to resume the print either from the power loss recovery save position or from manually editing the sliced gcode file to restart from where you left off.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  Deluxe 600undefined 1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators @Deluxe 600
                    last edited by

                    @Deluxe-600 said in Pause.g Resume.g problems:

                    Do you guys any ideas what can i do so that i can pause the printer and get rid off the stepper whine noise? The printer i built is very large and because i keep it at home cant be run over night. So i am trying to set up a pause state in which it doesnt make any noticable noise but can be resumed printing the next day. I would be very happy for any suggestions 🙂 . And happy christmas to you all

                    You can try using M913 to reduce the motor current to a lower value while the machine is paused. Or just set the idle current lower than the default value of 30% in M906.

                    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

                    Deluxe 600undefined 1 Reply Last reply Reply Quote 0
                    • Deluxe 600undefined
                      Deluxe 600 @dc42
                      last edited by

                      @dc42 The holding current now is "M906 X1650 Y1650 Z1650 E700 I1" so thats 1% right? I think it doesnt go lower than that.

                      1 Reply Last reply Reply Quote 0
                      • Deluxe 600undefined
                        Deluxe 600 @Phaedrux
                        last edited by

                        @Phaedrux It is stable enough so even after power off it doesnt move. But my problem is that after i pause it and turn off the steppers it doesnt watn to home and also i found out yesterday that in the pause.g i switch off the hoend heater, but after resuming it doesnt go back in temperature. Any ideas?

                        TypQxQundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
                        • TypQxQundefined
                          TypQxQ
                          last edited by

                          Have you read this about the noise? I managed to reduce the whining on my Duet3 with this.

                          https://duet3d.dozuki.com/Wiki/Reducing_Stand-Still_Noise

                          1 Reply Last reply Reply Quote 0
                          • TypQxQundefined
                            TypQxQ @Deluxe 600
                            last edited by

                            @Deluxe-600 You can put the tool in standby when pausing and then in active mode when resuming.
                            For example if you only have one tool in pause:

                            G10 P0 R20 ; Set standby temp of tool 0 to 20*
                            T-1 ; put tools in standby
                            

                            And in resume:

                            T0 ; activate tool agin
                            M116 ; wait for all temperatures. 
                            
                            
                            A Former User? 1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator @Deluxe 600
                              last edited by

                              @Deluxe-600 With G92 to set the position you don't need to home.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              1 Reply Last reply Reply Quote 0
                              • A Former User?
                                A Former User @TypQxQ
                                last edited by

                                @TypQxQ said in Pause.g Resume.g problems:

                                @Deluxe-600 You can put the tool in standby when pausing and then in active mode when resuming.
                                For example if you only have one tool in pause:

                                G10 P0 R20 ; Set standby temp of tool 0 to 20*
                                T-1 ; put tools in standby
                                

                                And in resume:

                                T0 ; activate tool agin
                                M116 ; wait for all temperatures. 
                                
                                

                                For pause, isn´t

                                T-1 P0 ; deselect all tools but don't run any tool change macro files
                                

                                & For Resume, isn´t

                                T R1 ; select the tool that was active last time the print was paused
                                

                                even better?
                                Just asking...

                                1 Reply Last reply Reply Quote 1
                                • Deluxe 600undefined
                                  Deluxe 600
                                  last edited by

                                  Nice it works!....well kind of strange thing thats happening to me is that when i use the pause button, it works as it should. But when i press the resume button i still get the error "G0/G1: insufficient axes homed". Now the strange part is that when i use M98 P"resume.g" and THEN the resume button it works. Can someone please explain this? 😲

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

                                    Is your Z axis unhommed when you try and resume?

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    Deluxe 600undefined 1 Reply Last reply Reply Quote 0
                                    • Deluxe 600undefined
                                      Deluxe 600 @Phaedrux
                                      last edited by

                                      @Phaedrux
                                      Yes, im still trying to do it with turning the motors off and then rehoming on resume. And it works just not by pressing the "resume" button. I have to use macro M98 P"resume.g" for it to work. After i apply the macro i pres resume button and it works as it should.

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

                                        @Deluxe-600 said in Pause.g Resume.g problems:

                                        ; resume.g
                                        ; called before a print from SD card is resumed
                                        G28 X Y ; home X and Y
                                        G1 R1 X0 Y0 Z5 F4000 ; go to 5mm above position of the last print move
                                        G1 R1 X0 Y0 ; go back to the last print move
                                        M83 ; relative extruder moves
                                        G1 E10 F3600 ; extrude 10mm of filament

                                        Assuming this is still your resume.g you should add something there to home z as well as XY

                                        Z-Bot CoreXY Build | Thingiverse Profile

                                        Deluxe 600undefined 1 Reply Last reply Reply Quote 0
                                        • Deluxe 600undefined
                                          Deluxe 600
                                          last edited by Deluxe 600

                                          Now my resume.g looks like this

                                          T0 ; activate tool again
                                          M116 ; wait for all temperatures.
                                          M98 P"homex.g" ;
                                          M98 P"homey.g" ;
                                          G1 R1 X0 Y0 Z5 F4000 ; go to 5mm above position of the last print move
                                          G1 R1 X0 Y0 ; go back to the last print move
                                          M83 ; relative extruder moves
                                          G1 E10 F3600 ; extrude 10mm of filament

                                          1 Reply Last reply Reply Quote 0
                                          • Deluxe 600undefined
                                            Deluxe 600 @Phaedrux
                                            last edited by

                                            @Phaedrux it works as it is. Now i am trying to figure out why is it not working trough the "resume" button but trough macro (M98 P"resume.g") it does. I thought that the button calls the macro just liek the command?

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