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

    unable to home[xyz] using my homing scripts

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    4
    26
    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.
    • spllgundefined
      spllg @Phaedrux
      last edited by spllg

      @Phaedrux done but did not solve my problem

      homex.g

      M564 H0
      G91 ; relative positioning
      ;M208 X-26 S1 ; set axis minima
      G1 Z5 F6000 H2 ; lift Z relative to current position
      G1 H1 X-355 F3000 ; move quickly to X axis endstop and stop there (first pass)
      G1 X2 F3000 ; go back a few mm
      G1 H1 X-355 F100 ; move slowly to X axis endstop once more (second pass)
      G1 x+26 f3000
      G1 Z-5 F1000 H2 ; lower Z again
      G90 ; absolute positioning
      M564 H1

      btw: i can see that G1 Z5 F6000 H2 is executed

      1 Reply Last reply Reply Quote 0
      • Danalundefined
        Danal @spllg
        last edited by

        @spllg said in unable to home[xyz] using my homing scripts:

        the strange ting is that homing works when i enter the commands into th console

        Hmm... then, just for debugging, try that set of commands in a macro (not in sys) and try them in a 'print job'.

        And/or, basic debugging: Shorten the script. Assuming that works, add things back slowly. Minimal is probably something like:

        G91 ; relative positioning
        G1 H1 X-355 F3000 ; move quickly to X axis endstop and stop there (first pass)
        G90

        Delta / Kossel printer fanatic

        spllgundefined 1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator @spllg
          last edited by

          @spllg said in unable to home[xyz] using my homing scripts:

          which makes me think that there might be a dwc <-> duet timing issue

          That's certainly a possibility, which is why it would help to have things cleaned up as much as possible so that we can rule out configuration error.

          In cases like this it can be helpful to go to the web configurator, input your printer specifics, and generate a fresh set of files to compare against. You can backup your config and try the configurator version. If it works and yours doesn't what is the difference?

          Z-Bot CoreXY Build | Thingiverse Profile

          spllgundefined 1 Reply Last reply Reply Quote 0
          • spllgundefined
            spllg @Danal
            last edited by

            @Danal created the macro.

            executing

            M564 H0
            G91 ; relative positioning
            ;M208 X-26 S1 ; set axis minima
            G1 Z5 F6000 H2 ; lift Z relative to current position
            G1 H1 X-355 F3000 ; move quickly to X axis endstop and stop there (first pass)
            G1 X2 F3000 ; go back a few mm
            ;G1 H1 X-355 F100 ; move slowly to X axis endstop once more (second pass)
            ;G1 x+26 f3000
            ;G1 Z-5 F1000 H2 ; lower Z again
            ;G90 ; absolute positioning
            M564 H1

            works fine and i can move in x direction after execution. when i uncomment ;G1 H1 X-355 F100 i cannot move in x-direction after execution.

            oh no, not again this complete configuration process.

            but why did homing via scrip ever work?

            1 Reply Last reply Reply Quote 0
            • spllgundefined
              spllg @Phaedrux
              last edited by spllg

              @Phaedrux

              changing

              M201 X1500.00 Y1500.00 Z100.00 E3000.00 ; set accelerations (mm/s^2)
              (i was advised to try this but forgot about it)

              to

              M201 X500.00 Y500.00 Z100.00 E3000.00 ; set accelerations (mm/s^2)

              did the trick.

              thanks for your assistance.

              btw: g- and- m-codes are horrible - the g-m language reminds me on assembler languages of the early 1970's (e.g. honeywell) but i cannot and don't want to remember details.

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                So at 1500 acceleration the motor was stalling preventing the endstop from being hit and thus hanging?

                Z-Bot CoreXY Build | Thingiverse Profile

                spllgundefined 1 Reply Last reply Reply Quote 0
                • spllgundefined
                  spllg @Phaedrux
                  last edited by spllg

                  @Phaedrux looks like - but only for a small feed rate (G1 H1 X-355 F100) and a small distance (2 mm back to end stop) and not if command was executed from the console.

                  i feel this is strange, maybe someone wants to have a look at the code.

                  i do not know if the stepper(s) were/are stalling of if the 'firmware was stalling' - only a reset (hard or soft, power cycling the board was not necessary ) could end the faulty state.

                  1 Reply Last reply Reply Quote 0
                  • Danalundefined
                    Danal
                    last edited by

                    @spllg said in unable to home[xyz] using my homing scripts:

                    only a reset (hard or soft, power cycling the board was not necessary ) could end the faulty state.

                    There is a reproducible behavior in RRF3: If a homing move does not end, everything hangs, and it takes a reset to get out of that state. Furthermore, if you have a Pi, both the Duet board and the Pi must be reset.

                    Delta / Kossel printer fanatic

                    spllgundefined dc42undefined 2 Replies Last reply Reply Quote 0
                    • spllgundefined
                      spllg @Danal
                      last edited by

                      @Danal in my case it is sufficient to reset the duet - don't have to touch the rpi.

                      1 Reply Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators @Danal
                        last edited by

                        @Danal said in unable to home[xyz] using my homing scripts:

                        @spllg said in unable to home[xyz] using my homing scripts:

                        only a reset (hard or soft, power cycling the board was not necessary ) could end the faulty state.

                        There is a reproducible behavior in RRF3: If a homing move does not end, everything hangs, and it takes a reset to get out of that state. Furthermore, if you have a Pi, both the Duet board and the Pi must be reset.

                        Firmware version? Does it happen in standalone mode as well as in SBC mode?

                        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

                        spllgundefined 1 Reply Last reply Reply Quote 0
                        • spllgundefined
                          spllg @dc42
                          last edited by

                          @dc42

                          • firmware version = 3.01-RC2
                          • it happens in sdc mode
                          • never tried standalone mode (although probably is should)
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA