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

    OFFSET X from endstop

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    8
    3.0k
    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.
    • Synapsisundefined
      Synapsis
      last edited by

      My endstop is pass the end of the table so I have a travel of 405 on my X axis.
      No I have a Titan Aero which eats up some space where the X and Y motors are at.
      I set my bed to X396 whiche is the space between the two motors so when I home and go to 0 it stops in the correct place on the left Y0 X0.
      now if I move back to X max it does not stopbefore the endstop but at the endstop so it hit the motor mount.
      I was reading about travel limits but can figure it out.
      The offset is to move the head +/- from the X0 Y0 (or at least in my tests).
      So after homing can you tell it that the like -4 from the endstop position of do I have to move my endstop.

      Still reading but if someone can help would be glad.
      Thanks

      1 Reply Last reply Reply Quote 0
      • DjDemonDundefined
        DjDemonD
        last edited by

        Just put your minimum travel limit as a negative number.

        Eg my corexy with titan x needs to start 10mm after the endstop so I use
        M208 X-10 S1
        M208 X270

        This sets min and max. It can home to the endstop but then it will say x=-10 on panel due or DWC. Since your slicer is never going to command a move to a negative x coordinate (unless its a delta printer) it will never move to hit the endstop.

        Simon. Precision Piezo Z-Probe Technology
        www.precisionpiezo.co.uk
        PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

        1 Reply Last reply Reply Quote 0
        • Synapsisundefined
          Synapsis
          last edited by

          Thanks Simion I think I did try that but not with the S1 and not the M208 X270.
          Will try when its finishing printing and let you know:

          Steve

          1 Reply Last reply Reply Quote 0
          • DjDemonDundefined
            DjDemonD
            last edited by

            The S1 denotes minimums.
            Without S1 it denotes maximums.
            X270 is my x max size on my corexy printer substitute yours.
            Your minimum will be different too.
            Sorry if this is obvious but I just want to be clear.

            Simon. Precision Piezo Z-Probe Technology
            www.precisionpiezo.co.uk
            PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

            1 Reply Last reply Reply Quote 0
            • Synapsisundefined
              Synapsis
              last edited by

              Yes I went and read the gcode and say that I did have the S1 in my somand line.

              I have a 42 x 42 (frame is 51 x 52) bed but the motor mounts etc limit the x moviment so I have to keep the area to X 399 x Y360
              so to have as much X as possible. Now I would like to limit X so I can gain some Y moviment say a 385 x 385.

              I been trying all evening but yet it still does not work.
              I set M208 X385 S1 (max) now when I do Home X and it hits thew end stop I get 385 in DWC as position X
              If I move it to the left -385 it stops where I what it to stop so as not to hit the motor mount.
              M208 X0 is minimum.
              Now if I move it back to X385 it will stop at the endstop and the right motor mount.

              Tried with M208 X XX if +/- it only effects the position on the left but not to the right and
              it will move always to the endtop and not stop using the value in M208 -10 (which would be 375 and it what I would like)

              So either Its not obvious to me or there is something missing 🙂 (which is possible as i have sleep in 2 days.)

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

                Are you saying that after homing X, you don't want to allow the head to move as far as the endstop any more? If so then you can use M208 commands in your homex.g and homeall.g files, to use one value during the G1 S1 homing move(s) and a lower value afterwards.

                IMO there is a lot to be said for setting the M208 commands so that X0 Y0 is the centre of the bed, and configuring the slicer to centre the bed on X0 Y0 too.

                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

                1 Reply Last reply Reply Quote 0
                • Synapsisundefined
                  Synapsis
                  last edited by

                  Yes thats correct David. On the M208 command in G Code RepRap there is very little info.
                  So I would need to add the command in the homex.g after it does the homing command like below
                  or in the config.g?

                  I see that when you use the Home X in DWC its a G28 X

                  in config.g I have
                  M208 Y0 Z0 S1 ; set axis minima (adjust to make X=0 and Y=0 the edges of the bed)
                  M208 Y360 Z400 S0 ; set axis maxima (adjust to suit your machine)
                  M208 X-2 S1
                  M208 X385

                  in homex.g I have

                  G91 ; relative positioning
                  G1 Z5 F6000 ; lift Z relative to current position
                  G1 S1 X410 F1800 ; move quickly to X axis endstop and stop there (first pass)
                  G1 X-5 F6000 ; go back a few mm
                  G1 S1 X410 F360 ; move slowly to X axis endstop once more (second pass)
                  G1 Z-5 F6000 ; lower Z again
                  G90 ; absolute positioning

                  Thanks for any links to a more detailed use of M208

                  1 Reply Last reply Reply Quote 0
                  • Synapsisundefined
                    Synapsis
                    last edited by

                    @DjDemonD:

                    Just put your minimum travel limit as a negative number.

                    Eg my corexy with titan x needs to start 10mm after the endstop so I use
                    M208 X-10 S1
                    M208 X270
                    This sets min and max. It can home to the endstop but then it will say x=-10 on panel due or DWC. Since your slicer is never going to command a move to a negative x coordinate (unless its a delta printer) it will never move to hit the endstop.

                    I must have something setup backwardsas this does not work for me.

                    Where is your endstop on the right or left and where is your Y0 X0 right or left.
                    When I home, if I have set M208 X385, in the DEC its say x position 385, now I move left to zero using M208 X-2 S1 as my limit so it stops befor hitting the motor mount.
                    But if I move to the right, positive X, it will keep going until it hits the endstop say X 385 in the DWC.

                    If i use any other number it will move left that amount so if I use M208 X 200 it will stop in the middle.

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