![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
I have a large file of X, Y and Z coordinates (too many rows of data for Excel!). Does anyone know a good way to add the appropriate G code to each piece of data? For example.....the raw text file is just the numbers, say, 1000, 5000, 200 (in X, Y, Z order). I want to find a way to have each line look formatted like - G1 X1000 Y5000 Z200. Any ideas? It would also be good if I could do math on it and get it scaled for my table. Sounds like I need to hire a programmer? Thanks Scott |
|
#2
| |||
| |||
Question 1: What format is the file in? is it a plain ASCII Text file? Question 2: What version of Windows are you running? if I recall correctly, Windows98 still contained the QBASIC file in the WINDOWS/COMMAND directory. If I am correct in that, I could whip together a quick program to do whatever you need to the data.. do a search of your system, and see if it contains a file containing QB.EXE or QBASIC.EXE, and we can go from there.. Unfortunately, i have quit programmin, so I keep no compilers installed any longer.. Eddie OH YEAH .. what is the formatting of the file? is it, for example: 100,2300,245 126,2234,567 or is it: 100 2300 245 126 2234 567 these two are referred to as Comma Delimited and Space Delimited respectively. There are also formats that place quotes around each value.. |
|
#3
| ||||
| ||||
| Eddy - 1) I believe its a plain ASCII. I can read it with notepad. It is space delimited, and comes into excel nicely, but excel only has about 65K rows and it chops off a lot of the data. I have ~260K rows! 2) I have a bunch of computers and just upgraded them to XP. I cannot find anything with the search "QB". I could power up an old computer with 98 on it later and look there. |
|
#5
| ||||
| ||||
| Geez - fantastic MetLHead. I can't believe the wealth of information on the CNCZone. Two other considerations....... 1)Is there a way to do scaling and offsets on the raw data? 2)This one gets tricky......The way the raw data is sorted.....I either need to put in a line every so often to lift z to go back and begin the next cut (maybe I could tell it to do this every "n'th" line)? Or - is there a way to re-sort the data so the cut can go back and forth? Seems like this would be more difficult. Know what I mean? I feel like a beggar who is also trying to chose. |
| Sponsored Links |
|
#11
| ||||
| ||||
Scott |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |