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

    Retract/unretract with G10 / G11

    Scheduled Pinned Locked Moved
    General Discussion
    4
    7
    848
    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.
    • fmaundefined
      fma
      last edited by

      Hi!

      I juste noticed that G10 only retract once; if I call it again, it does not retract until a G11 command is sent.

      Why?

      I wrote a script to purge the nozzle, where I extrude some filament. Than I want to retract before I clean the nozzle on a little brush.

      But slicers often sent a final retract, using G10. In this case, my cleanup script misses a G10… But it works when executed just after switch on.

      I can use a relative move of the extruder, but I don't like this solution; G10/G11 is better.

      Is there a way to reset the G10/G11 sequence?

      Thanks,

      Frédéric

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

        Hey, looks like that is a "feature" that needs to be changed in the next firmware version.

        For now you may need to change the startup script to use relative extruder movement and retract that way.

        www.duet3d.com

        1 Reply Last reply Reply Quote 0
        • deckingmanundefined
          deckingman
          last edited by

          Errr, actually there is a little bug in slic3r (AFAIK all versions - certainly the latest Prusa version has it too) whereby it'll sometimes put two consecutive G10s without a G11 in between. It's invariably near the front of the file around the first layer change but not always.

          So, I'm quite glad multiple consecutive G10s are not allowed. If this feature is removed, I'll have to manually check every gcode file and manually delete any multiple occurrences of G10, so personally, I'll be a bit miffed. I don't know about other slicers and I doubt many people will have checked their gcode files for multiple occurrences of G10 without a G11 in between, but if they exist then suddenly a whole lot of people are going to be a tad upset that a firmware change has had an adverse effect on files that previous;y printed OK.

          Ian
          https://somei3deas.wordpress.com/
          https://www.youtube.com/@deckingman

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

            @fma:

            Hi!

            I juste noticed that G10 only retract once; if I call it again, it does not retract until a G11 command is sent.

            Why?

            I wrote a script to purge the nozzle, where I extrude some filament. Than I want to retract before I clean the nozzle on a little brush.

            But slicers often sent a final retract, using G10. In this case, my cleanup script misses a G10… But it works when executed just after switch on.

            I can use a relative move of the extruder, but I don't like this solution; G10/G11 is better.

            Is there a way to reset the G10/G11 sequence?

            Thanks,

            It's intentional that G10/G11 pairs cannot be nested. G11 will be ignored unless the filament is already retracted.

            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
            • fmaundefined
              fma
              last edited by

              Ok, so what about a reset G10/G11? Or maybe a param to force them to occur, whatever the current sequence is?

              Frédéric

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

                Sending G11 will reset, because it will un-retract if there is an outstanding G10 retraction, and be ignored otherwise.

                Edit: it will also undo any outstanding Z hop.

                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
                • fmaundefined
                  fma
                  last edited by

                  Ok, thanks!

                  Frédéric

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