Output x,y,z tool position from DWC to serial?
-
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?
-
I'm not really sure what you're asking. What are you trying to accomplish in general?
-
@phaedrux I want to store the to X, Y, Z tool positions (displayed at top right-ish in DWC) in a text file.
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
-
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?
-
@phaedrux I am capturing motion during movement. I just want to intercept the values that being sent to the DWC tool position