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

    CNC Enclosure Door Pause

    Scheduled Pinned Locked Moved
    CNC
    6
    10
    511
    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.
    • CthulhuLabsundefined
      CthulhuLabs
      last edited by CthulhuLabs

      Is there a good explanation some where on how to wire up and configure a door switch on a CNC enclosure to:

      1. Pause an active job when the door it opened
      2. Not let a new job start till the door is closed
      3. Resume an active job when the door is closed

      I have a DPDT momentary switch on my CNC door. One of the the circuits is wired to my VFD's enable pin such that when the door is opened the VFD stops. I did this because my VFD does not have a dead band so any stray voltage over 0.8mV on it's ADC would trigger it to spin. They are working to add one so I can set a minimum voltage to start the spindle. I would like the other circuit to pause the Duet MB6HC as quickly as possible.

      Nightowlundefined deckingmanundefined 2 Replies Last reply Reply Quote 0
      • Nightowlundefined
        Nightowl @CthulhuLabs
        last edited by

        @cthulhulabs

        This thread might be a good place to start.

        I use an external momentary switch to pause/move to a safe place/resume the machine, so it will probably work for most of what you want, but I don't understand why you'd want to load a job in the middle of another job, if that's what you're asking ❓

        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

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

          @cthulhulabs This might help you https://docs.duet3d.com/en/User_manual/Tuning/Triggers

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

          1 Reply Last reply Reply Quote 0
          • CthulhuLabsundefined
            CthulhuLabs @Nightowl
            last edited by

            @nightowl said in CNC Enclosure Door Pause:

            I don't understand why you'd want to load a job in the middle of another job, if that's what you're asking

            I am not talking while there is an active job running. I want to prevent a job from starting if the door is already open.

            chrishammundefined 1 Reply Last reply Reply Quote 1
            • chrishammundefined
              chrishamm administrators @CthulhuLabs
              last edited by

              @cthulhulabs You can run M582 in your start.g to check the trigger state and to run the corresponding "door open" action when necessary. Or just check the trigger state from start.g using an if-statement and cancel the job immediately using M0.

              Duet software engineer

              rziundefined 1 Reply Last reply Reply Quote 0
              • rziundefined
                rzi @chrishamm
                last edited by

                @chrishamm One caveat is that the machine will not pause until the buffer is empty.

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

                  @rzi when printing from file, the print will try to pause without emptying the buffer if the jerk limit allows.

                  In RRF 3.5 we plan to introduce a facility to pause almost instantly, in the middle of a move if necessary.

                  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

                  CthulhuLabsundefined 1 Reply Last reply Reply Quote 3
                  • CthulhuLabsundefined
                    CthulhuLabs @dc42
                    last edited by

                    I plan on putting together a document on how to set up a door switch once I get it all worked out.

                    1 Reply Last reply Reply Quote 0
                    • CthulhuLabsundefined
                      CthulhuLabs
                      last edited by

                      Is it possible to configure two triggers on one pin? IE trigger a pause script when the pin goes Inactive -> Active and another script when it goes from Active -> Inactive. IE something like:

                      ; Configure Enclosure Door Switch To Pause
                      M950 J1 C"io4.in"
                      M581 P1 T2 S1    ; Call trigger2.g when io4.in goes from inactive to active
                      M581 P1 T3 S0    ; Call trigger3.g when io4.in goes from active to inactive
                      
                      deckingmanundefined 1 Reply Last reply Reply Quote 0
                      • deckingmanundefined
                        deckingman @CthulhuLabs
                        last edited by

                        @cthulhulabs said in CNC Enclosure Door Pause:

                        Is it possible to configure two triggers on one pin? IE trigger a pause script when the pin goes Inactive -> Active and another script when it goes from Active -> Inactive. IE something like:

                        ; Configure Enclosure Door Switch To Pause
                        M950 J1 C"io4.in"
                        M581 P1 T2 S1    ; Call trigger2.g when io4.in goes from inactive to active
                        M581 P1 T3 S0    ; Call trigger3.g when io4.in goes from active to inactive
                        

                        I haven't actually tried that in anger but if the firmware works as the documentation implies, then it should. It would be simple enough to test by simply creating those triggers with a single echo command in each.

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

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