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

    Alternate axis for Z-Hop

    Scheduled Pinned Locked Moved
    Firmware wishlist
    6
    16
    709
    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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      It could be done with some post processing. Create a macro set called G10.1 and G11.1 and in there do the retraction and move the alternate z axis up and down, then in your gcode file, post process to replace the G10/G11 commands with G10.1/G11.1 for your second tool.

      Z-Bot CoreXY Build | Thingiverse Profile

      kuonundefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined Phaedrux moved this topic from General Discussion
      • kuonundefined
        kuon @Phaedrux
        last edited by kuon

        @Phaedrux Nice idea, thanks for the suggestion. Also, where is it appropriate to ask for such feature? (edit: I see that you moved the topic, so I guess it's on the wishlist now, thanks)

        kuonundefined 1 Reply Last reply Reply Quote 0
        • kuonundefined
          kuon @kuon
          last edited by

          Also bonus question, if I implement a custom macro called with G10.1 in /sys/G10.1.g I do not need to call M120/121 in it right?

          Phaedruxundefined o_lampeundefined 2 Replies Last reply Reply Quote 0
          • PCRundefined
            PCR @kuon
            last edited by

            @kuon can you share the design ?

            kuonundefined 1 Reply Last reply Reply Quote 0
            • kuonundefined
              kuon @PCR
              last edited by

              @PCR Here is how it looks. I plan to open source everything when the printer is fully operational and tuned, as I am still changing thnigs.

              20221116_06h35m12s_grim.png

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

                @kuon said in Alternate axis for Z-Hop:

                Also bonus question, if I implement a custom macro called with G10.1 in /sys/G10.1.g I do not need to call M120/121 in it right?

                M120/M121 are not required as far as I know. Should be automatic on a macro call.

                https://docs.duet3d.com/en/User_manual/Reference/Gcodes#custom-gcodes

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 0
                • o_lampeundefined
                  o_lampe @kuon
                  last edited by

                  @kuon
                  Be careful with replacing G10 in your post processing script. It has three different meanings, depending on what parameters (if any) follow G10.
                  Make sure it is plain G10 followed by enter

                  kuonundefined 1 Reply Last reply Reply Quote 1
                  • kuonundefined
                    kuon @o_lampe
                    last edited by

                    @o_lampe Yes, thanks for pointing that, I'll be sure to replace full lines.

                    engikeneerundefined kuonundefined 2 Replies Last reply Reply Quote 0
                    • engikeneerundefined
                      engikeneer @kuon
                      last edited by

                      @kuon you'll also want to track the retraction status of each extruder by a global variable so repeated G10's without a G11 don't pull thr filament all the way out!

                      E3D TC with D3Mini and Toolboards.
                      Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
                      i3 clone with a bunch of mods

                      1 Reply Last reply Reply Quote 1
                      • kuonundefined
                        kuon @kuon
                        last edited by

                        @kuon said in Alternate axis for Z-Hop:

                        @o_lampe Yes, thanks for pointing that, I'll be sure to replace full lines.

                        Yes, great idea, I'll do that.

                        1 Reply Last reply Reply Quote 0
                        • o_lampeundefined
                          o_lampe
                          last edited by

                          I wish there was a simple way to do the same with mesh levelling.
                          Any ideas?

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

                            @o_lampe said in Alternate axis for Z-Hop:

                            I wish there was a simple way to do the same with mesh levelling.
                            Any ideas?

                            The only way I can think of using existing firmware is to remap the Z axis in mesh.g before you command G29 S0, and remap it back again afterwards. A complication is that using M584 to remap Z will mark it as un-homed. So you will need to save the existing Z position in a variable, issue the M584 command, then use G92 to set the Z coordinate to the saved position. Similarly when you switch the Z axis back.

                            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

                            o_lampeundefined 1 Reply Last reply Reply Quote 0
                            • o_lampeundefined
                              o_lampe @dc42
                              last edited by

                              @dc42 Thanks, that's a good starting point. But G29 S0 isn't always possible, once a print/carving job has started.
                              A simple G30 after remapping Z to reestablish z=0 datum will probably work too? My CNC has a certain spot to home Z and set tool length and on a printer we'd have to pick a corner outside of the actual print area to do so.
                              Then reset to LastKnownZ and use g29 s1 to load heightmap again.

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

                                @o_lampe I misunderstood, you mean that you want to use the tool head vertical axis to implement mesh bed compensation. I think you could do a similar thing around layer change.

                                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

                                o_lampeundefined 1 Reply Last reply Reply Quote 0
                                • o_lampeundefined
                                  o_lampe @dc42
                                  last edited by

                                  @dc42
                                  Exactly, that was a problem I had with the hashPrinter. I wanted to use the "mini-Z axis" for z-hop and mesh levelling. But the firmware for simultaneous printing is still in the making.
                                  Two tools using the same heightmap at different XY-coordinates simultaneously is another hurdle.

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