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

Homing with switch and stall detection for layer shift

Scheduled Pinned Locked Moved
Tuning and tweaking
3
8
1.1k
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
    Lakko
    last edited by 20 Feb 2018, 17:10

    Hi,
    is it possible to use mechanical switch and Zprobe for homing sequence from the DWC (with button Home All, Home X, Home Y, Home Z), homing at the start of a print with G28 in the start of gcode file and use the stall detection only for detect a layer shift so in rehome.g i can put a G28 XY (that use the mechanical switch) and then resume the print.
    Thanks

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 20 Feb 2018, 18:50

      Yes.

      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
        Lakko
        last edited by 21 Feb 2018, 13:46

        Ok, awesome!!!
        So, i have only to add this in config.g [c]M915 X Y S10 F0 R3[/c] without to change the [c]M574 X1 Y2 Z2 S0[/c]
        or i have to add the M915 in config.g and change the [c]M574 X1 Y2 Z2 S0[/c] in config.g into this

        M574 Z2 S0 ; set endstop Z for piezo probe
        M574 X1 Y2 S3 ; set endstop X1 is at MIN end - Y2 is at MAX end - stall detection
        ```and in the homeall.g, homex.g, homey.g add at the beginning of the code a [c]M574 X1 Y2 Z2 S0[/c]?
        anyway i have to add a rehome.g in sys directory for homing the printer using the mechanical endstop:

        M98 Phomex.g ; home X. Running the home X sequence
        M98 Phomey.g ; home Y. Running the home Y sequence
        M24 ; Resume print

        thank you
        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 21 Feb 2018, 14:26

          Leave your M574 command on config.g exactly as you would if you were not configuring stall detection. M915 does not affect the endstops unless you have configured stall detection endstops in M574.

          You do not need M24 in rehome.g, the print should be resumed automatically after running it.

          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
            Lakko
            last edited by 21 Feb 2018, 15:48

            So with only the M915 in config.g file i configure the stall for layer shift.
            i have to try to cause a little stall in middle print and see how it work
            thank you for your help!

            1 Reply Last reply Reply Quote 0
            • undefined
              Lakko
              last edited by 22 Feb 2018, 08:03

              is there a precision point where to place the M915? or it can be everywhere in config.g file?

              1 Reply Last reply Reply Quote 0
              • undefined
                dc42 administrators
                last edited by 22 Feb 2018, 10:26

                M915 needs to be after any M584 command(s) if you are using axis letters in the M915 command, but other than that it should not matter.

                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
                  Scott_H
                  last edited by 25 Feb 2018, 11:42

                  I have stall detection working - mostly, still trying to dial it in.

                  Is it possible to both log and pause? ie, M915 Z S52 F1 R1 R2? I feel this would be quite handy as far as knowing what caused a fault. Logging more details than simply "Warning: Driver(s) 2 stalled at Z height 55.00" would be quite a thing too. The command as I have pasted it certainly doesn't work, but is there something silly I'm missing?

                  That said, the fact that this works at all on a coreXY machine is amazing.

                  Another question - I believe the extruder is P3 on my machine (driver 3). This being the case, is it feasible to use stall detection to notice extruder backpressure and pause a print? Or is this idea likely to cause me much gnashing of teeth but not much success? I'm happy to have a crack at it, but just thought I'd see if anyone else has attempted this.

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