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

    emptying the instruction buffer after cancelling a job

    Scheduled Pinned Locked Moved
    CNC
    2
    11
    222
    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.
    • flopesundefined
      flopes
      last edited by

      Is there a way to empty the instruction buffer after cancelling a job?
      M0 does not do it. I am having issues with my CNC lathe, after cancelling a job the only way to empty the buffer is to cycle the power of the board. I am running Duet 2 ethernet 0n 3.4.6

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

        @flopes if you are running the job from the SD card, RRF does empty the buffer when you cancel a job.

        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

        flopesundefined 1 Reply Last reply Reply Quote 0
        • flopesundefined
          flopes @dc42
          last edited by

          @dc42 I am loading the programs thru web interface

          dc42undefined flopesundefined 2 Replies Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @flopes
            last edited by

            @flopes please explain what you mean "loading the programs through the web interface".

            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

            flopesundefined 2 Replies Last reply Reply Quote 0
            • flopesundefined
              flopes @flopes
              last edited by

              @flopes when I cancel a job and restart, the buffer from the old sequence is executed

              1 Reply Last reply Reply Quote 0
              • flopesundefined
                flopes @dc42
                last edited by

                @dc42 645db668-498a-4c97-89fc-54b1567a9be7-image.png

                flopesundefined 1 Reply Last reply Reply Quote 0
                • flopesundefined
                  flopes @flopes
                  last edited by

                  @flopes 81035956-8557-42d5-b733-29642b09b736-image.png

                  1 Reply Last reply Reply Quote 0
                  • flopesundefined
                    flopes @dc42
                    last edited by

                    @dc42 upon cancelling and restarting, the buffer continues been executed, instead of beginning from the program first line

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

                      @flopes that's very odd. RRF always emptied the internal buffer as soon as you pause the print. If you resume the print it runs the resume.g macro, rewinds the file pointer to point to the first command that was discarded, then proceeds with the file again. Whereas if you press the Cancel button then it closes the file and runs the cancel.g macro, or the stop.g macro if there is on cancel.g macro.

                      What f anything do you have n the stop.g and cancel.g macros?

                      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

                      flopesundefined 1 Reply Last reply Reply Quote 0
                      • flopesundefined
                        flopes @dc42
                        last edited by

                        @dc42 this is my pause macro:
                        M280 P4 S800 ; GRINDER OFF
                        M280 P3 S800 ; SPINDLE OFF

                        I have no cancel macro

                        flopesundefined 1 Reply Last reply Reply Quote 0
                        • flopesundefined
                          flopes @flopes
                          last edited by

                          @flopes no stop macro either

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