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

Slow down before endstop?

Scheduled Pinned Locked Moved
CNC
11
101
6.6k
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
    Phaedrux Moderator @theKM
    last edited by 3 Sept 2021, 04:43

    @thekm said in Slow down before endstop?:

    the nonsense of figuring it all out again for the new firmware....

    This is the usual spiel I give for users doing the upgrade.

    If you still have access to DWC. Upload these 3 zip files, one at a time in the system tab. Don't extract them first. Reboot after each. Use M115 in the gcode console to verify the firmware has been applied.
    https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip
    https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
    https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/Duet2and3Firmware-3.3.zip
    That will get your firmware and DWC up to date.

    You can see the change logs here:
    https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x

    For your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
    https://configtool.reprapfirmware.org/Start

    Backup your existing config files in the sys folder in case you want to switch back to RRF2. It’s easy to switch back and forth, just upload the zip file for the version you want and then upload your config files.

    These documents will come in handy during the conversion.
    https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview
    https://duet3d.dozuki.com/Wiki/Gcode

    Z-Bot CoreXY Build | Thingiverse Profile

    undefined 1 Reply Last reply 3 Sept 2021, 16:04 Reply Quote 1
    • undefined
      theKM @Phaedrux
      last edited by theKM 9 Mar 2021, 16:06 3 Sept 2021, 16:04

      @phaedrux the firmware is updated, got through that. The machine moves, spindle and such isn't working, which went through a huge change in RRF it seems... spindles and external stepper drivers aren't covered in the config tool, I just have to go through it all line by line again. There's scattered config examples around, I should be able to get through it.

      1 Reply Last reply Reply Quote 0
      • undefined
        Phaedrux Moderator
        last edited by 3 Sept 2021, 16:09

        There is this https://duet3d.dozuki.com/Wiki/Configuring_RepRapFirmware_for_a_CNC_machine but I'm not sure how up to date it is. If you have any suggestions on improving that page while you go through it, please let me know and I can update it. I'm not a CNC user myself, so my understanding is limited.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 1
        • undefined
          theKM @fcwilt
          last edited by 3 Sept 2021, 17:24

          @fcwilt ...voltage divider works in so much as I get the 500 and 1000 levels through the zprobe input. Next is making the machine move and see what it does with G38.2

          1 Reply Last reply Reply Quote 1
          • undefined
            theKM @sinned6915
            last edited by theKM 9 Apr 2021, 06:12 4 Sept 2021, 03:40

            @sinned6915

            So I've tried to chase down what straight probing can do for me...

            I made a setup with a breadboard to emulate the analog signal, and confirmed that with buttons I could trigger a value of around 515, and 1000 (confirmed in DWC probe interface)... to correspond with the docco of what the IR probe does. Set the probe value with G31, also verified in the UI.

            Regardless of what I send through 32.8, it only ever moves at the second feedrate from 558, nothing I tried got it to move at the initial faster rate.

            The move itself accelerates and decelerates if not interrupted, and the stop is still a hard stop (it's only moving at the second slower feedrate, so I guess that's expected).

            There is an ominous line in the gcode docco:

            "When doing a plain G30 command, an additional probe will be done using the first speed to establish the approximate bed position, before one or more additional probes are done using the second speed. The first speed will not be used when probing at a defined point or when mesh bed probing.".

            I've tried to find any config examples of something I may have missed to get it to honor the initial feedrate, but, not finding any.

            M558 P1 C"zprobe.in" H0 F10000:300 T500
            G31 P500 X0 Y0 Z0
            ; following line is actually pretty handy
            G38.2 X{move.axes[0].userPosition-25}
            undefined 1 Reply Last reply 6 Sept 2021, 20:10 Reply Quote 1
            • undefined
              Phaedrux Moderator @theKM
              last edited by 6 Sept 2021, 20:10

              @thekm said in Slow down before endstop?:

              There is an ominous line in the gcode docco:

              "When doing a plain G30 command, an additional probe will be done using the first speed to establish the approximate bed position, before one or more additional probes are done using the second speed. The first speed will not be used when probing at a defined point or when mesh bed probing.".

              This refers to using the A parameter to do multiple probings. That's when the second probe speed is used.

              Z-Bot CoreXY Build | Thingiverse Profile

              undefined 1 Reply Last reply 6 Sept 2021, 21:03 Reply Quote 0
              • undefined
                theKM @Phaedrux
                last edited by theKM 9 Jun 2021, 21:04 6 Sept 2021, 21:03

                @phaedrux ...I don't know what's left to try then, I'm not setting any "A" parameter anywhere and it's only ever moving at the slower feedrate.

                The M558 and G31 lines above configure the probe, when the G38.2 runs the probe input certainly stops the move, but nothing I've tried gets the probe to move at the initial 1000 to allow it to slow to the second feedrate.

                M558's P1 sets the analog input, and G31 sets that threshold, and it does indeed trigger based on G31's P value

                1 Reply Last reply Reply Quote 0
                • undefined
                  Phaedrux Moderator
                  last edited by 6 Sept 2021, 21:20

                  You're trying to use two different features together.

                  The M558 P1 analog input allows for the slow down as part of the ir probe functionality. I'm not sure if that will actually work with a non-ir probe at all.

                  And defining the two speed probing is only used when A is set. If you set A2, the first probe would be fast, it would then trigger, back off to the dive height, and then probe again at the slower speed.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  undefined 1 Reply Last reply 7 Sept 2021, 02:23 Reply Quote 1
                  • undefined
                    theKM @Phaedrux
                    last edited by 7 Sept 2021, 02:23

                    @phaedrux

                    I'm not sure if that will actually work with a non-ir probe at all.

                    ...the IR probe just sets a voltage on the input pin for however close it thinks something is. I've replicated the voltage with a couple of resistors as a voltage divider, the controller thinks it's an IR probe. The DWC UI says its emulation of analog probing is working fine.

                    And defining the two speed probing is only used when A is set. If you set A2, the first probe would be fast, it would then trigger, back off to the dive height, and then probe again at the slower speed.

                    Yup, certainly seems that way.

                    Annnnnyways... would be nice if there was an option for G1 to receive an interrupt in order to slow down ahead of an end stop.

                    undefined 1 Reply Last reply 7 Sept 2021, 02:28 Reply Quote 0
                    • undefined
                      fcwilt @theKM
                      last edited by 7 Sept 2021, 02:28

                      @thekm said in Slow down before endstop?:

                      And defining the two speed probing is only used when A is set. If you set A2, the first probe would be fast, it would then trigger, back off to the dive height, and then probe again at the slower speed.

                      So even having two speeds doesn't solve the problem of the abrupt 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 7 Sept 2021, 02:37 Reply Quote 0
                      • undefined
                        theKM @sinned6915
                        last edited by 7 Sept 2021, 02:32

                        @sinned6915 ...the voltage divider worked just fine, values in DWC showed it, could set the threshold to trigger and such, it showed it triggering, not a problem.

                        What didn't work though, was the "G38.2" working as you said it would. It only ever moves at the slower configured feedrate and is stopped dead by the probe.

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          theKM @fcwilt
                          last edited by theKM 9 Jul 2021, 02:43 7 Sept 2021, 02:37

                          @fcwilt ...From phaedrux's confirmation, it will slow for subsequent probes, but that's only after the first probe at the faster rate... which is move, trigger, dead stop, back up a little, go slow until trigger. It looks like it's just what the normal endstop homing does but it's all just baked into one gcode like with a specified probe count.

                          From everything I've seen, the duet only knows how to interrupt a move with a hard stop... I'd love to be proven otherwise 🙂

                          Think I'll just move on. I'm hacking up the UI so the movement panel is more configurable so it's easier to get to custom macro buttons that can park the machine in known places, near home, etc. Then it can just be homed slowly, as well as handy buttons for fixtures and such.

                          undefined undefined 2 Replies Last reply 7 Sept 2021, 07:11 Reply Quote 1
                          • undefined
                            Phaedrux Moderator @theKM
                            last edited by 7 Sept 2021, 07:11

                            @thekm said in Slow down before endstop?:

                            From everything I've seen, the duet only knows how to interrupt a move with a hard stop... I'd love to be proven otherwise

                            You're not wrong. It would be a feature request. It has been discussed before for CNCs, so this isn't the first time it's come up. From what I understand it's not trivial. But it is on the wishlist.

                            Z-Bot CoreXY Build | Thingiverse Profile

                            1 Reply Last reply Reply Quote 1
                            • undefined
                              droftarts administrators @theKM
                              last edited by droftarts 9 Jul 2021, 09:27 7 Sept 2021, 09:25

                              @thekm The slow down when using an analogue probe (like the IR probe) no longer happens in RRF 3.3 and later (and only works with Z probing afaik). Instead M558 allows the fast then slow probing. See under 'New features' here https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x#reprapfirmware-33

                              • M558 now accepts either one or two F values, e.g. F1000:300. If two values are provided, then when executing a G30 command with no P parameter an additional probe using the first speed will first be done to establish the approximate Z=0 position, followed by one or more probes (controlled by the A parameter) to establish Z=0 more precisely.
                              • When using an analog Z probe, the probing speed is no longer reduced when the probe is close to triggering. Use the new M558 facility to do fast-then-slow probing instead, if necessary.

                              Also, not relevant here, but the IR probe is always in digital mode on Duet 3, because of the permanent pullup resistor. On Duet 2 it can be run in analog mode.

                              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 2
                              97 out of 101
                              • First post
                                97/101
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA