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

    Emergency Stop

    Scheduled Pinned Locked Moved Solved
    General Discussion
    3
    15
    631
    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.
    • deckingmanundefined
      deckingman @SonnyD1
      last edited by

      @SonnyD1 said in Emergency Stop:

      @deckingman I built a folder and put a simple M112 in it. Test failed. I've got some checking to do. I suspect it may be a wiring issue. I'll have to work it out and get back with ya.

      Suggest the first thing you do is change T2 to T0. That will work the same way that M112 does but without needing a trigger macro (that's why trigger 0 and trigger1 should not be used -T1 does a pause like M25). If that doesn't work, then you need to check your wiring etc. If it does work then you need to check the trigger2 file and /or its location.

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

      SonnyD1undefined 2 Replies Last reply Reply Quote 1
      • SonnyD1undefined
        SonnyD1 @deckingman
        last edited by

        @deckingman Yea its gotta be a wiring issue. I think I can sort it out. I'll get back with ya when I do.

        1 Reply Last reply Reply Quote 0
        • SonnyD1undefined
          SonnyD1 @deckingman
          last edited by

          @deckingman Ok I cant seem to figure out the wiring and I dont want to use the trial and error method my my new board. Do you know how to wire that particular endstop?

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @SonnyD1
            last edited by

            @SonnyD1 From a question in the the 'Question and Answer' section of the listing:

            Question:
            I assume the the green wire is the common? wireing needs to be in your description.
            Answer:
            Hi Green wire is common, Blue is NO, Yellow is NC.

            So you can wire it NO or NC. We advise NC (Normally Closed), see https://docs.duet3d.com/User_manual/Connecting_hardware/Sensors_endstops#microswitch

            Duet 3: connect the switch between the IN and GND pins of your chosen IO_x connector.

            You said:

            I built a folder and put a simple M112 in it.

            Do you mean you created a folder called 'trigger2.g'? It needs to be a text file, like any gcode file. And it needs to be in the sys folder.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            SonnyD1undefined 1 Reply Last reply Reply Quote 0
            • SonnyD1undefined
              SonnyD1 @droftarts
              last edited by SonnyD1

              @droftarts Thats how I have it wired. I have the green wire to the ground and the yellow wire to the signal. Also, I created a folder named trigger2.g with an M112 in it. I started a home all and hit the endstop and nothing happened.

              droftartsundefined 1 Reply Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @SonnyD1
                last edited by

                @SonnyD1 said in Emergency Stop:

                I created a folder named trigger2.g

                A folder, or a file? It should be a text file, not a folder.

                Ian

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                SonnyD1undefined 2 Replies Last reply Reply Quote 0
                • SonnyD1undefined
                  SonnyD1 @droftarts
                  last edited by SonnyD1

                  @droftarts Yes it is a file. Currently named trigger0.g due to the "T" change you recommended. The file isn't even necessary with a T0.

                  1 Reply Last reply Reply Quote 0
                  • SonnyD1undefined
                    SonnyD1 @droftarts
                    last edited by

                    @droftarts I found the problem. It wouldn't trigger because I had a R1 instead of a R0 in my M581 command. I've changed it and it executes the M112 properly now. Any modifications I do on it from here on out would be easy now that I know. I would say this issues is solved. Thank you very much!

                    droftartsundefined 1 Reply Last reply Reply Quote 0
                    • SonnyD1undefined SonnyD1 has marked this topic as solved
                    • droftartsundefined
                      droftarts administrators @SonnyD1
                      last edited by

                      @SonnyD1 R1 will only trigger while a file is being printed from the SD card. So it probably was working, you just weren't running a job! Also, yes, T0 and T1 ignore any trigger file, so any changes to trigger0.g won't do anything. You need to use T2 or higher to have it run what you want in a trigger#.g file.

                      Ian

                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                      SonnyD1undefined 1 Reply Last reply Reply Quote 0
                      • SonnyD1undefined
                        SonnyD1 @droftarts
                        last edited by

                        @droftarts Thats what I may do later. For now I'm gonna leave it as is. Thanks again for your help!

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