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

    Output x,y,z tool position from DWC to serial?

    Scheduled Pinned Locked Moved
    Firmware developers
    2
    5
    321
    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.
    • jazbaatbadalgayeundefined
      jazbaatbadalgaye
      last edited by

      Which files should I modify to output the x,y,z tool position (as shown in DWC) to the serial so I can store in a txt file?

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        I'm not really sure what you're asking. What are you trying to accomplish in general?

        Z-Bot CoreXY Build | Thingiverse Profile

        jazbaatbadalgayeundefined 1 Reply Last reply Reply Quote 0
        • jazbaatbadalgayeundefined
          jazbaatbadalgaye @Phaedrux
          last edited by

          @phaedrux I want to store the to X, Y, Z tool positions (displayed at top right-ish in DWC) in a text file.

          Screenshot (26).png

          I will later use these positions to generate a 3D model so I can check how well does my control algorithm works. Currently, I am generating the X,Y,Z values using the DDA output (accel stop time, steady time, decel start time, start velocity, end velocity, total distance moved etc) but I'm sure there's a bug somewhere because I get a deformed model

          Deforemd.png

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            Sending M114 will give you the current position

            https://duet3d.dozuki.com/Wiki/M114

            But I'm not sure how quickly it will report. Are you trying to capture the position when at rest, or during movement?

            Z-Bot CoreXY Build | Thingiverse Profile

            jazbaatbadalgayeundefined 1 Reply Last reply Reply Quote 0
            • jazbaatbadalgayeundefined
              jazbaatbadalgaye @Phaedrux
              last edited by

              @phaedrux I am capturing motion during movement. I just want to intercept the values that being sent to the DWC tool position

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