Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: billw333 on July 18, 2022, 11:39:14 PM

Title: Screw mapping curve0.dat file format
Post by: billw333 on July 18, 2022, 11:39:14 PM
I have made a circuit to opto isolate my DRO output so I can feed them into the DRO/MPG inputs, I have made a script to move the axis a curtain amount pause then write the real position from the 1 micron scales to a file and chart the accuracy of my system.
 What would really be the icing on the cake, would be to be able to use this data as input to the screw mapping feature but I don't
understand the file format that mach3 uses. Any help in this department would be greatly appreciated.
Title: Re: Screw mapping curve0.dat file format
Post by: billw333 on July 19, 2022, 03:58:49 AM
I may have not used the best wording to describe what I am trying to do, I have looked at all the posts on this subject so
I know the basic layout of the data but I don't know how to turn a CSV into the garbledegoop I see when I look at the curve.dat
with notepad
Title: Re: Screw mapping curve0.dat file format
Post by: JohnHaine on July 19, 2022, 05:43:19 AM
You could try manually inputting some correction values through the config\screwmapping menu and inspecting the file so generated?  I would guess that the format should be obvious from that.  Actually generating the file from your CSV might involve some creative Excel work; or you could open the csv in a text editor and use that to insert necessary formatting characters.  This sounds harder than it usually turns out to be as you can use the "replace all" command creatively.
Title: Re: Screw mapping curve0.dat file format
Post by: billw333 on July 19, 2022, 01:59:29 PM
Hi John, thanks for the reply, that is what I did but I am not a programmer so what I saw made no sense to me.
I did not recognize any of the characters and there were no numbers but I was using notepad to view it. It is nice to
have the ability to feed the values from the scales back into mach3, I made multiple runs of 686 points and they
show amazing repeatable detail.
Title: Re: Screw mapping curve0.dat file format
Post by: JohnHaine on July 19, 2022, 02:30:19 PM
Can you post the files?
Title: Re: Screw mapping curve0.dat file format
Post by: billw333 on July 19, 2022, 02:37:54 PM
Sure, what files are are you interested in
Title: Re: Screw mapping curve0.dat file format
Post by: billw333 on July 19, 2022, 03:11:49 PM
Here is a picture of the chart I made from the CSV file and the Curve0.dat with first 68 points entered manually.
It will not let me post a .dat file so here is a screen capture.
Title: Re: Screw mapping curve0.dat file format
Post by: JohnHaine on July 19, 2022, 03:51:00 PM
Post the CSV or dat files.  Just change the file extension to txt on the latter
Title: Re: Screw mapping curve0.dat file format
Post by: billw333 on July 19, 2022, 05:38:31 PM
collected X Axis Scale data every 1mm
Title: Re: Screw mapping curve0.dat file format
Post by: billw333 on July 19, 2022, 05:40:41 PM
Curveo.dat
Title: Re: Screw mapping curve0.dat file format
Post by: JohnHaine on July 20, 2022, 06:18:38 AM
Hmmm, I see what you mean Bill!  .dat is a catch-all format that's can be defined for any specific program, but they are often readable by a text editor or opened as a csv.  But not in this case clearly!!  Have you done a search on screw mapping here?  I'm sure that I've seen something somewhere on using in-built features to move the axis and capture the DRO value.
Title: Re: Screw mapping curve0.dat file format
Post by: billw333 on July 20, 2022, 08:01:28 AM
I have seen everything on this site and spent hours looking on the web, not much info on the subject.
it's a shame that there isn't a oembutton for adding a data point to the file with a macro. There is for
bring up the window but that's it.
Title: Re: Screw mapping curve0.dat file format
Post by: JohnHaine on July 21, 2022, 05:17:52 AM
I had a sudden thought - another .dat file in mach3 is the tool table.  There are a couple of macros around to export and import the tool table, I have versions by Rimmel that work very well.  You might see if they could at least be modified to work with the screw map file?  I attach copies, for more info try searching for "tool table export" on here?
Title: Re: Screw mapping curve0.dat file format
Post by: billw333 on July 21, 2022, 03:43:20 PM
Thank you John, I will investigate this tonight, I just started to learn about macro's for spreadsheets and mach3
a couple of weeks ago so I know just enough to be dangerous.