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

    Problem with M208 minimums on y axis

    Scheduled Pinned Locked Moved
    General Discussion
    4
    5
    416
    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.
    • jrsphotoundefined
      jrsphoto
      last edited by

      I'm stumped. Maybe I've just been looking at it too long. Maybe someone here can see something stupid I'm not seeing.

      My system: Ender 3 pro with a Duet 2 Wifi running 3.01-RC2

      Problem:
      I have some endstop offsets set for X & Y axis that moves the extruder a few mm away from the edges of the glass plate and the clips that hold it down:

      ; Axis Limits
      M208 X-3 Y-3 Z0 S1                       ; set axis minimums
      M208 X200 Y215 Z200 S0                   ; set axis maxima
      

      If I issue G0 X0 Y0, I am able to manually jog to X-3 and Y-3. I thought that G0 X0 & Y0 positions would be limits and that I shouldn't be able to move beyond them? What am I missing?

      config.g

      1 Reply Last reply Reply Quote 0
      • Danalundefined
        Danal
        last edited by

        Your axis limits, where the firmware will allow you to move the head, are specified in M208. It says -3, and indeed, that is where you can move. This number is ALSO the assumed coordinate when the endstop is triggered during homing.

        If you want limit to be different than endstop, one way is to change them when homing. Example in homex.g:

        Add this line before any homing moves:
        M208 X-3 S1
        Do all the normal homing stuff that is in the file now
        be sure the last actual move is:
        G0 X0 Fwhatever feedrate you want
        Then add this line
        M208 X0 S1

        And do a symmetric thing in Homey.g

        Delta / Kossel printer fanatic

        1 Reply Last reply Reply Quote 1
        • jrsphotoundefined
          jrsphoto
          last edited by

          That did it Danal. Thanks much. I would not have figured that out myself.

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

            Why do you not want to be able to jog to X-3 and Y-3 ?

            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
            • droftartsundefined
              droftarts administrators @jrsphoto
              last edited by

              @jrsphoto The ability to set negative numbers with M208 allows the firmware to know exactly how far off the bed the carriages can move. This is important if you have an offset probe, because you may need to probe a point close to the edge, which causes the nozzle (which is usually the reference point) to be off the bed. The firmware will know if it's possible for the probe to reach that point, because of the M208 settings. Perhaps it's best to think of M208 as showing the 'bounds' of the machine, while the numbers show where the bed actually is relative to the homing positions.

              When printing, it's the job of the slicer to generate code that keeps the printer within the boundaries of the bed. There are some exceptions (eg delta printers have a 'print radius' in config.g), so setting up the slicer correctly also helps. There's also M564 S0, which will allow movement outside the boundaries set by M208.

              Also, the machine can't know that it's not supposed to go beyond 0. Many people have (including myself, and everyone who uses a Delta printer) have the origin (X0 Y0) at the centre of the bed.

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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