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

Resume print

Scheduled Pinned Locked Moved Solved
General Discussion
4
22
1.1k
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
    GT1Za
    last edited by 8 Jan 2021, 15:23

    Hi everyone,
    I'm having an issue when I pause and resume a print, normally to change filament.
    The pause works flawlessly, which then enables me to switch filament. But when I resume, it homes the print head to the bottom left and then moves in a diagonal position to where it left, sounds good in theory, but the problem is that it often crosses the print before its reached the z height and knocks the print off the bed.

    Is there a way to get the resume to first travel to the correct z height then move to the x/y coords?

    1 Reply Last reply Reply Quote 0
    • undefined
      MikeS
      last edited by MikeS 1 Aug 2021, 20:04 8 Jan 2021, 20:04

      On resume.g add this line at the start:

      G1 R1 Z5 F6000
      

      Change F6000 with your move speed. This wil first go 5mm above the position of the last print move before pause occurs.

      1 Reply Last reply Reply Quote 1
      • undefined
        Phaedrux Moderator
        last edited by 8 Jan 2021, 22:44

        Can you post your pause and resume files?

        What firmware version are you running?

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • undefined
          GT1Za
          last edited by 9 Jan 2021, 05:59

          hi,
          sorry my resume looks like the below:

          G1 R1 X0 Y0 Z5 F6000 ; 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

          @MikeS I see your line was already there. Any other ideas?

          1 Reply Last reply Reply Quote 0
          • undefined
            MikeS
            last edited by 9 Jan 2021, 09:49

            @GT1Za first line is not the same...it has X0 Y0 which moves the head to pause position while lifting and is causing your problem. Add the line i told you at the beginning and it should first go 5mm above pause position and then move to where you hit pause. First thing i learn using duet is to give a read at the gcode documentation...it is really worth the time!

            undefined 1 Reply Last reply 9 Jan 2021, 10:48 Reply Quote 0
            • undefined
              GT1Za @MikeS
              last edited by 9 Jan 2021, 10:48

              @MikeS ahh thanks, I didn't think the x0 y0 would make a difference considering x0 y0 is the front left of my bed and not the center.
              I'll give it a try and see.

              1 Reply Last reply Reply Quote 0
              • undefined
                dc42 administrators
                last edited by 9 Jan 2021, 11:49

                I lift the head 5mm in the pause.g file after retracting and before moving to where I want the head while paused. While paused, it remains 5mm above the pause point. Then in resume.g I use G1 R1 X0 Y0 followed by G1 R1 X0 Y0 Z0.

                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
                • undefined
                  GT1Za
                  last edited by 9 Jan 2021, 16:27

                  @dc42 would you mind copy and pasting your pause and resume codes?

                  undefined 1 Reply Last reply 9 Jan 2021, 17:23 Reply Quote 0
                  • undefined
                    dc42 administrators @GT1Za
                    last edited by dc42 1 Sept 2021, 17:24 9 Jan 2021, 17:23

                    @GT1Za said in Resume print:

                    @dc42 would you mind copy and pasting your pause and resume codes?

                    ; Pause macro file
                    if state.currentTool != -1
                      M83					; relative extruder moves
                      G1 E-4 F2500		; retract 4mm
                    G91					; relative moves
                    G1 Z5 F5000			; raise nozzle 5mm
                    G90					; absolute moves
                    G1 X0 Y85 F10000
                    ;M106 S0
                    
                    ; Resume macro file
                    G1 R1 X0 Y0 Z2 F5000	; move to 2mm above resume point
                    G1 R1 X0 Y0 Z0		; lower nozzle to resume point
                    if state.currentTool != -1
                      M83			; relative extruder moves
                      G1 E4 F2500		; undo the retraction
                    

                    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
                    • undefined
                      GT1Za
                      last edited by GT1Za 17 Mar 2021, 08:47

                      @dc42 I have tried to use your script but im still battling with the same issue.

                      In short, whats happeing is that when I pause, the print head moves to the front right of the bed as it should. I can then do the filament change or whatever is required, but when I resume the print, the print head moves in a diagonal motion to where it left, but often it hasnt reached the required height before it starts passing over the model and knocks it off the bed.
                      Is there a way to get the print head to only move to the Z height and not xy?
                      Alternatively on the pause to remain at its current (or slightly raised height) rather than it lowering to the normal starting z position?

                      For info there is the pause and resume:

                      Pause:
                      ; pause.g
                      ; called when a print from SD card is paused
                      ;
                      ; generated by RepRapFirmware Configuration Tool v2.1.8 on Wed May 06 2020 11:04:16 GMT+0200 (South Africa Standard Time)
                      M83 ; relative extruder moves
                      G1 E-2 F3600 ; retract 2mm of filament
                      G91 ; relative positioning
                      G1 Z5 F360 ; lift Z by 5mm
                      G90 ; absolute positioning
                      G1 X0 Y0 F6000 ; go to X=0 Y=0

                      Resume:
                      ; resume.g
                      ; called before a print from SD card is resumed
                      ;
                      ; generated by RepRapFirmware Configuration Tool v2.1.8 on Wed May 06 2020 11:04:16 GMT+0200 (South Africa Standard Time)
                      G1 R1 X0 Y0 Z5 F6000 ; go to 5mm above position of the last print move
                      G1 R1 X0 Y0 Z0 ; go back to the last print move
                      M83 ; relative extruder moves
                      G1 E2 F3600 ; extrude 2mm of filament

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        Phaedrux Moderator
                        last edited by 17 Mar 2021, 22:48

                        Can you post your config.g? Do you have other tool offsets?

                        Z-Bot CoreXY Build | Thingiverse Profile

                        undefined 1 Reply Last reply 18 Mar 2021, 18:15 Reply Quote 0
                        • undefined
                          GT1Za @Phaedrux
                          last edited by 18 Mar 2021, 18:15

                          @Phaedrux here is the config. Left out the networking part

                          ; Drives
                          M569 P0 S0 ; physical drive 0 goes forwards
                          M569 P1 S1 ; physical drive 1 goes forwards
                          M569 P2 S1 ; physical drive 2 goes forwards
                          M569 P3 S1 ; physical drive 3 goes forwards
                          M584 X0 Y1 Z2:4 E3 ; two Z motors connected to driver outputs Z and E1
                          M671 X-20:220 Y0:0 S0.5 ; leadscrews at left (connected to Z) and right (connected to E1) of X axis
                          M208 X-5:205 Y0:200 ; X carriage moves from -5 to 205, Y bed goes from 0 to 200
                          M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
                          M92 X80.00 Y80.00 Z400.00 E408 ; set steps per mm
                          M566 X500.00 Y500.00 Z24.00 E300.00 ; set maximum instantaneous speed changes (mm/min)
                          M203 X12000.00 Y12000.00 Z300.00 E3600.00 ; set maximum speeds (mm/min)
                          M201 X500.00 Y500.00 Z100.00 E5000.00 ; set accelerations (mm/s^2)
                          M906 X800 Y800 Z900 E800 I30 ; set motor currents (mA) and motor idle factor in per cent
                          M84 S30 ; Set idle timeout

                          ; Axis Limits
                          M208 X0 Y-22.5 Z-2.5 S1 ; set axis minima
                          M208 X500 Y500 Z500 S0 ; set axis maxima

                          ; Endstops
                          M574 X1 Y1 S1 ; set active high endstops
                          M574 Z1 S2 ; set endstops controlled by probe

                          ; Z-Probe
                          M558 P9 H5 F120 T6000 A2 ; set Z probe type to bltouch and the dive height + speeds
                          G31 P500 X-30.8 Y0 Z2.55 ; set Z probe trigger value, offset and trigger height
                          M557 X15:445 Y15:445 S20 ; define mesh grid

                          ; Heaters
                          M305 P0 T100000 B4138 R2200 ; set thermistor + ADC parameters for heater 0
                          M143 H0 S120 ; set temperature limit for heater 0 to 120C
                          M305 P1 T100000 B4138 R2200 ; set thermistor + ADC parameters for heater 1
                          M143 H1 S280 ; set temperature limit for heater 1 to 280C

                          ; Fans
                          M106 P0 S1 I0 F500 H1 T30 ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
                          M106 P1 S1 I0 F500 H1 T45 ; set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on

                          ; Tools
                          M563 P0 D0 H1 F0 ; define tool 0
                          G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
                          G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Phaedrux Moderator
                            last edited by 18 Mar 2021, 21:09

                            I don't see anything unusual in there, unless you've got something in the homing files or start gcode?

                            Z-Bot CoreXY Build | Thingiverse Profile

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              GT1Za
                              last edited by 19 Mar 2021, 04:38

                              @Phaedrux I really dont think its the start code haha... but for safety sake here it is:

                              G28
                              G92 E0 ;Reset Extruder
                              G1 Z2.0 F3000 ;Move Z Axis up
                              G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
                              G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
                              G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
                              G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
                              G92 E0 ;Reset Extruder
                              G1 Z2.0 F3000 ;Move Z Axis up

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                GT1Za
                                last edited by GT1Za 22 Mar 2021, 10:01

                                S5 V2.mp4

                                @Phaedrux @dc42
                                Sorry guys I thought maybe a video to show this is the easiest.

                                As you can see, when you hit resume, the nozzle drops from the correct height to resume, to x0 y0 z0 and then starts moving to go back to the resume point. This almost always knocks the print off the bed... How do I correct that?

                                G1 R1 X0 Y0 Z5 F6000 ; go to 5mm above position of the last print move
                                G1 R1 X0 Y0 Z0 ; go back to the last print move
                                M83 ; relative extruder moves
                                G1 E2 F3600 ; extrude 2mm of filament

                                undefined 1 Reply Last reply 22 Mar 2021, 18:35 Reply Quote 0
                                • undefined
                                  Phaedrux Moderator @GT1Za
                                  last edited by 22 Mar 2021, 18:35

                                  @GT1Za Is the video supposed to be only 3 seconds long? Though it looks like it's moving at a diagonal.

                                  Again, I ask what firmware version are you using? Send M115.

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  undefined 1 Reply Last reply 23 Mar 2021, 04:41 Reply Quote 0
                                  • undefined
                                    GT1Za @Phaedrux
                                    last edited by 23 Mar 2021, 04:41

                                    @Phaedrux sorry I missed you asking for the firmware.
                                    The video was only 3 seconds because the forum will only allow a 4mb upload.

                                    Firmware is 2.02RC5

                                    undefined 1 Reply Last reply 23 Mar 2021, 05:00 Reply Quote 0
                                    • undefined
                                      Phaedrux Moderator @GT1Za
                                      last edited by 23 Mar 2021, 05:00

                                      @GT1Za said in Resume print:

                                      Firmware is 2.02RC5

                                      I would suggest updating your firmware first. There were some issues in that time frame for resuming.

                                      https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip

                                      Download this zip file, and in DWC, upload it to the system tab. Don't extract it first.

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      undefined 1 Reply Last reply 23 Mar 2021, 05:02 Reply Quote 0
                                      • undefined
                                        GT1Za @Phaedrux
                                        last edited by GT1Za 23 Mar 2021, 05:02

                                        @Phaedrux the reason I havent done this is because, well as you can see im not the greatest at firmware. My understanding is that most of the code for the config etc has changed? If I upload this wont it break my existing?

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          Phaedrux Moderator
                                          last edited by 23 Mar 2021, 05:03

                                          No, 2.05 won't require changes to your config. RRF3 would require changes.

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          undefined 2 Replies Last reply 23 Mar 2021, 05:05 Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA