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

    Secondary Tool move breaks Z homing

    Scheduled Pinned Locked Moved Unsolved
    Duet Hardware and wiring
    3
    62
    2.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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      Yes that looks ok for a zmax endstop switch, but it depends on the kind of switch. NO or NC.

      @optical said in Secondary Tool move breaks Z homing:

      G1 H2 Z-5 F500

      Remove the H2 on that move to back away from the switch.

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • opticalundefined
        optical
        last edited by

        @Phaedrux Keep in mind that the homing Z is working properly until i use commands:

        T1
        G0 X10
        

        After these commands the input sensor stops working. So it must be related to the movement of the second tool.
        I think there has to be bug in the firmware. Otherwise the homing before the movement would be also faulty.

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

          @optical said in Secondary Tool move breaks Z homing:

          the input sensor stops working.

          Meaning the inductive probe? Does the switch also stop?

          Sorry, I'm having a hard time visualizing what's all going on. Can you post a video showing step by step what's happening?

          Z-Bot CoreXY Build | Thingiverse Profile

          opticalundefined 1 Reply Last reply Reply Quote 0
          • opticalundefined
            optical @Phaedrux
            last edited by optical

            @Phaedrux
            I have uploaded to this link video to show the Head Z homing and the fault.
            Video (edit Made link public)

            Executed sequence

            G28 Z
            T1 
            G0 X150 ;Note that i have rotation mapped to axe X to enable tool remapping.
            G28 Z; The sensor physicly works how ever sotfware asumes that is always on ?
            
            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator
              last edited by

              Your video link is private.

              Z-Bot CoreXY Build | Thingiverse Profile

              opticalundefined 1 Reply Last reply Reply Quote 0
              • opticalundefined
                optical @Phaedrux
                last edited by

                @Phaedrux I have edited the post to make it public.

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

                  Thanks.

                  Ok, so just to clarify what I'm seeing. The left head does the G28 Z it goes down, triggers, backs up, and goes down again. T1 is sent, it switches to the right head, G0 X150 is sent to make it spin and then G28Z is send again but this time the Z endstop is already triggered at the start of the move.

                  @optical said in Secondary Tool move breaks Z homing:

                  G92 Z12

                  Where does this value come from?

                  @optical said in Secondary Tool move breaks Z homing:

                  G1 H2 Z-5 F500

                  Did you remove that H2?

                  @optical said in Secondary Tool move breaks Z homing:

                  homing Z is working properly until i use commands:
                  T1 G0 X10

                  Does the behaviour change if you don't also send the G0 X10 command? Does it behave different if you send G1 X10 instead?

                  What are you using for the Z endstop now? Is it still a probe or is it a simple switch?

                  Z-Bot CoreXY Build | Thingiverse Profile

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

                    @optical said in Secondary Tool move breaks Z homing:

                    I do not have any tool change files tfree0.g, tpre0.g and tpost0.g in /sys on the SD card

                    Could you try creating them? Even if they are empty.

                    Z-Bot CoreXY Build | Thingiverse Profile

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

                      Can you also post your config.g as it currently stands.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • opticalundefined
                        optical
                        last edited by optical

                        I have created empty files:
                        tfree0.g, tpre0.g and tpost0.g
                        tfree1.g, tpre1.g and tpost1.g
                        The issue still persists
                        My current config is
                        config.g
                        homez.g

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

                          @optical said in Secondary Tool move breaks Z homing:

                          G92 Z12

                          Where does the Z12 come from?

                          Z-Bot CoreXY Build | Thingiverse Profile

                          opticalundefined 1 Reply Last reply Reply Quote 0
                          • opticalundefined
                            optical @Phaedrux
                            last edited by optical

                            This is because the Z Axis has to have 0 coordinate in the neutral position. When the nozzles are at the same height. The induction probe is not all the way at the end of the heads movement range.

                            Or do you have some other idea how to tell the board that the end switch is not at maximum or minimum coordinate?

                            1 Reply Last reply Reply Quote 0
                            • opticalundefined
                              optical
                              last edited by

                              @Phaedrux Do you think that the issue is the G92 code to set the position ?
                              @dc42 You mention testing the configuration on you test gig at the office. Is it possible that you have a look at it ? It seems that the gcode configuration is not an issue here.

                              1 Reply Last reply Reply Quote 0
                              • opticalundefined
                                optical
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • opticalundefined
                                  optical
                                  last edited by optical

                                  @Phaedrux @dc42
                                  I have found that there is M119 Command to report endstop states so i made the test where the Z endstop stops working.

                                  alt text Image upload does not work...

                                  It shows that the M119 state does not change when the endstop stops working. There must be some kind of mapping associated with the tool changing.

                                  The reason why i think the endstop is not working is that when i disconnect the probe for the expected broken homing the head is behaving as the switch is open.
                                  However when connected for the expected broken homing it reads it as closed.
                                  (Open, Closed in terms of active switch not the voltage level.)

                                  When the machine is in the broken state when i activate the switch manually the M119 reports correctly that it is stopped.

                                  Endstops - X: not stopped, Y: not stopped, Z: at max stop, U: not stopped, V: not stopped, Z probe: at min stop
                                  

                                  There must be some kind of issue in move command that it is checking wrong input or something. After the tool change

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

                                    Sorry for the lapse in replies. Was not intentional.

                                    And that's still with empty tool change files?

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    opticalundefined 1 Reply Last reply Reply Quote 0
                                    • opticalundefined
                                      optical @Phaedrux
                                      last edited by

                                      @Phaedrux Yes

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

                                        @optical

                                        1. Is your config.g file still exactly as you posted it at the star of this thread? If not, then please post it here again.

                                        2. What is the current minimal set of operations to reproduce the problem?

                                        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

                                        opticalundefined 1 Reply Last reply Reply Quote 0
                                        • opticalundefined
                                          optical @dc42
                                          last edited by optical

                                          @dc42 Thank you for you valuable time
                                          Latest configuration files with homing files needed.
                                          homez.g homex.g homev.g config.g

                                          Minimal set of gcode to reproduce the problem.

                                          G28 X ;
                                          G28 V ;
                                          G28 Z ; Homing works fine multiple times
                                          G28 Z ; Works
                                          
                                          T1 
                                          G0 X200 ; Move with secondary tool
                                          
                                          G28 Z ; Does not work. Detects the induction endstop immidietly eventhough it is not triggered
                                          

                                          Earlier i have posted video showing the problem for better undestanding the procedure visualy: Video

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

                                            I don't think this is the problem here, but I noticed you've got double values for your Y axis which are not needed. It's only extruders that you would need to define the values per extruder motor.

                                            M584 U2 Y0:1 Z5 X4 V3                                            ; set drive mapping
                                            M350 U32 Y32:32 Z4 X32 V32 I1                                    ; configure microstepping with interpolation
                                            M92 U213.248243767313 Y213.248243767313:213.248243767313 Z20.21 X17.777 V17.777          ; set steps per mm
                                            M566 U200.00 Y200.00 Z900.00 X900.00 V900.00                     ; set maximum instantaneous speed changes (mm/min)
                                            M203 U50000 Y30000:Y30000             ; set maximum speeds (mm/min)
                                            M203 Z5000.00 X5000 V5000             ; set maximum speeds (mm/min)
                                            M201 U5000.00 Y3000.00:3000.00 Z2000.00 X2000 V2000              ; set accelerations (mm/s^2)
                                            M906 U2800 Y2800:2800
                                            

                                            Remove the duplicate values for Y. In fact this one would probably provoke an error message M203 U50000 Y30000:Y30000

                                            Send M98 P"config.g" to check for any syntax error messages.

                                            Z-Bot CoreXY Build | Thingiverse Profile

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