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

Emergency Stop without M112

Scheduled Pinned Locked Moved
Tuning and tweaking
8
15
974
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.
  • undefined
    peter247 @taconite
    last edited by peter247 21 Aug 2020, 09:23

    @taconite
    https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_Configure_external_trigger

    https://duet3d.dozuki.com/Wiki/Gcode#Section_M400_Wait_for_current_moves_to_finish

    https://duet3d.dozuki.com/Wiki/Gcode#Section_M0_Stop_or_Unconditional_stop

    Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

    1 Reply Last reply Reply Quote 0
    • undefined
      taconite
      last edited by 21 Aug 2020, 10:19

      Thx @peter247 I have a trigger configured but I dont want to wait for moves to finish - I want the printer to stop immediately

      Custom ANET A8
      Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

      All I do here is under this license: CC BY-NC-SA

      undefined undefined 2 Replies Last reply 21 Aug 2020, 10:25 Reply Quote 0
      • undefined
        peter247 @taconite
        last edited by 21 Aug 2020, 10:25

        @taconite Can't you make a macro to call M0 what is Unconditional stop.

        Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

        undefined 1 Reply Last reply 23 Aug 2020, 06:35 Reply Quote 0
        • undefined
          droftarts administrators @taconite
          last edited by droftarts 21 Aug 2020, 11:44

          @taconite an emergency stop that stops immediately (ie doesn’t finish moves in buffer), but doesn’t terminate the Gcode or reset the board is on the to do list. I don’t know when it will be implemented though.

          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

          1 Reply Last reply Reply Quote 1
          • undefined
            cdthomas9
            last edited by cdthomas9 21 Aug 2020, 16:35

            I'm thinking the only way to go about that would be to cut the power somehow. I would think that any software options would be processed in order, and not interrupting what is going on immediately. I imagine a hardware solution (relay, etc) to accomplish this. That would probably negate what you're trying to accomplish though.

            @droftarts that feature would be able to resume after this full stop?

            1 Reply Last reply Reply Quote 0
            • undefined
              kazolar
              last edited by 23 Aug 2020, 03:11

              @droftarts that would be a big feature for CNC use cases, there many conditions when a full stop/reset, which is recoverable is what is necessary and CNC controllers support this behavior (coming from Mach 3)

              1 Reply Last reply Reply Quote 0
              • undefined
                taconite @peter247
                last edited by 23 Aug 2020, 06:35

                @peter247 in the docu it says about M0: The firmware finishes any moves left in its buffer

                @droftarts Mhh okay at least it already made it on the list 😄 so +1 from me. Btw for every machine that runs in Europe it is mandatory to have an Emergency Stop and yes the duet is kind of complying but it would be nice to have the flexibility 😉
                It would be nice if it would not reset homing either so we can still move the machine without homing (especially for deltas)

                Is there a timeline when which feature is planned to be implemented?

                Custom ANET A8
                Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

                All I do here is under this license: CC BY-NC-SA

                undefined 1 Reply Last reply 23 Aug 2020, 06:38 Reply Quote 0
                • undefined
                  Phaedrux Moderator @taconite
                  last edited by 23 Aug 2020, 06:38

                  @taconite said in Emergency Stop without M112:

                  It would be nice if it would not reset homing either

                  It can't guarantee the same position so it's marked unhomed. If you can guarantee position, you can force the position with G92, which will mark it as homed.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 1
                  • undefined
                    kazolar
                    last edited by 23 Aug 2020, 18:16

                    @Phaedrux you can save the positions, and then if the behavior is scriptable, then G92 can be used to set them back as homed. Main key with this feature is stop current motion, no clearing of buffer, no more pulses to the steppers -- I've done this with ICs with external drivers by sending the step pin through a logic gate which is unioned with a conditional behavior -- as soon as the condition is triggered, the steppers stop. I can't do that with onboard drivers

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      kazolar
                      last edited by 29 Aug 2020, 23:39

                      So simple enough -- I made M113 for my purposes which works just like the E-Stop button on web UI and panelDue -- problem with M999 --is it has this 1 second wait, it results in waiting for a second before stopping the motors, that's not good. I made M113 that does everything M112 does and a software reset, and boom -- my e-Stop Triggers work like they do on a safe CNC controller. Hard limit is hit -- machine stops and reboots -- easy as pi

                      undefined 1 Reply Last reply 15 Oct 2020, 17:26 Reply Quote 0
                      • undefined
                        kazolar
                        last edited by 29 Aug 2020, 23:40

                        next task is to add M3.g, M4.g and M5.g support to toggle some relays, and I have fully functional CNC controller.

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          RileyG @kazolar
                          last edited by 15 Oct 2020, 17:26

                          @kazolar Can you describe the action you M113 code takes?

                          Looking for a "softer" stop than M112 where the machine stops immediately (does not complete any actions in the buffer) but does not reset the firmware. Not an emergency stop but an immediate stop.

                          undefined undefined 2 Replies Last reply 19 Oct 2020, 09:56 Reply Quote 1
                          • undefined
                            JuKu @RileyG
                            last edited by 19 Oct 2020, 09:56

                            This would also make jogging simple. Start a move to machine limit on button down, send immediate stop on button up.

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              kazolar @RileyG
                              last edited by 19 Oct 2020, 16:13

                              @RileyG My M113 is actually an emergency stop, it is basically what M999 does, but with no delays -- or M112 + a reboot. I don't need a just stop the world with no reset -- I want it to reset -- but with no prompts

                              1 Reply Last reply Reply Quote 0
                              • undefined Omiclette referenced this topic 28 Jan 2022, 00:07
                              • First post
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA