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

    External Pause/Resume Button

    Scheduled Pinned Locked Moved
    Gcode meta commands
    6
    22
    2.0k
    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.
    • burtonenatorundefined
      burtonenator @Nightowl
      last edited by

      @nightowl999

      I have the initial M42 in the config.g because it does actually start with that on, so this sets it off, and then after that its in the pause and resume to set it correctly when pressed.

      Yea, the out on the io's is 3.3v, I needed a transistor to bring it up to 5v for my LED, which in that one I showed above lists as 12v but looks great at 5v

      oliofundefined Nightowlundefined 2 Replies Last reply Reply Quote 1
      • oliofundefined
        oliof @burtonenator
        last edited by oliof

        @burtonenator if you used M950 P8 C"!io8.out"you could skip the M42 IIRC.

        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

        1 Reply Last reply Reply Quote 0
        • Nightowlundefined
          Nightowl @burtonenator
          last edited by

          @burtonenator said in External Pause/Resume Button:

          the only issue is I do have to push the button until the command is recognized, so if the printer is doing a long line, it won't catch

          Following on from this comment, what in 3D printing terms is "...a long line"? I appreciate this is the code within the gcode file, obviously 🙂 , but i'm not familiar with how travel speed/time on a 3D printer compares to that of a CNC machine.

          Is it a case of CNCers savagely cut their way through stock while 3D printers gently weave their way?

          Thanks

          Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
          I'm still on my learning curve, so take everything I say with caution!

          RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

          Phaedruxundefined 1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator @Nightowl
            last edited by

            @nightowl999 said in External Pause/Resume Button:

            .a long line

            It means that each command would execute and complete before an interruption/pause could take effect before the next command is executed.

            You can reduce this effect by increasing the segmentation value. This breaks long running commands up into smaller sections which allows the interruption to happen sooner.

            See the details on the M669 command for how to configure segmentation.

            https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m669-set-kinematics-type-and-kinematics-parameters

            Z-Bot CoreXY Build | Thingiverse Profile

            Nightowlundefined 1 Reply Last reply Reply Quote 1
            • Nightowlundefined
              Nightowl @Phaedrux
              last edited by Nightowl

              Sorry, I was being slightly flippant, @phaedrux, although it would be interesting to know how these things compare.

              I can cut a a 12" slot in a piece of hardwood with a 1/4" end mill quite qhickly, but I guess it would take a lot longer for a 3D printer to build a 1/4" square bar 12" long quite a bit longer, but I suppose it's trying to compare apples and pears...

              Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
              I'm still on my learning curve, so take everything I say with caution!

              RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

              fcwiltundefined 1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                It's not about the time or speed it takes, it's about the gcode command itself which would be the same in CNC or 3d printer. The point being that in order to interrupt a command in progress it must be segmented to stop it mid execution.

                Z-Bot CoreXY Build | Thingiverse Profile

                Nightowlundefined 1 Reply Last reply Reply Quote 1
                • Nightowlundefined
                  Nightowl @Phaedrux
                  last edited by Nightowl

                  @phaedrux I'm being a plum. I was getting confused with another thread! Sorry.

                  No, this question was really about the delay when activating the pause command for the external switch.

                  Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                  I'm still on my learning curve, so take everything I say with caution!

                  RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                  1 Reply Last reply Reply Quote 0
                  • fcwiltundefined
                    fcwilt @Nightowl
                    last edited by

                    @nightowl999 said in External Pause/Resume Button:

                    it's trying to compare apples and pears...

                    I like pears but my wife doesn't.

                    Frederick

                    Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                    Nightowlundefined 1 Reply Last reply Reply Quote 1
                    • Nightowlundefined
                      Nightowl @fcwilt
                      last edited by

                      @fcwilt 🙄 🙂 🙂

                      Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                      I'm still on my learning curve, so take everything I say with caution!

                      RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                      1 Reply Last reply Reply Quote 0
                      • Nightowlundefined
                        Nightowl @burtonenator
                        last edited by Nightowl

                        @burtonenator
                        Just a quick update: I now have full pause/resume control via an external switch. Yaay!

                        Thank you for your wisdom and help.

                        Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                        I'm still on my learning curve, so take everything I say with caution!

                        RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                        1 Reply Last reply Reply Quote 0
                        • Nightowlundefined Nightowl referenced this topic
                        • Nightowlundefined
                          Nightowl @burtonenator
                          last edited by Nightowl

                          @burtonenator

                          I found a little anomaly with the code. It is just a little one, but if you run the file from the Jobs screen, everything works as it should (thanks again), but if you rerun the file from the Start Again button in the Job Control window of the Dashboard, the file will run, but if you use the external button to Pause the process, you get an error:

                          Error: Cannot print, because no file is selected!
                          

                          So I'm guessing the "job.file.fileName" line might need a bit of a tweak.

                          I'll see how I get on...

                          EDIT: Erm, it doesn't seem to do it now. I'll check again over the next few days and report back...

                          Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                          I'm still on my learning curve, so take everything I say with caution!

                          RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                          1 Reply Last reply Reply Quote 1
                          • Nightowlundefined Nightowl referenced this topic
                          • Nightowlundefined Nightowl referenced this topic
                          • Nightowlundefined Nightowl referenced this topic
                          • Nightowlundefined Nightowl referenced this topic
                          • Nightowlundefined Nightowl referenced this topic
                          • Nightowlundefined Nightowl referenced this topic
                          • Nightowlundefined Nightowl referenced this topic
                          • Nightowlundefined Nightowl referenced this topic
                          • First post
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA