• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Reefwarrior
    last edited by 1 Feb 2022, 20:22

    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!

    undefined undefined 2 Replies Last reply 1 Feb 2022, 22:11 Reply Quote 0
    • undefined
      Stephen6309 @Reefwarrior
      last edited by 1 Feb 2022, 22:11

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

      1 Reply Last reply Reply Quote -1
      • undefined
        ctilley79 @Reefwarrior
        last edited by 1 Feb 2022, 22:23

        @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
        • undefined
          Phaedrux Moderator
          last edited by 2 Feb 2022, 01:42

          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
          • undefined
            Reefwarrior
            last edited by 2 Feb 2022, 04:17

            @phaedrux
            @ctilley79
            @Stephen6309

            Thank you all! 🙂

            1 Reply Last reply Reply Quote 0
            • undefined Reefwarrior marked this topic as a question 2 Feb 2022, 04:17
            • undefined Reefwarrior has marked this topic as solved 2 Feb 2022, 04:17
            3 out of 5
            • First post
              3/5
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA