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

Interrupt print when end stop is triggered

Scheduled Pinned Locked Moved Solved
Gcode meta commands
5
12
515
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
    fhoran
    last edited by 10 Oct 2020, 22:18

    I am on site printing files submitted by students of a remote class. They slice it themselves so sometimes the gcode is larger than the build volume

    I cant get M581 to interrupt a print with an emergency stop if the z end stop is triggered

    3DPotter SCARA V3
    M581 line in the config file
    ;M581 Z1 S1 C1 ;Configure external trigger

    undefined 1 Reply Last reply 10 Oct 2020, 22:48 Reply Quote 0
    • undefined
      OwenD @fhoran
      last edited by OwenD 10 Oct 2020, 22:54 10 Oct 2020, 22:48

      @fhoran that line is commented out.
      Does it work if you remove the semi colan ";" ?

      Edit: Also M581 parameters are firmware version specific, so check the dozuki
      https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_Configure_external_trigger

      1 Reply Last reply Reply Quote 1
      • undefined
        fhoran
        last edited by fhoran 10 Oct 2020, 23:08 10 Oct 2020, 23:07

        Nope, I tried a handful of variants that also didn't work. I tried the M577 command to make sure I was referring to the end stop correctly and it responded to Z or Z1
        I cant seem to get M581 to do anything

        Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
        Firmware Electronics: Duet WiFi 1.02 or later
        Firmware Version: 2.03RC1 (2019-05-08b1)

        1 Reply Last reply Reply Quote 0
        • undefined
          fcwilt
          last edited by 10 Oct 2020, 23:33

          Hi,

          You firmware is rather out of date.

          I think the current v2 firmware is 2.05.1.

          I know that it worked with switches connected to end stop inputs. I had one button that forced a restart (M999) and another that forced an emergency stop.

          I have migrated to v3 firmware and no longer have my v2 config file but I think you are missing the T parameter which specifies the trigger number.

          T0 specifies an emergency stop.

          Frederick

          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

          undefined 1 Reply Last reply 11 Oct 2020, 18:50 Reply Quote 3
          • undefined
            Phaedrux Moderator
            last edited by 11 Oct 2020, 01:59

            For starters, upload this zip file as is (don't extract it) to the /sys folder via DWC to update your firmware.

            https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip

            Then check your M581 command against the documentation that OwenD linked.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • undefined
              fhoran
              last edited by 11 Oct 2020, 18:34

              Thanks everyone for the help so far, I am a student worker so this is really invaluable!

              I updated the firmware, and I was wondering if the update prevents the machine from moving beyond its build volume, because even though it is not triggering an emergency stop when it hits the z max (500) it stays there, continuing to print but not moving upward.

              Before if a file was sliced to drive it above the 500 limit it would gladly slam the arm into the end stop on its journey to the stars.

              So the problem that started this is solved, but I guess I don't understand how to use the M581 command. I tried all the permutations in the documentation but none of them triggered an emergency stop when the end stop was triggered.

              Again, Thanks so much!

              1 Reply Last reply Reply Quote 0
              • undefined
                dc42 administrators @fcwilt
                last edited by 11 Oct 2020, 18:50

                @fcwilt said in Interrupt print when end stop is triggered:

                Hi,

                You firmware is rather out of date.

                I think the current v2 firmware is 2.05.1.

                I know that it worked with switches connected to end stop inputs. I had one button that forced a restart (M999) and another that forced an emergency stop.

                I have migrated to v3 firmware and no longer have my v2 config file but I think you are missing the T parameter which specifies the trigger number.

                T0 specifies an emergency stop.

                Frederick

                As @fcwilt says, the T parameter appears to be missing from the M581 command.

                Hint: to check for some on obvious errors in the config.g file, run M98 P"config.g".

                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

                1 Reply Last reply Reply Quote 0
                • undefined
                  fhoran
                  last edited by fhoran 10 Nov 2020, 19:09 11 Oct 2020, 19:03

                  Adding T0 didn't change the output before the firmware update but I will try again now.

                  Did this firmware update also change the appearance of DWC? It is styled differently than it was before, and the styling is unlike the DWC interface documentation here for v1 & v2/3
                  https://duet3d.dozuki.com/c/DuetWebControl

                  Edit: I saw the revert to DWC 1- I was worried because its the schools machine but as long as I can switch it were all good 👍 👍

                  undefined 1 Reply Last reply 11 Oct 2020, 19:45 Reply Quote 0
                  • undefined
                    Phaedrux Moderator
                    last edited by 11 Oct 2020, 19:43

                    DWC1 is a bit out dated at this point and not maintained. As long as you're on the RRF2 branch DWC1 should work fine. When moving to RRF3 things may not work as expected. It's mostly just visual changes at the moment.

                    @fhoran said in Interrupt print when end stop is triggered:

                    Before if a file was sliced to drive it above the 500 limit it would gladly slam the arm into the end stop on its journey to the stars.

                    Yes by default the axis limits are respected by the firmware. You can send a command to remove that limit, but it's not recommended for normal use. The M208 axis limit command should be set for the actual physical limit of the machine and the slicer should be set to respect that limit as well.

                    This generally is enough to negate the need for dual endstops or an estop at the end of an axis.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      fcwilt @fhoran
                      last edited by 11 Oct 2020, 19:45

                      @fhoran said in Interrupt print when end stop is triggered:

                      Adding T0 didn't change the output before the firmware update but I will try again now.

                      I'm not sure what you mean by "change the output".

                      The T parameter determines what trigger is run.

                      From the documentation:

                      Trigger number 0 causes an emergency stop as if M112 had been received.
                      Trigger number 1 causes the print to be paused as if M25 had been received.
                      Any trigger number # greater than 1 causes the macro file sys/trigger#.g to be executed.

                      Hope that helps.

                      Frederick

                      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                      undefined 1 Reply Last reply 11 Oct 2020, 20:01 Reply Quote 0
                      • undefined
                        fhoran @fcwilt
                        last edited by 11 Oct 2020, 20:01

                        @fcwilt My bad, I meant outcome

                        And it works now! It's no longer needed but it's great to learn what each part of the config file does.

                        Thank you all again
                        This is my first post, how do I mark this as solved?

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Phaedrux Moderator
                          last edited by 11 Oct 2020, 20:14

                          Topic tools, then ask as question, then topic tools again and mark as solved.

                          Z-Bot CoreXY Build | Thingiverse Profile

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