Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Modify pause.g for pausing at home

    Tuning and tweaking
    2
    5
    863
    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.
    • Alexander Mundy
      Alexander Mundy last edited by

      Can I change pause.g so it doesn't try to raise when it is at home position?
      IE canceling a print while waiting for temps if I preheat to different temps than the gcode file.
      It ignores the endstops and tries anyway.
      Can I put an IF THEN statement in somehow?

      Using the file that was already on the card

      ; Pause macro file
      M83 ; relative extruder moves
      G1 E-4 F2500 ; retract 4mm
      G91 ; relative moves
      G1 Z5 F5000 ; raise nozzle 2mm
      G90 ; absolute moves
      G1 X0 Y85 F5000 ; move head out of the way of the print

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

        I presume you are homing to maximum Z. Why not change your homez.g and homeall.g files to back off a few mm from the Z endstop at the end?

        You could add parameter S1 to the G1 Z5 command in resume.g, then it will stop at the endstop.

        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
        • Alexander Mundy
          Alexander Mundy last edited by

          It does drop down a couple of mm. Forgot to mention it is a delta and the G1 X0 Y85 F5000 in pause.g would require quite a few cm. Printing right now so can't check how much. If I change G1 Z-2 F2000 in the homedelta.g to a large enough Z- value to allow pause at home position I assume that will limit my total printable Z height?

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

            The only issue I can see with changing Z-2 to Z-5 in that command in homedelta.g is if you have a G28 command in your slicer end gcode, and then you do a print that is the full height at the centre.

            Why are you raising the nozzle by as much as 5mm in your pause.g file? That seems excessive to me. I use 2mm.

            If you really want to use 5mm, I think you could use G1 S1 X5 Y5 Z5 instead of G1 Z5 in your pause.g file, to have each motor stop if it triggers a homing switch.

            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
            • Alexander Mundy
              Alexander Mundy last edited by

              Good question (G1 Z5), I've never modified the pause file and notice it says 2mm in the notes. The pause file was from someone else's files with a similar delta. I'll drop that to 2mm.

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