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

    Maximum Z Height/Maximum Y coordinates.

    Scheduled Pinned Locked Moved Solved
    Gcode meta commands
    4
    5
    240
    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.
    • Reefwarriorundefined
      Reefwarrior
      last edited by

      Hi,

      I would like my printer to go to the maximum z height and maximum y when the print is completed. I am not sure as to where to get the 'variables' that can be used in a macro?

      Any/all help is greatly appreciated!

      Stephen6309undefined ctilley79undefined 2 Replies Last reply Reply Quote 0
      • Stephen6309undefined
        Stephen6309 @Reefwarrior
        last edited by

        @reefwarrior In the object model: move.axes[2].max is the maximum printer height.

        1 Reply Last reply Reply Quote -1
        • ctilley79undefined
          ctilley79 @Reefwarrior
          last edited by

          @reefwarrior
          Currently the only way to do this is add M0 to your slicer end gcode. This calls stop.g at the end of your print. You don't really need variables for this, but if you want to get complicated you can add the following in stop.g

          G1 Y{move.axes[1].max} Z{move.axes[2].max}
          

          This is kind of pointless if you know the extents of your printer. I would just add something like this to stop.g

          G1 Y300 Z260 ;much more readable
          
          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            You don't even need to know the extents of the axis, you can just use a relative movement to move a distance larger than the axis. It will stop when it gets to the max point automatically.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 1
            • Reefwarriorundefined
              Reefwarrior
              last edited by

              @phaedrux
              @ctilley79
              @Stephen6309

              Thank you all! 🙂

              1 Reply Last reply Reply Quote 0
              • Reefwarriorundefined Reefwarrior marked this topic as a question
              • Reefwarriorundefined Reefwarrior has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA