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

    Solved: Setting Z offset for T1

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    30
    3.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.
    • T3P3Tonyundefined
      T3P3Tony administrators @RajaaKahel
      last edited by

      @rajaakahel are you sure it's not moving 0.85mm as you have configured?

      www.duet3d.com

      RajaaKahelundefined 2 Replies Last reply Reply Quote 0
      • RajaaKahelundefined
        RajaaKahel @T3P3Tony
        last edited by

        @t3p3tony Yes I'm sure, check the picture, now I tried again with 50mm Z offset for T1, but nothing happens..0_1535113744985_Screen Shot 2018-08-24 at 2.26.37 PM.png

        1 Reply Last reply Reply Quote 0
        • RajaaKahelundefined
          RajaaKahel @T3P3Tony
          last edited by

          @t3p3tony Now during the last test:
          "I tried again with 50mm Z offset for T1"
          Something very strange happened!
          First T0 was printing, then the tool changed to T1 (nothing happened, no Z offset) but then when the tool changed back to T0 the bed moved by about 50mm down and went back to continue printing.
          After that and before that it didn't move down by 50mm at all.

          zerspaner_gerdundefined 1 Reply Last reply Reply Quote 0
          • zerspaner_gerdundefined
            zerspaner_gerd @RajaaKahel
            last edited by

            @RajaaKahel

            After the tool change, a Z value must be present, otherwise the axis will not be approached.

            Part of my tool change script from S3D:

            T[new_tool] ; New Tool
            
            G1 X[next_position_x] Y[next_position_y] Z[next_position_z] F9000

            Board: Duet WiFi 1.03 | Firmware Version: 3.1.1 | WiFi Server Version: 1.23 | Web Interface Version: 3.1.1

            RajaaKahelundefined 1 Reply Last reply Reply Quote 0
            • RajaaKahelundefined
              RajaaKahel @zerspaner_gerd
              last edited by

              @zerspaner_gerd My problem is that Duet is not applying the offset I want for T1. It's ignoring it. Through G10 in config.g and through any other command anywhere else.
              Also it's acting weird if you read my last comment.

              zerspaner_gerdundefined 1 Reply Last reply Reply Quote 0
              • zerspaner_gerdundefined
                zerspaner_gerd @RajaaKahel
                last edited by

                @rajaakahel For me, the z-offset works, why should not it work for you?

                Share your gcode, maybe I can find an explanation!

                Which firmware version do you use?

                Board: Duet WiFi 1.03 | Firmware Version: 3.1.1 | WiFi Server Version: 1.23 | Web Interface Version: 3.1.1

                RajaaKahelundefined 1 Reply Last reply Reply Quote 0
                • RajaaKahelundefined
                  RajaaKahel @zerspaner_gerd
                  last edited by

                  @zerspaner_gerd 0_1535130513803_8.gcode

                  Macros:
                  https://drive.google.com/open?id=1Nwte-EtKEzL_ogCqJp7PMQ2qsLK7RBkM

                  Configurations:
                  https://drive.google.com/open?id=1q-h8eojJ91CQwK2p5YhWKuQaQph0sQ_T

                  Here's everything.. I'd appreciate it if you or anyone could find anything!

                  1 Reply Last reply Reply Quote 0
                  • zerspaner_gerdundefined
                    zerspaner_gerd
                    last edited by

                    I have to give up, Sorry.

                    I find no big differences to my config.g.
                    The gcode is already very different but he should not make these problems!

                    Maybe a try, copy your tool Macro directly into the Duet Tool Macro, so that without M98 (subbrogram)

                    Board: Duet WiFi 1.03 | Firmware Version: 3.1.1 | WiFi Server Version: 1.23 | Web Interface Version: 3.1.1

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

                      @RajaaKahel, if the tool 1 nozzle is 0.85mm lower than tool 0 then I think you need Z-0.85 in the G10 P1 command, not Z0.85.

                      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

                      RajaaKahelundefined 2 Replies Last reply Reply Quote 0
                      • RajaaKahelundefined
                        RajaaKahel @dc42
                        last edited by

                        @dc42 Tool 1 nozzle is actually longer than Tool 0 nozzle by 0.85mm.
                        I updated to:
                        Firmware Version: 2.02beta1(RTOS) (2018-08-12b5)
                        WiFi Server Version: 1.21RC4(08b3)
                        Web Interface Version: 1.22

                        Nothing solved.

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

                          @rajaakahel said in Setting Z offset for T1:

                          @dc42 Tool 1 nozzle is actually longer than Tool 0 nozzle by 0.85mm.

                          So do you mean the Tool 1 nozzle is 0.85mm lower than tool 0, or higher?

                          Where two tools have different nozzle heights, in the tool change files (probably the tpre file) you will need to raise Z so that when you bring in the tool with the lower nozzle after using the other one, its nozzle will be clear of the print. Use command G1 R2 Z0 at or near the end of the tpost file to put it at the right height before continuing the print.

                          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

                          RajaaKahelundefined 2 Replies Last reply Reply Quote 0
                          • RajaaKahelundefined
                            RajaaKahel @dc42
                            last edited by

                            @dc42 during the last test:
                            "I tried again with 50mm Z offset for T1"
                            Something very strange happened!
                            First T0 was printing, then the tool changed to T1 (nothing happened, no Z offset) but then when the tool changed back to T0 the bed moved by about 50mm down and went back to continue printing.
                            After that and before that it didn't move down by 50mm at all.

                            1 Reply Last reply Reply Quote 0
                            • RajaaKahelundefined
                              RajaaKahel @dc42
                              last edited by

                              @dc42 T1 is higher than T0. I tried with many gcommands to raise the bed, but they didn't work. I'll try now with G1 R2 Z50

                              1 Reply Last reply Reply Quote 0
                              • RajaaKahelundefined
                                RajaaKahel @dc42
                                last edited by RajaaKahel

                                @dc42
                                Ok now the bed is moving down by the value I entered (50mm) Before T1 is activated but it goes back to 0.2mm (the layer height) after T1 is activated. It should go to 50.2mm after T1 is selected and stay there to print. (So now the Z offset is taken into account only during tool change).

                                Thank you for your time, we are getting closer 🙂

                                ; tfree1.g
                                ; called when tool 1 is freed
                                G1 R2 Z-50
                                M98 P/macros/parkT1

                                ; tpre1.g
                                ; called before tool 1 is selected

                                G1 R2 Z50

                                1 Reply Last reply Reply Quote 0
                                • RajaaKahelundefined
                                  RajaaKahel
                                  last edited by

                                  I gave up on this. So much time for nothing. Sometimes it works, sometimes it's not. even tho same commands are used and after rebooting and homing. And the most important is in config.g
                                  The z offset doesn't work. (G10 P1 X0 Y0 Z0.85)

                                  I'll have to redesign the tool mounts to be adjustable mechanically instead or move back to Marlin..

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

                                    I'll look into this when I get time. However, E3D uses Duets to control their tool changers and they haven't reported any similar problems.

                                    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

                                    RajaaKahelundefined 1 Reply Last reply Reply Quote 0
                                    • RajaaKahelundefined
                                      RajaaKahel
                                      last edited by

                                      I appreciate that! 🙂

                                      1 Reply Last reply Reply Quote 0
                                      • RajaaKahelundefined
                                        RajaaKahel @dc42
                                        last edited by

                                        @dc42
                                        Here's a short video I recorded for you so you can see what actually is happening and maybe it makes it easier to solve the problem.
                                        I don't have any offset commands set anywhere else other than what you see in config.g.
                                        https://www.youtube.com/watch?v=MuGbiBkKNUI

                                        zerspaner_gerdundefined 1 Reply Last reply Reply Quote 0
                                        • zerspaner_gerdundefined
                                          zerspaner_gerd @RajaaKahel
                                          last edited by

                                          @rajaakahel
                                          Try this macro, and parts of what happens.

                                          G10 P0 S0 R0
                                          G10 P1 S0 R0
                                          G28
                                          T0
                                          G0 X100 Y100 Z50
                                          G4 S5
                                          M291 P"X100 Y100 Z50 with T0" S2 T0
                                          T1
                                          G4 S5
                                          M291 P"T1 active" S2 T0
                                          G0 X100 Y100 Z50
                                          G4 S5
                                          M291 P"X100 Y100 Z50 with T1" S2 T0
                                          
                                          T-1
                                          

                                          Board: Duet WiFi 1.03 | Firmware Version: 3.1.1 | WiFi Server Version: 1.23 | Web Interface Version: 3.1.1

                                          1 Reply Last reply Reply Quote 0
                                          • zerspaner_gerdundefined
                                            zerspaner_gerd
                                            last edited by zerspaner_gerd

                                            Just tested with mine,

                                            You have to do 30 negative (just to test)

                                            At positive 30 he wants to drive 29.8mm minus, but this would require the bed to be driven 29.8mm higher that does not make the Duet.
                                            At T0 Z0 position, it is over

                                            Board: Duet WiFi 1.03 | Firmware Version: 3.1.1 | WiFi Server Version: 1.23 | Web Interface Version: 3.1.1

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