Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Getting position

    General Discussion
    2
    3
    86
    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.
    • AnWi
      AnWi last edited by

      Hi

      I'm testing coding in 3.01 RC4. Is there a way to get the position from an axis? I really have tried.
      I have coded an inner loop with "while iterations < 9" to create one layer and then I want to change height and repeat until a certain height.
      I have read this:
      https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands#Section_Conditional_construct https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware

      thanks
      Anders

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

        9/03/2020, 14:02:39 	echo move.axes[0].userPosition
        179.200
        

        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
        • AnWi
          AnWi last edited by

          Thanks a lot

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