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

    5bar scara Problem configuring z probe using fsr switch

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    4
    98
    4.2k
    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.
    • gnmrc_undefined
      gnmrc_ @fcwilt
      last edited by gnmrc_

      @fcwilt Yes, If I move first the left actuator than the right I can reach the zero position from the home position using only one actuator at the time with no problem.

      If I understand correctly you are suggesting that after I reached the home position I rotate only one motor at the time to reach the zero position, right?
      In this case I could also only move the arm using angular position.

      Tell me if I understood everything correctly.

      Thanks for the help,
      Gianmarco

      fcwiltundefined 1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @gnmrc_
        last edited by

        @gnmrc_

        Considering a simple two-axis Cartesian printer where each axis, X and Y, can move independently.

        The endstop switches for each axis are in known locations. When you power up the machine the location of the tool is unknown.

        You issue the G1 H1 commands for one axis at a time. The movement is toward the associated endstop switch. When the endstop switch is triggered movement stops and the location for that axis is now known, as it sets the logical position based on the min or max value from M208, for that axis.

        But If the values in M208 are wrong the logical position for that axis will not match the physical position.


        I'm trying to figure out how that is done on a machine like yours where movement to any XY point seems to require moving both axes.

        Starting from a unknown position is there a single G1 H1 Xaaa Ybbb command that can result in each endstop switch being triggered at some point in time?

        Or do you use two commands, G1 H1 Xaaa and G1 H1 Ybbb?

        The physical positions of the endstop switches that you posted, positions you verified mathematically and experimentally, don't match the values in the M208 in your config.g file.

        Thanks.

        Frederick

        Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

        gnmrc_undefined 1 Reply Last reply Reply Quote 0
        • gnmrc_undefined
          gnmrc_ @fcwilt
          last edited by

          @fcwilt, no it's not possible to home with a single G1 H1 command both axis, you have to home one axis at a time. After the homing arm procedure ends the arm knows its effector position (I also corrected the m208 line).
          In the dashboard X and Y values after I get the error "failed to home Z" are correct.
          If after the error I send a g92 z0 command and then g0 x0 y0 the arm behaves as it should.
          Only if I send the g0 x0 y0 in the home5barscara.g file the arm does not behave properly.
          I also took the videos of the 2 arm behaviors, but are too large to upload here, tell me if they could help.

          Thanks for the help.

          Gianmarco

          fcwiltundefined 1 Reply Last reply Reply Quote 0
          • fcwiltundefined
            fcwilt @gnmrc_
            last edited by

            @gnmrc_

            Well it sounds like you are making good progress.

            Why is Z not being homed? Z is usually easy.

            As to the videos I would very much like to see them.

            Can you upload them to YouTube?

            Thanks.

            Frederick

            Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

            gnmrc_undefined 1 Reply Last reply Reply Quote 0
            • gnmrc_undefined
              gnmrc_ @fcwilt
              last edited by

              @fcwilt, yes we are getting close to make it work perfectly.

              I cannot home the z axis because I use the z probe as z endstop for homing.
              Being my homing pos outside the bed I have to move the arm at a position inside the bed to complete the procedure but when I try to do so I get the overshooting problem.
              That move it’s the only thing left to make everything work.

              Yes I will post the videos as soon as possible.

              Thanks for the help,

              Gianmarco

              fcwiltundefined 1 Reply Last reply Reply Quote 0
              • fcwiltundefined
                fcwilt @gnmrc_
                last edited by

                @gnmrc_

                Perhaps you could just add a micro switch or optical sensor to simplify homing Z?

                Frederick

                Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                gnmrc_undefined 1 Reply Last reply Reply Quote 0
                • gnmrc_undefined
                  gnmrc_ @fcwilt
                  last edited by

                  @fcwilt It will work but would be like skipping the problem. I want to make the homing work properly as intended.

                  Gianmarco

                  fcwiltundefined 1 Reply Last reply Reply Quote 0
                  • fcwiltundefined
                    fcwilt @gnmrc_
                    last edited by fcwilt

                    @gnmrc_ said in Problem configuring z probe using fsr switch:

                    @fcwilt It will work but would be like skipping the problem. I want to make the homing work properly as intended.

                    Gianmarco

                    There is no "properly" - there are just several ways to achieve the desired outcome.

                    Consider this printer of mine using three Z steppers to achieve auto bed leveling:

                    Bed Leveling Demo

                    Now I purposely put the bed way out of level to demonstrate the auto bed leveling. It works because each Z axis has it's on endstop switch. It would not be possible with a typical Z probe to level the bed as it is.

                    Once the bed is level then I use the Z probe to run the firmware's bed leveling feature which fine tunes the result obtained from leveling with the endstop switches.

                    It's your printer and you can do anything you want but don't frustrate yourself thinking homing Z with a probe is "as intended".

                    Good luck.

                    Frederick

                    Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                    gnmrc_undefined 1 Reply Last reply Reply Quote 0
                    • gnmrc_undefined
                      gnmrc_ @fcwilt
                      last edited by

                      @fcwilt Ok, I'm gonna do that way.
                      By the way I forgot to link the videos of the machine:
                      This is the overshoot that the arm does
                      This is the homing only of the 2 arms and after the g92 command followed by the G0 x0 y0.

                      Thanks,
                      Gianmarco

                      fcwiltundefined 1 Reply Last reply Reply Quote 0
                      • fcwiltundefined
                        fcwilt @gnmrc_
                        last edited by

                        @gnmrc_

                        That is a fascinating machine.

                        Please post your most recent config.g file and the various homing files.

                        We are overlooking something simple - I think.

                        Thanks.

                        Frederick

                        Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                        gnmrc_undefined 1 Reply Last reply Reply Quote 0
                        • gnmrc_undefined
                          gnmrc_ @fcwilt
                          last edited by

                          @fcwilt

                          This is the most recent config file: config (1).g
                          and this is the most recent homing file:home5barscara (2).g
                          (I left commented some workarounds that I tried)

                          Thanks for all the help that you are giving me,
                          Gianmarco.

                          fcwiltundefined 1 Reply Last reply Reply Quote 0
                          • fcwiltundefined
                            fcwilt @gnmrc_
                            last edited by

                            @gnmrc_

                            Sorry it is taking so long.

                            In your homing file at the end you have

                            G1 X0 Y0 S2
                            

                            Why the S2?

                            Frederick

                            Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                            gnmrc_undefined 1 Reply Last reply Reply Quote 0
                            • gnmrc_undefined
                              gnmrc_ @fcwilt
                              last edited by

                              @fcwilt, do not worry about the time I’m not in a hurry.
                              I use S2 because it makes me move the arm even if it’s not homed, other h commands would not make it move, I do not know why.

                              Gianmarco

                              fcwiltundefined 1 Reply Last reply Reply Quote 0
                              • fcwiltundefined
                                fcwilt @gnmrc_
                                last edited by fcwilt

                                @gnmrc_ said in Problem configuring z probe using fsr switch:

                                @fcwilt, do not worry about the time I’m not in a hurry.
                                I use S2 because it makes me move the arm even if it’s not homed, other h commands would not make it move, I do not know why.

                                Gianmarco

                                What version of firmware are you using?

                                This is what the docs says about that for v3 firmware:

                                Snnn In RRF3, this parameter is used to set laser power, when switched into Laser mode (see M452); its use for defining move type is deprecated, use 'H' parameter instead. In RRF2.02 and later, when switched into Laser mode (see M452), this parameter sets the laser power. When not switched into Laser mode, and always in firmware 2.01 and earlier, it defines the move type (see the description of the H parameter).

                                Also the G1 H1 moves in the homing file, assuming they triggered the endstops, should have marked the axis as homed.

                                If that is not happening something is wrong with the code or the endstops (configuration, wiring, etc).

                                Frederick

                                Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                                  Can you send M122 in the gcode console and share the results?

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  gnmrc_undefined 1 Reply Last reply Reply Quote 0
                                  • gnmrc_undefined
                                    gnmrc_ @fcwilt
                                    last edited by

                                    @fcwilt
                                    So I’m using RRF3.
                                    I’m going to re-test it but when I use the S2 command it gives me a warning message saying obsolete command, but still moves as the old s2 command so ignoring homing not completed.

                                    Gianmarco

                                    fcwiltundefined 1 Reply Last reply Reply Quote 0
                                    • fcwiltundefined
                                      fcwilt @gnmrc_
                                      last edited by

                                      @gnmrc_ said in Problem configuring z probe using fsr switch:

                                      @fcwilt
                                      So I’m using RRF3.
                                      I’m going to re-test it but when I use the S2 command it gives me a warning message saying obsolete command, but still moves as the old s2 command so ignoring homing not completed.

                                      Gianmarco

                                      Good to know. Often commands and command options, like S2, are deprecated but not yet gone.

                                      But it still leaves the question of why the two H1 moves aren't marking the axes as homed.

                                      I notice that you specify the movement distance as X200 and Y200.

                                      Be aware that if the endstop swtiches are not activated by the time the distance has been moved the axis is not marked as homed.

                                      Is 200 long enough to insure the endstop switches are reached?

                                      Thanks.

                                      Frederick

                                      Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                                      gnmrc_undefined 1 Reply Last reply Reply Quote 0
                                      • gnmrc_undefined
                                        gnmrc_ @fcwilt
                                        last edited by

                                        @fcwilt Yes endstop are reached with no problems from any arm position.
                                        Maybe the movement does not work because it needs to home every axis not only x and y for some reason, this would explain the problem with the movement and why the arm works correctly after a partial homing routine(homing only the arm) and then using g92 to home z and after that everything works as expected.

                                        Let me know what you think.

                                        Thanks,
                                        Gianmarco

                                        fcwiltundefined 1 Reply Last reply Reply Quote 0
                                        • fcwiltundefined
                                          fcwilt @gnmrc_
                                          last edited by

                                          @gnmrc_

                                          Here are the last three lines from the most recent homing code:

                                          G90
                                          G1 X0 Y0 F300 S2 ;move hotend to the center
                                          G30

                                          As I recall you said the S2 (which should be H2 according to the docs) is needed.

                                          But if the previous two G1 H1 commands worked the X and Y axis should be homed and the S2 (H2) should not be needed.

                                          Now the G30 is the probing command and it is not going to work since it needs the Z axis to be homed.

                                          And there is nothing in your homing file that tries to home the Z axis.

                                          To help clarify something try this, please:

                                          • remove the S2 from the last G1 command
                                          • remove the G30 command
                                          • test homing now

                                          Yes, I know that Z axis will not be homed but I am not worried about that.

                                          What worries me is the need for the S2.

                                          Thanks.

                                          Frederick

                                          Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                                          gnmrc_undefined 1 Reply Last reply Reply Quote 0
                                          • gnmrc_undefined
                                            gnmrc_ @fcwilt
                                            last edited by

                                            @fcwilt I’ve done as you said, this is the error I get:
                                            G0/G1: insufficient axes homed

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