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

    Prevent Multiple Retracts and Unretracts

    Scheduled Pinned Locked Moved
    General Discussion
    3
    4
    559
    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.
    • Eddiieundefined
      Eddiie
      last edited by

      Is it possible, or does it already do this? To have the firmware ignore multiple G10 commands without a G11 and vice-versa ignore multiple G11's without a G10?

      Retract Example:
      G10 check for flag, if flag is high, ignore G10 command, otherwise set a flag to 1 and retract.
      G11 reset flag and unretract.

      this might get complicated with multiple tools.. ?

      I am noticing back to back G10's in my GCode

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • fmaundefined
        fma
        last edited by

        The firmware already ignores multiples G10 and multiple G11...

        Frédéric

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

          @eddiie said in Prevent Multiple Retracts and Unretracts:

          Is it possible, or does it already do this? To have the firmware ignore multiple G10 commands without a G11 and vice-versa ignore multiple G11's without a G10?

          Retract Example:
          G10 check for flag, if flag is high, ignore G10 command, otherwise set a flag to 1 and retract.
          G11 reset flag and unretract.

          this might get complicated with multiple tools.. ?

          I am noticing back to back G10's in my GCode

          Yes, the firmware will never do multiple retracts or un-retracts. So if your gcode file contains multiple G10 commands, only the first will be acted on. Subsequent G10 commands will be ignored until a G11 command is sent. Likewise only the first G11 unretract will be acted on and any others will be ignored until a G10 command is sent.

          Edit sorry @fma - looks like we were typing at the same time.

          Edit 2. This behaviour also applies if you try and send multiple G10 or G11 commands via the console.

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

          1 Reply Last reply Reply Quote 0
          • Eddiieundefined
            Eddiie
            last edited by

            That is great news! Thanks guys.

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