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

    Saving Axes Positions to a CSV file on Local Computer

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    2
    3
    194
    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.
    • GingerGradStudentundefined
      GingerGradStudent
      last edited by

      Hiya, I am working on a custom 5-Axis 3D Printer that uses a Duet3 MB6HC as the control board. The board is running in standalone mode connected through ethernet. I am currently using DWC as the main form of communication with the board. The printer is designed to print on surfaces outside of its volume, so it could print on a cylindrical surface directly next to it. I am working on a calibration system for the printer and the algorithm needs a table of joint angles that correspond to each touch-off point.

      Currently, my process consists of: manually moving a probe to the surface then recording the joint positions in an excel spreadsheet. Once all the points are recorded I input them into the calibration algorithm and get my results. I am already planning on automating the probing, but I would like to automate the joint position recording.

      I have used M409 to retrieve the positions in the console, but I would like to do something similar where the positions are also saved to a local spreadsheet. Any ideas?

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

        @gingergradstudent you could use curl to send a rr_model request to the Duet to retrieve the axis positions in JSON format, then use sed or a similar tool to convert them to CSV.

        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

        GingerGradStudentundefined 1 Reply Last reply Reply Quote 0
        • GingerGradStudentundefined
          GingerGradStudent @dc42
          last edited by

          @dc42 It worked! Thank you!

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