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.
    • 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
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            Firmware version?

            Z-Bot CoreXY Build | Thingiverse Profile

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

              @Phaedrux RepRapFirmware for Duet 2 WiFi/Ethernet 3.1.1 (2020-05-19b2)

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

                The resume button uses M98 P"resume.g" right?

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

                  I believe so, yes. The only difference that comes to mind is maybe which gcode stream the commands is coming through.

                  Z-Bot CoreXY Build | Thingiverse Profile

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

                    @Phaedrux What can i do to make it work properly? I would like to use the normal web control buttons. If possible

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

                      @Deluxe-600, what happens when you press the Resume button?

                      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 Deluxe 600

                        @dc42 The printing head goes back to the saved position lowers to the print and then "G0/G1: insufficient axes homed" error and cancels the print. I can change whatever i want in the "resume.g" file but nothing changes.

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

                          This is just weird. If i create a macro for resume in which i have :

                          T0 ; activate tool again
                          M116 ; wait for all temperatures.
                          M98 P"homex.g" ;
                          M98 P"homey.g" ;
                          M106 P0 T1 ; restores the previous fan speed
                          G1 E10 F3600 ; extrude 10mm of filament
                          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

                          It does all it should but then it just moves above the print and pauses.
                          Then i have to push the "Resume" button in the interface. It homes again and then starts printing....but if i dont run the macro first it doesnt home or wait for the tool to heat up. It just moves above the print and then throws an error messeage. I realy dont know what to do 😞 . Im fighting it for the last 4 days.

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

                            The button is checking to see if any axis are unhomed and will not run if it's unhommed. Which is why when you force resume.g to run and it runs the homing macros you can then use the button the second time.

                            Can you try splitting out the homing from the resume.g file?

                            As I suggested before, create a macro that contains a G92 command to set the current location for X Y Z. If your pause.g moves the axis to a certain location, and your axis stay stable when the motors are off, then you can use that same position. No rehoming needed.

                            Then you can run that macro to set the axis as homed, and then you can use the resume button. Remove any homing calls from resume.g.

                            Z-Bot CoreXY Build | Thingiverse Profile

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

                              @Phaedrux I will definetly try that and let you know. CAn i have one more question? When pausing i would like to turn off the part cooling fan but also somehow save the value it was on so i can resume cooling when resuming the print. I was trying to figure it out using M106 R1 or R2 but no luck so far. Thanks

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

                                I would have thought M106 R1 or R2 would have worked. How are you turning the fan off in pause.g? M107?

                                Z-Bot CoreXY Build | Thingiverse Profile

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

                                  @Phaedrux M106 S0

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

                                    Try using M107 in pause.g to turn off the fan and then M106 R1 to return it to it's last speed in resume.g

                                    Z-Bot CoreXY Build | Thingiverse Profile

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

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

                                      M107

                                      I put M107 is the pause.g but the cooling fan still didnt turn back on 😕 . Dont understand why. Also i have tried the G92 but it didnt have any effect, when pressing the resume button the print head just went above the print and then i got the "G0/G1: insufficient axes homed" error again.

                                      Here is what i changed

                                      ; 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
                                      M18 X Y E ;turn off X,Y,E steppers
                                      G10 P0 R20 ; Set standby temp of tool 0 to 20*
                                      T-1 ; put tools in standby
                                      M107 ; FAN off

                                      ; resume.g
                                      ; called before a print from SD card is resumed
                                      G92 X20 Y525 ; axis position
                                      T0 ; activate tool again
                                      M116 ; wait for all temperatures.
                                      G1 E20 F500 ; extrude 10mm of filament
                                      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
                                      M106 R1 ; FAN on

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

                                        Don't put G92 into the resume.g file. As I said, put it in a separate macro and then run that manually before pressing resume button.

                                        Z-Bot CoreXY Build | Thingiverse Profile

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

                                          @Phaedrux Yeah that works. But i cant figure out that print fan, any ideas?

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

                                            Post your config.g

                                            Z-Bot CoreXY Build | Thingiverse Profile

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